‎2011 Oct 13 10:41 AM
Hi Experts,
I am doing project on data scrambling an using the ldb PNP . currently i am facing one problem regarding the' BACK'.
i am calling one screen program in main program. when i am clicking on back button from screen program ,the control flow back to the main program and the rest of the lines of the main program gets executed.
i want the control must go back to the default selection screen.
i have tried using leave to screen 0,leave program and exit.But these command are not working as per the requirement.
thanks in advance.
‎2011 Oct 13 11:02 AM
You should use a variable that you check after "call screen" (initialized in called screen) and then you can maybe use:
- STOP.
- or LEAVE LIST-PROCESSING.
‎2011 Oct 13 11:06 AM
‎2011 Oct 14 6:48 AM
‎2011 Oct 13 11:11 AM
Hai,
Please check the fct code for BACK button. if the fctcode is exist then use the following code.
if sy-ucomm = 'BACK'. " USE CAPITAL LETTERS ONLY
{
LEAVE TO SCREEN 0.
}
‎2011 Oct 13 11:19 AM
Just a random question. Do you haev statements in the PBO of SCREEN 0 ?. If so i guess those statemnets would get executed during the screen set.
Rgds
Siva