Application Development 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: 

Back Groound Job ( to log off the system)

Former Member
0 Kudos

Dear Friends,

I need to write the program to logg off the system.

And this program should be run in Back grouond and should give popup like Unsaved data will be lost .

Do you want to continue or not?

if user presses YES it has to be terminated if no it still remains same screen.

But program should be run in back ground because we will set the time to logoff.

I am not getting popup when I run back goround.

Please give solution.

Regards,

Praveen.

4 REPLIES 4

Former Member
0 Kudos

Hi,

A prog in b/g mode will not give any popup / messages to the UI. It runs on application server and has no relation with UI.

-RJ

0 Kudos

Thanks for giving reply..But how can logoff the system ofter some time...with out giving popup.

0 Kudos

Hi Praveen,

You cannot have user interaction in the background mode. So, you cannot request user.

As you are passing the time, try to write small application by comparing the time you passed with the system time sy-uzeit. If the difference reaches 0, then you can use CALL 'SYST_LOGOFF' to log off from the window.

Hope this is a good pointer

Thanks,

Babu Kilari

Former Member
0 Kudos

Try if 'call syst_logoff' command works.