cancel
Showing results for 
Search instead for 
Did you mean: 

How to change dates for Operation Segments in production order

Former Member
0 Kudos

Hi all,

I'd like to upload the operation time from other system to SAP.

For that, I'm looking for how to change dates for operation segments (Operation-Details) in production order by FM or BAPI.

I found the FM "CO_SE_PRODORD_CHANGE" and tried executing it for test,

but it didn't work well.

Here is my parameters;


Import: IV_ORDER_NUMBER  = "60000000"

            IT_OPERATION - OPERATION   =  "0010"

                                        - EARLIEST_START_PROC_DATE  = 2015/09/14


After testing, there was no error, but the production order date was not changed.

How should I set parameters for this FM?

Also, if someone know is other solution to change production order date and time,

could you help me?

Best regards,

Mei

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mei,

this function module works similar to a BAPI, means you have to perform a commit afterwards or supply import parameter IV_COMMIT with X. Hope this helps. Please also review the function module documentation for further information.

Best Regards,

Andreas

Former Member
0 Kudos

Dear Andreas,

Thank you for your reply

Though I tried setting the import parameter IV_COMMIT with "X",

it didn't work.

Also, though I tried executing the FM "BAPI_TRANSACTION_COMMIT",

after "CO_SE_PRODORD_CHANGE",

it didn't work.

Do I still miss something?

Best regards,

Mei

Former Member
0 Kudos

Hi, experts

I found this FM works well in case of Header data.

For example,

Import:

IV_ORDER_NUMBER = "60000000"

IS_HEADER-QUANTITY = "120"

IS_HEADER-QUANTITY_X = "X"

IV_COMMIT = "X"


As a result, the quantity of production order "60000000" updates to "120".


However, I cannot get the same good result about import parameter "IT_OPERATION".


Could anyone help me find an solution?


Best regards,

Mei