2020 Aug 13 9:40 AM
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
2020 Aug 13 8:32 PM
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