Hi,
I have two more requirements:-
a) When I click on my pushbutton-push, I am able to change its description to pull .Now,when I click on pull , I want the description to change back to push again.
b) I have a text-element in my screen which contains 'abc' . When I click on pushbutton push , its description should change to 'xyz'.
Please could you help me with these requirements .
Regards,
Sushanth H.S.
if you use push button in selection screen,try below code
DATA: flag TYPE char1 VALUE 'A'. SELECTION-SCREEN PUSHBUTTON 2(15) pb USER-COMMAND ret VISIBLE LENGTH 15. SELECTION-SCREEN COMMENT 42(28) g_v_cmt. AT SELECTION-SCREEN OUTPUT. CASE flag. WHEN 'A'. MOVE 'ABC' TO pb. MOVE 'ABC' TO g_v_cmt. flag = 'X'. WHEN 'X'. MOVE 'XYZ' TO pb. MOVE 'XYZ' TO g_v_cmt. flag = 'A'. ENDCASE. START-OF-SELECTION.
Add a comment