2007 Oct 18 5:31 AM
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 ?
2007 Oct 18 5:34 AM
2007 Oct 18 5:35 AM
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
2007 Oct 18 5:35 AM
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
2007 Oct 18 5:47 AM
hi ,
use PARAMETER ID 'BLN' instead of BEL fro BELNR.
and 'GJR' for GJAHR.
<b><i>Reward points if useful</i></b>
Chandra
2007 Oct 18 6:35 AM
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
2007 Oct 18 6:38 AM
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.