Referencing annual prices for monthly units * price calculations

Hello,
We have a PLANNING application that has the following dimensions.
Z_Account,Z_Time,Z_Company,Z_Version,Z_Driver,Z_DataSrc,Z_Driver,Z_Produ
ct,Z_Customer. We have plan sales quantities by product and customer for
every month in the year against an account called 'SalesUnits'
(combination is Z_Account = SalesUnits, Z_Time = 2009.JAN to 2009.DEC,
Z_Driver = None,Z_Customers = various customers, Z_Product = various
products, Z_Version = Forecast, Z_DataSrc = Manual, Z_Company = various
companies). However, sales prices are planned for and entered on an
annual level.
For this we store the sales prices for the combination
Z_Account = "DriverAccount", Z_Time = 2009.INP, Z_Driver= "SalesPrice",
Z_Customer = NoCustomer, Z_Product= various products,Z_Company = various
companies,Z_Version = Forecast, Z_DataSrc= Manual. The requirement is to
write script logic that multiplies sales quantities of each
product/customer/ month by the price of the product/year and write the
values to another account (SalesRevenue) for each product/customer/month
combination.
How would one go about writing the script logic for above?
We tried the following ways. However, we get errors either during
validation or during execution of the script.
Try 1: In this case we created a property called 'Input_Year' in the
time dimension and stored the value 2009.INP as property for all the
months 2009.JAN to 2009.DEC
*XDIM_MEMBERSET Z_Account = SalesUnits,DriverAccount,SalesRevenue
*XDIM_MEMBERSET Z_Product = AllProducts
*XDIM_MEMBERSET Z_Customer = AllCustomers
*XDIM_MEMBERSET Z_DataSrc = Manual
*XDIM_MEMBERSET Z_Drivers =ALL_ACT
*XDIM_MEMBERSET Z_RptCurrency = LC
*XDIM_MEMBERSET MEASURES = PERIODIC
*function PRO(%DIMENSIONNAME%,%PROPERTYNAME%)
%DIMENSIONNAME%.Properties("%PROPERTYNAME%")
*endfunction
#INPUTYEAR=PRO(Z_Time,INPUT_YEAR)
*WHEN Z_ACCOUNT
*IS "SalesUnits"
*REC(Expression = %Value% *
([Z_Account].[DriverAccount],[Z_Drivers].[SalesPrice],[Z_Time].[#INPUTYE
AR],[Z_Customer].[NoCustomer]),Z_Account = "SalesRevenue")
*ENDWHEN
*COMMIT
The above code could not be validated. Is there any way to include a
variable as dimension member in a tuple in a REC statement? NB: The code
works if we hard code [Z_Time].[2009.INP] in the tuple. However, we want
to avoid hard coding of years, months and dimension items that would
change frequently.
-->continued in reply due to characters limit

Hi Halomoan,
Thanks for pointing me in the right direction. I had to tweak the code to get the quantity * price to come out with the right numbers.
One issue still remains in that I cannot get the input year populated as a variable. The following code works if the year 2009.INP is hardcoded in the statement
*DIM Z_TIME                WHAT=2009.INP; WHERE=>>>; USING=BAS(%Z_TIME_SET%);
, but does not work if I use a *SELECT statement to populate the variable %INPUT_YEAR%.
I used the script logic tester in the BI system to test the following logic and specified 2009.TOTAL for Z_TIME and 1000 for Z_COMPANY.
*SELECT(%INPUT_YEAR%, INPUT_PERIOD, Z_TIME, [ID] =%Z_TIME_SET%)
*XDIM_ADDMEMBERSET Z_Time=%INPUT_YEAR%
*RUNALLOCATION
*FACTOR=USING
*DIM Z_ACCOUNT     WHAT=DriverAccount ; WHERE=SalesRevenue; USING=SalesUnits;
*DIM Z_DRIVERS        WHAT=SalesPrice; WHERE=>>>; USING=NONE;
*DIM Z_CUSTOMER  WHAT=NoCustomer; WHERE=>>>; USING=BAS(AllCustomers);
*DIM Z_PRODUCT    WHAT=BAS(AllProducts); WHERE=<<<; USING=<<<;
*DIM Z_VERSION    WHAT=ACTUAL; WHERE=<<<; USING=<<<;
*DIM Z_DATASRC    WHAT=HISTORY; WHERE =<<<; USING=<<<;
*DIM Z_COMPANY    WHAT=%Z_COMPANY_SET%; WHERE =<<<; USING=<<<;
*DIM Z_PLANT          WHAT=NoPlant; WHERE=<<<; USING=<<<;
*DIM Z_PRODUCTGROUP          WHAT=NoProductGroup; WHERE=<<<; USING=<<<;
*DIM Z_CHANNELPARTNER          WHAT=NoChannel; WHERE=<<<; USING=<<<;
*DIM Z_TIME                WHAT=%INPUT_YEAR%; WHERE=>>>; USING=BAS(%Z_TIME_SET%);
*ENDALLOCATION
Any idea on how to get a variable populated from the property value of a member as defined by a %{Dimension member
}_SET%?

Similar Messages

  • How to maintain price  for 100 units

    Dear all i have question  , i want to give  pricing for  conditin records in vk 11 for condition type for PR00   and the price should be calculated like for 100 units
    eg:  Material " X"     Price  is 700   for 100 units
    how should i have to go and maintain in the condition records for 100 units  should i have to maintain scales ? if yes how should i have to go and maintain in scales ?
    Please guide me
    thanks

    Hi Kumi,
    I agree with the above solution but if there is some restriction in the business like if the customer buy 1 to 99 units then the price will be 8 per unit.
    If customer buy 100 units then the price will be 7 per unit (7*100=700).
    Then you can use scale in the situation.
    Hope it helps,
    Regards,
    MT
    Edited by: M T on Mar 21, 2010 11:58 AM

  • Function Module or BAPI for Sales price calculation and Pricing worklist

    Hi Retail experts,
    We frequently change purchase conditions, but not that frequently for cases like perishables, so sales price calculations needs to be done each time. This means pricing worklist generation and release is done often and then sales price recalculation is done each time article wise and for various organization level.
    We have 15000 articles for which purcahse conditions changes, it is impossible to generate and release pricing worklist and do sales price calculation for each article
    So solution may be to find a FM/BAPI for the following transactions and automate them.
    Do you know FM/BAPI for VKP5/VKBP or VKP6, WVN0, WVN1 transactions.
    Regards
    Bob

    HI Madhu,
             Thanks for the reply,
    I am looking for BAPI or FM which will check all pricing condition types( like MRP of the Material(table A304), discounts(A800,A802,A803,A804) for that customer and Tax) and give me the value(KONP-KBETR).
    I can only pass Customer, material, quantity etc.. so that BAPI or FM has do all standred checks/ validation and give the
    KONP-KBETR for all condition types like MRP, discounts, Tax. we are developing the custom program for sales order creation so we require the all this before saving the sales order.
    Regards,
    Nagesh
    Edited by: nageshdb4u on Mar 5, 2011 12:05 PM

  • Authorization control for actual price calculation

    Dear all,
    I found that there is no authorization control for actual price calculation(KSII), this means user can calculate actual price for all cost centers, even this cost center belongs to other company. Is there a way to control this?
    Thanks,
    Ben

    Hi Ben,
    By SAP standard we do not have the control.  we also have the same situation.  We are venturing in to Realisation phase and we decided to have some kind of program (development) to control this.
    Please let me know if you find some better solution
    Best Regards
    Surya

  • How to change price total for "Change Unit Cost Estimate Screen" for KKE1 Tcode ?

    There is a requirement of bringing the Material Price in KKE1 while entering the Item Catogory M ( M for Material) from the Gross Price in the condition type (P001) that is entered in the Purchase order.Currently systems brings the material value from MAP(Moving average Price) in the Material Master data.
    I have looked into the user exit 1) EXIT_SAPLKKEC_001 2) EXIT_SAPLKKEC_002  available in this T code KKE1.When I put break-point in these user-exit,it is not going in debugging mode while fetching the price value in Price total column  for "Change Unit Cost Estimate" screen in KKE1.
    How will change pricing condition for material in KKE1?
    I want to change price condition for material  as marked in red as shown in the screen-shot.
      Where will write the code such that I will bring Price Total based on material number as shown in the image?

    Hi Ram,
    I think you can do the same in thei manner.
    Go to program SAPMV45A.
    use menu GOTO -
    > Text Elements----
    >Text Symbols
    Here make change of Text-002 Sold-To Party as saleable .
    Regards,
    Pravin

  • Actual activity price calculation for production order

    Hi
    Can any one guide me in how many ways we can assign actual activity price calculation for production order?
    I knew only one way by assigning PPP2 costing variant?
    I have another doubt is: if we don't mention any material valuation indicator (moving average, standard) in valuation variant, how system will calculate material prices? is there any other way, to recognize the prices by system?
    regards,
    Ramesh B

    Dear,
    Costing variant PPP2 is linked to some valuation variant inn OPL1
    System will check the valuation of material and activity according to this valuation variant
    For material valuation there are many stg acceding to which system will take the price the raw material,
    Valuation strategy for material component
    Strategy sequence that determines the valuation of the materials used in the cost estimate.
    Use
    The materials are valuated using the price in the material master record or the values calculated in a material cost estimate.
    Procedure
    You can enter a single strategy, or you can enter multiple strategies in the form of a strategy sequence. If you enter multiple strategies, the priority of the strategy determines what price or what values are selected.
    Examples
    Assume that the following strategy sequence is entered for material valuation:
    1. Planned price 1
    2. Standard price
    3. Moving average price
    If the system finds a value in the Planned price 1 field (costing view), this value is taken as the value for valuating the material.
    If the system does not find a value, the value in the Standard price field (accounting view) is used.
    If the material does not have a standard price, the system uses the value from the Moving average price field.
    if you have not mentioned, then system will give error that "valuation stg not found"
    Valuation strategy for internal activities and processes-
    Strategy sequence that determines how internal activities and processes are valuated in costing.
    Use
    The activities and business processes used are valuated with the prices from Cost Center Accounting or Activity-Based Costing to determine the production costs or process costs. The prices can either be calculated iteratively through price calculation, or entered manually by the user.
    Procedure
    You can enter either a single strategy or more than one strategy in the form of a strategy sequence. If you enter more than one strategy, the priority of the strategy determines which price is selected.
    Examples
    The following strategy sequence is entered:
    1. Actual price of the previous period
    2. Plan price of the previous period
    3. The most current plan price
    If the system finds a price for the activity type, this price is used for valuating the internal activities. If no price was calculated for the previous period, the plan price from the previous period is used to valuate the activity type.
    If the system cannot find a plan price for the previous period, it looks for a future plan price, using the next price in the posting period to valuate the internal activities. For example, if plan prices have been entered for periods 2 and 3, and a plan price is calculated in period 1 for period 4, the system uses the price from period 3 in accordance with the valuation strategy Most up-to-date plan price.
    Again if you have not mentioned, then system will give error that "valuation stg not found".
    You can use any costing variant for actual (PPP2)and planned(PPP1) according to your requirement.. check in OPL1

  • Payed for light room annual price, keep asking about the serial no.

    payed for light room annual price, keep asking about the serial no?

    Uninstall the "stand-alone" version of Lr, install the CC version via the CC Desktop app.

  • Actual Activity Price Calculation

    Dear Gurus,
    1. I have defined activity type say "Power" through KL01
    2. Maintained the planned price through KP26 for the cost center which is going to use this activity type. say 
        cost center is "CCTR1"
    3. Now there is something as actual activity price calculation at period end
    4. When i execute through KSII i get the actual price which is the debited cost elements of the "CCTR1"
        divided by the Activity Type "Power"
    5. The debit balance of cost elements in "CCTR1"  is Rs 10000 and activity type consumed through process  
        order is 200 KWH, hence the Actual price comes to Rs 50 Rs/KWH. While the planned price in KP26 is
        Rs 6/KWH
    How logical is this....
    With Regards,
    Amit

    Hi Amit,
    Let me give some insight into the Activity price calculation and cost obsorption from Cost Center to Prodcution
    1. Normally we incur the production cost through FI like Direct Labor, Power, Indirect Labour and other indirectct production overheads
    2. This cost is posted to Production Cost Centers
    3. Now this cost need to be obsorbed to product cost using either Activity costing through Routing or Overhead costing using costing sheet.
    Since you question is for Activity costing, let us focus only on activity price and absorption to Product Cost
    1. All the direct cost that can be tracked with certain reasonability with activity types can be absorbed through activity costing to product costing
    2. Now in your case, take for example - the industry you are working is power intensive, then we can track the consumption of Power using activity costing
    3. At the first instance, you need to forcast the activity quantities for the month (based on the production planning)
    4. Based on this, you forecast the cost that would be incurred for the expected output
    5. Calculate planned Acvitiy Unit price and update it in KP26. The updation can be manual or automatic (using Cost Splitting and Price Calculation in case of Activity independant cost planning)
    6. For all the activity confirations to the production/process order, the cost obsorption will take place based on the planned price
    Actual
    7. The cost of the power will be booked in FI and posted to Production Cost Center for the month.
    8. The actual Activity quantity will be booked from Production confirmation for the month
    9. At the end of the month, you need to do the actual price calculation.  This calculation will be based on the TOTAL COST BOOKED FOR THE MONTH TOWARDS POWER FOR THAT COST CENTER DEVIDED BY TOTAL QUANTITY CONSUMPTION RECORDED IN THE COST CENTER
    10. Once this is done, You can revaluate the activity quanitities booked on each of the production order.
    This is how the activity cost aborption will take place in product costing
    Please let me know if you need further details in this regard
    Surya

  • Open PO LSMW Quantity conversion error in net price calculation

    Hi gurus,
    I encountered an error as I was tring to upload purchase orders - "Quantity conversion error in net price calculation". What does this mean and how do I fix this?
    Please help
    Thanks

    Hi Jürgen,
    Where in the Material Master can I find the conversion ratio between both units?
    Also, I am trying to upload POs for Spare Parts and that's when I get the error. But when I try to use other materials like FGs, everything is ok. I can proceed with the upload without any problem
    Please help

  • ME21N--Quantity conversion error in net price calculation

    Hi MM experts,
    Issue: while creating PO, when attempting to add the net price for line item. but system removes the cost and gives the follow error message says "Quantity conversion error in net price calculation".
    The system was not able to convert the order unit into the purchase order price unit. Possible reasons:
    i) the conversion results in a net price that is too high, or
    ii) the conversion factor for the units has not been properly maintained.
    iii) Check whether the units of measure and their conversion factor are correct.
    I have checked material master>unit of measure> 1 PL = 22 KG maintained.
    Can you please tell me how to resolve this issue?
    Appreciated early response.
    Thanks in advance.
    Suresh

    Hi Suresh,
    Please check on Material Master Data - Accounting 1 tab - Price Unit
    Moshe

  • Quantity Conversion Error in Net Price Calculation

    We are currently using SRM 5.0 ECS where we created a material PO and had a problem with the product not having the language E maintain in the material master. This caused the PO to have status of "error in process"  Once we fixed this issue and tried to reprocess the PO we're not getting the following error message in the Application Monitor:
    No Instance of Object type PurchaseOrder has been created. External Reference
    Puchase Order still contains faulty Items
    Quantity Conversion Error in Net Price Calculation
    Has anyone seen this or know what we can do to resolve this so that the PO gets replicated in R3?
    Thanks in advance.

    Hi Robert,
    Regarding this backend error E 212 06 Quantity conversion error in net
    price calculation.         
    This error is because in the PO Order price unit is empty. And          
    quantity is null. So, please enter the quantity and order price unit          
    for this PO and order the PO again. Or you can retransfer the      
    PO manually using the FM BBP_PD_PO_TRANSFER_EXEC. (for this fm you need       
    to input the PO header guid, which you will get it from tx.BBP_PD             
    by providing PO number and object type as BUS2201).
    This has worked for other customers.
    Hope this helps,
    Kind Regards,
    Matthew

  • Quantity conversion error in net price calculation in BAPI_PO_CREATE1

    I'm creating PO from BAPI_PO_CREATE1 .here i'm getting follwing error
    quantity conversion error in net price calculation.
    plz guide me to remove it.

    Are you using quantities directly entered by the user while calling the function to do the net price calculation? If that is the case, you should use FM CONVERSION_EXIT_ALPHA_INPUT to convert the quantity from the external format into the internal one!
    Another possibility is that some customizing is missing for converting quantities in different unit of measures (like the quantity in pieces is known, but the pricing calculation is being done on kilos.. but the convertion between these 2 unit of measures is missing).
    Good luck!

  • Error in net price calculation, item 000010 (Please correct)

    Hi
    Can you tell me error and correction for the same ? It occurs during creation of Std.PO. whom RM1000 prcing procedure is assigned.
    Error in net price calculation, item 000010 (Please correct)
         Message no. 06213
    Diagnosis
         Possible causes:
         o   The net price is negative.
             Check the prices and conditions entered.
         o   An error has occurred during currency translation.
             Check whether the foreign currency is defined in the system.
         o   The unit of measure of an item is not allowed.
             Check the units of measure entered.
         o   An internal error has occurred during the price determination
             process.
             A mandatory condition type is not defined in the system. Please
    In the analysis under item details condition tab I got message 301 as Acess 0002 12 is missing.
    Acess seq. 0002 is assigned to condition type PB00.

    I know this thread is very old but I had the same issue and found the solution.
    Enter the SubTotal in the pricing scheme for condition P101 (in my Case 9 - Copy values to KOMP-BRTWR (gross value)).
    Than it works for my case.
    Hope this helps.

  • Actual Price Calculation (KSII)

    hi,
    I am not able to get the actual prices for my production order.
    I maintained certain settings for actual price calculation in OKEQ.
    Does it is mandatory to run the MFN1 (Revaluation of actual prices) before the KSII.
    Srinivas

    Hi Sateesh,
    Please find below the process for calculation of Actual Activity Prices:
    1. Define Splitting structure, rules (method). I am sure you would have done this
    2. Assign the splitting structure to Cost Centers. I hope you would be done this as well
    3. Actual values (Costs and quantitative details) will get collected to cost centers in the following way:
         - Quantities will get collected to Cost Centers once the confirmation of activities are done for the        production order.  Please make sure that "Record Quantity" check box is selected for the relevant secondary cost elements. 
         - Values will get collected from FI to the primary cost elements
    you may check whether the values have been properly collected to the cost center using the cost center reports
    4. Execute cost Split using - KSS2
    5. Then calculate Actual activity unit price - KSII
    6. Once the prices are successfully calculated, you can check the prices in KP26
    7. after this process is completed then you can revaluate you production orders using the actual activity prices
    I hope i made is clear.
    Let me know if you need further details in this regard
    Surya

  • Actual Activity Price calculation; KSII

    Hello,
    I am trying to calculate actual activity price but the system does not calculate the price though I have soecified the appropriate price indicator '5' in the Activity type master record.
    Any help would be appreciated.
    Thanks in advance!

    Something doesn't seem right here. You created an Activity Price and plugged in the Plan Fixed and Variable price for the Activity in KP26.
    So why are you running KSII now? KSII is for Actual Activity Price Calculation, run at month-end after all your POs have been closed and activities booked.
    Can you provide additional info.?
    Cheers.

Maybe you are looking for

  • Styling bullets in text using InDesign's bullets

    Having a problem with aligning bulleted lists that have multiple lines. What I want is the text to align but I also need the bullets to stay within the text. I tried changing "left indent" and "first line indent" but no result (see the attachment). A

  • VGA Silencer AT 3

    I'm dissapointed to say that the $40 VGA Silencer AT 3 does not fit on my MSI RX9800 Pro 128 MB. I had really high hopes of using it. The first thing I noticed when I received the package was the fact that it had a 3 pin connector instead of a two pi

  • ORA-07202 sltln: invalid parameter to sltln.using

    OS:Red Hat Linux 5 DB :11.2.0.2 i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create

  • FRM-41213 Unable to connect to the report server

    I am converting an app from 6i to 9i. There are many reports, and I am trying, rather unsuccessfully, to get them to work. I have run the report server setup, and have the service started on my laptop. I am trying to use the following code to run a r

  • CS 2 - can't uninstall (missing or invalid Personalization Info)

    I cannot uninstall Creative Suite 2 on Windows XP ... from the Control Panel / Add Remove Programs, I get the message: "The Installer could not start because of the following reasons: - missing or invalid Personalization Information - missing Resourc