cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameter to a ABAP program from SQ01

stefan_kolev4
Participant
0 Kudos

Hi,

In SQ01 I have assigned ABAP program, which should start tr.me23n in order to display concrete purch.order after dbl click on the purch. order number in the ALV.How to pass parameter to my ABAP program,because I'm going to use FM ME_DISPLAY_PURCHASE_DOCUMENT ?

Thanks

STefan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please, look at the OSS note about Tcode and report assignment in SQ01 : 383077

In the case of ME23N, that doesn't work (like MM03).

In your abap program, you can use ID parameter :

o AFN - RFQ number

o AGN - quotation number

o AUN - order number

o LPN - scheduling agreement number

o KTN - contract number

o AMN - product proposal number

I hope that's help you

Regards,

Lionel

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Friend,

If I can understand you clearly.

If you have a query in sq01 and if you want to assign the drilldown to a new transaction ME23n by Just clicking on the Purchase order numbers is possible through

REPORT ASSIGNMENT.

GO to Report assignment from the cjange view of the SQ01

There you can assign the Transaction to the report which will work the same way as drill down.

regards,

SAP SD

stefan_kolev4
Participant
0 Kudos

Thank you, but when I assign transaction ME23N and when I double click on PO number in ALV, I see different purchase order, not the purchase order which I choose.That's why I would like to use Z program in order to pass purchase order number as a parameter. The program will call ME_DISPLAY_PURCHASE_DOCUMENT / if I pass to it parameter - PO number / and will diplay the PO.

Stefan

Former Member
0 Kudos

Hi,

In fact, that works with Tcode ME23, not ME23N.

The preceding OSS note refers to ID parameter for sales document.

In your case, the Id parameter is BES.

I don't know why that doesn't work with ME23N.

Regards,

Lionel

stefan_kolev4
Participant
0 Kudos

Thank you Lionel,

I solved my problem using your suggestion !

Thanks

Stefan

Former Member
0 Kudos

Hi,

Don't forget to assign points !

This is for a good action !!

https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/007928c5-c4ef-2a10-d9a3-8109ae621a82

Regards,

Lionel