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

BAPI_PO_GET_LIST

abumohammad_shoyeb
Participant
0 Likes
1,587

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,181

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,182

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

Read only

0 Likes
1,181

Dear Shambu,

will you please please kindly show as a example ....

Best Regards,

Shoyeb

Read only

0 Likes
1,181

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

Read only

0 Likes
1,181

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          

Read only

0 Likes
1,181

many Thanks to Shambu... problem has solved....