Worksheet logic

Hi,
Can any one give me an example of worksheet logic? Also, can anyone give me the links which explains the same.
Regards,
Diksha

Hi Diksha,
Any calculation done on the BPC excel can be termed as worksheet logic. For example, fetching data through EVGTS, or doing some mathematical calculations using native excel formulas.
Worksheet logic includes the functions provided by BPC, plus the native functions of Excel itself.
Any functions relative to BPC excel can be found in the below link:
http://help.sap.com/saphelp_bpc75/helpdata/en/5A/69200C88AA40C9B18844A25259F147/frameset.htm
And then go to "functions reference".
Hope this helps.

Similar Messages

  • Input template worksheet logic requirement

    Hello,
    I need to accomplish the following requirement that I need some help with. Lets say the user selects Forecast_Vmay2012, the may 2012 value of a specific account ABC should sum Jan-Apr 2011 XYZ Account values. This needs to be flexible, in other dimension member Forecast_vmay2012 has current month property with value of 5. Just like that, Forecast_Vaug2012 has value of 8 etc. based on this, the worksheet logic needs to sum previous year's initial current month -1(in our initial example current month value is 5, so sum 1st 4). Any idea on how to accomplish it?
    Thanks.

    Hi Zack
    Based on the information provided and from my understanding. If you know that there a static calculations or in your example: Account ABC should SUM XYZ account values then you can use nested IF statements with the AND / OR operators.
    Please find below a link to an example using complex and nested IF statements.
    [http://www.experiglot.com/2006/12/11/how-to-use-nested-if-statements-in-excel-with-and-or-not/]
    Will using script logic not be able to meet your requirements ? or is there a large amount of calculations which need to occur?
    The downside to this approach will unfortunately be that your workbook will be large and depending on the amount of data, potentially slow in performance.
    Hope this helps
    Kind regards
    Daniel

  • Excel (Worksheet logic) to BADI

    Hi Everyone,
    Ive a report where the cells are defined with the "Worksheet Logic". Based on the values determined (through work sheet logic) I have to post those values to another application where I will use the source to destination concept.
    Could anyone help on how to pass the data defined through "Worksheet logic" to the BADI as input???
    Thanks in Advance.
    Gokul.N

    Hi Gokul,
    I did not completely understand your situation. Based on my understanding let me explain what can be done!!!
    1. BAdIs can be triggered only at certain situations... for example a write back BAdI (UJR_WRITE_BACK) can be triggered when inputting manually through input schedule. for this scenario even if you have worksheet logic involved in your input schedule the data will be passed to ct_data ( or ct_array i dont remember), then you can do what ever you wish to do with the data in the BAdI method.
    2. Posting to another application is possible through Destination App implementation which is freely available through a "how to guide". This is a Custome Logic enhancement.
    for your situation you can first determine what ever you want to send and manipulate the data in write back badi and then once data is saved in the source application you can use the destination app BAdI to send it to the target application. You may keep the script logic which triggers destination app in the default logic which is automatically triggered through input schedule send.
    Hope this helps.....
    If you think i have missed some important point here.. just let me know.... happy to help again.
    Cheers!!
    ~~Surya Tamada.

  • Making Worksheet logic work with Dynamically expanding report

    Hello,
    Sorry if its basic, but I am trying to understand how can I make worksheet logic work with dynamically expanding reports? Because if the expansion parameters change, it stops producing correct values for me. Please advise.
    Thanks.

    Hi Zack,
    Now I understood your problem.
    Actually, when the expansion changes, it deletes the columns, and then shifts the subsequent columns with the appropriate expansion. So, if you have the formula somewhere in between, you will lose it. If you put it in the beginning, then it will be copied to all the cells. You need to put it at the end. But, you are saying this is viable for your scenario.
    My suggestion would be you can try to break the single expansion into multiple expansions using the pipe (|) character, and place the formula in one of them.
    Hope this helps.

  • Upload data from multiple worksheets of excel file into SAP by using MIME?

    Hi all,
    I'm trying to getting the data from a multiple worksheet excel file by usin the MIME Repository.
    First of all i realizied it like [here|http://abap-explorer.blogspot.com/2008/12/upload-data-from-multiple-worksheets-of.html] in a normal ABAP Report.
    By trying to transfer the code to a WebDynpro Component, i get problems.
    With this part of code, because ActiveX is not allowed in our Webbrowser. So i have to find another solution to get the data from the excel file.
    CALL METHOD c_oi_container_control_creator=>get_container_control
    IMPORTING
    control = iref_control
    error   = iref_error
    I tried to rebuild this solution in webdynpro. But it dont works.
    So my next step was trying to Read the Excel sheet directly from MIME by getting the Content (XString).
    But there is no useful information Just a mix out of '######' and other symbols.
    By converting it into String the same problem.
    Maybe someone has an idea how to rebuild [this code|http://abap-explorer.blogspot.com/2008/12/upload-data-from-multiple-worksheets-of.html] in Webdynpro that it works correctly.
    Currently Im Using the Fileupload UI Element. All Works fine. I can Upload the Excel file to MIME Repository and i can open it from there.
    But i cant get the same clear informationen from the file, to write it later in a Database, like before without webdynpro.
    i hope someone can help me.
    Edited by: Sascha Baumann on Apr 20, 2009 4:28 PM

    You can't read the native binary Excel Format in server side ABAP.  The functions and classes that did this in Classic Dynpro used OLE Automation via the SAPGUI Control Framework to remotely control Excel to read the data.  Because in the browser you have no connection to the SAPGUI or are sandboxed inside the browser; the same functionality is not possible. 
    I would suggest that you look into saving the Excel file as a open, text format.  You might be able to use XML (although the Excel XML format can be complex) to support multiple sheets. You would have to build the logic yourself (using XSLT or the iXML parser) to process the XML format back into ABAP data.

  • Logical to Physical objects Mapping

    Recently installed OLAPTRAIN's SALESTRACK AW, and noticed that there are many __AW_GENERATED.. object names.
    It is very difficult trying to trace back what these objects refer to, and quite challenging if we are using OLAP DML commands to create custom reports.
    This is the result of the 30 character limit AWM has when concatenating cube and measure names and concatenating dimension and attributes names.
    As an example for the Measure "Cross Over Linear Regression" (Logical Name: SALES_CUBE.CROSS_OVER_LINEAR_REGRESSION)
    "CROSS_OVER_LINEAR_REGRES" is COLUMN_NAME value in SALES_CUBE view and in ALL_CUBE_VIEW_COLUMNS data dictionary view
    "SALES_CUBE_CROSS_OVER_LINEAR_R" is the object name found using AWM OLAP Worksheet
    Now try creating Measure "Cross Over Linear Regression 1" (Logical Name: SALES_CUBE.CROSS_OVER_LINEAR_REGRESSION_1)
    "CROSS_OVER_LINEAR_REGR_1" is COLUMN_NAME value in SALES_CUBE view and in ALL_CUBE_VIEW_COLUMNS data dictionary view
    "__AW_GENERATED_164" is the object name found using AWM OLAP Worksheet
    I think AWM needs to be a little smarter in the way Object names are generated for measures/attributes.
    Possible AWM solution for this would be to restrict the Measure Name to 30 characters that includes the Cube Name length. User can then utilize the Short Label, Long Label and Description fields to enter proper descriptions.

    Although the physical AW object names are not shown in the data dictionary views in 11g, they are available through the Java OLAP API as of release 11.1.0.7.
    For example, many of the physical names of the AW object underlying a logical (i.e. AWM or USER_CUBE_DIMENSIONS) dimension can be found from the class
    oracle.olapi.metadata.deployment.AWPrimaryDimensionOrganization
    E.g.
    The name of the main AW dimension can be found using
    public final String getAWDimensionName()
    The name of the parent relation is
    public final String getParentRelationName()
    The name of the hierarchy dimension is
    public final String getHierarchyListName()
    To navigate from a logical dimension to the organization object you can do the following.
    MdmPrimaryDimension myDim = ...;
    AWPrimaryDimensionOrganization org = (AWPrimaryDimensionOrganization) myDim.getOrganization();
    Other physical object names can be located in other classes in the oracle.olapi.metadata.deployment package. This methods are public and supported, but do not appear in the JavaDoc. I don't know if they will be documented at any stage and I know of no immediate plans to make these objects visible through the data dictionary views.

  • Two Queries in one Worksheet

    Hi,
    I'd like to know what the disadvantages are of having two queries in the same worksheet of a workbook. Is it correct that the results of one query can overflow to the area of the second? How about issues with authorization, are there any?
    Thanks!

    HI,
    Yes, result of one can flow over the other if you are using simple report with characteristics and output may vary.
    Actually you apply basic Excel logic and its like 2 diff report on it.
    Mostly you add more Fixed format reports to a single sheet. So that  number of report rows dont increase and also you dont have any free characteristics to drilldown.
    About authorization, that depends on individual reports. If a user doesnt have proper authorization for 1 of the reports then that report would throw error while other would show result.

  • What is the gray hilight in SQL Worksheet?

    I write various SQL Statements on the worksheet, hilight the portion I want to execute and either run it by hitting F5 ot F9.
    After execution, SQL Developer hilight a portion of text in gray. What is the criteria to hilight something in gray? So far I don't see any logic, sometimes, the gray hilight disappears, sometime it hilight half of a SQL statement, sometimes the hilight is placed on a section of code which has nothing to do with the real section being executed.
    I have trouble understanding the idea behind this gray hilight and I would like to turn it off. Can you please show me how to do this?
    Thanks in advance.

    This is the 'Current SQL' highlight and it should cover the statement you just executed (with f9). With f5 it moves within the script as the execution point moves.
    It always misses out the last line, but I've never seen it covering random parts of a statement.
    I don't think you can get rid of it entirely, but you can make it more transparent by setting its background to white (or whatever your worksheet background is, and the foreground to transparent.
    Go to Tools | Preferences | Code Editor | Syntax Colors and select Current Sql in the Available Styles box and experiment with the colours.

  • Oracle Demand Planning - No data available to view in worksheets sheets.

    Hi,
    We are facing issues with demand planning, the data is not coming into the worksheets,
    Do we have to do certain setups in the worksheets so that the data will appear?
    Here is the demand plan log.
    02/19/2009-16:08:23 -> ODP Version 1.15500
    02/19/2009-16:08:23 -> Begin Downloading Data from Planning Server.
    02/19/2009-16:08:23 -> Cleaning up shared databases and deleting planner databases.
    02/19/2009-16:08:24 -> Connecting to Planning Server.
    02/19/2009-16:08:24 -> Loading specified Demand Plan information.
    WARNING:
    02/19/2009-16:08:25 -> The dimension GEO was added to the plan definition since the last download process. This dimension will be ignored. Continuing with download process...
    Process resuming...
    02/19/2009-16:08:25 -> Loading Hierarchy and Level information.
    02/19/2009-16:08:26 -> Generating DP Hierarchy and Level metadata.
    02/19/2009-16:08:26 -> Processing Attributes.
    02/19/2009-16:08:26 -> Loading Time dimension values.
    02/19/2009-16:08:27 -> Cleaning up DP dimension values.
    02/19/2009-16:08:42 -> Loading dimension values.
    02/19/2009-16:10:09 -> Verify that all dimensions have values.
    02/19/2009-16:10:09 -> Setting backend hierarchy information.
    02/19/2009-16:16:14 -> Loading Input Parameters and Scenarios.
    02/19/2009-16:16:16 -> Loading Item Unit of Measure information.
    02/19/2009-16:17:49 -> Loading events.
    02/19/2009-16:17:51 -> Loading data for specified Input Parameters.
    02/19/2009-16:17:51 -> Loading data for the following Input Parameter: Panasonic Avionics Backlog:End Date.
    02/19/2009-16:54:30 -> Loading Unit of Measure conversion information.
    02/19/2009-16:54:47 -> Calculating conversion coefficients for Product dimension.
    02/19/2009-16:55:00 -> Loading variable Product pricing information.
    02/19/2009-16:55:20 -> Converting for Express Objects.
    02/19/2009-16:55:21 -> Converting to application metadata.
    02/19/2009-16:57:42 -> Synchronizing variable names.
    02/19/2009-16:57:43 -> Creating required worksheet objects.
    02/19/2009-16:57:43 -> Aggregating input parameters needed for allocation.
    02/19/2009-16:59:53 -> Allocating input parameters.
    02/19/2009-16:59:53 -> Aggregating other input parameters.
    02/19/2009-19:38:28 -> Setting DP system flags.
    02/19/2009-19:38:28 -> Disconnecting from Planning Server.
    02/19/2009-19:38:37 -> Completed Downloading Data from Planning Server.
    02/20/2009-14:38:32 -> Begin Populating Measures.
    02/20/2009-14:38:32 -> Confirming database attach logic.
    02/20/2009-14:38:32 -> Calling driver for Measure population.
    02/20/2009-14:38:32 -> Populating Measures according to Measure definitions.
    02/20/2009-14:38:32 -> Performing measure copy for the following measure: Tactical Forecast.
    02/20/2009-14:40:47 -> Completed Populating Measures.
    02/20/2009-15:08:26 -> Begin Distributing Data to Planners.
    02/20/2009-15:11:00 -> Building personal database A1 for assignment Keith Elliott.
    02/20/2009-15:16:43 -> Build of personal database A1 was successful.
    02/20/2009-15:17:35 -> Building personal database A11 for assignment Quincy Perry.
    02/20/2009-15:22:48 -> Build of personal database A11 was successful.
    02/20/2009-15:23:02 -> Creating Submissions Measures.
    02/20/2009-15:23:02 -> Performing measure copy for the following measure: Submissions, ASTRONICS (20-FEB-2009).
    02/20/2009-15:23:07 -> Completed Distributing Data to Planners.
    ***************************************************************

    Hi user602232,
    the batch logfile does not reveal any issues. It would be helpful to get more details:
    1. what kind of data does not appear in the worksheets? Level values etc?
    2. some more details about the demand plan setup and demand plan assignments would help.
    The first things I would check:
    a) was data collection successful
    b) check the demand planner assignments
    regards,
    David.

  • 3.1EA: Spacing broken in SQL Worksheet (worked in 3.0)

    I have version 3.1.05.97 - not sure if that's EA1 or EA2 (why doesn't Help > About contain the text EA1 or EA2?)
    Run this command:
    select * from v$session;
    Then scroll to the right. In 3.1, the spacing for the heading doesn't match the column data. The problem starts in the 2nd column: the heading for SID is only 3 characters wide, but the data is 4 characters wide. Every column gets progressively worse.
    The same command in 3.0.04.34 looks correct, even when scrolling to the last column.

    I have no detailed knowledge of what changed in this area between 3.0 and 3.1, but I would agree it's a bug (Raghu, too?).
    I guess Statement Runner (F9) is doing a better job of sizing the column width in 3.1, so maybe it would be easy for the developer to apply that logic to Script Runner (F5) output as well.
    In terms of SQL*Plus default column width control for numeric data types, it uses:
    set numwidth n
    show numwidthPerhaps that could ultimately be an approach for SQL Developer to take, if and when the Worksheet supports that syntax. You might want to add that as a feature request on the SQL Developer Exchange.
    -Gary

  • VBA halts at first use of Worksheet object.

    I've written VBA to load data from a CSV file, copy it to a sheet, and then copy a portion of it to another sheet. It's used offsite by customers, but not commonly. One customer has reported a problem on two computers. This customer might be the only one
    to have used the VBA since this bug developed. The workbook is copied to the installation directory by Inno Setup.
    The problem is not consistently reproducible, except that once it appears it stays. It's resolved by making a new workbook with the same cell data and VBA. I haven't seen it manifest again after being resolved once.  The VBA encounters an error at the
    first line where the information in the CSV and workbook actually matters. Unfortunately, I didn't make a note of the exact error at the last incident, but I think it was a null reference.
    Without going into great detail, the logic triggering the error resembles this... (I would provide a minimal test case if I had a reproducible bug.)
    Dim data As Worksheet ' CSV
    Dim sheet As Worksheet ' XLSM
    ' halting here
    data.Cells.Copy Destination:=sheet.Cells(1, 1)
    This seems to be a problem with Excel's program state, somehow being written to and loaded from disk.
    Is this familiar to anyone? Is there any likely cause I can investigate? I might not be able to use this information, as I'll be replacing the workbook in the installer.

    It may be the size of the two sheets are the issue. I had something similar with sheets that were created as xls and used as xlsx, and vice-veras (I forget the exact details...)  Anyway, try limiting the copied cells:
    data.Usedrange.Cells.Copy
    Destination:=sheet.Cells(1,
    1)

  • Locking Worksheet

    Hi
    We have requirment to lock the worksheet, and enable input only to selective columns.
    I am using following code to achieve the same.
    Private Sub Worksheet_Change(ByVal Target As Range)
    If (Target = Range("N53")) Then
      If Range("N53").Value = "0" Then
            ActiveSheet.Unprotect
            ActiveSheet.Range("AI54:AI20000").Locked = True
            ActiveSheet.Protect
         Else
            ActiveSheet.Unprotect
            ActiveSheet.Range("AI54:AI20000").Locked = False
            ActiveSheet.Protect
        End If
    Else: End If
        End Sub
    But when I refresh the worksheet or expand, I get a pop up message saying.
    "The cell or chart you are trying to change is protected and there fore read only. To modify...."
    Please help me...how to avoid this message...as if I am encorporating the same functionality in simple sheet..its not giving me this message...In the actual worksheet..there are lot of calculation and also Evsnd is used.
    Also in actual sheet, I have locked all cells except the AI54:AI20000
    Thanks in advance for your inputs.

    If you are using evdre, you can explore using the FORMAT RANGE:
    You'd need to add a hidden column header row and in the header cell for the columns in question, reference your calc cell.  Before you saved the workbook you would just hide this row.  But it would definitely need to be in the Header range for the Columns.
    In the format range, you would need to use something like the following:
    Criteria:   HEADING="whatever the lock value is"
    Evaluate In:  COL
    Format:   Set the cell format protection to be locked
    Use:  LOCK
    Apply to: DATA
    You would need make sure that there was another format row like the following list above the locking format line:
    Criteria:   DEFAULT
    Format:   Set the cell format protection to NOT be locked
    Apply to: DATA
    Then once you set the workbook password in the workbook options, whenever the evdre is re-evaluated, the format range will lock/unlock the column's data cell based on the value in the header row for that column.
    If you are using column expansion, the hidden header row cells may need additional logic to determine if they are using the locking cell value or not.

  • Create new excel worksheet

    Hi all,
    Kinldy let me know how to create a new worksheet if the records exceeds 65536 rows in excel.
    Im using  FM MS_EXCEL_OLE_STANDARD_DAT.
    call function 'MS_EXCEL_OLE_STANDARD_DAT'                   
         exporting                                              
              file_name                 = filepath              
             create_pivot              = 0                      
             data_sheet_name           = 'Material List'        
            pivot_sheet_name          = 'Material List1'      
            PASSWORD                  = ' '                   
            PASSWORD_OPTION           = 0                     
        tables                                                  
            pivot_field_tab           =                       
             data_tab                  = it_bom_final           
             fieldnames                = out                    
    Am i missing any parameters in the FM or need to add additional logic??
    Regards,
    Senthil

    Hi Senthil,
    Refer sample code for generating multiple Workbook. You can write some logic to split.  Hope this helps.
    >
    Multiple excel sheets generation in a workbook
    CREATE OBJECT EXCEL 'EXCEL.SHEET'.
    GET PROPERTY OF EXCEL 'Application' = APPLICATION.
    SET PROPERTY OF APPLICATION 'Visible' = 1.
    CALL METHOD OF APPLICATION 'Workbooks' = BOOKS.
    CALL METHOD OF BOOKS 'Add' = BOOK.
    CALL METHOD OF BOOK 'WORKSHEETS' = SHEET.
    CALL METHOD OF SHEET 'ADD'.
    Fill all the sheets with relavant data
    PERFORM SHEET1 TABLES ITAB1.
    PERFORM SHEET2 TABLES ITAB2.
    PERFORM SHEET3 TABLES ITAB3.
    PERFORM SHEET4 TABLES ITAB4.
    Quit the excel after use
    CALL METHOD OF EXCEL 'QUIT'.
    FREE OBJECT: COLUMN,SHEET,BOOK,BOOKS,APPLICATION,EXCEL. "NO FLUSH.
    CLEAR V_SHEET.
    FORM FILL_CELL USING ROW COL VAL.
    CALL METHOD OF SHEET 'cells' = CELL NO FLUSH
    EXPORTING #1 = ROW #2 = COL.
    SET PROPERTY OF CELL 'value' = VAL.
    FREE OBJECT CELL NO FLUSH.
    ENDFORM. " FILL_CELL
    FORM SHEET1 TABLES ITAB1 STRUCTURE ITAB1.
    V_SHEET = Sheet Name.
    V_NO = V_NO + 1.
    CALL METHOD OF BOOK 'worksheets' = SHEET NO FLUSH EXPORTING #1 = V_NO.
    SET PROPERTY OF SHEET 'Name' = V_SHEET NO FLUSH.
    PERFORM FILL_SHEET1 TABLES ITAB1 USING V_NO V_SHEET.
    CALL METHOD OF SHEET 'Columns' = COLUMN.
    FREE OBJECT SHEET.
    CALL METHOD OF COLUMN 'Autofit'.
    FREE OBJECT COLUMN.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    FORM FILL_SHEET1
    TABLES ITAB1 STRUCTURE ITAB1
    USING V_NO V_SHEET.
    ROW = 1.
    PERFORM FILL_CELL USING ROW 1 'Column1 Name'.
    PERFORM FILL_CELL USING ROW 2 'Column2 Name'.
    PERFORM FILL_CELL USING ROW 3 'Column3 Name'.
    ROW = ROW + 1.
    LOOP AT ITAB1.
    PERFORM FILL_CELL USING ROW 1 ITAB1-Column1.
    PERFORM FILL_CELL USING ROW 2 ITAB1-Column2.
    PERFORM FILL_CELL USING ROW 3 ITAB1-Column3.
    ROW = ROW + 1.
    ENDLOOP.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    Reward points if this Helps.
    Manish

  • CWB: How to refresh worksheets with updated Eligible Salary

    Hi
    While Implementing CWB, I needed to update the logic for eligible salary calculation, after running the participation process.
    I would like to know what I can do so that the worksheets are refreshed with updated eligible salary calculation.
    Thanks in advance.

    Hi
    As Eligible Salary is one of you standard rates, the only method of getting the Standard rated updated is to back-out and rerun the Participation process. The refresh process only updates the vale of the Custom segments 1 to 20.
    Please feel free to ask in case you are not clear.
    Regards,

  • Automate excel circular references - script logic - BPC

    Hi,
    I need to automate in BPC the calculation of financial debt that contains excel circular references, so you have to enable the calculation Automatic iterations properly to work.
    I would like to automate the process through a script logic.
    I appreciate any help or suggestions.
    Regards,
    Fernando Chávez.

    Dear Fernando Chávez,
    I just want to give you simple suggestions because I don't know your case exactly. The script logic is similiar with SQL script. You could put your logic script in default.lgf or make new file .lgf through BPC Administration Console. If you put it in default.lgf, the SAP BPC will execute it when user sent values through BPC Excel.  You also could run the script logic through Data Manager Packages, its runs depend on user execution.
    If we are talking about circular and complex formulas in Ms.Excel, I suggest you put your calculation in another worksheet and send values through BPC Excel. Before you define a script logic, the number one is you should to consider performance because its really critical.
    Kind Regards,
    Wandi Sutandi

Maybe you are looking for

  • How to Identify the Source System in a Transformation Rule?

    Hi,    In a 3.x system if I needed to identify the source system, the interface had a parameter SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS. I do not see the same in a Transformation Rule. Can anyone tell me how can I make a decision in my transformation r

  • My left earpod is not working

    i tried to scrape it but its not working still and i saw that a wire was broke. What should i do? Help me someone!

  • Budget control system and former budgeting

    Dear All, Can anyone tell me the main difference between former budgeting and BCS. Kind Regards, Rajini.

  • Reg: ALV need two headers.

    Hi all, I have one requirement. Here I have developed ALV with 4 fields. When I run this ALV in general it will display these 4 fields. But my requirement is when I run this ALV 1st 2 fields should be in one header and the next 2 fields should be in

  • Instance Pool

    I am new to Weblogic & started straight away from 6.1. I am learning Stateful session bean. While going thru Stateful Session Bean tutorial, there is a mention that (which is a vendor specific) we can define & force the container to have a maximum nu