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: 

I have a problem with ALV Grid User Command?

Former Member
0 Kudos

Hi Experts,

I have a problem with ALV GRID User Command.

I am calling TCODE IW33 (Order Display) from the ALV output at first time by selecting an order. But, User command is calling IW33 Initial screen with blank value of order. Even I checked in debugging the value what I selected is passing properly, but once that screen (IW33 Initial) displays, value doesn't appear. Then, Manually, I created another session and gone to TCODE IW33 and displayed an order. After that I came out from that order. Then again run my ALV program and selected another order, now order is displaying, but not what I selected current order instead of displaying previous order what I just displayed manually. If I selected any other order, system will display the same order what I dislayed manually.

Here is my code.


FORM user_command_alv  USING u_ucomm TYPE sy-ucomm
                       us_self_field TYPE slis_selfield.

CASE u_ucomm.

WHEN '&IC1'.

 READ TABLE it_final INDEX us_self_field-tabindex INTO wa_final.

        WHEN 'ORDER'.
          IF NOT wa_final-order IS INITIAL.
            SET PARAMETER ID 'COK' FIELD wa_final-order.
            CALL TRANSACTION 'IW33' AND SKIP FIRST SCREEN.
          ENDIF.

endform.

PARAMETER ID 'COK' also the standard one.

Could you please help me out, Where I did wrong?

If I select any order, that order only should display.

Thanks in advance.

Regards,

Sarayu.

Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:33 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI.

Go to Tcode: IW33 ,get F1 help. Go to Technical information,then check the parameter ID of Order number, it is ANR.

Regards.

Jay

6 REPLIES 6

Former Member
0 Kudos

hi use ,

first GET PARAMETER ID ' ' and then use SET PARAMETER ID ' '

Former Member
0 Kudos

hi,

Please check it once the Paramater ID is 'ANR' for IW33 order number.

Hope this may help.

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

I agree with saraswathi. Please check the Parameter id . it will be ANR.

Thanks.

Former Member
0 Kudos

HI.

Go to Tcode: IW33 ,get F1 help. Go to Technical information,then check the parameter ID of Order number, it is ANR.

Regards.

Jay

Former Member
0 Kudos

Hi,

Thanks. Problem solved. specially thanks to Jay.

Regards,

Sarayu.

0 Kudos

you can get those details from these tables also.

TCLO,TPARA