Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    SAP IWay - Extracting data techniques
Go
New
Search
Notify
Tools
Reply
  
SAP IWay - Extracting data techniques
 Login/Join
 
Member
posted
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
 
Posts: 5 | Registered: September 27, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
Hi D.R. Whitaker,

Thank you very much for sharing with all. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1950 | Location: New York | Registered: November 16, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    SAP IWay - Extracting data techniques

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.