on 06-22-2012 5:13 PM
Hi guys, I want to change the doc. WAERK field (Currency) in a sales order created from va01 transaction, the currency is set by default and I think is determined by the sales area or participants in the document.
Ej : I need to change 'USD' default currency to 'MXP' if all the items has 'MXP' .
I already try to change it in USEREXIT_SAVE_DOCUMENT_PREPARE but even in debug mode the vbak-waerk field is reset to his original value 'USD'. I want to try with the user exit USEREXIT_MOVE_FIELD_TO_VBAK but I get the same results. Is there any configuration that maybe is blocking the changes or I´m doing something weird and not using the correct user exits.
Any help will be appreciated.
I think is determined by the sales area or participants in the document.
In the sales order ->header->sales tab->Doc. currency field, if you click on F1 help, then you can understand the system proposes the document currency from sold-to party customer number.
So to resolve the issue, can you make the field blank in the customer master, then check the result of the user exit.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ! thanks for your reply, the "MXP" is the currency (PESOS), I already modify the user exit USEREXIT_SAVE_DOCUMENT_PREPARE and I´m able to change the vbak-waerk .
The conditions are if ALL of the pricing conditions at item level 'PR00' has the same currency ej: 'MXN' then change the header doc currency at vbak-waerk ej : 'USD' to 'MXN'.
I already make this and I see the expected results, but I´m not sure if this change at header currency may affect some net values etc.
Hi Isaac,
I don't understand the requirement.
What do you mean with "if all the items has 'MXP'"?
Which field of the sales order item are you talking about?
Regards,
Ornella
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.