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: 

Interactive reports in SAP query

Former Member
0 Kudos

I created a SAP query which prints the sales documents numbers..After displaying the ALV list,when I click the sales documet ,it will directly go to the VA03 tcode.

Can any body help how to develop it?

3 REPLIES 3

Former Member
0 Kudos

Hi,



at line-selection.

get cursor field w_string.
if w_string cs 'KUNNR'.
READ LINE w_line FIELD VALUE kunnr.
SET PARAMETER ID 'KUN' FIELD kunnr.
call transaction 'VA03'.
endif.

This will work.

thanks

Former Member
0 Kudos

Hi Durga,

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

try this .

at user-command.

GET CURSOR FIELD w_cursor VALUE fs_customer-kunnr.(field on which you click)

CASE sy-ucomm.

WHEN 'CUSTINFO'.

IF w_cursor = 'FS_CUSTOMER-KUNNR'.(compare field name )

SET PARAMETER ID 'KUN' FIELD fs_customer-kunnr.( see parameter id in dataelement further characteristics )

CALL TRANSACTION 'TCODE' .

CLEAR w_cursor.

ELSE.

MESSAGE text-005 TYPE 'I'.

ENDIF. " IF W_CURSOR = 'FS_CUSTOMER-KUNNR'