Application Development 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: 

user command

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

hi,

r u using ALV or Module pool?

0 Kudos

i am using alv's

0 Kudos

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

Former Member
0 Kudos

Hi,

It is not possible using SET..

So you can't use CALL TRANSACTION.

Try to use SUBMIT.

Regards,

Atish

hymavathi_oruganti
Active Contributor
0 Kudos

i_output2 is an internal table?

try like this.

loop at i_output2.

set parameter id 'SAK' field I_OUTPUT2-HKONT.

endloop.