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 change custom fields for Production Order use bapi?

James4044
Explorer
0 Kudos

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,

1 ACCEPTED SOLUTION

juan_suros
Contributor
0 Kudos

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.

3 REPLIES 3

juan_suros
Contributor
0 Kudos

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.

0 Kudos

HI,Suros

It means that I can only enhance it through memory transfer。

0 Kudos

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.