2014 May 07 4:51 AM
Dear experts.
i have designed a screen painter, on the screen when fill some fields then i press 'Enter', 'Enter' is not the execute code in my program, i debug the program , i found the process. PAI then PBO. so i am confused with this process. how to let it not to go PBO modules.
thanks.
2014 May 07 4:57 AM
Hello.
You need to create a GUI status for that screen and assign it in PBO MODULE_STATUS_SCREEN.
Regards.
2014 May 07 4:57 AM
Hello.
You need to create a GUI status for that screen and assign it in PBO MODULE_STATUS_SCREEN.
Regards.
2014 May 07 5:07 AM
2014 May 07 5:15 AM
2014 May 07 5:06 AM
hello
you need auto screen call command .so u need funcation module on alv.
use this for manually call PBO
MODULE USER_COMMAND_0900 INPUT.
SY-UCOMM = 'P1'.
CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE
EXPORTING
NEW_CODE = SY-UCOMM.
END MODULE.
2014 May 07 5:16 AM
Hi Huang Lemon,
Assign the ENTER code to your ENTER command in the MODULE_STATUS_9000 under PBO of the screen and set the PF-STATUS as your status name in 'STATUS' (Example). Then double click the STATUS it will forward you to the GUI status screen where you can assign code for SAVE, BACK,CANCEL and EXIT and ENTER command.
You can assign the ENTER code as shown in attached screenshot.
And in the PAI of the screen, code the functionality of the 'ENTER' as
data ok_code type sy-ucomm.
ok_code = sy-ucomm.
IF ok_code EQ 'ENTER'.
your code....
.............
.............
finally clear the ok_code.
ENDIF.
Thanks and Regards
Syed