cancel
Showing results for 
Search instead for 
Did you mean: 

Output determination in MIRO

Former Member
0 Kudos

I am trying to develop a new requirement in VOFM for outputcontrol to pick up credit memos in the transaction MIRO. In this routine i need to fetch the corresponding PO number of the Credit memo. None of the communication structures (KOMKBMR, KOMPBMP), NAST, XNAST,....... seem to hold this information.

Also this routine gets triggered before COMMIT WORK, so i'm unable to use the d/b table EKBE to fetch the PO document number from the MIRO document. Any ideas?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Former Member
0 Kudos

The PO number can be fetched from the<b> BSEG</b> table, using the accounting document number of the credit memo in MIRO.

Thanks & regards,

Former Member
0 Kudos

Kaustuv,

Thanks for the prompt reply. The problem here is that the requirement gets triggered before the COMMIT WORK, so none of the documents(Accounting document, Credit memo) gets saved in database tables when this routine is triggered.

Former Member
0 Kudos

Try using the Struct <b>RM08M</b> - I/O Fields SAPLMR1M , and take help of abapper, to arrive at a solution.

reward if it helps