Application Development and Automation 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: 
Read only

Double clicking functionality on classical report output.

Former Member
0 Likes
1,390

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.

1 ACCEPTED SOLUTION
Read only

deepak_dhamat
Active Contributor
0 Likes
959

Hi ,

IT Should be in capital

fld = 'WA_VBAP-VBELN'.

regards

Deepak.

4 REPLIES 4
Read only

deepak_dhamat
Active Contributor
0 Likes
960

Hi ,

IT Should be in capital

fld = 'WA_VBAP-VBELN'.

regards

Deepak.

Read only

0 Likes
959

Thanks deepak.

Read only

Former Member
0 Likes
959

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

Read only

0 Likes
959

Thanks Zahid .