Application Development 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: 

BAPI for elements of Purchase Requisition

Former Member
0 Kudos

Hey,

I want to know of some BAPIs or function modules if anybody knows that they exist in SAP System. These are all related to Creation of Purchase Requisition. I have found the one for creating requisition what I need is to get the list of these following items through some FM or BAPI:

1) Account Assignment Category

2) Item Category

3) Purchase Group

4) Storage Location

Regards,

Bilal Nazir

4 REPLIES 4

Former Member
0 Kudos

Nazir,

I don't think there are any RFC enabled function modules for the fields that you have specified.

Usually BAPI exists for a transaction and not for getting the Master Data. You might have to write one for yourself.

Regards,

Ravi

Note :Please mark the helpful answers.

Peter_Inotai
Active Contributor
0 Kudos

Hi,

Have you checked BAPI BAPI_REQUISITION_GETDETAIL and BAPI_REQUISITION_GETITEMS?

I have no example, so I couldn't test it, but they might help you.

Regards,

Peter

0 Kudos

Hey Peter,

I have checked these BAPI, what they actually do is provide me the details of purchase requisitions. What i want is the list of data for the fields that needs to be filled while creating a purchase requisition. I have mentioned the required fields in my previous post.

Regards,

Bilal Nazir

0 Kudos

>What i want is the list of data for the fields that needs to be filled while creating a purchase requisition

I think it depends how your system is customized.

I'd suggest to get some test data and try to call this FMs in your test system, and see what error message you got...if there is error message about missing field, you have to fill it. It's not the most reliable approach, but normally it works. It also worth the documentation of these FMs.

The good thing is also, that without commit most of the BAPIs won't make any DB chnage, so you test them easily over and over again if you saved your FMs input.

Peter