Do not carry out new pricing when plant change in sales order
Hi,
I have one z field in additional data tab in sales order. This field store the original plant if anyone has changed plant in Sales order. My requirement is to trigger the pricing in sales order with this old plant. I am not getting any exit for this.
Suggest me the solution.
Hi
In the comments for the subroutine, it says:
* Parameter new_pricing controls the new pricing in the calling *
* form. It can be filled according the the allowed values *
* of domain KNPRS (Pricing type), for example: *
* ' ' = no new pricing *
* B = Carry out new pricing *
* C = Copy manual pricing elements and redetermine the others
So, you must write:
If VBAP_WERKS NE *VBAP_WERKS.
new_pricing = 'B'.
Endif.
Regards
Eduardo
Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM
Similar Messages
-
Carry out new pricing when key in access field is changed
Need automatic update to 'carry out new pricing' when field that is part of key combination is changed.
The system recognized the change when viewed in analysis, but amount is not updated unless "Update" button is manually pressed.hi,
you sales orders which are already created then you changed the access key. For these order unless you run an update pricing they cannot be updated. Now for the new sales orders which are going to be created if the new key combination matches the sales order criteria then it gets picked up automatically and you dont to do anything.
as we understand from access sequence setup, we do it frm the most specific to the most general ( while setting up the condition tables ie key combinations), So when a condtion record is found whether new key combination or old if its the relevant one and a condition is found for it, it gets picked up automatically.
regards
sadhu kishore -
How to: not to carry new pricing when plant is change
Hi,
How can I prevent the system from carrying out new pricing when the plant is changed.
Also,
I have a quotation in which users can change the prices, I want to finalize the pricing in the quotation and have my sales order with fixed pricing. What is the best way to do this.
Thanks.Hi,
Try this user exit.
Include: MV45AFZB
USEREXIT_NEW_PRICING_VBAP
This userexit can be used to perform new pricing, dependant *
on the change of datafields. *
This routine is not called, when the material number has been *
changed. *
Available data-fields: *
vbak - header data *
vbap - item data (changed) *
*vbap - item data (old, before the change) *
Parameter new_pricing controls the new pricing in the calling *
form. It can be filled according the the allowed values *
of domain KNPRS (Pricing type), for example: *
' ' = no new pricing *
B = Carry out new pricing *
C = Copy manual pricing elements and redetermine the others
It should work for you.
Reward points if it works for you.
Rajesh S. -
Carry out new pricing at invoice
Hi all,
My requirement is to carry out pricing at invoice and not copy from sales order.
For this, I goto tcode VTFL and opened copy control for LF to F1. I changed pricing type from C to B but still system is copying price from order and not carry out new pricing automatically at the time of invoice creation.
please update that what needs to be done.
Many Thanks.,
AI.I changed pricing type from C to B
First please dont post the same question related to an issue in multiple times.
Coming to the issue, you have to test this by creating a new sale order. Existing orders will not change once you change the copy controls. It will have impact only on the newly created documents.
Last but not least, as for as possible, continue your queries in the other thread and close this one.
thanks
G. Lakshmipathi -
Hello Experts,
We are transferring internet sales orders from CRM to R/3. Now, what I need to do is
to trigger the 'carry out new pricing' for all the line items. Just like when we click
the update button in the conditions tab and click on the 'carry new pricing' option even though
user only displays the sales order in R/3.
Hope you can help me guys. Thank you and take care!No Answer...
-
Hi Guys,
Is there any function module/BAPI to carry out new pricing for sales order.
Somehow my BDC for VA02 is not working and
my bdc does only carrying out new pricing for that order.
This I want to replace with BAPI.
Could you please help me in this regard
PrashantHi,
An alternative solution is to use the BAPI to make a general CHANGE to the sales order and let the user exit take care of the repricing.
Calling program :
ls_order_header_inx-updateflag = 'U'.
ls_logic_switch-pricing = 'C'.
ld_bapi_reprice = 'C'.
Memory ID is read in MV45AFZB, form USEREXIT_NEW_PRICING_VBKD
EXPORT ld_bapi_reprice TO MEMORY ID 'Z_BAPI_REPRICE'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_inx = ls_order_header_inx
logic_switch = ls_logic_switch
TABLES
return = gt_return.
FREE MEMORY ID 'Z_BAPI_REPRICE'.
READ TABLE gt_return INTO ls_return
WITH KEY type = 'E'.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ''. " No wait between orders
ELSE.
ls_error-vbeln = p_vbeln.
ls_error-text = ls_return-message.
APPEND ls_error TO gt_error.
ENDIF.
MV45AFZB, USEREXIT_NEW_PRICING_VBKD :
DATA : ld_bapi_reprice TYPE knprs.
Memory ID is exported from program ZPSF_01_TOOLKIT_F01
IMPORT ld_bapi_reprice FROM MEMORY ID 'Z_BAPI_REPRICE'.
IF NOT ld_bapi_reprice IS INITIAL
AND sy-subrc IS INITIAL.
new_pricing = ld_bapi_reprice.
ENDIF. -
User-exit for carry out new pricing while sales order save automatically
Hi all,
I need to carry out new pricing while sales order save automatically. Please any one help me to finding proper user-exit to achieve my requirement.
Thanking You.
Moderator message: please search for available information.
Edited by: Thomas Zloch on Jan 11, 2012 12:53 PMPl help.
-
Plant change in Sales Order not possible due to Sales Order BOM
Hi all,
we are trying to change the Delivery Plant in a Sales Order after the creation of a Sales Order BOM, but it gives a V1773 message first, then a blocking error V1810. The same happens with a Production Order.
How can we change the Delivery Plant after the creation of one of these objects?
Our scenario:
- Make To Order
- Sales Order BOM created with transaction CS61
- Sales Order Routing created with transaction CA01
We need to create the Sales Order BOM on the Production Plant (which doesn't change), but we need to be able to change the Delivery Plant in any time.
Should you have further questions, feel free to ask.
Thanks in advance,
GiuseppeHello Caselli,
For V1773, please check the solution provided by note 588884, which is a modification. With this note it turns possible to delete all multi-level sales order BOM using transaction CSKB, which may be useful.
The behavior mentioned by you is the standard behavior of the system. The scenario works as designed, a plant change is only possible as long as there is no other document assigned to the sales order.
Longtext of V1 810 says:
The plant can no longer be changed in the following situations:
2. There is a production order for the order item but it is not a static assembly order.
Your scenario seems to be point 2 as mentioned above. You can check the requirement type (VBAP-BEDAE) and requirement class in OVZH and assembly type (MNTGA) in OVZG.
If you change the plant for the items with existing production orders, it will cause the incorrect values in the COPA. An order item is assigned to plant A and the corresponding production order exits. This
means that the costs are assigned to plant A (this is the place where the costs accrue). Order and production order will be balanced at plant A.
If you now, after the process has already started, should allow to change the order to plant B the following examples of problems will come up:
- The costs accrued in plant A (see production order)
- The SD order is now assigned to plant B, this means billing will be with plant B
This leads to the fact the costs are on plant A, plant B has a benefit. Plant A cannot settle the costs and plant B has unexpected earnings. Inconsistencies in all involved process steps, SD, CO, COPA are the results.
If you want to change the plant in the sales order you'll have to perform these steps:
= Delete the production order.
= Change the plant of the sales order item from A to C.
This should be possible unless there are other documents which are already assigned to this sales order item. Save.
= Create a new production order and assign it to the sales order item again.
I hope I am able to help you with this information.
Best Regards,
Bhavin Joshi -
Cust for Item number calculation when creating/changing a sales orders
Hi
I need to know if the item number when capturing/ modifying a sales order can be calculated automatically with some route in the customizing, or do I need to do it with some user exit in the sales order entry?.
Thanks!
Regards
SorayaHi,
Goto the T.Code "VOV8".
Select your order type.Details.
Goto the "Number systems" tab.
Maintain the value as "10" or "15" like this any number as per your requirement for the field "Item no.increment".
So that the main item will be incremented by the number you specified here.Suppose you specified the number as "10" the line item numbers would be 10,20,30,.....
Next is if you maintain the value for the field "Sub-item increment" then the sub items will be incremented by the number you specified here.
It would be mainly used in the case of BOM.
To get the numbers from the order,goto the T.Code "SE11/SE16".
Enter the table name as "VBAP".
Pass the order number.Execute.
You will get the all line items with numbers.
Regards,
Krishna. -
Carry out new pricing not working in Me23n
Dear Experts,
I am trying to carryout new pricing in purchase order i.e iam going into Item conditions of PO and hit update button on the botton of the conditions tab and select B as the pricing type . The value changes to the new rice and then I save the PO.
After hitting save the values remain unchanged .
Please help on this .hi,
you sales orders which are already created then you changed the access key. For these order unless you run an update pricing they cannot be updated. Now for the new sales orders which are going to be created if the new key combination matches the sales order criteria then it gets picked up automatically and you dont to do anything.
as we understand from access sequence setup, we do it frm the most specific to the most general ( while setting up the condition tables ie key combinations), So when a condtion record is found whether new key combination or old if its the relevant one and a condition is found for it, it gets picked up automatically.
regards
sadhu kishore -
Carry out new pricing by changing item category
Hi All,
Is it possible to carry out a new pricing depending on item category. The requirement is when i change the item category it should trigger new pricing procedure. Like example if it is tann one pricing procedure and if it change to another category like ztann it should trigger new pricing procedure .
I know that pricing procedure not defined on item category. I tried with the exit form userexit_new_pricing_vbap changing new_pricing. But i dont know what to write in that. I am technical guy . Please share me your idea if any one did this before.
Regards,
Madhu.
Edited by: madhurao123 on Mar 10, 2011 5:54 PMDear Lakshmipathy,
I have tried the option you have suggested but was unable t o make any progress. I have done the following steps:
In VKOA I have done the revenue account determination based on Acct Assign Grp: Customer, Acct. Assign Grp: Material, and Item Category. Despite this the correct G/L accounts are not being picked up. Can you please suggest where I may be going wrong.
The scenario is as follows for all Item categories except ZTNN::
If Customer and Material are taxable @ 5%VAT then pick G/L1
If Customer and Material are taxable @ 15% VAT then pick G/L 2
If Customer and Material are taxable @ 2% CST then pick G/L 3
If Customer and Material are taxable @ 5% CST then pick G/L 4
If Customer and Material are taxable @ 15% CST then pick G/L 5
For Item Category ZTNN:
If Customer and Material are taxable @ 5%VAT then pick G/L6
If Customer and Material are taxable @ 15% VAT then pick G/L 6
If Customer and Material are taxable @ 2% CST then pick G/L 6
If Customer and Material are taxable @ 5% CST then pick G/L 6
If Customer and Material are taxable @ 15% CST then pick G/L 6
Your suggestions would be greatly appreciated.
Thanks and Regards,
Rohan Gudavalli -
How to Carry out New Pricing in Sales Order userexit
Hello,
In userexit save_document_prepare of program MV45AFZZ, I'm adding an entry in XKOMV for a header pricing condition ZD01. After saving, if I go back into the order and go directly into the line item conditions, the ZD01 does not exists at the item level. If I navigate the the header conditions and then go back to the items, ZD01 appears as it should. I believe what is happening is that the header condition is not being distributed to the line items unless New Pricing is carried out. If I manually enter the ZD01 condiiton instead of relying on the userexit code, everything works fine. The header condition is properly distributed to the line items. Therefore, I believe the configuration is correct. My question is, "How can I programatically trigger New Pricing from a sales order userexit". Is this possible in SAVE_DOCUMENT_PREPARE or do I need to do it somewhere else.".
Thank you,this problem has been resolved. The problem was that I was appending the header condition to XKOMV instead of inserting the header condition as the first line in the table. SAP will carry out the new pricing if the header condition is on the first line.
-
Automatically determine new-pricing when partner changed
Dear All:
when so partner changed, i hope the price will update automatically
sap offered this two userexit, can be used to perform new pricing, dependant on the change of datafields
USEREXIT_NEW_PRICING_VBAP
USEREXIT_NEW_PRICING_VBKD
but vbpa is not Available data-fields
is there any other similar userexit or method to Achieve this?Hi Timothy,
Please check this user exit
USEREXIT_PRICING_PREPARE_TKOMP.
This exit has VBPA structure, you can explore further
thanks
santosh -
Invoice corrections Sales order- New Pricing is not carried out
Hi All,
waiting for some one to guide me in a right way...
I have Scenario where creating a invoice correction request with reference to Invoice document.New pricing is not carried in debit line item even though i changed the pricing date as current date for the line item
When i copied with the invoice document, 2 new line items are created with a same price conditions.
1st line item is a credit and 2nd line item is a debit item.
I need to do a price adjustment in debit line. So i maintained a new pricing record for the material to carry out the price.
To achieve this in customizing VTAF (billing to sales) I have tried multiple options as below in 2nd pricing type field as B,C,D,E and F
2nd Pricing type - B Carry out new pricing
C Copy manual pricing elements and redetermine the others
D Copy pricing elements unchanged
E Adopt price components and fix values
F Copy pricing elements, turn value and fix
But still the new pricing is not carried out.I tried to manually change the Pricing date in the line item level, still the new price is not updated in the order.
I have seen SAP Help in below link the Debit line can update with correct price point 3 in proces flow , check this below link for reference.
http://help.sap.com/saphelp_46c/helpdata/en/dd/55feeb545a11d1a7020000e829fd11/content.htm.
Please help...
Regards,
ParthibanHello Parthiban,
I feel you are aware of the effect/functionality of 2nd pricing type.
In the invoice correction request, two items are automatically created for each item in the invoice to be copied (which you did mention):
- first item: credit memo item
- second item: debit memo item
And for invoice correction request, a particular pricing type is needed for the second item.
So as per standard, you have to use pricing type 'E' for the credit memo item to guarantee that the item will not be changed.
And you should give a new pricing type to the debit memo item.
The system creates a credit or debit memo depending on whether a postive or negative difference is generated.
So that means
Pricing type will effect ItemCat Proposal-G2N
and 2nd pricing type will effect 2ndItemCatProposal-L2N
Now, make changes in pricing type based on your business requirement.
I hope this will assist you in understanding.
Thanks & Regards
JP -
Field sequence Change in Sales order after adding new field( Resolved)
Hi I have added a new filed into sales order/item overview.(addded thr se51-layout ) . but when i go to va01/02/03, i noticed that the field sequence is changed due to my new field.(but when i see the layout its differnt and correct.)( even i checked changing the groups also)
Is there something i need to do..?Please advise. Thanks a lot.
<b>Answer:</b>
Table view is configurable in VA01/02/03.( No matter where you add the new fields)
Users can always move them to desired position.
Message was edited by: Deadlock1
Message was edited by: Deadlock1
Message was edited by: Deadlock1Hi
In the comments for the subroutine, it says:
* Parameter new_pricing controls the new pricing in the calling *
* form. It can be filled according the the allowed values *
* of domain KNPRS (Pricing type), for example: *
* ' ' = no new pricing *
* B = Carry out new pricing *
* C = Copy manual pricing elements and redetermine the others
So, you must write:
If VBAP_WERKS NE *VBAP_WERKS.
new_pricing = 'B'.
Endif.
Regards
Eduardo
Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM
Maybe you are looking for
-
How to acces my icloud account
please I don not know how to acces my cloud acount on i cloud .com
-
Just bought a MacPro and can airplay to Apple TV? I read that the iMaC, at least my model (Late 2009) does not support. Is this software (Lion) or hardware dependent, as well.?
-
Do Apple Stores stock the Invisible Shield?
Im based in the uk, but a friend is heading over to San Fransico next week and im wondering if the apple stores stock the invisible shield or will i have to order from the invisible shield website? cheers guys
-
Buttons link between folios in a multi-app?
Is there a feature that allows me to link between folios in one multi-folio app? thanks, Yngvi
-
New To Logic need help using drum samples.
Hey guys im extremly new to logic actually this is my first trip into a mac doing pro audio. Ive been using windows in my studio for years and im trying to learn the ins and outs of Logic right now. My question is im using a set of samples (trigger t