03-02-2007 7:09 PM
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.
03-02-2007 7:41 PM
03-02-2007 7:12 PM
>>>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
03-02-2007 7:26 PM
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
03-02-2007 7:17 PM
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
03-02-2007 7:41 PM
03-02-2007 7:52 PM
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
03-02-2007 9:09 PM
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