BPC 7.5 NW - ScripLogic Calculation of sales when the price is in other dim

Hi, i try calculation the Price but Price, Quantity and Discount have different Dimensions.
I try this code buy have error when is executed, not in validate.
//CALCULA LA VENTA X SUCURSAL DESDE ENERO A DICIEMBRE
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET CeBe = %CeBe_SET%, NA
*XDIM_MEMBERSET CUENTA = 411200000, ZACB0001
*SELECT(%MOD%, "[ID]", Modelo,[TIPO]=%Modelo_SET%)
*XDIM_MEMBERSET Modelo = %MOD%
*XDIM_MEMBERSET Moneda_Ppto = USD, NA
*XDIM_MEMBERSET PARAMETRO = ZACB002, NA
*XDIM_MEMBERSET CentroDeCosto = NA
*XDIM_MEMBERSET Sociedad = %Sociedad_SET%
*XDIM_MEMBERSET Sucursales = %Sucursales_SET%
*XDIM_MEMBERSET Tipo_vta = %Tipo_vta_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET TIME = %YEAR%.TOTAL
*XDIM_MEMBERSET MEASURES = "PERIODIC"
[CUENTA].[#411200000] = ([CeBe].[NA], [CUENTA].[NA], [Moneda_Ppto].[NA], [PARAMETRO].[ZACB002] * [CeBe].%CeBe_SET%, [CUENTA].[ZACB0001], [Moneda_Ppto].[USD], [PARAMETRO].[NA]), [CeBe].%CeBe_SET%, [Moneda_Ppto].[USD], [PARAMETRO].[NA]
*COMMIT
I need execute from 2010.ENE to 2010.DEC, Save in Account 411200000, and save in this values the dimension :
[CeBe].%CeBe_SET%, [Moneda_Ppto].[USD], [PARAMETRO].[NA]
P x Q
([CeBe].[NA], [CUENTA].[NA], [Moneda_Ppto].[NA], [PARAMETRO].[ZACB002] * [CeBe].%CeBe_SET%, [CUENTA].[ZACB0001], [Moneda_Ppto].[USD], [PARAMETRO].[NA])
P = [CeBe].[NA], [CUENTA].[NA], [Moneda_Ppto].[NA], [PARAMETRO].[ZACB002]
Q = [CeBe].%CeBe_SET%, [CUENTA].[ZACB0001], [Moneda_Ppto].[USD], [PARAMETRO].[NA]
This is destine the Dimension :
[CeBe].%CeBe_SET%, [Moneda_Ppto].[USD], [PARAMETRO].[NA]
Any idea ?
I can put more details if necessary
Thank you.

Hi, with respect to the first piece of code fails to make it work because I do not see where needed parentheses.
So why am I using the second piece of code.
For second piece of code i use :  UJK_SCRIPT_LOGIC_TESTER and detected problem in : [CeBe].%CeBe_SET%
REGION
Category="VPT",CeBe="CI1CA001",Modelo="Camiones",Moneda_Ppto="USD",PARAMETRO="NA",CentroDeCosto="NA",Sociedad="1000",Sucursales="10",Tipo_vta="ZTV01",RPTCURRENCY="LC",TIME="2010.TOTAL",MEASURE="PERIODIC"
NEW CODE
//CALCULA LA VENTA X SUCURSAL DESDE ENERO A DICIEMBRE
*XDIM_MEMBERSET Category = %Category_SET%
*SELECT(%CEB%, "[ID]",CeBe,[ID]=%CeBe_SET%)
*XDIM_MEMBERSET CeBe = %CEB%
*XDIM_ADDMEMBERSET CeBe = NA
*XDIM_MEMBERSET CUENTA = 411200000, ZACB0001
*SELECT(%MOD%, "[ID]", Modelo,[TIPO]=%Modelo_SET%)
*XDIM_MEMBERSET Modelo = %MOD%
*XDIM_MEMBERSET Moneda_Ppto = USD, NA
*XDIM_MEMBERSET PARAMETRO = ZACB002, NA
*XDIM_MEMBERSET CentroDeCosto = NA
*XDIM_MEMBERSET Sociedad = %Sociedad_SET%
*XDIM_MEMBERSET Sucursales = %Sucursales_SET%
*XDIM_MEMBERSET Tipo_vta = %Tipo_vta_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET TIME = BAS(%YEAR%.TOTAL)
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*WHEN CUENTA
*IS "411200000"
*REC(EXPRESSION=([CeBe].[NA], [CUENTA].[NA], [Moneda_Ppto].[NA], [PARAMETRO].[ZACB002])*([CeBe].[%CEB%], [CUENTA].[ZACB0001], [Moneda_Ppto].[USD], [PARAMETRO].[NA]), [CeBe].[%CEB%], [CUENTA].[411200000],[Moneda_Ppto].[USD], [PARAMETRO].[NA])
*ENDWHEN
*COMMIT
I try use var declared using SELECT for CeBe:
*SELECT(%CEB%, "[ID]",CeBe,[ID]=%CeBe_SET%)
*XDIM_MEMBERSET CeBe = %CEB%
*XDIM_ADDMEMBERSET CeBe = NA
After try use var in code :
[CeBe].%CeBe_SET% : Not Working, Get Error and is empty in VALIDATE AREA
%CeBe_SET% : Not Working, Get Error and is empty in VALIDATE AREA
[CeBe].[%CEB%] : Not Working, Get Error and is empty in VALIDATE AREA
%CEB% : Not Working, Get Error and  is empty in VALIDATE AREA
[CeBe].[%CEB%]  : Not Working, Get Error and is empty in VALIDATE AREA
Error is :
UJK_VALIDATION_EXCEPTION:Set de dimensiones "CEBEDATAVALUE" no asignados a gestor de datos
VALIDATE AREA:
LGX:
*XDIM_MEMBERSET Category =
*XDIM_MEMBERSET CeBe =
*XDIM_ADDMEMBERSET CeBe = NA
*XDIM_MEMBERSET CUENTA = 411200000, ZACB0001
*XDIM_MEMBERSET Modelo = Automoviles,a_mercedez,a_usados,Buses,b_b_mercedez,b_imp_directa,b_mercedez,b_power_system,b_promo_chasis,b_reg_general,b_s_fur,b_s_mini,b_usados,b_v,b_v_mercedez,b_v_min,Camiones,clase_a,clase_amg,clase_b,clase_c,clase_clc,clase_cls,clase_cl_s,clase_e,clase_glk,clase_ml_gl,clase_sl,clase_slk,c_freigthliner,c_mantenimiento,c_mercedez,c_usados,dummy,f_pesados,garantias,m_medianos,m_pesados_a,m_pesados_b,NA,parm01,PGD001,PGD002,PGD003,PGD004,PGD005,PGD006,PGD007,PGD008,PGD009,PGD010,PGD011,PGD012,PGD013,PGD014,PGD015,PGD016,PGD017,PGD018,PGD019,PGD020,PGD021,PGD022,PGD023,post_venta_c,post_venta_p,PS01,PS02,PS03,PS04,publico,PV01,PV02,PV03,PV04,repuestos,servicios,tremac,va_usados,vb_usados,vc_usados,Vehiculos_c,Vehiculos_p,v_interna_taller
*XDIM_MEMBERSET Moneda_Ppto = USD, NA
*XDIM_MEMBERSET PARAMETRO = ZACB002, NA
*XDIM_MEMBERSET CentroDeCosto = NA
*XDIM_MEMBERSET Sociedad =
*XDIM_MEMBERSET Sucursales =
*XDIM_MEMBERSET Tipo_vta =
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET TIME = BAS(%YEAR%.TOTAL)
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*WHEN CUENTA
*IS 411200000
*REC(EXPRESSION=([CeBe].[NA], [CUENTA].[NA], [Moneda_Ppto].[NA], [PARAMETRO].[ZACB002])*([CeBe].[], [CUENTA].[ZACB0001], [Moneda_Ppto].[USD], [PARAMETRO].[NA]), [CeBe].[], [CUENTA].[411200000],[Moneda_Ppto].[USD], [PARAMETRO].[NA])
*ENDWHEN
*COMMIT
LOG:
UJK_VALIDATION_EXCEPTION:Set de dimensiones "CEBEDATAVALUE" no asignados a gestor de datos
Look :
[CeBe].[]
Any alternative for use CeBe value passed from DM Package ?

Similar Messages

  • Will the iPhone 4/4S still be on sale when the iPhone 5 comes out?

    Will the iPhone 4/4S still be on sale when the iPhone 5 comes out?

    I'm moving to Verizon just to get the iPhone 4 at the end of October but not sure if Apple will still be selling them! Please help!

  • Debit and Credit notes not to update COPA cost of sales when doing price ad

    Hi Experts,
    Please help me to fix the below issue.
    When we correct price adjustments on customer accounts we use debit and credit notes to do these price corrections. We first process a ZCR order type with reference to the original invoice to reverse the transaction and then we process a debit meme request ZDR with the correct details to invoice the customer correctly.
    These credit and Debit memo request are purley for pricing problems and do not effect cost of sales. Currently these Debit and credit memos are updating the cost of Sales value field (COS on Market Price - VV013) .
    This creates a problem since the credit and debit memo happen in subsequent months e.g. The credit memo is reversed at the old cost of sales value since SAP keeps a reference to the cost of sales at that time but the debit memo creates the cost sales at the new standard cost which is obviously not the same as the original cost of sales. We therefore sit with differences which will not equal FI since FI cost of sales was updated with the goods issue price in the month that the goods issue happened.
    We therefore need to zerorise the following value fields when doing ZDR dedit memo and billing type ZL2 and ZCR credit memo billing type ZG2.
    Gross Weight in KG VV004
    Invoiced Qty KG net VV002
    Invoiced Qty in L VV001
    Invoiced Qty in L15 VV003
    Invoiced Quantity VV005
    COS on Market Price VV013
    VV001 to VV005 are quantity fields and VV013 is Value field.
    Please help me how to fix the issue.
    Regards,
    Amar.

    Hi,
    Sorry, I probably confused things by mentioning Revenue. Your settings are correct, with Revenue defined as a revenue element (11) rather than a cost element (1).
    With respect to WIP (P&L), I would create it as a cost element, since it represents the absorption of cost centre costs and materials into the production of goods, even though the goods are not yet complete. When the goods are completed they will be credited in CO-OM and debited to stock using a similar entry. The impact of these credits (to WIP or to Stock) is to move costs out of CO-OM into the goods produced (CoGS). In CO-OM, the net result of Costs less credits to WIP/Stock, indicates the efficiency of your cost centres or the accuracy of your standards.
    I would also create the manufacturing variance accounts as Cost Elements and settle them back to your production costs centres (or possibly CO-PA if you used it), since they are also a reflection of the efficiency of your cost centres - i.e. if a Cost Centre manager is not achieving the standards, (s)he should be accountable for the variance, and if you are concerned about reconciling CO-OM and the costs in P&L, you won't reconcile if the variances aren't posted back to CO.
    Regards,
    Marc

  • System not calculating as mentioned in the price differentials multipliers

    Dear Folks,
    We are using contingent worker functionality in R12.1.3.
    1) For example,we have a PO with line type as rated based temporary labour, UOM as "HR" , unit price as 100 and total amount is 100000.
    2) Mentioned multipliers in PO for price differentials as Holiday as 2 and Overtime as 1.5.
    3) In general working hours in a day is 8 hrs.The calendar defined in the system with Mon-Fri as working days.
    4) Timecard entered in OTL with Sunday as '8' hrs, Monday as '10' hrs.
    5) Whereas system need to calculate as for Sunday 8hrs=>8*100*2=1600 and for Monday =>10hrs=(8*100)+2*100*1.5=1100 in total need to show as 2700.
    6) And those time card details interfaced from OTL to purchasing and it shows as received with an amount of 1800 as received in the PO shipments under more tab.
    System does not calculated as per mentioned price differential multipliers.
    Am i missing any setup?
    Any help will be highly appreciated
    Regards,
    Sri.

    Please someone help...I am stuck on this at some place or the other and now finally at this place when I thought that everything is well:(

  • Displaying calculated field only when data exist

    Hello,
    Is there a way to display my calculated value only when the data entry field is being used. For instance, if I have several fields vertically aligned, I don't want to display a bunch of zeros if their data fields are not being used.
    THANK YOU!!!!

    You can check for the rawValue in the Calculate event before any script.
    Event: Calculate
    //FormCalc
       if(Field1.rawValue ne null) then
         // write your script here
       endif
    //JavaScript
    if(this.rawValue != null){
       // write your script here
    Thanks
    Srini

  • Calculation of sales tax for free item

    Dear SAP B1 Experts
    I have query regarding sales tax calculation for free item .
    For EG.  I have two item for sales (A = 1000,  B = 100)   Sales tax is VAT4%
    But when i am doing sales, i am selling B for free of cost with A for Rs 1000/- 
    here my tax calculation is (1000 *4%)  = 1040/-
    but as per the govt sales tax rule, we are liable to pay the tax for free item as well
    So I this case, In SAP B1 how we will calculate the tax 4% for free item  .
    Please help me.
    Thanks

    i have checked, its working okay, but
    in Invoice print out unit price and line total is showing for free item.  How i make the unite price 0 .
    Tax only calculation is based on the Line total and the line total is based on the unit price.
    in that case when i give the invoice to the customer.
    It should show like this
    Item A       100   * 10         1000
      "    B           0   * 1              00
                                             1000
    4% tax                               44
    Doc Total             =           1044
    thanks
    Regards

  • Using a "Posting Key" relevant for the calculation of sales

    Hi All,
    if I make a posting by F-02 using a "Posting Key" relevant for the calculation of sales, I wonder: in which table SAP registers the data of sales?
    Is there the way to modify the relevance for sales of that posting?
    Thanks

    Hi
    As far I know, sales figures are getting updated in the following summary tables:
    KCN1 for Customer related.
    LFC1 For Vendor realted.
    Regards

  • Base price calculation in sales order using Routines.

    Dear all,
    I have a requirement related to usage of routine in pricing procedure. The requirement is as given below.
    A base price for a material is entered in the contract manually using a customized condition record.Later a sales order will be raised with reference to contract. now we need to bring the price entered in the contract to sales order after some calculations done using a customized "Z TABLE"
    We are trying to use routines to trigger to calculate the base price in the sales order.
    Please suggest what type of routine to be used in such cases(ex formula,pricing etc)
    Also please go through the below mentioned example for better understanding.
    Contract price : Quantity 3: base price 10,000 per day Total : 30,000 perday
    ZTABLE : number of days per month will be maintained in the table based on the working days.
    Sale Order : Quantity 1 : Month working days 23 total 2,30,000 (We need to calculate this total and display as base price in sales order)
    Please suggest how to address this using routines.

    Dear Mudigonda,
    As per your scenario you are creating sales order with reference to the contract and here in contract you are maintaining the manual price . that means the same manual price has to copy to sales order level then as per the calculation rule it will multiply with your Z table value .
    For this requirement you can make some changes in copy control from contract to sales order, here at item category level you have to change pricing type to 'B' so that what ever your manual price value will populate to sales order level after that due to calculation rule value will change .
    Regards,,
    C.B Reddy.

  • Tax (VAT) being calculated on sales invoices where products are zero rated?

    Hi
    We are in the process of testing v. 12.1.2 (upgrading from v. 12.0.4).
    We are producing sales invoices of zero rated products. However, tax is being calculated on these products. Have checked the item set up and the item is definately set to UK zero fiscal classification.
    Is there somewhere in customer set up and/or tax administrator I can check to see if any of our set up is incorrect?
    Regards
    Jon

    When I tested this for the Customer I was able to calculate sales tax on an A/R invoice even when the BP was set to Exempt.  I just want to make sure the system is functioning correctly.  If I need to change the BP from Exempt to Tax Liable in order to be able to charge tax in some cases then I will do so. 
    Also, I was told by another SAP consultant the the ONLY thing SAP looks at when deciding to calculate tax was the Ship to address tax code, which does not seem to be the case.
    Don

  • BPC Logic Script: Copy from calculated members (non-base) to base members

    Hi experts,
    I want to copy some values from some calculated members to base members in the same dimension. It appears I have a hard time scoping the calculated members.
    This is my C_ACCOUNT dimension:
    And this is the COPYCALC.LGF script I am running:
    LGX:
    *XDIM_MEMBERSET C_ACCOUNT = 450
    *WHEN C_ACCOUNT
    *IS 450
    *REC( EXPRESSION = %VALUE%, C_ACCOUNT = 50)
    *ENDWHEN
    LOG:
    LOG BEGIN TIME:2014-02-26 17:21:12
    FILE:\ROOT\WEBFOLDERS\STEP_UNIT_TEST \ADMINAPP\BUDGET_CASH\TEST.LGF
    USER:KAROLISB
    APPSET:STEP_UNIT_TEST
    APPLICATION:BUDGET_CASH
    [INFO] GET_DIM_LIST(): I_APPL_ID="BUDGET_CASH", #dimensions=16
    AA_NUMBER,AUDITTRAIL,BUDGET_OBJECT,BUDGET_TYPE,CATEGORY,COFOG,CURRENCY,C_ACCOUNT,C_ACCOUNT_DT,ENTITY,FLOW,GRANTS,MEASURES,TIME,TIME_DT,VERSION
    #dim_memberset=4
    CATEGORY:RES,1 in total.
    CURRENCY:LC,1 in total.
    TIME:2012,1 in total.
    C_ACCOUNT:450,1 in total.
    SCRIPT RUNNING TIME IN TOTAL:1.00 s.
    LOG END TIME:2014-02-26 17:21:12
    My model structure:
    So as you can see I am trying to copy from account 450 (which is non base) to account 50 ( which is base member). Also you can see that in the previous example no record was generated.
    Whereas,  if I replace the account 450 with 4500 I get record generated in order:
    LGX:
    *XDIM_MEMBERSET C_ACCOUNT = 4500
    *WHEN C_ACCOUNT
    *IS 4500
    *REC( EXPRESSION = %VALUE%, C_ACCOUNT = 50)
    *ENDWHEN
    LOG:
    LOG BEGIN TIME:2014-02-26 18:26:26
    FILE:\ROOT\WEBFOLDERS\STEP_UNIT_TEST \ADMINAPP\BUDGET_CASH\TEST.LGF
    USER:KAROLISB
    APPSET:STEP_UNIT_TEST
    APPLICATION:BUDGET_CASH
    [INFO] GET_DIM_LIST(): I_APPL_ID="BUDGET_CASH", #dimensions=16
    AA_NUMBER,AUDITTRAIL,BUDGET_OBJECT,BUDGET_TYPE,CATEGORY,COFOG,CURRENCY,C_ACCOUNT,C_ACCOUNT_DT,ENTITY,FLOW,GRANTS,MEASURES,TIME,TIME_DT,VERSION
    #dim_memberset=4
    CATEGORY:RES,1 in total.
    CURRENCY:LC,1 in total.
    TIME:2012,1 in total.
    C_ACCOUNT:4500,1 in total.
    REC :%VALUE%
    CALCULATION BEGIN:
    QUERY PROCESSING DATA
    QUERY TIME : 0.00 ms. 1  RECORDS QUERIED OUT.
    QUERY REFERENCE DATA
    CALCULATION TIME IN TOTAL :0.00 ms.
    1  RECORDS ARE GENERATED.
    CALCULATION END.
    ENDWHEN ACCUMULATION: 1  RECORDS ARE GENERATED.
    DATA TO WRITE BACK:
    AA_NUMBER AUDITTRAIL BUDGET_OBJECT BUDGET_TYPE CATEGORY COFOG CURRENCY C_ACCOUNT C_ACCOUNT_DT ENTITY FLOW GRANTS TIME TIME_DT VERSION SIGNEDDATA
    AA_NONE LIM NONE 10 RES FA_NONE LC 50 CAD_NONE A00 F99_1 NONE 2012 TD_NONE CURRENT 222.00
    1  RECORDS HAVE BEEN WRITTEN BACK.
    WRITING TIME :1.00  ms
    Why can I not copy value from 450 ? How do I solve this problem ?
    PS: currently I am testing this as a DM package run script but in the future I would like to make it a Default.lgf functionality.
    I am working on:
    BPC 10 SP5 for NW, calculation engine ABAP, BW 7.4

    Sorry to keep you in darkness. My code has developed since I have started this thread:
    *SELECT(%ADMISSIBLE%, "[ID]", C_ACCOUNT, " [THIERARCHY]<>'' AND [ACCTYPE]<>INC ")         // DEFINE THE SET OF REAL(ACTUALY EXISTING), NON-REVENUE AND NOT ANCIENT CASH ACCOUNTS HERE.
    *SELECT(%INADMISSIBLE%, "[ID]", C_ACCOUNT, " [ID] <> %ADMISSIBLE% ")
    *SELECT(%L1%, [ID], C_ACCOUNT, "[ID] = %C_ACCOUNT_SET%")       // DEFINE BASE LEVEL ACCOUNTS
    *SELECT(%L2%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L1% ")       // DEFINE FIRST(COUNTING FROM BASE) LEVEL PARENTS
    *SELECT(%L3%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L2% ")       // DEFINE SECOND(COUNTING FROM BASE) LEVEL PARENTS
    *SELECT(%L4%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L3% ")
    *SELECT(%L5%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L4% ")
    *SELECT(%L6%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L5% ")
    *SELECT(%LALL%, "[ID]", C_ACCOUNT, "[ID] = %L1%,%L2%,%L3%,%L4%,%L5%,%L6%")  //UNION OF ALL LEVELS
    *XDIM_MEMBERSET AUDITTRAIL = INPUT
    *XDIM_MEMBERSET VERSION = CURRENT
    *XDIM_MEMBERSET AA_NUMBER = AA_NONE
    *XDIM_MEMBERSET TIME_DT = TD_NONE
    *XDIM_MEMBERSET C_ACCOUNT_DT = CAD_NONE
    *XDIM_MEMBERSET C_ACCOUNT = %INADMISSIBLE%     //SCOPE LEAVES ALL POTENTIAL DESTINATIONS FOR MEMBERS IN %PARS%
    *FOR %A% = %PARS%    //LOOP OVER ALL ADMISSIBLE PARENTS
    *WHEN C_ACCOUNT
    *IS L_C_%A%
    *REC( EXPRESSION = [C_ACCOUNT].[%A%], C_ACCOUNT = L_C_%A%)         //SUM UP THE VALUES OF LEAVES AND WRITE THE SUM TO DESTINATION ACCOUNT
    *ENDWHEN
    *NEXT
    screen shot of part of member table for C_ACCOUNT:
    continuation in next reply (I have problems with my text editor)

  • Results analysis data is calculated through sales order

    Hi All,
    I m trying to calculate WIP of one process Order through KKAX. But I am getting the below error
    Results analysis data is calculated through sales order 300002423 001000
    Message no. KJ112
    Diagnosis
    The order you selected for WIP calculation or results analysis is assigned to a sales order. A results analysis key was entered for this sales order.
    System Response
    The system determines results analysis data for orders assigned to sales order items through the results analysis for the sales order.
    Procedure
    Carry out results analyis on sales order 300002423 001000.
    This process Order is related to Sales Order and I have checked the Result Analysis key is attached to Sales Order.
    Please help me out in this issue.
    Thanks!
    Regards,
    Vivek

    Hi,
    I was getting the above error because a RA key was selected ar Sales Order, Now what I have done is I have removed the RA Key from Sales Order, there is already a RA key attached to Process Order. Now When i am calculating KKAX (WIP) I am getting below message
    The order is not a WIP element
    Message no. KJ148
    I have done this because my client is not using KKA3(RA fro Sales Order)
    Please help!!!!!!!!!
    Thanks!
    Regards,
    Vivek Srivastava

  • Price calculation at sales order level

    Hello Gurus,
    This is poultry industry scenario: Cutomer is ordering the quantity in numbers  example the :material  is  : Live Birds: 500 EA order quantity  but the  price  should be calculated in KG wise for the birds quantity in the sales order .How this can be done  in price calculation, looking for your inputs
    Thanks in advance
    Regards
    Venkat

    Hi,
    While creating the Material you have the option to enter the sales unit  in the sales oganisation 1 view
    Enter the Sales unit  as KG and maintain the relation from EA to KG ( as 500 EA = 1KG)
    Now maintain the condtion records for the Base price as KG
    Now try to create the sales order with KG, automatically the Price will be calculated Per KG and displayed
    Hope it is clear
    Please check and revert
    regards,
    santosh

  • Weight and volume calculation in sales order

    Hi,
        I have one requirement to populate weight of line item material in the sales order based of plant.
    When the processing of sales order is trigerred the value in the reference characteristic will be available in the User Exit MV45AFZZ through the function CUCB_GET_VCSD_UPDATE.  Passing VBAP-CUOBJ.  If material is batch managed (MARA-XCHPF  = “X”), then use VBAP-CUOBJ_CH.
    1.     Configured Material
    The VC model will populate either a volume field or linear foot field, depending on the type of material, in the SAP communications structure VCSD_UPDATE.  If either field is populated then this user exit will take the value found in VCSD_UPDATE and extend it by the plant specific weight value and the total quantity referenced in the sales document.  This total value is then moved in the weight field in the table VBAP.
    2.     Static Material with plant specific weight
    If both fields in VCSD_UPDATE are not populated then the plant specific weight value is extended by the total quantity referenced in the sales document. This total value is then moved in the weight field in the table VBAP.
    3.     Static Material with static weight
    If both fields in VCSD_UPDATE are not populated and a plant specific weight value not found then the static weight, presumably the weight value in MARA, extended by the total quantity referenced in the sales document. This total value is then moved in the weight field in the table VBAP.  Note: The static weight could be maintained in the plant specific repository in which case this third test is not necessary.  However, this will create a lot of redundant entries in the repository for plant specific weights.
    How to calculate?
    Please explain step by step?What logic i have write?
    Thanks & regards,
    sairam

    Please help me it is very  urgent.
    Thanks & Regards,
    sairam

  • How to keep a calculation field blank until the user enters a number?

    I am building a sales sheet for a school that sells scrip as a fund-raiser. I have the document set so that when the user enters the number of scrip certificates he wants (say, two $25 gift certificates at Lowe's), the program will automatically calculate that this user owes $50 for that scrip category. However, there are more than 100 companies that one can choose from, and if the user doesn't enter a number, the calculated field shows $0. Is there a way that each field can stay blank until the user enters a number bigger than zero? By the way, I'm using this calculation to determine the value (borrowed from a user on this forum): event.value = 50 * this.getField("Lowes").value
    Thanks!

    There are two approaches. You can either add the following Validate script:
    // Custom Validate script for calculated field
    if (+event.value !== 0) event.value = "";
    Or you can change your custom Calculate script and set the Format type of the field to "None":
    // Custom Calculate script
    (function () {
        var v = +getField("Lowes").value;
        event.value = (v !== 0) ? util.printf("$%.2f", v) : "";

  • Condition types doubling/tripling/...when sales documents created with reference to other documents

    Hi,
    When I create a sales order with reference to a Quote, the pricing condition types are duplicating. Same is happening when subsequent documents like Billing, credit memo request and credit memo are created. Particularly, the condition types  are doubled/tripled/.... in the subsequent documents. Because of this, pricing net value is calculated wrong. For example, freight charges getting added twice. I searched the forum and found similar issue was discussed at Condition types - Doubling UP  raised by forum member Sridhar Vijjhalwar, however there is no solution added in it.
    Has any other member came across this issue and resolved?
    I have checked the access sequence and exclusive indicators are checked. Copy controls are also checked, looked good and I tested by adding copying type D/G. Checked OSS note also and found one OSS note 1459807 - Invoice has missing/incorrect conditions when created from a sales order.
    but it is not solving the problem either. Issue also elevated to SAP for their investigation. Our system is SAP ECC 6.0 - EHP6.
    Quote Pricing:
    Sales order Pricing:
    I appreciate any pointers to resolve the issue.
    Regards,

    what was the scenario, and how did you replicate?
    It is a configuration for a new project (France country), however we found that the same issue popping up for existing business processes also. As for replicating, we just tried the same procedures, the issue is found in subsequent documents.
    If you have observed one notable thing is - all the condition types which duplicated were Z Conditions, and the standard conditions were never duplicated at least in my case.
    In our case even standard condition types like MWST, SKTO, GRWR, VPRS also shows duplicating.
    if you can throw about the business process?
    As you have mentioned order created with reference to quote was only the straight forward scenario?
    I tested other scenario also, like creating a sales order, then delivery and then billing. In this case in billing document, the condition types are duplicating. If I create a credit memo request against the billing document, then it further duplicating.
    I am not sure what is causing this. I initially thought it may be copy control settings pertaining to the new project, however other business documents also has the same issue. Other business are using different document types.
    Thanks for your follow-up.
    Regards,

Maybe you are looking for

  • Cant get cd track info. Please Help.

    I'm connected to the internet and everything....I click on get cd track names.... and it says CDDB or whatever doesn't have the album info. For a very popular album.... Flo-Rida's R.O.O.T.S. Please Help.

  • How to Launch Workflow?

    Hi Guys , I have created a custom workflow in workflow builder that will simply sent a message to next user.i call it from standalone workflow it is working well but when i am calling it from oracle form that is registered in applications it is not g

  • Infocubes and Infosources for Budgeting in BPS

    Hi, Please provide me information about which Infocubes and Infosurces are used for Budgeting in BPS. Please send me the any detail documention on Budgeting flow in BPS. It would be great help for me. Will assign the points. thanks sg

  • How do i save a frame to a image file?

    im trying to save a frame from Final Cut Pro 5 to my hard disk to save and edit with an editor such as Photoshop. how do i save it. what menu options do i use?

  • Cannot delete HID subkeys in Windows 7

    I cannot delete HID subkeys in Windows 7 (32-bit & 64-bit). Please see the registry image below. I need to delete subkey VID_04D8&PID_00DE and its subkeys.  I used LabVIEW 8.5 and had turned off User Account Control. Here is my code: The error I got