Skip to Content

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

Checkbox as user command in report

Hi all,

i maked a chechbox as user-command like below:

REPORT ZTEST_CHECKBOX.

parameters: p_date type sy-datum,

p_chec1 as checkbox user-command aaa1.

p_chec2 as checkbox user-command aaa2.

p_chec3 as checkbox user-command aaa3.

at selection-screen output.

etc etc.

my problem is: when i click on check-box, la variable sy-ucomm is empty, so I do not know wich checkbox is pressed ( if p_chec1 or p_chec2 or p_chec3) .

( for other reason I can't use p_chec1 = 'x' )

( if in dynpro I set checkbox as exit command, when i press on the checkbox the report end )

Any idea ?

tks a lot

Tags:
replied

Please try whether this will work for you..

TABLES: sscrfields.
data: gv_ucomm type sy-ucomm.

AT SELECTION-SCREEN.

gv_ucomm = sscrfields-ucomm.

AT SELECTION-SCREEN OUTPUT.

case gv_ucomm.

when 'AAA1'.

when 'AAA2'.

when 'AAA3'.

endcase.

Regards

Sathar

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question