Skip to Content
0
Former Member
Dec 19, 2006 at 10:19 AM

User Command

85 Views

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.