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

Module Pool ToolBar Enter Function

Former Member
0 Likes
1,975

Hi all, how can I create to the enter button the enter function? In the PBO.

In my class I was told and the teacher showed that was a default function, but here at home, it does not exists.

First, it is or it is not a default function? How can I assign it?

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,770

Hi,

Enter is a  default function if you need to specifically capture it and work on it assign the enter button function specifically and use it in PBO .The enter key value will be in system variable sy-ucomm.Go inside

PFSTATUS and set as given below.

6 REPLIES 6
Read only

Former Member
0 Likes
1,770

hi Caio

you need statement "set pf-status 'XXX' in your PBO module. ", XXX is defined in SE41, you can copy it from standard status 'STANDARD_FULLSCREEN' in standard program 'SAPLKKBL'.

regards,

Archer

Read only

Former Member
0 Likes
1,771

Hi,

Enter is a  default function if you need to specifically capture it and work on it assign the enter button function specifically and use it in PBO .The enter key value will be in system variable sy-ucomm.Go inside

PFSTATUS and set as given below.

Read only

0 Likes
1,770

Thanks

Read only

Former Member
0 Likes
1,769

hi,

Try with this code. I am not sure it is suitable for your requirement.

data count type c.

data c type boolean VALUE '1'.

module PDO output.

*add 1 to count.

*count = count.

*  IF count is initial.

*    CALL SCREEN 2000.

*  ENDIF.

*  WAIT UP TO 10 SECONDS.

   if c = '1'.

if count is not INITIAL.

*leave to screen 0.

     CALL TRANSACTION 'SE11'.

endif.

                            CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'

                             EXPORTING

                               FUNCTIONCODE                 = '='

*                            EXCEPTIONS

*                              FUNCTION_NOT_SUPPORTED       = 1

*                              OTHERS                       = 2

                                      .

                            IF sy-subrc <> 0.

* Implement suitable error handling here

                            ENDIF.

                            clear c.

                            else.

                              c = '1'.

                            endif.

*call function 'SAPGUI_SET_FUNCTIONCODE'.



endmodule.                 " PDO  OUTPUT


Screen


Flow logic


PROCESS BEFORE OUTPUT.

* MODULE STATUS_2000.

MODULE pdo.

PROCESS AFTER INPUT.

* MODULE USER_COMMAND_2000.



Read only

Former Member
0 Likes
1,769

This message was moderated.

Read only

0 Likes
1,769

Thanks