Testing Pricing Requirements
Hy Guys,
how do you test the pricing requirements (ex. manual conditions, manual deposit condition, free of charge deposit cond, mixed palled surcharge etc) ??? So you create sales orders, credit memos and so on, and then..?
Thank you !
Cris
You can do it yourself in transaction VOFM, Requirements>Pricing. Then highlight the requirement number and and click the "source text" button.
Click on the first statement (probably a statement like "sy-subrc = 4"), and then click the "stop" button to set the break point. You can then process an order and it should break in that bit of code. Keep on hitting F5 and watch the sy-subrc value - if it is 0 at the last line of code, then the requirement has been met. If not zero, then it has not been met and that price will not be determined.
Don't forget to remove your breakpoint in VOFM afterwards.
Hope this helps.
Jon
Similar Messages
-
Can pricing requirement be used for manual header condition
I have a manual header condition ZCR1 which will be entered in a sales document with doc type ZAB1. When this sales document is copied into another sales document ZAB2, I want that the manual header condition ZCR1 is not determined. Can I do this via pricing requirement? Or should I use alternation formula for condition base value and make the value of condition ZCR1 to zero when the document is copied into ZAB2.
Both the document types are using the same pricing procedure. In copy control for all item categories from ZAB1 to ZAB2, pricing type G (Copy pricing elements unchanged and re-determine taxes). ZCR1 is a manual condition in the pricing procedure used.
Regards
JavedHi javed
If you want the ZCR1 manual header condition should not be determined then you need to change the pricing type in the copy control but if you assign a requirement in the pricing procedure for ZCR1 condition type then you cant enter the ZCR1 condition type manually also as you are not meeting your requirement.
Another option is you have to create a new requirement with the help of Technical consultant ans assign it to the header condition type in the pricing procedure requirement feild . giving inputs to your Technical consultant that The condition type should not be determined
Regards
Srinath -
Pricing - Requirment / calculation type / base value
Dear Friends,
Thnaks for the support and guidance provided by you for my previous posts
In Pricing Procedure we give Requirment, Calculation type and Alternative formula for condition base value, I would like to know where do we exctly define all this?
Or are they standard? If standards where we can see how they works?
Regards
VishalHi,
go through the below Examples for better understanding ..
Example: 1
Condition Type: PR00
Requirement 2 Item with Pricing
Purpose:
This is an example of a pricing requirement. This requirement is met if the document item category is relevant for pricing and no previous condition in the pricing procedure has set the condition exclusion flag. This requirement can be assigned to condition types in the pricing procedure to avoid unnecessary accesses to the database when an item is not relevant for pricing or a condition exclusion indicator has been set.
Example: 2
Condition Type: Net value
Calculation Type: 2 Net value
Purpose:
This is an example of a condition value formula. This type of formula can be used to influence the value shown for the condition in pricing. A condition value formula is assigned to a condition type or value line in the pricing procedure.
Formula '2' sets the value equal to net value that has been calculated so far for the item in the pricing procedure. It contains the amount excluding taxes.
Example: 3
Condition Type: R100
Alt.Condition Base Value: 28 (100% Discount)
Purpose:
This is an example of a condition base value formula. A condition base value formula can be used to influence the basis the system uses when computing a pricing value. A condition base formula is assigned to a condition type in the pricing procedure.
Formula '28' sets the rate of the condition to a 100% discount. This formula was delivered with condition type R100 to support free goods functionality.
Reward if it is useful,
Chandramohan -
How can we create new pricing requirement for a condition type
Hi All,
I am in urgent need of creating new pricing requirements for a condition type.
Or if there is already a conditin type existing and we want to make changes in the pricing requirements of that condition type, How can we do so ?
In short if you can let me know how does pricing get impacted by the condition types.
Thanks
MarkHi!
The common transactions for condition mantaining are VK11, VK12, VK13.
In SPRO - Sales and distributoin - Basic function - Pricing - Pricing control - *.
Is this what you want?
Regards
Tamá -
Does patching in test mode requires Maintenance mode on?
Does patching in test mode requires Maintenance mode on or I have apply it with options=hotpatch
I am applying a patch in test mode and its erroring out giving error
AutoPatch error:
You must be in Maintenance Mode to apply patches.
You can use the AD Administration Utility to set Maintenance Mode.
Command I ran
*$ adpatch apply=n*
EBS 11.5.10.2Srini Chavali wrote:
Maintenance mode is required for all adpatch runs where hotpatch option is not specified.Hi
SriniSo even in test mode, we have to run it in maintenance mode or hotpatch mode...wow!! -
Hello Gurus,
In sales pricing requirement there are 2 forms.
1) KOBED
2) KOBEV
Somebody knows the execution sequence of the 2 form. Is first KOBED and then KOBEV or there is some rules that drive the execution of one or the other?
Thanks.
Josy
Edited by: Lakshmipathi on Aug 8, 2011 8:46 PM
Thread Locked - Reason - Duplicate PostHi,
The precondition (FORM name KOBEV)
This is checked on header level and therefore is only a necessary requirement that the condition type or the access is taken intoaccount at all.
And the actual requirement (FORM name KOBED)
This is checked during processing on item level and it finally determines whether condition type or access is taken into account.
Best Regards
Amjathpasha -
Problem for Pricing Requirement
Hi All,
i have one pricing condition type ZFDS. This ZFDS having 5.50USD.
Additional item categories ZLCN need to be excluded from this fee also in this pricing requirement.
For Ex 1. : In one sales order my item category is ZLCN. For this item category i have ZFDS condition type. i want to exclude from this pricing requirement.
Ex 2. In the same sales order my item category is ZTAN. For this item category i have ZFDS condition type. i want to include from this pricing requirement.
Please guide me how to do the coding for this pricing requirement.
Thanks,
Raghuveera Kumar B.In transaction VOFM, create a new pricing requirement (your routine number must be between 601 and 999). You will be asked for an access key for object R3TR PROG RV6***601 (the last 3 chars corrsponds to the requriement routine you are trying to generate). Your BASIS team should be able to generate one for you.
Next, go to SE38> RV6***601 program, there will be 2 subroutines. One FORM is called for Header level pricing condition checks and the other is for item level, use whatever is appropriate in your case. If you are not sure, it doesn't hurt if you put the sample code below in both FORMS.
SY-SUBRC = 0.
CHECK KOMP-KSCHL = ZFDS.
CASE KOMP-PSTYV.
WHEN 'ZLCN '.
SY-SUBRC = 4. " Exclude ZFDS from pricing.
WHEN 'ZTAN'.
SY-SUBRC = 0. " Include ZFDS from Pricing.
ENDCASE. -
Pricing requirement with three requirements
Hi,
I'm no developer, but have to create a pricing requirement. I created the one below, but it doesn't work.
I want some conditions only to be used if komk-vkorg = 1111 + komp-zzmtpos = DIEN + any of the defined item categories are used.
FORM KOBED_998.
sy-subrc = 4.
if ( komk-vkorg = '1111' ).
if ( komp-zzmtpos = 'DIEN' ).
if ( komp-pstyv = 'ZSQ1' ) or
( komp-pstyv = 'ZSQA' ) or
( komp-pstyv = 'ZSQC' ) or
( komp-pstyv = 'ZSQE' ) or
( komp-pstyv = 'ZSQF' ) or
( komp-pstyv = 'ZSM' ) or
( komp-pstyv = 'ZS1' ) or
( komp-pstyv = 'ZSA' ) or
( komp-pstyv = 'ZSC' ) or
( komp-pstyv = 'ZSE' ) or
( komp-pstyv = 'ZSF' ) or
( komp-pstyv = 'ZG2N' ) .
sy-subrc = 0.
endif.
sy-subrc = 0.
endif.
sy-subrc = 0.
endif.
ENDFORM.
FORM KOBEV_998.
ENDFORM.
Thank you for help!i agree with Wolfgang Valtin
here is piece of code that works for u ..
FORM KOBED_998.
sy-subrc = 4.
if ( ( komk-vkorg = '1111' ) and ( komp-zzmtpos = 'DIEN' ) )
and ( ( komp-pstyv = 'ZSQ1' ) or
( komp-pstyv = 'ZSQA' ) or
( komp-pstyv = 'ZSQC' ) or
( komp-pstyv = 'ZSQE' ) or
( komp-pstyv = 'ZSQF' ) or
( komp-pstyv = 'ZSM' ) or
( komp-pstyv = 'ZS1' ) or
( komp-pstyv = 'ZSA' ) or
( komp-pstyv = 'ZSC' ) or
( komp-pstyv = 'ZSE' ) or
( komp-pstyv = 'ZSF' ) or
( komp-pstyv = 'ZG2N' ) ) .
sy-subrc = 0.
endif.
ENDFORM.
FORM KOBEV_998.
ENDFORM. -
Copy pricing unchanged and pricing requirements
When we create a Return in reference to an invoice we have configured copy control to copy pricing unchanged. Even though the pricing gets copied into the return, it appears requirements in the pricing procedure are still getting executed. This results in the original active condition to get de-activated because it failed the pricing requirement on the return. Is this normal behavior of SAP to execute pricing requirements on the target document when we have configuration to copy pricing unchanged?
Hi,
check this thread,May be useful to you.
[New Pricing procedure for credit memo|New Pricing Procedure in Credit Memo;
thanks,
Vrajesh -
If anyone worked on the sales pricing requirements(vofm)
If anyone worked on the sales pricing requirements(vofm), can u tell what happens in the sapcode, if create the requirements in vofm tcode
Hi Rama,
Pricing Requirement is basically a check before a condition type populates with its value.
we define the requirement and assign this to condition type as required.
for example, you have a discount condition ZABC which should only populate when the material is delivered from Chennai plant.
If this check ( certain requiremnt which we want to get satisfied before a particular condition type populates) becomes true during sales doc. processing, then
condition type is given a Go-Ahead by the system that it can populate.
we acheive this by using parameter SY-SUBRC and set this system variable to 0 if condition is true
basic outline of the code will be like following ( one of the ways) :
IF <Condition > = TRUE
SY-SUBRC = 0
ELSE
SY-SUBRC = 4
we can also utilize the CHECK statement to acheive this.
Hope it gives an idea to understand pricing requirement.
Please let me know if you have any doubt.
Best Regards,
Gaurav Raghav -
Pricing requirements - VOFM tranx (standard include)
Hi,
I want some information about the pricing requirements in the tranx code: VOFM.. For each standard include of the parent include: LV61ANNN, there are two forms: kobed_xxx and kobev_xxx.
1) What is the different between these two forms and what is their effect..
2) in my requirement, it was not mentioned as to in which form do i need to write the required code. (Though it was said that i need to copy one of stnd include)..hi Rohith
just go to this thread link
Re: VOFM - Requirements
this must answer your queries
hope this helps
regards
Aakash Banga -
VOFM - pricing requirements ( abaper require some functional assistance)
HI,
I had written the required code in one of the customer routines in the transaction: vofm.
to change the tax code according to the country of destination.
I was given information that this will be triggered during the sales order change..(va02)..
When i put a break point in that include it is not triggering..
Can anyone tell me how to trigger (either std include or customerized include) of transaction: vofm (pricing requirements) in the sales order change tranx (VA02).
thanxHi there,
Once the routine is configured in VOFM, it has to be activated for eg using RV80HGEN. Only then you can apply that routine.
Also when the logic is not getting triggered in debug, then it means that either the logic is wrong, code has been put in a wrong location or tables / fields are called wrongly.
Ask the ABAPer to check points & then try.
Also changes in VA02 is captured by function V & new entry by H.
Regards,
Sivanand -
Pricing requirement: condition to be in(active) linked to another condition
Hi,
I have created 2 new conditions type YR05 and YR06 in pricing procedure.
I would like that the second one (YR06) is considered as active only if amount of condition type YR05 is different from 0. (KOMV-KEBTR and KOMV-KWERT different from 0)
Could you please advise how I should handle it as I am not so familiar with requirements and Condition base value.
In addition, I created an additional line in pricing procedure to sum the amount (condition value) of these 2 conditions (to be printed on the billing document).
Any idea of the code to put in requirement and calculation type ?
Thanks for help,
Brgds,
VMHi,
In pricing procedure, you can put a subtotal for YPR5 (like D for XWORKD).
Then, in new routine (basis or formula), you can check if XWORKD <> ' '.
If yes, xkomv-kinak = ' ', if no, xkomv-kinak = 'X'.
This is just an idea.
Regards,
Lionel -
Pricing requirement- no overdue open items exist
Dear All
I need to create in pricing procedure a discount condition which would be activated if no overdue open items exist (ex. 2% discount if no overdue open items exist).
Do you know if there is any standard requirement that I could use for this purpose?
Thank you,
SylwiaHi Sylwia,
I'm affraid you have to develop your own requirement routine for this purpose. You can base it on logic of funtion module ITEM_DERIVE_FIELDS.
Kind regards,
Marcin -
Hi all,
In our business the price (ZR00) of a material is calculated on the basis of cost + packing charges + agents commision.( Here the cost ZC00, packing charge ZP00 and agents commision ZA00 are maintained as statistical in our Pricing procedure). Here the price ZR00 of the material is passing to G/L account through account key ERL. But my client requirement is that he wants to pass the agent's commission ZA00 to a particular G/L aacount.
How can i do this?
Thanks in advance
Regards
MathanDear Mathan,
> ( Here the cost ZC00, packing charge ZP00 and agents commision ZA00 are maintained as statistical in our Pricing procedure). Here the price ZR00 of the material is passing to G/L account through account key ERL. But my client requirement is that he wants to pass the agent's commission ZA00 to a particular G/L aacount.
>
-->You need to remove the Statistical check mark for commision condition type ZA00 in your pricing procedure.
-->Define & assign account key to the ZA00 condition type in your pricing procedure.
-->Do G/L account assignment through VKOA transaction for that ZA00 condition type account key.
I hope this will help you,
Regards,
Murali.
Maybe you are looking for
-
Showing Blank Records oracle forms 11g
Deal all.. i am using oracle forms 11g , i created a form by using data block wizard & layout wizard , but when i run the form, the form running successfully in browser, url is ( http://arun-pc:9001/forms/frmservlet), but it is showing empty r
-
How do I set up gmail not to download messages on iPhone
Hi Everyone, Hopefully this is just a quick question that I can't seem to find an answer to. Here is the setup: 1. I have a number of email accounts that I manage on an Google Apps account (e.g. [email protected]; [email protected], etc) 2. I have se
-
Value of KNVV structure is not changing
I am working in customer exit EXIT_SAPMF02D_001 of customer master in include program ZXF04U01 Here, I want to update the 1 field of KNVV table. So I am changing the structure I_KNVV based on condition but as soon as I leave the form, it gets the ori
-
FULL OF ****!!!
I must say Verizon is the WORST company I have ever had!!!!!!!!! I am appalled at their customer service. I was with AT&T for 7yrs and have never been treated like this. Verizon was a little cheaper so I decided to switch, BIGGEST MISTAKE EVER!!!!!!
-
I'm using flash buttons in my web site. In lieu of underlined text. Well they work fine in the development tool but when i put them on my site they don't work at all????? What could the problem be????Tried different directories still dont work???? Mi