Skip to main content

Pass ABAP Filter through Command Prompt

ABAP Filter parameter is used to pass filter condition while extracting data from SAP in a text file through command prompt . The text file is to be specified using the below mention syntax (ABAPFILTER= <file name>) . Each line in the text file should not exceed 72 characters. ABAP syntax is to be followed while creating the text file.

>ProRDB “C:\Users\TestUser\My Documents\Innowera\ProcessFiles DB\BSEG.idd” "|AutoRun=true" "|Logon File=TestUser.ilf” "|ABAPFILTER=”C:\Users\TestUser\My Documents\ProcessFiles DB \Bseg_AbapFilter.txt”

This parameter starts Process Runner DB and automatically open and execute the Process File specified with the specified ABAP Filter condition as in the second argument (which in our case is BSEG.idd in C:\Users\TestUser\My Documents\Innowera\ProcessFiles DB\). It will use TestUser.ilf as logon file from My Documents\Innowera\iLogonFiles folder and the data filter condition will be read from the Bseg_AbapFilter.txt file.

A standard ABAP Filter file will resemble to below screen shot. The file when executed with BSEG table as per above screen shot, will extract data where GJAHR (Fiscal year) equal to 1995 and BUKRS (Company code) not equal to 2000.

Was this article helpful?

We're sorry to hear that.