In my requirement, Selection Screen contains 3 radio buttons. each radiobutton indicate one report. when user select and execute radiobutton the respective report should be executed. But the condition is all 3 reports must be executed in sequence. i.e., the user should select radiobuttons in sequence and execute them, otherwise an error message 'execute previous report first' should be appeared. I am writting the code below but it doesnt work.
DATA : FLAG .
Parameters : r1 radiobutton group g1.
Parameters : r2 radiobutton group g1.
Parameters : r3 radiobutton group g1.
SUBMIT ZREP1 VIA SELECTION-SCREEN AND RETURN.
FLAG = 'A'.
IF FLAG = 'A'.
SUBMIT ZREP2 VIA SELECTION-SCREEN AND RETURN.
FLAG = 'B'.
message 'Execute Report1 First' type 'E'.
IF FLAG = 'B'.
SUBMIT ZREP3 VIA SELECTION-SCREEN AND RETURN.
FLAG = 'C'.
message 'Execute Report2 First' type 'E'.
is there any use with SET PARAMETER ID. can anybody suggest how exactly I write code.