12-31-2013 9:22 AM
I developed module pool program with three output fields and one input mandatory field along with these i have some others push buttons to process the data.Now my requirement is if i press clear push button i have to initialize the output field values.
12-31-2013 9:31 AM
Hi Sandhaya,
Basic things needs to do:
1.) Define global variables with same name output screen field names.
2.) In PAI of your screen capture the sy-ucom of of your clear button and clear all the global variables once the user will click on clear button.
Let me know if u need more details.
Thanks,
Prakash
12-31-2013 9:56 AM
Hello Sandhya Pujari.
Two key topics of a module pool program: PBO (Process Before Output) and PAI (Process After Input).
First system to understand what button you have pressed:
1) Assign function code to the button
2) Assign function code capturing variable (Eg: OK1001 TYPE SY-UCOMM).
What the system should do?
* In PAI module MODULE USER_COMMAND_SCREEN_NUMBER, write the business logic to clear the variable. After PAI, ABAP application server executes PBO which will clear the variable(s) in the screen.
Regards.
12-31-2013 10:21 AM
Automatic field checks can be avoided by AT EXIT-COMMAND, Which works exactly the same way as cancel works on application tols bar.
code
Process After Inpt.
Module exit AT EXIT-COMMAND.
In module pool program.
Module exit.
Case Okcode.
When 'Exit'.
leave to screen 0.
12-31-2013 11:02 AM
Hi Sandhya,
Please visit this link, it may help you.
Problem in Module Pool-fill required entry | SCN
Regards,
Vikram
12-31-2013 12:09 PM
Regards,
Raymond