Skip to Content
avatar image
Former Member

Changing pricing date not always working

Hi all

I am trying to change the pricing date(prsdt) for sd order to be the same as req delv. date , but the change is not always being performed and wrong  pricing date is occuring in some cases according to our requirement.

where does the pricing date  come from and why the use exit coding is ignored in some cases ... is there any condition I should look at.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 26, 2013 at 09:21 AM

    Hi

    First thing is how you are chjanging pricing date? in which userexit and by what logic? Could you please share the logic if possible.

    Second thing is in which case it is not the same as delivery date? Check in that case what is delivery date. There can be a reason that system runs availability check and prpsoe a new delivery date but your logic is not catering this. You have to check and analyze the difference in both cases (1 where pricing date is ok 2 where pricing date and delivery dates are different).

    Please check and update.

    Thank$

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Mehrej,

      For those cases specifically when this issue arises you can also check in Debugger Mode your Internal Table in which you're updating the values, check from where it's getting the pricing date in ITAB. Also check up with the loops logic as if it's okay because i'm sure that there's some issue in it. Thanks, try to give a shot and i'm sure this will gonna work out.

  • avatar image
    Former Member
    Aug 30, 2013 at 05:23 AM

    Hi Merhej,

    Could you please let me know whether you are changing the pricing date at Header level or Item level? Ideally, If the pricing date is changed at Header level then all line items in the SO will fetch the price from the maintained condition record based on the new changed date.

    Thanks & Regards,

    Sharan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Merhej,

      You could check whether the pricing date in Header and Item level are the same or different by double clicking on the line item. In Sales A tab there is a pricing date field.

      Regards,

      Sharan

  • avatar image
    Former Member
    Aug 30, 2013 at 10:09 AM

    Hi Mehraj,

    Please change the code to

            IF xvbak-vdatu IS NOT INITIAL.

               IF xvbak-vdatu <> xvbkd-prsdt.

                    xvbkd-prsdt = xvbak-vdatu.

                    modify xvbkd index sy-tabix.

                  ENDIF.       

            ENDIF.

    and see if it works. Also please check if you already have any other custom code which is undoing your change.

    Regards,

    Shashi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Shahsi

      Sorry but id did not help .

      in minor saces it is still occuring , If I check the table KONV (vbak --- > konv ) , I can se the correct pricing date is under a specifik condition.

      anyway I am going to give it back to the application people to fight with it

      Thanks  a lot.