10-15-2007 10:14 AM
while using usercommand for swithing from list to some other transaction
i used " set parameter id 'SAK' field I_OUTPUT2-HKONT. "
but in i_output2 having more that 2 values so i am getting last value only so if i want all vales is there any possibility .
if question confused pls reply for quaries.
10-15-2007 10:16 AM
10-15-2007 10:19 AM
10-15-2007 10:25 AM
ok so it must b in user_command no?
FORM user_command USING u_com LIKE sy-ucomm sel_field TYPE slis_selfield.
CLEAR fcat1.
CASE u_com.
WHEN '&IC1'.
READ TABLE itab INDEX sel_field-tabindex.
IF sy-subrc = 0.
t_mat = itab-matnr.
SET PARAMETER ID 'MAT' FIELD t_mat.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM. "user_command
10-15-2007 10:16 AM
Hi,
It is not possible using SET..
So you can't use CALL TRANSACTION.
Try to use SUBMIT.
Regards,
Atish
10-15-2007 10:22 AM
i_output2 is an internal table?
try like this.
loop at i_output2.
set parameter id 'SAK' field I_OUTPUT2-HKONT.
endloop.