IB - Developer Center    Forums  Hop To Forum Categories  iWay Products    SAP IWay - Extracting data techniques
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  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.4
Windows 2000 and 2003 Server.
Windows XP Professional for Dev Studio
Output: HTML, Excel, and PDF
 
Posts: 2 | Registered: September 27, 2007Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
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: 705 | Location: New York | Registered: November 16, 2004Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  iWay Products    SAP IWay - Extracting data techniques

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