2007 Dec 29 11:46 AM
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.
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.
2007 Dec 29 11:56 AM
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
2007 Dec 29 12:25 PM