cancel
Showing results for 
Search instead for 
Did you mean: 
SAP Community Downtime Scheduled for This Weekend

update STO Delivery ATPCAT

nairharsha
Participant
0 Kudos
272

Hi,

I have requirement to change the ATPCAT of STO delivery when it is transferred from S4 to APO ,

I tried writing logic in include ZXCIFU14 and ZXCIFU16 but it doesnt seem to work.Please help.Urgent

Accepted Solutions (0)

Answers (1)

Answers (1)

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

What is the business requirement to change ATP category of stock transfer order?

In Maintain Global Parameters and Defaults there is default ATP category for MRP element.

PP/DS global parameters and values Transaction /SAPAPO/RRPCUST1

Best Regards,

R.Brahmankar

0 Kudos

Dear, R.Brahmankar,

we have nearly the same requirement.

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.

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

For your requirement please open a new question along detailed business requirement.

Thanks a lot.

Best Regards,

R.Brahmankar