09-29-2015 8:34 PM
Hi All,
I have created a subscreen in the transactions XD01/02. When user tries to leave this subscreen using Back button i am calling the FM popup_to_confirm.
Problem: when i use the cancel button user should stay in this subscreen. I tried with Return but it is leaving the subscreen. As it is subscreen i am not able to use set_screen.
Please share the information if anyone knows how to do this.
Thanks& regards,
NarsiReddy.
09-30-2015 5:15 AM
Hi,
You can try one thing, while calling this screen you can check the sy-ucomm and set the same when user press the cancel button.
Hope this helps.
09-30-2015 8:50 AM
Hi Gaurav,
I tried but its not working.
Thanks & regards,
NarsiReddy.
09-30-2015 5:53 AM
Hi Narsireddy,
I believe when user clicks back button, standard user-command for back is getting executed. Based on your pop-up result, try clearing the user-command.
Let us know, if this doesn't work out.
Thanks,
Nachi.RM
09-30-2015 8:23 AM
Hi Nachiyappan,
I tried clearing the SY-UCOMM when user presses canhcel button. But its not working.
Thanks & regards,
NarsiRedy.
09-30-2015 8:43 AM
Hi,
Problem: when i use the cancel button user should stay in this subscreen. I tried with Return but it is leaving the subscreen. As it is subscreen i am not able to use set_screen.
Which cancel button you are talking about custom screen or standard screen.??
It would be better if you can attach screen shot.
Thanks
Nishant
09-30-2015 8:48 AM
Hi Nishant,
In the subscreen program which i have created, i am calling the FM popup_to_confirm. The cancel button of the FM popup_to_confirm.
When i press the cancel button user goes to the initial screen of XD01. But i want the control to stay in the subscreen .
Thanks ®ards,
NarsiReddy.
09-30-2015 9:00 AM
Hi,
What is think when you click the back button system start performing his SY-UCOMM in mean time you have called your exit in processing.
After completion of your processing system execute the remaining back process.
I have checked the function module. It exporting parameter for user action CANCEL as answer is 2.
Please write after your pop_to_Confirm.
If answer = 2.
return. " System will not process ahead.
Endif.
Thanks
Nishant
09-30-2015 9:20 AM
Hi Nishant,
Already i have tried it and its not working. When the user presses the cancel button the answer is 'A' not 2.
Thanks & regards,
NarsiReddy.
09-30-2015 10:04 AM
Hi,
Can you please post the screen shot of the call stack in desktop2 from which we can analysis.
Thanks
Nishant
09-30-2015 10:13 AM
Hi Nishant,
I have attached the screen shot of it.
Thanks & regards,
Narsi.