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

user command

Former Member
0 Likes
656

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
Read only

Former Member
0 Likes
634

hi,

r u using ALV or Module pool?

Read only

0 Likes
634

i am using alv's

Read only

0 Likes
634

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

Read only

Former Member
0 Likes
634

Hi,

It is not possible using SET..

So you can't use CALL TRANSACTION.

Try to use SUBMIT.

Regards,

Atish

Read only

hymavathi_oruganti
Active Contributor
0 Likes
634

i_output2 is an internal table?

try like this.

loop at i_output2.

set parameter id 'SAK' field I_OUTPUT2-HKONT.

endloop.