cancel
Showing results for 
Search instead for 
Did you mean: 

Tlane creation via Expired contract

former_member332160
Participant
0 Kudos
398

Hi Expert,

I have one question-

I have a contract for which validity data was in past (it is already expired) but when i run CIF it is still creating the transportation lane in APO.

In below case

1- i deleted everything including external proc. reletionship.

2- I ran the CIF for contract on 22-07-2019

3- Below menti0oned two tlane got created (It also created the tlane for which validity date is in past)

Is this standarad behavior?

Requirement- Tlane should not created in APO if we are ciffing it out side of validity date.

Thanks,

Jack

Accepted Solutions (0)

Answers (2)

Answers (2)

rupesh_brahmankar
Active Contributor
0 Kudos

Hello,

The validity period of the contracts is transferred from SAP R/3 to SAP APO.

If the source list integration CIFPUCUST01 transaction is active, the relevant fields for transferring a contracts or Purchase info record validity dates to APO from source list.

Best Regards,

R.Brahmankar

I310607
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Transportation Lane is a master data object, that can exist with past validities consistently. Always the source determination (planning) application will decide wether the Source of Supply is valid or not (via Function /SAPAPO/SOS_VALIDITY_CHECKS).

If you do not want such object to be created via CIF, use one of the user exits throuhgout the SoS (contract) integration.

TPSRC BADIS / USER EXITS  
ECC Side: CIFSRC01
SCM Side:  
/SAPAPO/CIF_ENHANCE_TPSRC      /SAPAPO/CIF_ENHANCE_TPSRC  
BAdI: Change of Source of Supply
/SAPAPO/CIF_TPSRC_IN                                          
Inbound Processing: Sources of Supply
/SAPAPO/PWB_TPSRC_D                                           
BAdI: Delete External Procurement Relations
/SAPAPO/PWB_TPSRC_IN                                         
BAdI: Change Proc. Relationship and Transportation Lane

Call Stack:  

 10  WRITE_CD_TLANE_OBJECTS(/SAPAPO/LOO_TR_WRITEF53) 
 9 /SAPAPO/TR_TLANE_POST
 8  PREPARE_TRANSFER_TO_DATABASE(/SAPAPO/LOO_TR_TRANSFERF02)
 7 /SAPAPO/TR_TL_TRANSFER
 6  UPDATE_TRPROD(/SAPAPO/LMAINTAIN_TPSRCDB1)
 5   UPDATE_TPSRC_SYNC(/SAPAPO/LMAINTAIN_TPSRCDB1)
    > Call BADI (User-Exit) for TPSRC data  SE18  /SAPAPO/PWB_TPSRC_IN  interface /SAPAPO/IF_EX_PUR_TPSRC_IN
 4 /SAPAPO/DM_TPSRC_UPDATE_POST  > (or *insert_post) 
 3  /SAPAPO/DM_TPSRC_MAINTAIN
 2 /SAPAPO/CIF_TPSRC_MAINTAIN 
    > CALL BADI lr_ref_cif_enhance->change  SE18   /SAPAPO/CIF_ENHANCE_TPSRC  interface /SAPAPO/IF_CIF_ENHANCE_TPSRC
    > CALL BADI lr_ref_cif_enhance->delete
 1 /SAPAPO/CIF_TPSRC_INBOUND 
    >  CALL CUSTOMER-FUNCTION '001'  EXIT_/SAPAPO/SAPLCIF_TPSRC_001  SE18  /SAPAPO/CIF_TPSRC_IN  interface /SAPAPO/CL_EX_CIF_TPSRC_IN
  

More call stack in SCM Master data area: https://wiki.scn.sap.com/wiki/x/XuMoHQ

Best Regards,

Gergely