cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Generic Extractor based on Function Module

Loed
Active Contributor
0 Likes
18,499

Hi guyz,

I still didn't get the solution in my problem below..

As an alternative, I'm planning to do a full load based on system date using the FM /POSDW/SEARCH_TLOG..I saw several documents but all of them are telling me to use the FM RSAX_BIW_GET_DATA_SIMPLE or RSAX_BIW_GET_DATA..

Some documents:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8d...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f1a423-02ae-2e10-bd85-bde64e61f...

Khoder Elzein's Blog: Create Generic Datasource using Function Module and Timestamps

I just want to ask if using the mentioned FM is the only way to do a generic extractor based on FM? I tried to use directly the FM /POSDW/SEARCH_TLOG and in the extract structure I used the ET_TRANSACTION in the EXPORT part of the FM..

But I got the error below:



I also tried to use the structure /POSDW/TRANSACTION_INT of the table above but also got this error:


I searched for some threads to solve the error above and got this..

Create Datasource with RSO2 & Function Module | SCN

But after copying the FM and creating my own table or structure to be included in the TABLES tab, I still encountered the same errors above..

Any idea how can I use the FM /POSDW/SEARCH_TLOG to create a GENERIC EXTRACTOR?

Thank you..

Loed

View Entire Topic
Former Member
0 Likes

Hi Loed,

I don't know the FM /POSDW/SEARCH_TLOG. But I can see that it export a internal table.

At first you can put in the FB Z_POSDW_SEARCH_TLOG for the Parameter E_T_DATA the type /POSDW/TRANSACTION_INT. It need a structure type and not table type.

In the DataSource FM you call the FM /POSDW/SEARCH_TLOG and loop the result data to internal table E_T_DATA.

Cursor..fetch is very helpfull vor select of defined amount of data. It is necessary, if you

want to extract only a part of data.

best regards

Peter