cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to pass parameters to function module

Former Member
0 Kudos
280

Hello,

Can someone suggest how to pass parameter values to BAPI function module from a .NET client? I am using the BAPI_PO_GETDETAILS module and want to pass required parameters to get the item details. Also, please let me know which table should I refer to when retrieving the result. I am using sap .net connector 3.0.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi unosino,

at http://www.se80.co.uk/sapfms/b/bapi/bapi_po_getdetail.htm you can see, that you have to pass po_header and po_address to the function.

You can do that with the nco3 like this:

IRfcFunction rfcFunction = destination.Repository.CreateFunction("BAPI_PO_GETDETAILS");
rfcFunction.SetValue("po_header", /* your value */);
rfcFunction.SetValue("po_address", /* your value */);
rfcFunction.Invoke(destination);

kind regards

christian

Edited by: chrislind on Nov 11, 2011 2:47 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Experts,

Is there no one with suggestions?

Thanks