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: 

push button on alv which should navigate to a transaction code

Former Member
0 Kudos

HI All,

I need to create a pushbutton on an ALV report for each record.

when this pushbutton is pressed it should navigate to a particular transaction code say "XYZ"

with the first columns value. Say equnr's value and hit the DISPLAY NAVIGATE BUTTON in the

application tool bar of the transaction "XYZ"

Kindly suggest how to proceed.

Thanks and reagards

Ajay

4 REPLIES 4

former_member598013
Active Contributor
0 Kudos

Hi Sujeer,

For you query what you need to do is first you need to create a button and link it in the ALV Tool bar.

Then you need to handle it through the event AT USER-COMMAND.

AND CALL TRANSACTINO <XXXX>.

This will solve your problem.

Tahnks,

Chidanand

Former Member
0 Kudos

Hi,

Your question is not clear. Push Button for Each Record?

Push Buttons will be created in PF-STATUS. You create your own PF Status.

For the created push Button give FCODE and write the Usercommand Form.

WHEN 'FCODE'.

SET PARAMETER ID 'PID' VALUE XYZ.

CALL TRANSCTION 'XYZ' AND SKIP FIRST SCREEN.

PID - Parameter ID of the Field in the XYZ Transction.

Thanks,

Kishore

Former Member
0 Kudos

u create push buttons in pf-status.. and then when u select a record and press the push button write u r code in user-command and call the transaction..

0 Kudos

Hi All,

Thanks for all your answer

I guess my question was not clear.

When my alv report is displayed at the end of every record i need to add a button

and when clicked should navigate to a transaction "XXX" with that particular record and hit the Nvaigate Display Object list on that trans code

for example

SNO DATE ITEM QUANTITY AMOUNT BUTTON

1 16.10.08 PEN 10 150 

2 16.10.08 BOOK 5 150 

3 16.10.08 PENCIL 5 100 

so here my question is how so i create a button for every record and then

when this button is clicked how do i navigate to transcode and hit the

Display Object status of the transcode

Hope this is clear

Regards

Ajay