You may often need to extract data from SAP via the IWay Adapter and one of the keys is to have the SAP engine filter the data based on a date prior to sending results back to IWay. Here is a one you can use for the BKPK table but actually you can use on any SAP object that has a datetime stamp field:
In the below example, I am extracting data from BKPF for anything in the past 32 days:
1. Add a new fex (stored procedure) called DATESET which contains:
-SET &&DATEXXX=AYMD(&YYMD, -32,'I8');
2. Add the DATESET as a procedure in the process flow before the data flow.
3. Remove your source transformations.
4. Change the filter in the SQL statement to
T1.BKPF_CPUDT >='&&DATEXXX'
Even if you had "JOINS" to other objects, the above will "push" back to SAP to limit the returned rows to only what is based on your criteria. DEFINES will bring back everything and then it will filter within IWay (bad news).
WebFOCUS 7.6.2 client
WebFOCUS 7.6.0 server
Windows 2000 and 2003 Server.
Windows XP Professional for Dev Studio
Output: HTML, Excel, and PDF