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: 

How to use BAPI to create po with header text

Former Member
0 Kudos

Dear all,

How to use BAPI_PO_CREATE1 function module(BAPI)

I want to create PO with header text and item text (PO number range is set to internal number range)

If PO number range is external I am able to create PO with header Text and Item Text.

If PO Number is Internal then it is a problem I am not able to create header and item text….

Please suggest me

Thanks in advance…

Regards

Manohar

4 REPLIES 4

Former Member
0 Kudos

Hi

The BAPI'll automatically create the header data of the texts, you have to transfer the keys of the text (ID) and the number of the item (for only item text).

Max

former_member188685
Active Contributor
0 Kudos

Hi,

in that case use SAVE_TEXT or CREATE_TEXT with all the required parameters(tdname,tdid). may be that will work..

Regards

vijay

Former Member
0 Kudos

Manohar,

You send the data in the following structures with the ID and the OBJECT and BAPI will take care of the rest.

POTEXTHEADER STRUCTURE BAPIMEPOTEXTHEADER OPTIONAL

POTEXTITEM STRUCTURE BAPIMEPOTEXT OPTIONAL

regards,

Ravi

Note : Please close the thread if this solves the issue

Former Member
0 Kudos

Hello Mathkunti,

U need to fill in the folowing fields..

POHEADER

COMP code,doc type,vendor,purchase ord and group

POHEADERX

Mark all the above fields as X.

POITEM

PO_ITEM,material,plant,qty and price. Price depending upon if it can determine by info rec then no problem.

POITEMX

Mark all the above fields as X

POTEXTHEADER

TEXT ID = F01

TEXT FORM = *

TEXT LIne = whatever u want to appear as text

POTEXTITEM

Same as above.

U should be able to create PO.