09-17-2008 7:31 AM
Hi All,
I hve to process a FM in background process.
Firstlly i scheduled a report through
1-call function 'JOB_OPEN'
2-SUBMIT (jobname) and return
3-call function 'JOB_CLOSE'
by this i scheduled my job succesfully.
but i hve to scheduled my job for FM.
so i used
CALL FUNCTION 'Y_WS4_WRK' in background task
DESTINATION 'NONE' AS SEPARATE UNIT
buy i'm unble to see there result in sp01, sm37 , sm58 n without adding " in background task it's giving right result.
pls help me how to get my result
regards,
Anuj
09-20-2008 5:12 AM
Hi Anuj,
CALL THE FM directly without background task if you are using JOB_OPEN etc.
CALL THE FM WITH BACKGROUND TASK if you are not using JOB_OPEN, SUBMIT etc. i.e. If you are having a program which would be executed in foreground & want the FM to be executed in background in asynchronus mode, then call it in Background task.
Best regards,
Prashant
09-20-2008 12:36 PM
whenever a FM is executed in Background task, the processing of the FM starts only when a "COMMIT WORK" statement is encountered during the remaining processing.
So you need to explicitly call "COMMIT WORK" for you background FM to be processed.
10-17-2008 6:57 AM