Dear all.
I want to set default Delivery priority = 01 for sales order position during CIFing to APO.
Firstly I had implemented exit APOCF010 Inbound Processing: Sales Order on APO side.
LOOP AT it_sl_doc.
IT_SL_DOC-DLV_PRIO = '01'.
Modify it_sl_doc.
ENDLOOP.
LOOP AT it_sl_doc_x.
IT_SL_DOC_X-DLV_PRIO = 'X'.
Modify it_sl_doc_x.
ENDLOOP.
But there was no result.
In debugger I found that my value was overwritten below by value from it_atpfield table.
I had decided to use Exit on ERP side and implemented CIFSLS03 Influencing of Sales Order Data Prior to Dispatc
LOOP AT CT_DOC.
CT_DOC-DLV_PRIO = '01'.
MODIFY CT_DOC.
ENDLOOP.
LOOP AT CT_DOCX.
CT_DOCX-DLV_PRIO = 'X'.
MODIFY CT_DOCX.
ENDLOOP.
And right now I received on APO side required priority in IT_SL_DOC even before my APO's exit, but nevertheless below the value again was overwritten from it_atpfield table and as the result no change on APO side.
Does anybody have any clue for this issue?