cancel
Showing results for 
Search instead for 
Did you mean: 

Change sales order delivery priority in CIF

0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

babu_kilari4
Active Contributor
0 Kudos

Hello Eduardo,

You need to update both the tables ( Document structure as well as ATP field catalogue ). Alternatively; you may try to do the change in the include FV45VF0C_CATALOGUE_BUILD subroutine  USEREXIT_CATALOG_VALUE.

Thanks & Best Regards,


Babu Kilari

Answers (0)