‎2014 Jan 16 11:49 PM
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.
‎2014 Jan 17 3:02 AM
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.
‎2014 Jan 17 2:10 AM
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
‎2014 Jan 17 3:02 AM
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.
‎2014 Jan 20 11:04 PM
‎2014 Jan 17 3:46 AM
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.
‎2014 Jan 17 3:51 AM
‎2014 Jan 20 11:04 PM