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: 

Clearing the SY-UCOMM of a Screen Exit Push Button in SAP Std Transaction

Former Member
0 Kudos

Hi ABAP Experts,

I am calling a ZTransaction after a Push Button is clicked in a Screen Exit, from a SAP Transaction. After completing the tasks in the ZTransaction, I need to come back to SAP Standard Transaction to perform the required task. I am clearing the SY-UCOMM (Push Button) value after the Transaction is completed. But when the Program control comes out of the Screen Exit, It still holds the SY-UCOMM value of the Push Button (ZTransaction) and the Screen Flow gets stopped and throwing Error.

After the Program control comes back to SAP Standard Transaction, The SY_UCOMM needs to be automatically assigned with the values that are available in the SAP Standard Transaction. I am trying to clear it in Debugging too at various points in the Program, But still it hold the Push Button in the Screen Exit and the program is earring out since it does not fine the SY-UCOMM values in the Standard Screens of the same Transaction.

I am not able to clear the SY-UCOMM value of the Push Button of the Screen Exit, which is used to call the ZTransaction. Can you please suggest me any Solution.

Thanks,

Kannan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You dont clear SY-UCOMM and check what happens.

Thanks,

Santosh

6 REPLIES 6

suresh_datti
Active Contributor
0 Kudos

>>>I need to come back to SAP Standard Transaction to perform the required >>>task.

Did you trry to go back to Std Transaction using

<i>leave to transaction <tcode>.</i>

~Suresh

0 Kudos

Hi Suresh,

It has only one screen and I am leaving the ZTransaction Screen using The Leave Screen Command. Program control should go to the Screen Exit of Standard Transaction. From there user will carry on subsequent tasks in the Stamdard Transaction Screen.

Thanks,

Kannan

Former Member
0 Kudos

Why don't u assign some value to SY-UCOMM from SAP standard transaction?

try assigning a specified value frm the screen of SAP standard transaction to SY-UCOMM

hope this will help

Thanks

Ashwani

Former Member
0 Kudos

You dont clear SY-UCOMM and check what happens.

Thanks,

Santosh

0 Kudos

Hi Santosh,

I tried that too. It is the same case even I do not clear the SY-UCOMM. The Push Button (Screen Exit) Fuction Code continue to be the same and Std Transaction gets Error since it does nto fine the Function Code.

Thanks,

Kannan

0 Kudos

I think it is not advisable to clear abap system fields like SY-UCOMM.

I suggest you use OK_CODE as given in this example and try.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaa1335c111d1829f0000e829fbfe/content.htm

Thanks,

Santosh