2009 Mar 12 5:45 AM
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
2009 Mar 12 7:34 AM
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
2009 Mar 12 7:34 AM
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
2009 Mar 12 9:25 AM
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