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

Unable to create PO header text using BAPI_PO_CREATE1

Former Member
0 Likes
1,509

Hi ,

I am creating STO document using BAPI_PO_CREATE1. STO document is getting created successfully in the SAP system but header text is not getting created which I am passing to the BAPI. While debugging , I found that it is resetting the header text and that is why not getting populated at header text once STO is created.

I am getting following return message : Check the header texts ( texts were redetermined by system)

Please find the code attachedpo-header-text-code.txt for your reference : The code below is populating header for PO which we are passing to the BAPI

Hi ,

I am creating STO document using BAPI_PO_CREATE1. STO document is getting created successfully in the SAP system but header text is not getting created which I am passing to the BAPI. While debugging , I found that it is resetting the header text and that is why not getting populated at header text once STO is created.

I am getting following return message : Check the header texts ( texts were redetermined by system)

Please find the code attachedpo-header-text-code.txt for your reference : The code below is populating header for PO which we are passing to the BAPI

1 REPLY 1
Read only

nomssi
Active Contributor
0 Likes
1,203

Hi,

the SAP standard determines the purchase order language at creation time from the vendor master or from the referenced document, e.g. contract. If you change the communication language, all texts are redetermined.

Your code enforces SY-LANGU as the purchase order language, so I assume this is the reason your self-maintained texts are lost in translation. It might then work if you do not try to maintain the document language.

JNN