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: 

User Command

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

hi

try using parameter id ANR

thx

pavan

Former Member
0 Kudos

I think the Parameter id is ANR

  • Set parameter ID for transaction screen field

SET PARAMETER ID 'ANR' FIELD wa_display-aufnr.

aakash_neelaperumal2
Active Participant
0 Kudos

just set the parameter ID 'ANR'...everthing will be fine