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

Quit from SAP

Former Member
0 Likes
2,021

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,549

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,549

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

Read only

Former Member
0 Likes
1,549

Hi Julius,

I don't think it is possible.

Regards,

ravi

Read only

Former Member
0 Likes
1,550

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

Read only

0 Likes
1,549

I think it is not possible .

/nex is not a transaction u can check table TSTC

Read only

0 Likes
1,549

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

Read only

Former Member
0 Likes
1,549

Hi,

Please debug sap functionality system-logoff.

Regards

Amole

Read only

0 Likes
1,549

very simple,

do a bdc on a dummy screen with okcode or tcode /nex.

Regards,

Vijay

Read only

0 Likes
1,549

Hi,

you can use below fm to close it.

HLP_RTF_DISPLAY_CLOSE

regards,

ram

Read only

0 Likes
1,549

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.