Focal Point
SAP IWay - Extracting data techniques

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/3411098082

April 17, 2008, 04:55 PM
D.R. Whitaker
SAP IWay - Extracting data techniques
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).
Smiler


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
May 06, 2008, 11:04 AM
Kerry
Hi D.R. Whitaker,

Thank you very much for sharing with all. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.