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

Passing zero or several values to a function module

Former Member
0 Likes
326

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.

1 REPLY 1
Read only

Former Member
0 Likes
284

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