Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

screen painter event process

Former Member
0 Likes
2,119

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.

1 ACCEPTED SOLUTION
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,596

Hello.

     You need to create a GUI status for that screen and assign it in PBO MODULE_STATUS_SCREEN.

Regards.

5 REPLIES 5
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,597

Hello.

     You need to create a GUI status for that screen and assign it in PBO MODULE_STATUS_SCREEN.

Regards.

Read only

0 Likes
1,596

thanks Mr. Prabhu. i did it.but it doesn't working.

Read only

0 Likes
1,596

Did you assign the ENTER function code as shown below?

Read only

Former Member
0 Likes
1,596

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.

Read only

Former Member
0 Likes
1,596

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