Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

check boxes in alvs

Former Member
0 Likes
479

i hav da requirement like this.. in output list for every record i want checkboxes ... i hav to select any check box and jump to one transaction with that record.

2 REPLIES 2
Read only

Former Member
0 Likes
465

Hi,

in your output internal table, create one field say CHK. like this.

types: Begin of ty_output,

chk type c,

<<your existing variable>>

end of ty_output.

data gt_output type standard table of ty_output.

Now in the field layout pass,

gs_layout-box_fieldname = 'CHK' .

gs_layout-box_tabname = 'GT_OUTPUT' .

You need to pass the sy-repid as the i_callback_program,

'User_command' as i_callback_user_command.

Create one form as follows,

FORM user_command USING p_ucomm TYPE sy-ucomm

p_selfld TYPE slis_selfield.

case p_ucomm.

when 'Display'.

READ TABLE gt_output INTO gs_output INDEX pa_selfield-tabindex.

SET PARAMETER ID 'AUN' FIELD gs_output-sorder .

CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN .

endcase,

ENDFORM.

reward points if useful,

regards,

Niyaz

Read only

0 Likes
465

thank u...i will try like this niyaz