2006 Jun 15 12:24 PM
Hi gurus,
I want to know the code from ABAP which enable to exit from SAP program, for example when i click the quit button, it will quit from SAP, just like when i put the tcode /nex or /nend. those 2 tcodes cannot work when i put them in my ABAP code. any suggestion?
ex : call transaction '/NEX'. <- it will display error message
Thanks
2006 Jun 15 12:31 PM
It wanted to quit from SAP, it has something to do with barcoding machine. so the SAP program stops then it will go to the barcode machine
2006 Jun 15 12:27 PM
I am not aware of anything like that. The maximum I have seen is getting of the program using LEAVE PROGRAM.
What is the purpose of the same?
Regards,
Ravi
2006 Jun 15 12:28 PM
2006 Jun 15 12:31 PM
It wanted to quit from SAP, it has something to do with barcoding machine. so the SAP program stops then it will go to the barcode machine
2006 Jun 15 12:34 PM
I think it is not possible .
/nex is not a transaction u can check table TSTC
2006 Jun 15 12:46 PM
Use the Function module <b>TH_DELETE_MODE</b> to close the session. If you have only one screen this will kill that.
rgds,
TM
2006 Jun 15 12:35 PM
Hi,
Please debug sap functionality system-logoff.
Regards
Amole
2006 Jun 15 12:41 PM
very simple,
do a bdc on a dummy screen with okcode or tcode /nex.
Regards,
Vijay
2006 Jun 15 12:46 PM
Hi,
you can use below fm to close it.
HLP_RTF_DISPLAY_CLOSE
regards,
ram
2006 Jun 15 12:47 PM
report ZTEST12345
no standard page heading line-size 255.
include bdcrecx1.
start-of-selection.
perform open_group.
perform bdc_dynpro using 'SAPMV45A' '0102'.
perform bdc_field using 'BDC_OKCODE'
'/NEX'.
perform bdc_field using 'BDC_CURSOR'
'VBAK-VBELN'.
perform bdc_transaction using 'VA02'.
perform close_group.
Above code will quit from SAP. Easy.