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

Difference between BAPI_POEC_CREATE vs BBP_PD_PO_CREATE

jerry_martinek2
Explorer
0 Likes
687

HI,

I need to create a program to create purchase orders in SRM 5.0 Extended Classic using an input file instead of manually creating 50 plus line service purchase orders with MAA. .

I've read numerous posts on the topic and now I'm more confused than before I started. I was under the impression that I need to use the BBP_PD_PO_CREATE function instead of BAPI_POEC_CREATE. In one of the posts it said that the BAPI_POEC_CREATE doesn't apply to extended classic.

What is the correct approach?

Thanks,

Jerry

3 REPLIES 3
Read only

Former Member
0 Likes
600

Hi Jerry,

The BAPI BAPI_POEC_CREATE is used to create the POs into SRM (for example from a legacy system or for a initial data migration). Using this BAPI it is possible to create local PO.

Read only

0 Likes
600

Hi Satish,

Thank you for your reply. I'm interested in finding out why people are using the two different approaches to achieve the same end result. Some people are using the BAPI while others are using the different BBP function module calls.

Regards,

Jerry

Read only

0 Likes
600

You can use BAPI_POEC_CREATE. This one also uses internal functions BBP_PD_PO_CREATE, UPDATE & SAVE.

You don't have to take care of GUIDs. This function will generate them for you. You can pass the PO number as PO header GUID, and PO items as PO item GUIDs. This will make the links as well.

You can check that the field i_ref_guid is importing but it is optional parameter.