I’m trying to use the BAPI_CUSTOMER_HIERARCHIE_INS to end date some customers in a hierarchy, but I’m encountering some strange results.
If I change the end date to yesterday’s date, my result in SAP creates a new record for the next available day and end date 12/31/9999.
If I end date to the present day, SAP (most of the time) drops off the record after the present day. However, I have observed some cases in which it does not.
For example, if my start date is 10/23/2017 and my end date is 10/24/2017, I would be left with a new record that is 10/25/2017 - 12/31/9999. The end goal here is to drop a customer from a hierarchy.
Also, if I end date the record in SAP to present day or yesterday, it drops off and does not create a new record like it will via the BAPI.
Is there a better method/BAPI to be used? And help is greatly appreciated.