Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Report query

Hi,

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.

AT SELECTION-SCREEN.

CASE 'X'.

WHEN R1.

SUBMIT ZREP1 VIA SELECTION-SCREEN AND RETURN.

FLAG = 'A'.

WHEN R2.

IF FLAG = 'A'.

SUBMIT ZREP2 VIA SELECTION-SCREEN AND RETURN.

FLAG = 'B'.

ELSE.

message 'Execute Report1 First' type 'E'.

ENDIF.

WHEN R3.

IF FLAG = 'B'.

SUBMIT ZREP3 VIA SELECTION-SCREEN AND RETURN.

FLAG = 'C'.

ELSE.

message 'Execute Report2 First' type 'E'.

ENDIF.

ENDCASE.

is there any use with SET PARAMETER ID. can anybody suggest how exactly I write code.

Regards,

Zakir.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question