Skip to Content

Shipment Cost Document - Settlement Date Issue

Hi all,

i'm facing a problem on Shipment Cost Document about the Settlement Date determination.


-The users create the Shipment via VT01N and save it

-In BADI_LE_SHIPMENT, at SAVE event, the "Shipment start" Actual date (VTTK-DATBG), if the user already pushed the Shipment Start button, is overwritten with the 1st delivery GI date (LIKP-WADAT_IST)

-The user create the shipment cost document with VI01 or VI04 standard transaction.

-Then the user can transfer the SCD via a custom transaction which only show with a better layout and additional infos a list similar to VI05. There is also a button to relase SCD which basically run a call transaction of VI05 with BDC to release the SCD.

All pretty standard (except the overwritting of "Shipment start" Actual date (VTTK-DATBG)

In customizing, the consultants set up the pricing and settlement date to take the VTTK-DATBG

The issue
Now, I have a 70% of the SCDs' dates correctly set up with this configuration but i also have a 30% of SCDs with "random" settlement dates like this situation



What i did

I tried to replicate the situation in QA system, without success.

I tried to remove the overwrite of Shipment Start date, without success.

I tried to check for OSS Notes but none seems to fit the situation.

So, there is anything i could check? I'm an ABAPer so all i can do is to debug and check a bit of customizing, but it seems all ok (and our consultants said it's all ok)



shipment.png (60.9 kB)
scd.png (3.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 10, 2016 at 10:12 PM

    Hi Simone,

    have you looked at the settings for the date rule in transaction T_60?

    If you are using the standard cost calculation, there should be the sequence from where the settlement and pricing dates are determined.

    I checked in an almost standard system - for this date rule the sequence is:

    Is this different from what you have both in QA and PRD?

    If it is the same, check the values for these dates in the 30% of documents, which don't look logical. If your settings are different, you can check when and why this was changed and see if the dates from the rule make sense to what you see in PRD.

    Also, the users can manually change the date in VI01/VI02, did the consultants check with the business if they did this for some reason?

    If the pricing date was not changed manually and if the dates that you get in PRD do not correspond to the standard setup, then I would start checking for custom code.

    Add comment
    10|10000 characters needed characters exceeded

    • Ok, basically i'm a big big big dumb!

      The issue was the following:

      when you massively recall the deliveries you want to put in a shipment

      And just put one or two of them in the shipment, at save SAP brings all of the found.

      I had a little code which read the first delivery and retrieve the GI date to be forced into the settlement date.

      But in my tests i always had 1 or 2 deliveries so i was not aware of the "massive list".

      In production this meant that the date copied was one random off the big list in Shipment creation (as well then in Shipment Cost Document ones).
      Then, when scd got released, the same badi on shipment is triggered and the check in order to force the date is called, this time with the correct deliveries only and the date is overwritten.

      Sadly those dates are not under change history so i was not able to see find it until i did the "massive selection" in production...