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: 

Gettin the field valus on double clicking and calling the transaction

Former Member
0 Kudos
404

Hi

how to use call transaction after clicking on a particular line on the output list with the field values of that line ?

I am using MIR4 transaction .Once the output list is displayed when i double click on any line i have to pass the belnr and the gjahr values of that line to the transaction MIR4 to display the document.

AT LINE-SELECTION.

get cursor field s_belnr value gw_final-belnr_mm.

get cursor field p_gjahr value gw_final-gjahr.

SET PARAMETER ID: 'BEL' FIELD GW_FINAL-BELNR_MM, 'GJA' FIELD GW_FINAL-GJAHR.

CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.

I used a code like this . What is the problem ? Can anyone help me ?

6 REPLIES 6

Former Member
0 Kudos
141

Hi,

Can you paste your whole code?

Regards,

Atish

Former Member
0 Kudos
141

Hi,

What u can do is while displaying the ouptut list, u can use HIDE statement.

e.g. LOOP at itab.

write : itab-belnr,

itab-gjahr.

HIDE : itab-belnr, itab-gjahr.

endloop.

then when u use AT LINE-SELECTION, u can use:

AT LINE-SELECTION.

SET PARAMETER ID: 'BEL' FIELD ITAB-BELNR, 'GJA' FIELD ITAB-GJAHR.

CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.

It should work.

Regards,

Himanshu

Former Member
0 Kudos
141

Hi,

Try this..

SET PARAMETER ID 'RBN' FIELD GW_FINAL-BELNR_MM.

SET PARAMETER ID 'GJR' FIELD GW_FINAL-GJAHR.

CALL TRANSACTION 'MIR4' AND SKIP FIRST SCREEN.

Thanks

Naren

Former Member
0 Kudos
141

hi ,

use PARAMETER ID 'BLN' instead of BEL fro BELNR.

and 'GJR' for GJAHR.

<b><i>Reward points if useful</i></b>

Chandra

0 Kudos
141

Hi i tried the solution but it shows does not exit.

Tell me at least one belnr and gjahr for which this transaction MIR4 should work.

I have riend many but still i get this error does not exist

0 Kudos
141

Hi,

To get any existing data, goto transaction SE16. Put table RBKP.

and execute for any Year.

This will give u the list of existing Invoice Documents.

The data is always client specific and hence it will be of no use if anybody of us will give u data.

Regards,

Himanshu.