01-08-2009 11:43 AM
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
01-08-2009 12:12 PM
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
01-08-2009 11:48 AM
hi use ,
first GET PARAMETER ID ' ' and then use SET PARAMETER ID ' '
01-08-2009 11:51 AM
hi,
Please check it once the Paramater ID is 'ANR' for IW33 order number.
Hope this may help.
Regards,
Sravanthi
01-08-2009 12:02 PM
Hi,
I agree with saraswathi. Please check the Parameter id . it will be ANR.
Thanks.
01-08-2009 12:12 PM
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
01-08-2009 12:28 PM
Hi,
Thanks. Problem solved. specially thanks to Jay.
Regards,
Sarayu.
01-08-2009 12:32 PM