‎2014 Mar 13 4:49 PM
Hi all,
I am facing an issue in module pool.
I have a screen in which all fields are mandatory. the issue is when I press Back button the system gives "Fill in all required fields". In this case this should not happen. If I have inserted any value and then press back button then if system gives this message , then it s okay.
But If I have not inserted any value and I press back button then , it should allow me to go back.
So does anyone having idea how to do this?
‎2014 Mar 13 5:03 PM
‎2014 Mar 13 5:14 PM
Thank you Shruti..
I applied your suggestion.. But still system does not allow me to go back.
‎2014 Mar 13 5:20 PM
Hi Yash,
You have to mention MOdule <name> at EXIT command.
In this case it will allow you to come out of the screen if you havnt entered the mandatory fields also.
BR
Sumeet
‎2014 Mar 13 5:23 PM
Sumeet, can you please tell me how to do this??
are you trying to say that I should make a module in PAI ??
If yes. then what should I write there as a code? I dont have any idea about this..
‎2014 Mar 13 5:23 PM
Sample code:
MODULE user_command_0100.
DATA: ok_code TYPE sy-ucomm,
...
MODULE status_0100
OUTPUT.
SET PF-STATUS 'STATUS_0100'.
‎2014 Mar 13 5:27 PM
Fos implicity: use this code.
PROCESS AFTER INPUT.
MODULE leave_100 AT EXIT-COMMAND.
MODULE leave_100 INPUT.
CASE ok_code.
WHEN 'BACK'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.
‎2014 Mar 13 5:29 PM
‎2014 Mar 14 5:01 AM
One question...
Is it possible if this logic of exit-command can be applied to one server and if i use the same code in different server it is not working
‎2014 Mar 14 7:49 AM
What error are you getting? And also can you please tell me your scenario what exactly you want to achieve?
‎2014 Mar 14 7:55 AM
Thank you for the reply Sumeet.
My issue is : I have a screen. In which all the fields are mandatory.
If I press back button then system givem me an error of 'Fill required fields'. In my case this should not happen.
System should allow me to go back.
I tried this and it worked. Using Exit-command.
But when I applied the same logic in differnt server the system is not allowing me to go back.
‎2014 Mar 14 8:38 AM
Have you assign sy-ucomm for BACK button in screen painter in your current server?
What is happening when you press your BACK button?
Noting happen or same error 'Fill all required fields' you are getting?
‎2014 Mar 14 8:44 AM
Problem Solved.
I assigned Exit Command in PF status of BACK Button.
‎2014 Mar 14 1:50 PM
I had given you suggestion at very first point. If you could scoll up the thread please. Glad to hear it solved.
‎2014 Mar 14 1:57 PM
Yes Shruti you are right.
Actually I forgot to do the same in the different server.