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

Function module for Purchase requisitions

Former Member
0 Likes
3,664

Hi Everyone,

Is there any FM or BAPI to get Purchase requisition details if I have only material number and plant as the input.

Thanks in advance

Kumar..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,196

You can see if FM WLB3_SELECT_PURCHASE_REQ can be of any use to you. It doesn't take in Material number as an input parameter, but it does accept Plant and Purchasing group.

Sorry I can't be of more help but I only found a handful of FM's that could meet your requirements.

Regards,

C

10 REPLIES 10
Read only

Former Member
0 Likes
2,197

You can see if FM WLB3_SELECT_PURCHASE_REQ can be of any use to you. It doesn't take in Material number as an input parameter, but it does accept Plant and Purchasing group.

Sorry I can't be of more help but I only found a handful of FM's that could meet your requirements.

Regards,

C

Read only

0 Likes
2,196

I find a lot of FM's which has LIFNR as the input parameter but not one which has MATNR as the input..Can anyone help?

Read only

0 Likes
2,196

Hi,

You can check this FM : BAPI_REQUIREMENT_CREATE

Thanks.

Read only

0 Likes
2,196

Hi,

You can check these FM:

BAPI_REQUISITION_CREATE

BAPI_PR_CREATE

Thanks.

Read only

0 Likes
2,196

I do not want to create a requisition but want to get the details of an already existing requisition.

Thanks

Kumar.

Read only

0 Likes
2,196

Hi,

Why dont you write a select on table 'EBAN' using the vendor and material number. That would give you the requsitions as per your requirment.

Regards,

Himanshu Verma

Read only

0 Likes
2,196

I do not have the vendor number but just the material number at this stage and I need to get the open quantity on that requisition..So was wondering if there is any FM which can readily do it..If there is none then my only option would be to read EBAN.

Thanks

Kumar.

Read only

0 Likes
2,196

U may use BAPI_REQUISITION_GETDETAIL or BAPI_REQUISITION_GETITEMS?

Just check it

Cheers,

TNR

Read only

0 Likes
2,196

Both need LIFNR as the input parameter..

Read only

0 Likes
2,196

Hi Kumar,

Then you can use only in the material in the select and check the field 'BSMNG' in table EBAN that would give you the quantity againts that material in all requsition then if the requsition has not been converted to a PO that is if the EBELN field is blank in the table that should give you the outstanding quantity against that material.

Regards,

Himanshu