Skip to Content
0
May 27, 2020 at 12:11 PM

Change ATPCAT of deliveries for APO CIF

216 Views

Dear, all,

Background is that we want to exclude all Deliveries/ Sales orders newly created for ATP in APO

when storage location is marked as not mrp relevant in customizing (T001L).

First of all I tried with sales order deliveries and enhanced User Exist ZXCIFU16 with following coding.

I also created new ATP category 'ZW' on APO side related to BR (deliveries).

Unfortunatelly now I get two lines in APO. One with BR and one with ZW.

Do you have an explanation for this?

Or do I need to change at an additional/ different place?

I debugged the delivery creation in update mode and the CIF userexit. At that time I could not see something else necessary.

(No S4 system yet, if relevant)

Thanks for feedback!

Best regards,

Janine

LOOP AT ct_req ASSIGNING FIELD-SYMBOL(<ls_req>) WHERE method = 'N'.

SELECT COUNT(*)
FROM t001l
WHERE werks = <ls_req>-location
AND lgort = <ls_req>-store_loc
AND diskz = '1'.

IF sy-dbcnt > 0.
<ls_req>-atpcat = 'ZW'.
ENDIF.

ENDLOOP.