12-19-2006 10:19 AM
Hi,
Am using the following code to display inforamtion of order .
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'AUFNR'.
Read data table, using index of row user clicked on
READ TABLE itab_display INTO wa_display INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_display-aufnr.
Execute transaction CO03, and skip initial data entry screen
CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
The problem is its not showing the detials of the 'order' selected in the grid just showing the transaction 'CO03' with an order need to input. May i know the code to display the details of the order screen ..
Thxs,
vin.
12-19-2006 10:22 AM
12-19-2006 10:22 AM
I think the Parameter id is ANR
Set parameter ID for transaction screen field
SET PARAMETER ID 'ANR' FIELD wa_display-aufnr.
12-19-2006 10:24 AM