cancel
Showing results for 
Search instead for 
Did you mean: 

Create PO using BAPI

mark_manuel2
Explorer
0 Kudos

Hi,

I'm currently working on a program to create POs using BAPI_PO_CREATE. I have sucessfully created a PO calling this BAPI but unfortunately I'm having a problem getting the Output i.e. PO Number generated and the messages being returned.

Can anyone guide me on how to solve this? I have included Bapi_Po_Create_Input->Output->Return in the context and bind it

to a table. I also included Bapi_Po_Create_Input->Return->Purchaseorder and bind it to a TextView.

A button called Create executes the BAPI and it goes to a separate view with the above elements to display the return values but it doesn't work.

Thanks,

Mark

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi mark,

U bind "Expppurchaseorder" attribute that will return purchase order number.

This attribute is available in output node.

Regards,

Sunaina Reddy T

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Check the BAPI, I Guess if the PO is successfully created then nothing will be returned in return node, the return node will be returning values when there will be some errors in creating PO like incorrect input parameters etc.,

Otherwise as suggested in the above post you can bind text field to the PONUMBER in the next view.

Regards

Raghu

Former Member
0 Kudos

Hi Markk

Check this link

http://www.sapdb.info/using-bapi-function-module/

This link gives BAPI_PO_Create as an example. This step by step guide teaches you as to how to create a Purchase order using BAPIu2019s through programming.

Hope link will help you

Regards

Ruturaj