2011 Oct 20 7:57 AM
Dear Experts,
Recently i'm facing a problem regarding the interaction on classical report output.The requirement is whenever I double click on particular sales order on the output,the va03 transaction automatically opens with corresponding sales order.can anyone please tell me how i do it?sametime I also paste my code which i coded in my report but it will not work.
at line-selection.
data: fld(30) type c,
val(30) type c.
get cursor field fld value val.
if fld = 'wa_vbap-vbeln'.
set parameter id 'AUN' FIELD fld.
call transaction 'VA03' AND SKIP FIRST SCREEN.
endif.
warm regards,
sameek.
2011 Oct 20 8:10 AM
Hi ,
IT Should be in capital
fld = 'WA_VBAP-VBELN'.
regards
Deepak.
2011 Oct 20 8:10 AM
Hi ,
IT Should be in capital
fld = 'WA_VBAP-VBELN'.
regards
Deepak.
2011 Oct 20 8:19 AM
2011 Oct 20 8:20 AM
DATA: it_vbak TYPE TABLE OF vbak WITH HEADER LINE,
START-OF-SELECTION.
SELECT * FROM vbak
INTO TABLE it_vbak.
IF SY-SUBRC = 0.
LOOP AT it_vbak.
WRITE:/ it_vbak-vbeln, it_vbak-ERDAT,
it_vbak-ERNAM, it_vbak-NETWR,
it_vbak-AUDAT, it_vbak-AUART.
HIDE: it_vbak-vbeln.
ENDLOOP.
ENDIF.
AT LINE-SELECTION.
data: fld(30) type c,
val(30) type c.
BREAK-POINT.
get cursor field fld value val.
if fld = 'IT_VBAK-VBELN'.
set parameter id 'AUN' FIELD IT_VBAK-VBELN.
call transaction 'VA03' AND SKIP FIRST SCREEN.
endif.
ENDIF.
Reward points if works.
Edited by: ZAHID HAMEED on Oct 20, 2011 12:20 PM
2011 Oct 20 9:26 AM