ZERO condition Value in pricing
Hi Gurus,
I have requirement where the condition should allow/accept a zero value when entered in a sales order.
It is necessary to fill at least an amount of 0,01 in. Weu2019d like to fill in the amount of 0,00 so that there is no pricing for the item.
Could you please tell me where I need to change the settings.
Thank You in advance.
Regards
Kumar
Hi,
In transaction V/08, go to the pricing procedure, which is shown in the sales order. Go to the item pricing condition type and de-select the check mark, under mandatory column.
Also check in transaction code OVA2, incompletion procedure, for the sales document item procedure, the field related to net price must be removed.
Regards,
Similar Messages
-
Zero Condition Value in IDOC segment
Hello SAP Experts,
I have a requirement that the zero value condition type should get populated in the pricing segment of idoc E1EDP05 under E1EDP01.
When we try, this no condition type comes in this segment. Based on this , I have to map certain data in my Ztable.
Request for the guidance to meet this requirement
Thanks in advance,
CasimerHi Casimer,
sorry, this won't work without a modification.
The system outputs conditions and taxes in the INVOIC or ORDRSP IDoc
under the following conditions.
o The print indicator in the pricing procedure must be set.
For example ('X' for item E1EDP04 and E1EDP05)
('S' for header level E1EDK04 and E1EDK05)
o The value of the condition must be <> 0.
o The condition must not be flagged as statistical.
o The accrual field should be empty.
o The condition must be active.
Balazs -
Getting header data (condition values) for shipment
For the shipment VI03, the user wants the header Condition values(KWERT) corresponding to condition values(KSCHL).
Some of the condition type having values in item level but these condition types are not maintained in header level, so they want for these condition types values should be Zero.
As I am taking condition values for PRICING function module, it will display at sub-item level values depending on condition values.
Please let me know is there any functiona module or table exist where header data is directly mainatined(Condition values & Condition type).
Thanks & Best Regards,
MaheshFirst find the related salesorder using:
VBFA
VBAK-VBELN = VBFA-VBELV
LIKP-VBELN = VBFA-VBELN
VBFA-VBTYP_N = 'J'.
or
LIPS
VBAK-VBELN = LIPS-VGBEL
After that, with the order, get condition number in VBAK and then search KONV.
VBAK-KNUMV -> KONV-KNUMV.
Regards.
Valter Oliveira. -
Dear All Experts,
I have come across something strange Service PO condition value.
User Requirement Is:-
We need Excise Duty to be calculated not on basic price total, but on 33% of basic price total.
Example:-
Y = Total Amount of PO x 33%
now Service Tax including Edcu. Cess 10.30% = Y x 10.30%
now Final Amount = Total Amount of PO + Service Tax including Edcu. Cess 10.30%
Now i need to define new condition value or pricing condition to calculate this kind of logic.
Regards,
Shaligram K. DodiaThis is a new type of excise i suppose since uptil now this 33% of material value i have faced is against service tax/VAT etc...i think for this rather than creating new condition value and others,why not first you check by maintaining the excise percentage in Exceptional material excise rate in J1ID...in po maintain the normal process and check whether the calculation is coming as desired.
Regards,
Indranil -
Can I have mannual condition value as zero in Sales order
Hi
I need to enter a mannual condition type in sales order in %, but it should not give me any value and it should be zero. In Pricing procedure I haven't maintained any values in from & to column, but then it is taking the value either from the base price or from some other value. Can any one tell me how to control this....and get zero as value in sale order though I enter in %.
Regards,
RaguHi,
What is the function of the condition type if its effect is not to be evaluated in the pricing screen.
anyways if thats the case, in the pricing procedure you can specify the counter no. in the from and to fields related to the condition type.
you can enter the counter no. of the base price on which you want the percentage of the particular condition type to be executed.
hope it would solve your problem.
regards,
Siddharth. -
Hi All,
I have a strange issue, where in when we eneter a material into sales order(VA01/Va02), there is a customized pricing condition type which is triggered. But the problem is, the condition base value appears zero and net value is calculated accordingly. When we save the sales order, the COndition value appears and net value changes because of this. Initially Condition value appears zero. It is an Item condition. Whet could be the reasons for this discrepancy.
Thanks ,
SwathiHI,
Kindly Check your Pricing procedure in V/08 , and also check in Sale order level how system is calculating what is the value is picking based on that you can do the necessary changes in pricing procedure
Regards,
Prasanna -
How to get xkomv-kwert (condition value) from a pricing condition ZZP1
Hi experts,
I have a pricing condition zcust that I need to modify in the sales order. The calculation of ZCUST is dependent on the condition value in another price condition ZZP1. The price for ZZP1 is a fixed amount of $6 which is split among line items in the order. In sapmv45A, when the code hits userexit_save_document_prepare, the value of xkomv-kwert (condition value) exist. In other user-exits in sapm45A, I was unable to find xkomv-kwert. My question is: How can I find the value of xkomv-kwert as i don't know how ZZP1 is calculated ?? There is no routine attached to ZZP1.
THE ZCUST has a routine 993 which is similar to 3. Here in program saplv61A, i was trying to get xkomv-kwert for ZZP1 but unable to get any data. Can anyone suggest where i can get the data (xkomv-kwert) for ZZP1 in saplv61a ?
I looked at userexit_xkomv_bewerten_end in saplv61a but it does not help.
XKomv-kbetr always has data. If i have ZZP1 data, then i can modify ZCUST.
Many thanks.
JoyceHi Jelena,
In VOFM, it is Formula/Condition Base Value for routine 993. In Pricing Procedure, it falls in column "Base Type" for 993.
Let's see if i can simplify this: In a sales order with 2 line items:
prices Amt Condition Value (USD)
Line 10 ZS1 sell price 2.30 1150
ZPP1 charge 6.36 3.40 (note the distribution **)
ZL1 3 3
ZR1 % 1.000% 11.50
ZR2 0.01 5
Suggested price = 2.35 1172.90
ZCUST 2.34 1170
total price 2.34 1170
Note: The ZCUST price is wrong. It is missing the ZPP1 charge which is 3.40. Zcust should be 1170 + 3.40 = 1173.40
Line 20 ZS1 sell price 25 1000
ZPP1 charge 6.36 2.96 (note the distribution **)
ZL1 3 3
ZR1 % 1.000% 10
ZR2 0.01 0.6
Suggested price = 25.41 1016.56
ZCUST 25.34 1013.60 (should be 1013.60 + 2.96)
Total price 25.34 1013.60
You can see the ZCUST is calculated incorrectly. The routine calculate zcust as $1170 and $1013.60 for each item which did not include the distribution amount of ZPP1 ($3.40 and $2.96).
When i debug the routine, the xkomv-kwert is zero. I am trying to get $3.40 and $2.96 so i can add to to zcust in the routine.
Am trying to determine in saplv61A at which include that i can see #3.40 and $2.96 for both line items in xkomv-kwert.
Then maybe i can modify the routine or saplv61A so it shows the correct zcust price after entering the 2 line items in the sales order create (VA01) ? Can you pls suggest ?
If i make the changes in USEREXIT_SAVE_DOCUMENT_PREPARE, then user cannot see the correct zcust until the order is saved. This would be too late to know the zcust price ahead of time.
Pls view in the Edit mode... i see my texts have been compressed.
Many thanks
Joyce
Edited by: Joyce Chan on Jul 9, 2009 10:24 PM
Edited by: Joyce Chan on Jul 9, 2009 10:25 PM -
Fm to change the condition value in sales order pricing
Hi Friends,
I need a FM to change the Pricing value that is auto calculated in the sales order. It needs to be overwritten. BAPI_SALESORDER_CHANGE I don't think will do it. It can be used only to update the condition type and the condition amount but not the condition value.
Can someone please help me. I've been stuck with this for quite sometime.
Thanks,
Dikshitha GTry these BAPI's
BAPI_LISTING_CONDITIONS,
BAPI_AGREEMENTS
Regards,
Rajasekhar Reddy. -
Pricing procedure change the condition value
Hi,
My pricing procedure determines the Tax in %basis.Now i have a rewuirement wherein i should be able to enter the amount in AMOUNT COLOUMN in condition tab. This value should be the condition Value for the condition type.
Now my pricing procedure doesnt allow me to make any changes and the condition type is greyed out. how can i calulate the tax in amount instead of % and be able to enter the value manually?
Thanks,
ChallaHi Challa,
Price can be maintained either on percentage basis or on amount basis.
So you have to make changes in condition type to convert it from percentage to amount.
Go to IMG u2013 sales and distribution u2013 master data u2013 basic function u2013 pricing u2013 pricing control u2013 define condition type.
Select maintain condition type from the options.
Now select your condition type and click on detail.
Change the calculation type from A (percentage) to B (Fixed amount) and save it.
Now go to VK11 and maintain the new condition record for that condition type.
Now create the sales order and go to condition tab and check out the pricing it will be amount.
Please do this method if you find any difficulty then tell us.
Regards
Raj. -
How to extract values from pricing procedure for conditions in CRM Billing?
I have a number of conditions in the pricing procedure in CRM Billing that I would like to extract to SAP BW. How can this be done?
Is there a standard extractor for CRM Billing similar to the SD Billing extractor "Extraction of SD Billing Conditions" (2LIS_13_VDKON)?
If there is no standard extractor, is there another way to extract the conditions and the related values?
I am using the standard CRM Billing Extractor 0BEA_CRMB already, so maybe an append could solve my problem. How can this be done? In what CRM-tables can I find the values from pricing procedure for conditions in CRM Billing?you may want to post that last question in a CRM forum... in ECC it would be table KONV
-
ABAP code in to JAVA for overwritting condition value for IPC pricing
Dear experts i am an IPC JAVA developer and i am trying to translate an ABAP Routine in to JAVA code for overwriting condition value in the pricing user exit of IPC
Here is the ABAPcode segment i am trying to transulate
DATA: l_kdkg1 LIKE komk-kdkg1,
l_work TYPE f,
l_umren LIKE marm-umren,
l_umrez LIKE marm-umrez.
SELECT SINGLE peinh FROM mbew INTO mbew-peinh
WHERE matnr = komp-matnr
AND bwkey = komp-werks.
I need some help in the following things
1. I don't know how to transulate the following Line of ABAP code into JAVA
" AND bwkey = komp-werks."
Bwkey stands for plant details. I don't know how to get plant details from Pricing Item.
2. Someone please tell me weather the following JAVA transulation is correct
Vector x = prItem.getUserExitConditions();
db database = pricingEngine.getDatabase();
// set table name
String tableStart = "mbew";
// set query parameters
sys_query_pair[] queryPair = null;
//matnr = komp-matnr . Getting the material Number
String materialNo= prItem.getProduct().toString();
//bwkey = komp-werks.Getting plant.
// TODO: werks stands for plant. Not sure how to get it from prItem
String plant = "";
queryPair = new sys_query_pair[2];
queryPair[0] = new sys_query_pair("matnr", materialNo);
queryPair[1] = new sys_query_pair("bwkey", plant);
// set query columns
String ZZFIELDStart = "peinh";
String ZZFIELD_VALUEStart;
String[] projectionStart;
projectionStart = new String[];
BigDecimal pricingUnit = null;
try{
// execute query
res resultSetStart = database.db_read_table(tableStart, queryPair,projectionStart) ;
if (!res.db_empty_results_p(resultSetStart))
ZZFIELD_VALUEStart = resultSetStart.db_get_row_element_string(0);
pricingUnit = new BigDecimal(ZZFIELD_VALUEStart);
resultSetStart.db_finish();
else
System.out.println("Coudn't find a value of field peinh in table mbew!");
catch (exc_database_error e)
e.printStackTrace();Please login to the server where IPC is installed. In the IPC folder u find libs folder or search for docs in IPC folder. There it is dealt how ABAP routines are mapped to user exits in java coding
Thanks
Surya -
Crm_order_maintain ,changing pricing condition value at item level
Hi,
I am trying to change the pricing condition value at item level while creating sales order through CRM_ORDER_MAINTAIN.
I am not able to change the condition value.
Code is below.
wa_inputfields-ref_guid = wa_orderi-guid.
wa_inputfields-ref_kind = 'B'.
wa_inputfields-objectname = 'PRIDOC'.
wa_fieldname-fieldname = 'KBETR'.
append wa_fieldname to wa_inputfields-FIELD_NAMES.
wa_fieldname-fieldname = 'KMEIN'.
append wa_fieldname to wa_inputfields-FIELD_NAMES.
wa_fieldname-fieldname = 'KPEIN'.
append wa_fieldname to wa_inputfields-FIELD_NAMES.
wa_fieldname-fieldname = 'KSCHL'.
append wa_fieldname to wa_inputfields-FIELD_NAMES.
wa_fieldname-fieldname = 'WAERS'.
append wa_fieldname to wa_inputfields-FIELD_NAMES.
INSERT wa_inputfields INTO TABLE it_inputfields.
wa_pricing_add-KSCHL = 'ZP06'.
wa_pricing_add-WAERS = 'USD'.
wa_pricing_add-KBETR = '10'.
wa_pricing_add-KPEIN = '1'.
wa_pricing_add-KMEIN = 'ST'.
INSERT wa_pricing_add INTO table it_pricing_add .
wa_pricing-REF_GUID = wa_orderi-guid.
wa_pricing-REF_KIND = 'B'.
wa_pricing-PRICING_TYPE = 'A'.
wa_pricing-COND_ADD = it_pricing_add.
wa_pricing-PRICING_PROCEDURE = 'ZVDSP'.
append wa_pricing to it_pricing.
Can you tell me how to overwrite the condition value while creating sales order using crm_order_maintain.?
Regards,
Indhra.EHello Indhra,
Check the CT_INPUT_FIELDS table, in the OBJECTNAME field you will find all the tables that are filled during the function call. Check those tables mentioned in the OBJECTNAME to look for any pricing related data.
When your order is in change mode and you activate debug <b>just before you make the change</b>, the CRM_ORDER_MAINTAIN FM call contains <b>data only relevant for the change you just made</b>. In other words, you need to fill exactly the same tables as CRMD_ORDER does.
E.g. You just change the pricing procedure and you see in debug that 5 tables are filled, you must do exactly the same in your code! It's quite anoying but you're using a low-level API FM that can handle ANY transaction type in CRM!
Check it, it works!!
<b>Reward points if useful!</b>
Regards,
Joost -
Update value of Pricing condition
Hi all,
I am having existing custom program in which sales order get display through ALV. and when user select records through ALV and execute, All pricing conditions of selected sales order gets updated. For this BDC is written( in which Update button is clicked on condition tab at line item in sales order)
My requirement is to add new field for pricing condition on selection screen. and if user puts any pricing condition on the field, only that pricing condition should get updated with new value for selected sales order. It should not update all the pricing condition for the sales order.
Problem: I can not use BDC in this particular case because if i use Update button on condition tab(line item ) in sales order on BDC, it will update all the pricing condition of sale order.
Question: How i will trace new value of any pricing condition. Functional are saying that it is maintained in VK13. If this is a case
then
1)How I will come to know in which config table, Condition record exist i.e New value of pricing .
2)Each pricing Condition will have multiple condition tables ( Lot of combinations) and I will come to know about the tableu2019s only at runtime. For getting the values from table I need the value of there respective key fields.
How I will get the values of all the key fields of the condition tables ?
If there is any better way to get the new reprising value of pricing condition please let me know?
Thanks in advanceHi,
Please check if any other standard pricing types suits your requirement. Assuming that your current pricing type is 'B'-carry out automatic pricing. So, when you update pricing, you can choose the best that suit your case.
[http://help.sap.com/saphelp_46c/helpdata/en/dd/560f03545a11d1a7020000e829fd11/content.htm]
Regards,
P Gomatheeswaran -
Function module to change the value for pricing condition type
Hello experts,
I want to change the value for pricing condition type for an item in the transaction CRMD_ORDER.
I used many function modules but none are working.
Please kindly suggest a function module that will change the value for a condition type .
I have used the following function module but its not working, please correct the coding if anything needs to be changed or added. Please help me .
Thank you.
CLEAR PRCD_COND.
SELECT SINGLE * FROM PRCD_COND WHERE KPOSN = WA_ORDERADM_I-GUID AND
KSCHL = COND_TY.
IF SY-SUBRC = 0.
* MOVE-CORRESPONDING PRCD_COND TO L_COND_CHG.
* CLEAR L_COND_CHG-KBETR.
L_COND_CHG-STUNR = PRCD_COND-STUNR.
L_COND_CHG-KBETR = COND_PRC.
* L_COND_CHG-KSCHL = COND_TY.
INSERT L_COND_CHG INTO TABLE T_COND_CHG.
L_HEAD_GUID = CRMD_ORDERADM_H-GUID.
L_ITEM_GUID = WA_ORDERADM_I-GUID.
INSERT L_HEAD_GUID INTO TABLE HEAD_GUID.
INSERT L_ITEM_GUID INTO TABLE ITEM_GUID.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
IT_HEADER_GUID = HEAD_GUID
IT_ITEM_GUID = ITEM_GUID
IMPORTING
ET_ORDERADM_H = LT_ORDERADM_H
ET_ORDERADM_I = LT_ORDERADM_I
ET_PRIDOC = IT_PRIDOC_RD
ET_DOC_FLOW = T_DOC_FLOW
* CHANGING
* CV_LOG_HANDLE =
* EXCEPTIONS
* DOCUMENT_NOT_FOUND = 1
* ERROR_OCCURRED = 2
* DOCUMENT_LOCKED = 3
* NO_CHANGE_AUTHORITY = 4
* NO_DISPLAY_AUTHORITY = 5
* NO_CHANGE_ALLOWED = 6
* OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRI_COND.
INSERT L_PRI_COND INTO TABLE PRI_COND.
LOOP AT IT_PRIDOC_RD INTO LS_PRIDOC_RD.
MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRIDOC_CHG.
L_PRIDOC_CHG-PRIC_COND = PRI_COND.
L_PRIDOC_CHG-REF_GUID = LS_PRIDOC_RD-GUID.
L_PRIDOC_CHG-COND_CHANGE = T_COND_CHG.
INSERT L_PRIDOC_CHG INTO TABLE PRIDOC_CHG.
ENDLOOP.
LOOP AT LT_ORDERADM_H INTO LS_ORDERADM_H .
MOVE-CORRESPONDING LS_ORDERADM_H TO L_HEADER.
INSERT L_HEADER INTO TABLE HEADER.
ENDLOOP.
LOOP AT LT_ORDERADM_I INTO LS_ORDERADM_I.
MOVE-CORRESPONDING LS_ORDERADM_I TO L_ITEM.
INSERT L_ITEM INTO TABLE ITEM.
ENDLOOP.
L_FIELD-FIELDNAME = 'STUNR'.
INSERT L_FIELD INTO TABLE FIELD.
L_FIELD-FIELDNAME = 'KBETR'.
L_FIELD-CHANGEABLE = 'X'.
INSERT L_FIELD INTO TABLE FIELD.
L_INPUT-FIELD_NAMES = FIELD.
L_INPUT-REF_KIND = 'E'.
L_INPUT-REF_GUID = LS_PRIDOC_RD-GUID.
L_INPUT-OBJECTNAME = 'PRIDOC'.
INSERT L_INPUT INTO TABLE INPUT.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
IT_PRIDOC = PRIDOC_CHG
IMPORTING
ET_EXCEPTION = EXCEPT
CHANGING
CT_INPUT_FIELDS = INPUT.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH EXCEPT.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
IT_OBJECTS_TO_SAVE = HEAD_GUID
* IV_UPDATE_TASK_LOCAL = FALSE
* IV_SAVE_FRAME_LOG = FALSE
* IV_NO_BDOC_SEND = FALSE
* IT_ACTIVE_SWITCH =
IMPORTING
ET_SAVED_OBJECTS = SAVED
ET_EXCEPTION = EXCEPT
ET_OBJECTS_NOT_SAVED = UNSAVED
* CHANGING
* CV_LOG_HANDLE =
* EXCEPTIONS
* DOCUMENT_NOT_SAVED = 1
* OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK AND WAIT.Hi,,
To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to Update with immediate start
Alternatively u can use this function module.
CRM_STATUS_DATA_SAVE_DB
BAPI_CUSTOMERCRM_CHANGE (If u wish to use a bapi for this).
Also , Let me know what error you got when implementing other function module.Does the function module didnt return any error but still the value is not changed for pricing condition type? -
Set currency value of pricing element in condition tab - VA21
Hi GURU,
Would you please help to identify the way to set the following currency values for pricing element in condition tab when creating system quote by va21:
Rate unit (RV61A-KOEIN)
SD document currency (KOMK - WAERK)
Thanks in advanced,
Regards,
ThangSolved
Maybe you are looking for
-
I don't want to sync what is on my iPod to my iPad. (I have a 32gb iPod but only 16gb on iPad. The iPod I use mostly for music.) I can't seem to add the films I have downloaded onto iPad to iTunes. If I could do that, I could erase them from iPad to
-
How do I get my mac to play on apple tv
Can I mirror my iMac computer to me TV with Apple TV?
-
What's the best storage solution for a large iLife? RAID? NAS?
I'm looking for an affordable RAID storage solution for my Time Machine, iTunes Library, iMovie videos, and iPhoto Library. To this point I've been doing a hodgepodge of external hard drives without the saftey of redundancy and I've finaly been bitte
-
have a new HP laptop: HP ENVY 15t-j100 Select Edition CTO Notebook PC (ENERGY STAR) Product Number: E9W31AV Several hours after its first boot the laptop failed to load and I got a message saying it can't load win 8.1 os. (this was two month ago and
-
What "preferred network" do I use
In call settings there is a preferred network setting... Mine came default on "global" mode can I or should I change it to "CDMA" mode? Anyone know of a reason why I shouldn't? I live in Indiana and will not be doing any international traveling.