In the ALV GRID , I have used the following code to go to VA02 and VA22 .
WHEN c_ic1.
Retrieve the vbeln value of the record selected and use it to open tcode VA02.
CLEAR wa_outtab.
READ TABLE i_outtab INTO wa_outtab with key p_rs_selfield-fieldname.
SET PARAMETER ID c_pid FIELD wa_outtab-vbeln.
if wa_outtab-auart eq C_ZQT .
CALL TRANSACTION c_tcode2 AND SKIP FIRST SCREEN.
ELSEIF wa_outtab-auart eq C_ZQR .
CALL TRANSACTION c_tcode2 AND SKIP FIRST SCREEN.
ELSE.
CALL TRANSACTION c_tcode1 AND SKIP FIRST SCREEN.
ENDIF .
IF sy-subrc <> 0.
no requirement to display error message in case error
in opening tcode va02.
ENDIF.
Now My problem is that when the user clicks on a particular sales order in ALV GRID , that particular sales order should be displayed in VA02 .I,e instead of user entering the value of sales order manualy in VA02 . It has to automatically take from the ALV GRID tht particular sales order whic he has double clicked in the ALV .
Please tell me how to achieve this functionality ..
Regards
pavan