Output determination in MIRO
I am trying to develop a new <b>requirement</b> in VOFM for <b>outputcontrol</b> to pick up credit memos in the transaction <b>MIRO</b>. 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 <b>EKBE</b> to fetch the PO document number from the MIRO document. Any ideas?
You can use fieldsymbols to get field values that are in the call stack.
On the MIRO document get the prorgam name and field name of the field you require. Then do this.
constants: c_field(&&) value '(PROGRAM)FIELDNAME'
assign (c_field) to <field>