‎2017 Aug 08 3:32 PM
Hi, all!
I am solving the following problem.
I have a one field and a few buttons (pushbuttons). I need a dynamic buttons. This means - in case I click on a button, the button copy its contents into field directly.
Thx for your help! 😉
‎2017 Aug 09 8:39 AM
Hello,
You should have a look in SE80 on package SABAPDEMOS. You will find there a lot of useful samples. For example programs DEMO_DYNPRO_PUSH_BUTTON, DEMO_SEL_SCREEN_FUNCTION_KEY or DEMO_SEL_SCREEN_PUSHBUTTON.
On a selection screen you could do something like that :
PARAMETERS p_fill(10).
SELECTION-SCREEN :
BEGIN OF BLOCK b1 WITH FRAME,
BEGIN OF LINE,
PUSHBUTTON 2(10) butd USER-COMMAND del1,
PUSHBUTTON 15(10) but1 USER-COMMAND p1,
END OF LINE,
END OF BLOCK b1.
AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN 'DEL1'.
CLEAR p_fill.
WHEN 'P1'.
CONCATENATE p_fill '1' INTO p_fill.
ENDCASE.
Best regards
Bertrand
‎2017 Aug 08 3:39 PM
Report screen, Dialog or ALV ?
Are yo talking about the buttons text ?
‎2017 Aug 08 4:17 PM
‎2017 Aug 09 8:06 AM
‎2017 Aug 09 8:39 AM
Hello,
You should have a look in SE80 on package SABAPDEMOS. You will find there a lot of useful samples. For example programs DEMO_DYNPRO_PUSH_BUTTON, DEMO_SEL_SCREEN_FUNCTION_KEY or DEMO_SEL_SCREEN_PUSHBUTTON.
On a selection screen you could do something like that :
PARAMETERS p_fill(10).
SELECTION-SCREEN :
BEGIN OF BLOCK b1 WITH FRAME,
BEGIN OF LINE,
PUSHBUTTON 2(10) butd USER-COMMAND del1,
PUSHBUTTON 15(10) but1 USER-COMMAND p1,
END OF LINE,
END OF BLOCK b1.
AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN 'DEL1'.
CLEAR p_fill.
WHEN 'P1'.
CONCATENATE p_fill '1' INTO p_fill.
ENDCASE.
Best regards
Bertrand
‎2017 Aug 09 8:55 AM
‎2022 Aug 31 3:12 PM