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

Interactive reports in SAP query

Former Member
0 Likes
701

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?

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
Read only

Former Member
0 Likes
610

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

Read only

Former Member
0 Likes
610

Hi Durga,

Regards,

Sravanthi

Read only

Former Member
0 Likes
610

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'