I'm using the FM - PM_ORDER_DATA_READ to extract workorder data for divestiture. But the program execution time is running over few days due to the
LOOP AT icaufv-aufnr.
Another thing I have noticed - Unless the FM is run as a backgroud job for large data, SAP errors 'out of memory'.
Can anyone suggest how to extract all workorder info and quicken the execution time?
Thanks
G
Instead of using the FM, select the data directly from <b>AUFK - Order master data</b> table.
This problem is due the long execution time.
Basis people will set the execution time for the program, say 10 minutes or 20 minutes. If it exceeds it will through the error.
If the table AUFK doesn't contain all the data, chek the FM in debugging mode and see what are all the tables/ select queries SAP is using and get the data from those tables.
If u directly selecting the data table u can directly use <b>for all entries</b> in the select query.
Regards,
Prakash.
The required fields are all not in AUFK.
Here is the list of fields -
caufv-aufnr
caufv-werks
caufv-plnty
caufv-plnnr
caufv-plnal
caufv-aufpl
caufv-rsnum
caufv-gltrp
caufv-gstrp
caufv-gltrs
caufv-gstrs
caufv-gltri
caufv-gstri
caufv-auart
caufv-ktext
[???]-priok
[???]-equnr
[???]-bautl
[???]-iloan
[???]-iwerk
[???]-ingpr
[???]-gewrk
[???]-ilart
[???]-vawrk
[???]-vaplz
From which tables can I select the [???]-fields, satisfying the werks = <..>and aufnr = <..> conditions?
Add a comment