‎2012 Oct 15 9:04 PM
Hi,
I am calling a function module from a workflow. The function module is called when an invoice is parked by a user in MIRO. The user may specify only the PO number, or may specify 1 PO line item, or specify several PO line items when parking the invoice. Therefore I need to be able to pass the invoice number as one parameter. Then also have a second parameter for the line items which may have no value, or 1 value or several values to be passed.
Can you suggest the best approach for this please? Is it best to create a structure in the ddic and should I use the Import (possibly using type table) or the Changing tab of the function module? If you can illustrate with simple example it would be very helpful.
Thank you.
‎2012 Oct 17 8:23 AM
You should use internal table with table type declared in DDIC so its easy for peoples to communicate with your FM. You can use either Import / Changing, if there is no changes in the table then you should use Import.
Regards,
Xavier