cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing date of sales order

former_member588542
Active Participant
0 Kudos

Helllo ,

my pricing date in sales order is based on the requested delivery date....But many times users change the requested

delivery date and the pricing date is changed.I need to have initial pricing date always and never changed.

I think SAP standard dont have solution for this right?

Thanks and best regards

L

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can discuss your requirement with the ABAP consultant and use the below user exits to meet your requirement:

USEREXIT_MOVE_FIELD_TO_VBAP

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

USEREXIT_MOVE_FIELD_TO_VBKD

Use this user exit to assign values to new fields for business data of the sales document.

Hope the above helps.

Thanks.

Answers (3)

Answers (3)

0 Kudos

Hai Luis Guilhermo,

In sales order program ,

SAPMV45A

Include : MV45AFZZ

FORM userexit_save_document_prepare

CODE:


CONSTANTS: c_t(45) TYPE c VALUE 'Please enter current date or future date in ',
             c_t1(18) TYPE c VALUE 'Pricing date field'.

IF sy-tcode = 'VA01' OR sy-tcode = 'VA02'.

      IF vbkd-prsdt LT sy-datum.

        MESSAGE e000(zmsg1) DISPLAY LIKE 'E' WITH c_t c_t1.

      ENDIF.

    ENDIF.

This user exit code will check your pricing date should be equal to or more that system date, else gives error.

Regards,

Mani

Lakshmipathi
Active Contributor
0 Kudos

Go to VOV8, select your order type and execute. There at the bottom, you can see a field Prop. f. pricing date. Select an option whichever suits your requirement. Perhaps, "B" suits your requirement.

thanks

G. Lakshmipathi

Edited by: Lakshmipathi on Jul 19, 2011 8:47 PM

Shiva_Ram
Active Contributor
0 Kudos

I think you need to control using user exit USEREXIT_NEW_PRICING_VBKD in program MV45AFZB.

Regards,