hello to all,
in report i am getting the purchase order if i double click on the purchase order no problem with PO...here the problem is if i changed the TRANSACTION CODE ME23N to VA03 (and also i changed relevent coding) i am getting only one sales order repeatedly even i double click in another sales order....
i wanted to get the result like PO for SO...what i have to change...
ORM 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 = 'VBELN'.
Read data table, using index of row user clicked on
READ TABLE it_VBAK INTO wa_VBAK INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'VAR' FIELD wa_VBAK-vbeln.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
raju....