2023 Aug 01 10:45 AM
Hi Experts,
I want to change custom fields for Production Order use bapi?
Because I use bapi CO_SE_PRODORD_CHANGE and CO_SE_PRODORD_CHANGE has no extension parameter.
I try to use BAPI_ALM_ORDER_MAINTAIN,but it made a lot of mistakes.
Can someone tell me how to achieve it.
Thanks for your help!
Best regards,
2023 Aug 02 12:06 AM
It looks like BAPI_ALM_ORDER_MAINTAIN can only be used with maintenance orders (autyp=30).
Take a look at this question & answer:
https://answers.sap.com/questions/12536601/update-custom-fields-in-aufk-at-the-time-of-releas.html
Use this user exit to update your CI_AUFK fields as new order is created by CO_SE_PRODORD_CHANGE.
2023 Aug 02 12:06 AM
It looks like BAPI_ALM_ORDER_MAINTAIN can only be used with maintenance orders (autyp=30).
Take a look at this question & answer:
https://answers.sap.com/questions/12536601/update-custom-fields-in-aufk-at-the-time-of-releas.html
Use this user exit to update your CI_AUFK fields as new order is created by CO_SE_PRODORD_CHANGE.
2023 Aug 02 11:36 AM
HI,Suros
It means that I can only enhance it through memory transfer。
2023 Aug 02 3:53 PM
Yes, EXPORT to MEMORY ID is one option.
You may also use open sql command MODIFY after order creation for CI_AUFK fields. If you use change tracking for these custom fields, call Function Module ORDER_WRITE_DOCUMENT after your updates.