Skip to Content
avatar image
Former Member

Pricing date in Old Sales Order

Hi Experts,

There is a requirement , while editing old sales order ( say 4 months old), the order status is Being Processed , If today I add new line item in the old SO, the pricing date should be picked as system date automatically in line item, user should not change the pricing date manually for each line item. How this can be achieved??

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 27, 2011 at 08:07 AM

    Hi,

    In Standard SAP

    Proposed pricing date based on the requested dlv.date

    Procedure

    Enter the date which you want the system to propose for the pricing date when a sales document is created. You can overwrite the proposal in the sales document.

    Example

    You want the day on which the contract becomes valid to be the date which is proposed as the pricing date in the sales document. Therefore, in the standard version of the R/3 System, you would enter the indicator B in this field.

    We have this setting for the order type in VOV8 so if it doesn't meet then go for the below user exit.

    Using the user exit you can move the system date as pricing date at the item level.

    program MV45AFZZ

    USEREXIT_MOVE_FIELD_TO_VBAP

    Use this user exit to assign values to new fields at sales document item level.

    Regards,

    Saju.S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sanju.S

      Could you tell me the code to write in the user exit mentioned by you , also can we use the user exit Move field to VBKD.

      please give your views.

  • Aug 05, 2011 at 07:30 AM

    Hai Sandy,

    In SE38

    - MV45AFZZ

    Enter

     FORM userexit_save_document_prepare.
    
    IF sy-tcode = 'VA01' OR sy-tcode = 'VA02'.
    
    vbkd-prsdt = sy-datum.
    
    Endif.
    
    

    Now when a user open or creates a sales order system will change the Pricing date once SAVE icon is clicked.

    Regards,

    Mani

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Mani,

      Thanks for your reply, however I want that system should take pricing date at item level as user enter new item in old sales order, instead at the time of pressing the save button and the pricing field should be disabled ( greyed out)

  • avatar image
    Former Member
    Jul 27, 2011 at 01:53 PM

    Hi,

    There is no change by standard to meet this requirement, you need to use a user exit to change the date or status. The program is MV45AFZZ.

    Hope this helps!

    Regards.

    Add comment
    10|10000 characters needed characters exceeded