on 05-19-2006 9:42 AM
Help to write please an optimum code of the functional module for an extractor from table INDX
Hi you can make a copy of the standard fm 'RSAX_BIW_GET_DATA_SIMPLE' in SE37
But the simpler way to extract data from table INDX is to create a generic extractor with RSO2 in R/3
Hope it helps
Andrea
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How many tables you are going to use for your extractor.
If it is one or 2 table and if there no much conditions, you can go view based extractor itself.
Juts think it over.
-Jayasudha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
While in the functional module on the basis of RSAX_BIW_GET_DATA_SIMPLE ' has made the following
************************************************************************
* Data transfer: First Call OPEN CURSOR + FETCH
* Following Calls FETCH only
************************************************************************
* íà÷àëî îáðàáîòêè
* First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
delete from zdbasetable1.
import inttable1 inttable2 inttable3 from database INDX(IM) ID 'IDENT'.
loop at inttable1.
move-corresponding inttable1 to zdbasetable1.
modify zdbasetable1.
clear zdbasetable1.
endloop.
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT (S_S_IF-T_FIELDS) FROM zdbasetable1.
ENDIF. "First data package ?
* Fetch records into interface table.
* named E_T_'Name of extract structure'.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.
IF SY-SUBRC <> 0.
CLOSE CURSOR S_CURSOR.
RAISE NO_MORE_DATA.
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF.
But it would be desirable, without use database table - zdbasetable1
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.