Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call browser after Backgroud Task

Former Member
0 Likes
964

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

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
858

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).

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
859

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).

Read only

0 Likes
858

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

Read only

0 Likes
858

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

Read only

0 Likes
858

Yes, it's not possible, it should trigger a dump if you attempt to display a screen (as Julius says).

Read only

Former Member
0 Likes
858

Take a look in ST22...

Does it say anything about "My background task does not exist" or "No connection to user"?

Cheers,

Julius