Exiting (closing down) a session window??
I have a requirement where the user wants to enter some information and then press a button to indicate they are finished. when they press the button, another program kicks off that processes the information into a BDC and then runs it. The program that does this need to be ran Async so the user can be entering more info as the previous info is processed.
I have coded it like this:
CALL FUNCTION 'ZPACKSTAT_SUBMIT_FOR_PACK'
STARTING NEW TASK 'ZPACKSTAT'
EXPORTING
Z_VBELN = G_DELIVERY
Z_MODE = 'N'
Z_SEND = 'X'
Z_AUTO = 'X'
Z_CONFIRM = Z_TO_CONF
Z_REM = Z_REM
Z_TRANSFER = G_TRANSFER
Z_WAREHOUSE = G_WAREHOUSE.
Where the function used above is remotely callable (so I can use the starting new task addition) and the function does nothing more that a SUBMIT for a program passing in the variables.
The problem is that when the program is finished, a new session is opened and the user is pulled over into this new session, out of the session where they are entering information.
Is there a way in ABAP to close down the current session so I can close this new session window without bothering the user, or do I need to do this another way?
Thanks,
_________________
MajorCats
I hate to do this to you MajorCats, but have you tried to search the forum? :-)
Look at this thread.
_________________
Sudhi Karkada
Ouch, yes I actually did do some searching on things like 'close session' and such but always got back so many results that it was pointless.
Thanks for the assist.
_________________
MajorCats
Not innocuous, but works:
SYSTEM-CALL FREE MODE 1.
Check docu of system-call before...
Cheers
carsten