Application Development and Automation 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: 
Read only

output determination MIRO

Bema
Active Participant
0 Likes
1,086

Hi,

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, KOMPBMR), 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.

Will you please help me to find the data from call stack.

Appreciate your help.

Regards,

Beena

Edited by: Beena Praveen on Mar 12, 2009 2:11 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
792

Hi Beena,

Try to use field symbols.


DATA: l_tcode(21)  TYPE c VALUE '(SAPLMR1M)RM08M-EBELN'.

FIELD-SYMBOLS: <fs_po> TYPE EBELN.

ASSIGN (l_tcode) TO <fs_po>.
CHECK sy-subrc EQ 0.

See the value of <fs_po>.

Hope this helps.

Regards,

nEnE

Hi,

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, KOMPBMR), 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.

Will you please help me to find the data from call stack.

Appreciate your help.

Regards,

Beena

Edited by: Beena Praveen on Mar 12, 2009 2:11 AM

2 REPLIES 2
Read only

Former Member
0 Likes
793

Hi Beena,

Try to use field symbols.


DATA: l_tcode(21)  TYPE c VALUE '(SAPLMR1M)RM08M-EBELN'.

FIELD-SYMBOLS: <fs_po> TYPE EBELN.

ASSIGN (l_tcode) TO <fs_po>.
CHECK sy-subrc EQ 0.

See the value of <fs_po>.

Hope this helps.

Regards,

nEnE

Read only

Bema
Active Participant
0 Likes
792

Hi Nene,

Can you please help.

This MIRO is triggering thru an IDOC, FM IDOC_INPUT_INVOIC_MRM.

So I wrote the code like

constants: c_edidd(21) value '(SAPLMRMH)IDOC_DATA[]'.

But it is not recognising this parameter there . Please help.

Regards,Beena

Edited by: Beena Praveen on Mar 12, 2009 5:34 AM

Edited by: Beena Praveen on Mar 12, 2009 5:43 AM