Planning Function : Calander Day

Hello,
I have created a Planning Function COPY and would like to copy the data from 10.2008 to 10.2009 but I have a Calander Day as one of the Time characterstics . While executing i am getting an error " Inconsistent in the Calday
"   Inconsistent time characteristics: 0CALDAY,10/13/2008 and 0CALMONTH,10.2009"
   Inconsistent time characteristics: 0CALDAY,10/12/2008 and 0CALMONTH,10.2009"
How to copy the data even for the Calday for the same parameters where it has to display 10/12/2009 and 10/132009 instead of 2008. Can any helps me.
Thanks
Edited by: Kapsek27 on Oct 8, 2009 4:59 PM

Hello,
I am writting down the FOX  to convert calday ( in the year to Target year).
I wrote the statements like this.
DATA TCALDAY TYPE 0CALDAY.
DATA CALDAY TYPE 0CALDAY.
DATA CALYEAR TYPE 0CALYEAR.
DATA TCALYEAR TYPE 0CALYEAR.
TCALYEAR = VARV(calyear variable value ).
TCALDAY = VARV(calday variable value).
TCALDAY = CONCAT(TCALYEAR,TCALDAY+4(4)).
I got struck in last statement that is i want to concatenate tcalyear to tcalday how to o this.. can anyone help.
thanks in advance
Edited by: Kapsek27 on Oct 9, 2009 12:22 PM

Similar Messages

  • BI IP - Planning Function Type Formula Error "Characteristic not Supported"

    Hi all,
    I have created a planning function type formula with very simple code. The code was copied from SAP Library and FISCPER was replaced with 0CALDAY. I continue to get an error 'Characteristic 0CALDAY is not supported".
    The characteristic 0CALDAY is in the Infoprovider and the aggregation level. I have tried 'To Characteristic Usage' with both changed and in condition.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA I1 TYPE I.
    DATA I2 TYPE I.
    DATA CALDAY TYPE 0CALDAY.
    FOREACH CALDAY.
    CALCULATE 1ST DAY OF ZCALEND
    D1 = C2DATE( CALDAY, S ).
    CALCULATE LAST DAY OF CALDAY
    D2 = C2DATE( CALDAY, E ).
    CALCULATE THE DIFFERENCE BETWEEN LAST AND 1ST DAY MINUS TWO DAYS
    I2 = 2.
    I1 = D2 - D1 - I2.
        MESSAGE I001(UPF) WITH 'DIFFERENCE' I1.
    ENDFOR.
    Thank you in advance for any help.
    Teri

    Thank you very much for your reply. What would you suggest? I must use 0CALDAY.  As you can tell I am very new to IP, I have tried other options for example:
    DATA ZDAYS TYPE I.
    DATA ZDT TYPE ZCALSTART.
    DATA ZDF TYPE ZCALEND.
    ZDT = ZCALSTART.
    ZDF = ZCALEND.
    ZDAYS = ZDT-ZDF.
    {KF,ZDT,ZDF} = ZDAYS.
    I received an error "ZCALSTART could not be recognized"
    I also tried to call a function. 'FIMA_DAYS_AND_MONTHS_AND_YEARS'.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA DD TYPE I.
    DATA CALS TYPE ZCALSTART.
    DATA CALE TYPE ZCALEND.
    D1 = CALS.
    D2 = CALE.
    CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      EXPORTING
        I_DATE_FROM          = D1
      I_KEY_DAY_FROM       =
        I_DATE_TO            = D2
      I_KEY_DAY_TO         =
      I_FLG_SEPARATE       = ' '
    IMPORTING
       E_DAYS               = DD.
      E_MONTHS             =
      E_YEARS              =
    I received an error "Types of parameter I_DATE_FROM () and variable D1(D) are inconsistent".  From what I could find they should be consistant.  Please provide any suggestions. Thank you!
    Teri
    Edited by: teri chandler on Mar 30, 2010 3:26 PM

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • Planning Function in BW-BPS 3.5

    We are currently using a planning function to distrubute data planned for a year into a monthly plan.  The function is working well, but when we add further data to the manual planning it recalculates the items that have already been processed.  Is there a way to work around this?  Do I need to create a new cube,manual planning and planning function for each year?
    Please help we need to complete this project in 15 days and I need to get this cleared up asap.  Thank you!
    Caroline De Laurell

    Inform me if i am getting it right...
    Step 1 : You are loading data for 2007 for example, do the distributions, everything is ok.
    Step 2 : You are loading data for 2008, do the distributions, the data from 2007 are distributed too.
    If this is the case just create a data slice gor 0fiscyear, to restrict the data to be affected by the planning functions.
    Or is the Step 2 is that you are loading extra data for 2007 ?
    regards

  • Diffrence between working days & calander days

    HI Gurus,
                 What is diffrence between working days and calander days.
    In case of GR processing time in materail master it is working days but in case of planned delivery time it is calander days. Means planned delivery time is not consideruing any holidays, right.....
    Regerds
    ACP

    Hi
    Workings days ; will list the working days without the holidays.but
    calender days ; consider also the leave days also.
    so in GR processing time  is used to the interal acitivities say that after receive the material GR the material need to do the  GR process timing say inspection and documentations , then the material located to the Raw material sto location.
    so the GR processing time  is purelu based on the plant activies. so it consider the Working days only.
    but in  planned delivery time  is given for vendor to delivary the material. so it consider the calender days .

  • Performance of planning function decreases without reason

    Hello exports,
    we have a BW 7 system and run every night a process chain which starts a planning sequence of
    planning functions. Normally the job runs between 1,5 to 3 hours. Since
    3 days we have to terminate the job because it hasn't finished after 8 hours.
    We haven't changed the logic and the amount of data. Do you have any idea
    where the problem is? We think that this is maybe a system or memory problem.
    Thanks.
    Regards,
    Lars.

    Hi,
    each run of the process chain will create new delta records in the InfoCube. So you should compress the cube on a regular basis. Please also update the DB statistics.
    These above points are relevant if you observed a performance decrease for DB access.
    If you always process the same amount of data in the process chain the problem does not come from the ABAP program or the memory consumption (should be the same).
    Regards,
    Gregor

  • Workbook not refresh after running Planning Function (BI-IP)

    Hi! Folks,
         I have a problem with the Bex Analyser which not refresh the data after running Planning Function.
    Step 1: Run Planning Function (There are some changes in records)
    Step 2: I have to Run Process Variables again and input the same selection in the pop-up variables
    Step 3: The changed records will be shown...
    Can I have some coding in the Layouts of Bex Analyzer to refresh the data after running Planning Function?
    Brgds,
    Supasake

    Hi,
    I had a similar problem that the resuls of my planning function were not automatically shown. Only if I did "something else" like saving or running another function the results were displayed.
    I think I solved it by upgrading my SAP GUI6.4 with patch 14. the results of planning functions should be automatically displayed.
    D

  • BI-IP: Change of characteristic value in ABAP EXIT planning function

    Hi
    I have created a planning function of the type EXIT with reference data without blocks. In method IF_RSPLFA_SRVTYPE_IMP_EXEC_REF~EXECUTE I am going to implement my code.
    Now, one of the purposes is to update the VALIDTO of an existing record. Is it possible to modify the characteristic values directly in C_TH_DATA (thus allowing me to just update the date directly on the record) or can I only append records?
    Cheers!
    /Karsten

    Hi Larse,
    Yes you can change directly your value in a record withou appending a new one,but still it will create 2 records in the delta buffer ready to be save to the cube.
    Reagrds,
    Eitan.

  • BI-IP - Bex Analyser - select excel single row and aplly planning function

    Hi experts,
    In BI-IP (BW 7) with Bex Analyser, is it possible to select a single excel row (or a range of rows) and then apply a planning function? I know that in WAD it's possible with the binding option to select a single web item.
    The purpose is to apply a revaluation factor to selected (by the user) cost elements rows in the workbook.
    Thanks and regards,
    MA

    Hi
    It is possibel in WAD to select one or many rows while executing Functions such as--Reposting; Revaluation etc.
    However, you should be in a position to select the rows based on....unique identifier such as Require ID; Request #; Serial #; ....this is more so in case of multiple entries for the same cost element for different combinations.
    Regards
    Srinivas

  • BI IP --- Planning function for File Upload

    Hai All,
    In BI IP , When I am trying to load the data (text file) by using Planning function for File Upload. I am getting an error message When I am clicking on Update .
    Error Message : Inconsistent input parameter (parameter: <unknown>, value <unknown>).
    In Text file I am using Tab Separation for each value
    Anyone help me out.
    Thanks,
    Bhima

    Hi Bhima
    Try one of these; it should work:
    1. If you are on SP 14 you would need to upgrade to SP 15. It would work fine
    2. If not, then -
         a] apply note 1070655 - Termination msg CL_RSPLFR_CONTROLLER =>GET_READ_WRITE_PROVIDS
         b] Apply Correction Instruction 566059 [i.e: in Object - CL_RSPLFR_CONTROLLER GET_READ_WRITE_PROVIDS,
    delete the block: l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = p_infoprov ).
    and insert block - l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = i_infoprov ).
    Goodluck
    Srikanth

  • How to pass multiple values from workbook to planning function ?

    Hi,
    I have created Planning function in Modeler and it has one parameter(Variable represents = Multiple single values).
    When executing the planning function by create planning seq. in the web template : I see value of variable store data like ...
        A.) input one value -> V1
        B.) input three values -> V1;V2;V3
    This function execute completely in web.
    However, I want to use the planning function in workbook(Excel).
    The value of variable can't input V1;V2;V3... I don't know how to pass multiple values from workbook to parameter(Multiple single values type) in planning function ?
    thank you.

    Hi,
    Please see the attached how to document (page no 16).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be">how to</a>
    Hope this was helpful
    thanks

  • Executing the planning function while opening the web interface

    hello all,
    I have created a planning area based on multiprovider.This multiprovider is based on two transactional cube ie,COPA cube and Cost Center cube.
    This planning area is meant for enabling integrated planning.One plans in COPA cube and other plans in Cost Center cube the income statement gets planned based on this two.
    I selected planning items in multiprovider layout to display the income statement.The layout is as follows:
    <b>PlanningItem</b>  <b>Amount</b>
    Net Sales<b>:</b>    9.000,00 INR   (This comes from COPA)
    Sales Overheads<b>:</b> 200,00 INR  (This comes from Cost Center)
    Depreciation<b>:</b> 200,00 INR (This comes from Cost Center)
    Other Expenses<b>:</b> 300,00 INR  (This comes from Cost Center)
    EBIT<b>:</b> 0,00 INR
    Interest Income<b>:</b> 0,00 INR
    Interest Expense<b>:</b> 0,00 INR
    Operating Income<b>:</b> 0,00 INR
    Taxes<b>:</b> 0,00 INR
    Now EBIT planning item is to be calculated from the planning items as follows:
    EBIT = Net Sales-Sales Overheads-Depriciation-Other Expenses
    For this i have created a planning function which calculates EBIT.This function works properly,there are no issues in it.
    My problem is that i want this function to be executed as soon as i open the web interface for my planning application and the result should be as follows:
    <b>PlanningItem</b>  <b>Amount</b>
    Net Sales<b>:</b>    9.000,00 INR   (This comes from COPA)
    Sales Overheads<b>:</b> 200,00 INR  (This comes from Cost Center)
    Depreciation<b>:</b> 200,00 INR (This comes from Cost Center)
    Other Expenses<b>:</b> 300,00 INR  (This comes from Cost Center)
    EBIT<b>:</b> 8.300,00 INR
    Interest Income<b>:</b> 0,00 INR
    Interest Expense<b>:</b> 0,00 INR
    Operating Income<b>:</b> 0,00 INR
    Taxes<b>:</b> 0,00 INR
    Can anybody suggest how to go about this problem?
    Thanks in advance.
    regards,
    Yogesh

    Hi Yogesh,
    as far as i know, there is no standard functionality for that purpose, but there are workaround for it.
    1. Modify the BSP Application.
       Go to SE80 --> Repository Browser --> BSP Application --> your WI name --> page with flow logic --> double click on page1.htm --> Event handler tabstrip --> on the drop down selection press F1 --> add a function module that call you BPS function in specific event (e.g: OnInitialization).
    2. Use WI-Exit Class / WI-Extention (ABAP OO).
    Here you need to create sub class from Class: CL_UPWB_BSP_APPL, and assign the class to your WI. You can then add a function module that call you BPS function in method:
    2.1. Load --> performed only once on intial execution of WI.
    2.2. Initialisation --> called once for each server response.
    2.3. Dispatch --> called at each action and also for each WI component.
    You can see further information in SAP how to paper:
    How to Validate manual input in WEB planning application, New BPS-Features delivered with SAP BW 3.5, etc.
    You can call your BPS function with BPS API FM (See F.Group: UPC_API)
    But there is also more easier way to realize your ebit calculation. If you define your EBIT calc. manually in layout (define with manually defined Lead column). With this way, You will always get your EBIT analog with inputed values.
    Then you add your EBIT calc.function to Layout Component in WI in property: 'Function After Data Change'.
    Best Regards,
    Suan Liono

  • How can I create a Text-Input Field in BexAnalyzer for a Planning Function

    Hello,
    i want to create a pre calculation(contribution accounting) for Materials in BI-Integrated Planning. These Materials aren't in the master data. So I create a new Info Object for pre calculated materials with only a material-number as key and a text-description.
    Now I want to write a Exit-Function, which creates new materials in these Info Object. The user should start this function in a planning application in BexAnalyzer. There the user should have the possibility to enter a text-description for the new material. How can I create such a Text-Field in BexAnalyzer and how can I read this text filed in a planning function (exit).
    Thanks in advance

    Hi Jürgen,
    you can create a parameter for this in the exit function and a variable for the parameter. In BEx Analyzer then create a button for the planning function; in the button parameterization use VAR_NAME = , i.e. use an Excel formula here to get the value from an Excel input field.
    The command range should be some 'hidden area' in your Excel sheet.
    But may be you don't need this. Use a characteristic without master data. Then ensure that that the query uses the option 'key' as display. In new lines you can then enter the key, the system creates a SID on the fly (but the text table will not be updated). In this scenario you may take text also from the key. May be you can update the text table (online or in batch) by simply using function modules from function group RSNDI_MD (not released by SAP).
    But observere that the system in BI Planning reads only the active version, i.e. if you change something on the fly the changes may not be visible.
    Regards,
    Gregor

  • IP-Planning Function Help!! Is this possible?

    Dear Experts,
    I am relatively new to IP and I want to check if this is possible. I would like to copy a Keyfigure value from one Aggregation level to another Aggregation level.
    Here is my scenario.
    I have an Aggregation level 1 where it has characteristics Product Group, Year, Version and Percentage. So the planner would plan as
    Product Grp-Year-Version---Percentage
    GROUP1-2010-100---10%
    GROUP2-2010-100---20%
    GROUP3-2010-100---15%
    Now I have another Aggregation level 2 where it has characteristics Product Group, Product, Year, Version and Cost. I  would want the Percentage value which was planned in Agg. level 1 to be copied to all the products in that group. My Planning book would look like
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-PRD1-2010-100-10%-$100-$110
    GROUP1-PRD2-2010-100-10%-$200-$220
    GROUP1-PRD3-2010-100-10%-$300-$330
    GROUP2-PRD4-2010-100-20%-$1000-$1200
    GROUP2-PRD5-2010-100-20%-$2000-$2400
    GROUP2-PRD6-2010-100-20%-$3000-$3600
    GROUP3-PRD7-2010-100-15%-$1000-$1150
    GROUP3-PRD8-2010-100-15%-$2000-$2300
    GROUP3-PRD9-2010-100-15%-$3000-$3450
    Currently The above products already exist in the cube but the Percentage value for them is blank. When the user saves the first planning book I would want the Planning function to be executed and change the percentage value of each product based on the Prodcut group it belongs to. Also I want the Plan cost to be calculated with the percentage value and the standard cost.
    Now when the Planned opens the second planning book he can see the Plan cost already calculated based on the percentage value. However, I will provide an option to the user to change the Plan cost if needed.
    Important thing for me to know how I can  take the percentage value from first few records and change the value of percentage in the second set of records for each product based on its product group.
    Hope my explanation is clear and it is possible to do it.
    Thanks for your inputs.
    KK

    Hey Andrey, I have tried in several different way but was not able to achieve this. My Stupidity!! I am new to IP and this is the first time I am using  Fox formulae  and this is driving me crazy. I think its just a basic understanding issue.
    I just want  to reiterate whay I exactly wanted. Could you please help me with the code.
    Here is the current data in the planning  cube. The first 3 rows are planned from a planning book. The rest of the rows are loaded from a flat file. When the planning function is executed we would want to take the percentage from the Product group and assign it to each product in the rest of the rows there by calculating the Plan cost.
    Current/Before executing Planning Function.
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-#-2010-100-10%-00-00
    GROUP2-#-2010-100-20%-00-00
    GROUP3-#-2010-100-15%-00-00
    GROUP1-PRD1-2010-100-00-$100-00
    GROUP1-PRD2-2010-100-00-$200-00
    GROUP1-PRD3-2010-100-00-$300-00
    GROUP2-PRD4-2010-100-00-$1000-00
    GROUP2-PRD5-2010-100-00-$2000-00
    GROUP2-PRD6-2010-100-00-$3000-00
    GROUP3-PRD7-2010-100-00-$1000-00
    GROUP3-PRD8-2010-100-00-$2000-00
    GROUP3-PRD9-2010-100-00-$3000-00
    After executing Planning Function
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-#-2010-100-10%-00-00
    GROUP2-#-2010-100-20%-00-00
    GROUP3-#-2010-100-15%-00-00
    GROUP1-PRD1-2010-100-10%-$100-$110
    GROUP1-PRD2-2010-100-10%-$200-$220
    GROUP1-PRD3-2010-100-10%-$300-$330
    GROUP2-PRD4-2010-100-20%-$1000-$1200
    GROUP2-PRD5-2010-100-20%-$2000-$2400
    GROUP2-PRD6-2010-100-20%-$3000-$3600
    GROUP3-PRD7-2010-100-15%-$1000-$1150
    GROUP3-PRD8-2010-100-15%-$2000-$2300
    GROUP3-PRD9-2010-100-15%-$3000-$3450
    This is what I would expect after executing the planning function. Could you please help me with the code. What needs to be selected as the Characteristics to be changed and the Key figure and if I have to select any characteristics for conditions.
    Thanks in advance for your help!!
    KK

  • How can I get/set the vaule of a varibale in the planning function

    Hi All,
    in the fox I can get the value of a variable using VAR(), but How can I get/set it in a normal planning function?
    any proposal would be very appreciated.

    Hi,
    Call following functions 
    1. To get the current value of a planning variable call funtion
    API_SEMBPS_VARIABLE_GETDETAIL by passing Area and variable name
    2. To set the value of a variable call function
    API_SEMBPS_VARIABLE_SET  and pass planning area name and variable name.
    Award the points if thsi solves your purpose.
    Regards,
    Deepti

Maybe you are looking for