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: 

How to call transaction through header part of alv

Former Member
0 Kudos

Hi ,

I have created ALV report.

It contains 2 radio buttons: 1.Classic view 2.Grid view.

when user select grid view,alv report get displayed &

when user selects classic view , same output is displayed as classical report.

I am displaying header using TOP_OF_PAGE.

Same header I am using for classical report.

In this header I am displaying Sales Documennt number(VBELN)

Name of person who created order(ERNAM)

Date on which recored was created(ERDAT)

My Requirement is to call transaction VA02 when user clicks on Sales Documennt number(VBELN)

which is getting displayed in header.

As it is not a line item I am not able to use hotspot = 'X' in field catalog.

Please tell me how to put HOTSPOT on record getting displayed in header

& how to call transaction through it.

Thanks & Regards,

3 REPLIES 3

former_member404244
Active Contributor
0 Kudos

HI,

Please tell me what is the report output if more than one sales order is there...Are you printing both or for the different scenarios u are getting only one sales order number.

Regards,

Nagaraj

0 Kudos

hi

user will enter a sales document number(vbeln) on selection screen.

records related to that particular sales document will get displayed in report.

& only that particular sales document number will get displayed in header part of report

when user double-click on sales document number Transaction VA02 get called.

0 Kudos

HI,

If this the case then in the report output in the application tool bar put two psuh button..

1>Change Sales order

2>Display Sales Order

as the sales order value u will get from the selection screen so it will be available in ur entire program

Now when the user clicks on change/dispaly button...Write code in AT-USER Command ....

pass the paramter id and the field value(selection screeen value of sales order)

call transaction 'VA02'/ 'VA03' and skip first screen..

Now u can achieve ur desired functionality in this way.

Regards,

Nagaraj