2009 Aug 22 8:32 PM
Hi everybody,
i call my RFC as a background task. After the background task is over i want to call the funciton call 'CALL_BROWER'. How can i realize this?
CALL FUNCTION 'my_background_task'
IN BACKGROUND TASK DESTINATION 'NONE'
EXPORTING
......
If i put the RFC 'CALL_BROWER' into the function 'my_background_task' it will not be called. Is there an other way i.e. to recognize that the background task is over and than start 'CALL_BROWER'.
regards,
Sid
2009 Aug 23 9:14 PM
a background task is really started at the next COMMIT WORK, in asynchronous mode, so I don't advise you to wait it's over (moreover, it's asynchronous and detached from GUI so it's useless calling CALL_BROWSER in this task). If you call it asynchronously (instead of tRFC), then you'll be able to wait (see sap library or abap manual).
a background task is really started at the next COMMIT WORK, in asynchronous mode, so I don't advise you to wait it's over (moreover, it's asynchronous and detached from GUI so it's useless calling CALL_BROWSER in this task). If you call it asynchronously (instead of tRFC), then you'll be able to wait (see sap library or abap manual).
2009 Aug 23 9:14 PM
a background task is really started at the next COMMIT WORK, in asynchronous mode, so I don't advise you to wait it's over (moreover, it's asynchronous and detached from GUI so it's useless calling CALL_BROWSER in this task). If you call it asynchronously (instead of tRFC), then you'll be able to wait (see sap library or abap manual).
2009 Aug 24 10:48 AM
Hi Sandra,
you mean there is no way to call a GUI-Screen or Browser from a background task (asynchronous rfc), i.e. at the end of the background task function module?
regards,
Sid
2009 Aug 24 10:54 AM
Hi:
Just after the background, create an application log (can be viewed by SLG1).
In the application log, you can put the double click event and on this event you can call call browse as you wished.
Regards
Shashi
2009 Aug 24 10:55 AM
Yes, it's not possible, it should trigger a dump if you attempt to display a screen (as Julius says).
2009 Aug 23 11:14 PM
Take a look in ST22...
Does it say anything about "My background task does not exist" or "No connection to user"?
Cheers,
Julius
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |