2012 Aug 08 8:28 AM
Dear ABAPer,
I am not getting any data from mention BAPI. Will you please mention the reason:
RfcRepository repo = destination.Repository;
IRfcFunction poS = repo.CreateFunction("BAPI_PO_GET_LIST");
poS.Invoke(destination);
IRfcTable poItems = poS.GetTable("PO_ITEMS");
//poS.SetValue("PO_ITEMS", poItems);
poS.Invoke(destination);
for (int cuIndex = 0; cuIndex < poItems.RowCount; cuIndex++)
{
}
Best Regards,
Shoyeb
2012 Aug 08 9:28 AM
You are not passing REL_GROUP and REL_CODE.
Also, fetch the return table as well, it will give you the errors if any.
Thanks,
Shambu
2012 Aug 08 9:28 AM
You are not passing REL_GROUP and REL_CODE.
Also, fetch the return table as well, it will give you the errors if any.
Thanks,
Shambu
2012 Aug 08 10:02 AM
Dear Shambu,
will you please please kindly show as a example ....
Best Regards,
Shoyeb
2012 Aug 08 10:12 AM
Hi
just as Shambu has written, that BAPI needs the release strategy codes, you should check them in MM customizing (for purchasing). or check table t16fg and t16fs.
That BAPI returns the list of purchase orders belonging to a single strategy, if you need another filter criteria, perhaps it's better to create an own RFC.
Max
2012 Aug 08 10:55 AM
Check out an example in the below link.
http://scn.sap.com/thread/1878433
Similarly use
poS.Setvalue ("REL_GROUP", "<VALUE>");
poS.Setvalue ("REL_CODE", "<VALUE>");
Thanks,
Shambu
2012 Aug 14 9:07 AM