COPA Report  - How to create a complex formula

Hi SAP guru,
Please shed some light on this issue.
In COPA drill down report, could any of you know how to create a complex formula? My client requires the report to show the conditional formula such as
IF value field 1 is zero, calculate A
IF value field 1 is not zero, calculate B etc..
Your help will greatly be appreciated.

Hiya,
Specify the formula for that row, then double-click the value and it provides some options. I believe you can manipulate the calculation based on that.
The best option would be to create the Value outside of the report and use the report simply to display it.
Another option would be to use COPA enhancements (using T-Code SMOD) to calculate values. Since you can include ABAP code, you have the freedom to calculate just about anything you want out here.
Alternatively, you could use Actual Valuation (IMG --> CO --> COPA --> Master Data --> Valuation --> Using Condition Records) and input a formula based on an actual value. If the actual value is something like Sales Revenue, you can "map" it to that field within the Condition Type. Assign the Condition Type to a Value Field and provide a Val Strategy to pick it up during Actual Postings (PV = 1)
Hope this helps.
Cheers.

Similar Messages

  • How to create transaction routine formula(ie, TOUPPER)

    how to create transaction routine formula(ie, TOUPPER)

    Hi Murali,
    Welcome to SDN!!
    Goto the transfer rules and select whichever info-object you want in upper case. You would options line constant, formula and routine. Select formula and enter as TOUPPER(). The incoming data for the info-object would be converted to upper case.
    Bye
    Dinesh
    (Assign points if useful)

  • Crystal report ( how to create a hyper link for the crystal report file)

    hello all,
    how to create a hyperlink for my report file....nd i want it open in excel format.

    Hello Uher,
    sorry for the insufficient details,
    actually we are calling some actuate reports from actuate server, and the URL looks like this
    "https://iconsole.xxx.com/iconsole/viewer/viewreport.jsp?
    outputFileType=XLSX&fromwhere=viewDocument&outputName=
    /filelocation/ReportOutputs/Reportname.xlsx&serverurl
    =http://xx.xxx.com:8010&volume=xxx&userid=xxx&password=xxx"
    which would generate an excel output,
    my question is, can we have some url in which we would specify the output format, as far my research i found  URL reporting
    some thing like this
    "http://" + servername +
    ":8080/OpenDocument/opendoc/openDocument.jsp?outputfiletype=xlsx/
    filelocation/userlogondetails
    but my client needs an excel output, with out going through any web page or viewer controls and generating buttons.
    Thank you

  • How to create a Complex Organization Index  Materialized View Example

    Hi
    I have a 11g database that I'm trying to create a complex Materialized View that I would like to make Organization Index? How do I specify what I want for a primary Key?
    CREATE MATERIALIZED VIEW RCS_STG.MV_NEXT_HOP_iot
    ORGANIZATION INDEX
    AS
    SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
    service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r2.device_key
    AND tn_network_resource.resource_key(+) = r2.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    UNION ALL
    SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
    service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r1.device_key
    AND tn_network_resource.resource_key(+) = r1.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    I get an error message ORA-25175: no PRIMARY KEY constraint found
    I would like to specify resource_key, resource_key2, and service_telephone_number as my primary key?

    Ah,
    I get it now. This is what I did.
    CREATE TABLE mv_next_hop_iot
    resource_key NUMBER (38),
    resource_key2 NUMBER (38),
    resource_full_path_name VARCHAR2 (256 BYTE),
    device_name VARCHAR2 (64 BYTE),
    device_model VARCHAR2 (64 BYTE),
    service_telephone_number VARCHAR2 (20 BYTE),
    service_package_name VARCHAR2 (64 BYTE),
    telephone_number_key NUMBER (38),
    created_on DATE,
    CONSTRAINT mv_next_hop_pk PRIMARY KEY (resource_key, resource_key2, service_telephone_number)
    ORGANIZATION INDEX
    CREATE MATERIALIZED VIEW rcs_stg.mv_next_hop_iot
    ON PREBUILT TABLE
    AS
    /* Formatted on 2010/06/10 1:39:04 PM (QP5 v5.149.1003.31008) */
    SELECT resource_key, resource_key2, resource_full_path_name, device_name, device_model, service_telephone_number,
    service_package_name, telephone_number_key, created_on
    FROM (SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
    NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
    telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r2.device_key
    AND tn_network_resource.resource_key(+) = r2.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    UNION ALL
    SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
    NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
    telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r1.device_key
    AND tn_network_resource.resource_key(+) = r1.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key)
    Many thanks. the PREBUILT TABLE is the secret.

  • SAP Query-for  Reporting   how to create and use it

    Hi SAP Gurus,
    i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon.
    also if you have any study material on steps on How to write and create queries for PP module
    thank you very much

    Hi
    Please refer below document
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Also refer below
    How to Create Infoset Query (SAP Query)
    Steps on how to proceed to create a Query:
    ADHOC QUERY
    A query can be created to extract information from master records  i.e  Infotypes.  For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
    Proceedure :  
    Decide on  the various Infotypes we  want to make the query.  Decide on the area where we  want to query  i.e  Global area or Standard area.  Standard area is client specific and globel area will include all clients.
    Menu : HR – PM – Admn -  Information System -  Adhoc Query
    Select area standard and select the  user group already created
    Creation of new query  :  
    TC SQ03  -  Select Environment – Select Standard Area -  Enter  --  If new user group is to be created, enter name of the user group, click on create and enter necessary information and  exit after saving
    TC SQ02  -  Enter name of the Infoset – Create – enter name of Infoset -  Data source -- >  Table join by basis table – give name of table e.g  pa0000 -  Enter -  Click on insert table if we  want to include more tables – give name of table one by one and after finishing,  place cursor on the joining lines and right click to delete unwanted relationships  - check  - and go back  - field groups  -  include all table fields  - click on generate button   -  go out
    TC SQ03  -  Select user group  -   eg.  Payroll
    Infoset  - Enter name of newly created Infoset 
    Assign users and Infosets  -  Assign infosets  -  put tick on payroll  - save and go back
    TC  PAAH  -  Expand the nodes and put tick on relevant fields depending upon necessity
    Save the query  by giving the same name as infoset for easyness..
    For executing a query which is already created
    1. Go to SQ01 transaction
    2. Go to Environment menu->query areas->std areas
    3. Then choose the user group where the query is created
    4. It will display all the queries created for the group.choose the query you want to executeand click execute.
    5. will take to the initial screen
    6. Enter the required parameters and execute
    Regards
    Ranga
    Message was edited by:
            Ranganathan Srinivasamurthy

  • COPA Report ( How to explode in the report )

    Hi ,
    I just created COPA painter report for the sales commission.When i drill down the Report it will show the commission posted for each sales district 1 , when i drill the sales district it will show all the profit center 1 updated for the sale district 1 commission, when you drill the profit center it will show the cost centers posted for the profit center 1 commission.
    But here what i need is when i drill the profit center, report must show all the cost centers ( just like when we create a variable for cost centers and explode in the report painter report for cost centers).
    as we use Characteristics i am not able to explode all the cost centers.
    Thanks in adavance

    Hi Saritha,
    Its not technically possible to remove '#' from output when there is no value for that InfoObject unless you exclude it from result set. Other option is to have some character, in our scenario the way we did is, we always put dot ' . ' instead of blank while loading the data into data target which can be done using Transformations / update rules / Transfer rules.
    Anyway you can suppress it....Try this,
    Step 1: Select the Characteristic which u want to hide (#) in the Bex report.
    Step 2: Right click --- restrict --> you will get a popup screen with some values and Select # from the left side of the screen and drop it to the right side.
    Step 3: Right click on the # you will get an option "exclude from selection". Select it and activate.
    Hope it Helps,
    Thanks,
    Amit kr.

  • How to create one complex project in web dynpro

    hi,
    i have 2 transations.i m going to create one project for one transaction each.but in my carse there are 20 views in each project.i want to distribute all the views  to 10 developers.i  mean how to distribute the different view or application or component for 0ne project among all the developer....this is my doubt that how  to clubbing together all the views,applications and compoents altogether in web dynpro  later.
    its very urgent,
    thanx in advance.
    regards,
    HP

    Hi ,
    One way is dividing your project into DCs.
    1. You can keep your model in one DC.
    2. Create different DCs for different functionalities and place the views under appropriate components
    3. Expose the components as public parts so that the views can reused by the developers.
    Please go though the documents on DCs for creating public parts and resuing DCs
    Regards, VIP

  • How to create a complex Rule in Oracle Business Rules?

    Hi, I have this classes:
    public class User{
    private List<Country> countries;
    public List<Country> getCountries(){
    return countries;
    public class Country{
    private String name;
    public String getName(){
    return name;
    Is it posible to create a rule to evaluate if one of the countries of a User has its name equals to "USA" ? How can I do that?
    I 'm evaluating this product but find that I only can create rules with very simple conditions.
    Thanks in advance for your help.

    1) Write a function that takes a List and a String and return true if the list is in the String.
    2) Assert a fact
    class UserCountry {
    User u;
    Country c;
    to link the Country facts to the User facts.
    3) Use an Advanced form pattern (in RuleAuthor) to do
    fact User u &&
    u.getCountries().contains("USA")

  • Reports: How to Create an Enterprise Wide "CPU/Memory" Report

    All,
    Going over the reports I notice that there does not seem to be a report template that I can use to collect enterprise wide CPU/MEM statistics.
    The enterprise consists of approx 2000 Solaris images both physical and virtual.   Running "Analytics" on each Global Zone, to collect the data every week or so, is not going to cut it with the customer.
    There has to be a way to run a complete report for the entire Solaris enterprise. 
    The question is how and where do I find a template for something like that???
    Thanks for your time.
    v/r, Tom M.

    Hi Tom,
    I think what you want can be done with our Neuron Performance Manager: which works with Ops Center. And if you only need to report on a couple metrics for each system there's no cost.
    Ops Center does have report aggregation at some levels (i.e. Top-5-type graphs for Asset folders), but if you want reports to be generated and sent out each week then Neuron makes it easy.

  • Oracle Reports : How to Create Filtered Running Totals

    I need to create a column in a group to represent a running total. But I want that running total to only count rows that meet specific criteria, such as [Field_Value_1] = 'Yes'. How can I accomplish this?

    make a hidden (hidden) column in select like decode(Field_value_1, 'Yes', Val_to_Sum, 0) and make running total on that column ...
    Hope This Helps

  • COPA reports - how to improve performance

    Hi all,
    in our system KE30 reports are running more then 1 hour and the performance is getting worse and worse with the increasing of the database.
    What are the possibilities to improve it? Do you have similar problems? Is it normal that one report is running more then 1 and 1/2 hours?
    I read about summarization levels and may be it is good to use it. Will the use of summarization levels change anything in the reports?
    Thank you,
    Maria

    HI,
    You can define summarization levels based on your requirements by transaction code KEDV,
    Define all the Char here at KEDV to improve the performance.
    It is always easier to let the system propose the summarization level
    and then fine-tune it. Once it is defined, you need to update the new summarization level with program RKETRERU (option Build new levels). Periodically, you also need to update summarization levels
    with program RKETRERU (option Update).
    With regardss
    krishna

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to create transactoin code for a predefined variant?

    Hi,  I have created one variant for a custom report.How to create transaction code for the report with that variant?

    When you create the transaction in SE93 select the Program and selection screen(Report transaction) type not
    the transaction with variant(Variant transaction)

  • How to create querys based on infosets?

    Hi all,
    How to create queries on infosets ? can anyone let me know the procedures?
    Thanxs
    haritha

    Hi Haritha,
    TC SQ02 - Enter name of the Infoset – Create – enter name of Infoset - Data source -- > Table join by basis table – give name of table e.g pa0000 - Enter - Click on insert table if we want to include more tables – give name of table one by one and after finishing, place cursor on the joining lines and right click to delete unwanted relationships - check - and go back - field groups - include all table fields - click on generate button - go out
    Also refer this thread
    SAP Query-for  Reporting   how to create and use it
    Regards
    Karthik

  • How to create  BALANCE..I have no idea!

    Hi,
    I can't figured how to create a balance formula. Okay this is the scenario. I have clients that give me a deposit of the total amount of the project. What I would like to do is this:
    *Total Cost:* $XXX
    Deposit: $XXX
    Payment 1: $XXX
    Payment 2: $XXX
    Payment 3: $XXX
    Payment 4: $XXX
    Payment 5: $XXX
    *BALANCE LEFT:*$xxx
    I want the BALANCE to change every time I insert a payment. How can I do that?
    Thank you so much for your time.

    Hi Kilombo,
    I very simple approach would be to have a separate table for payments and another table for Total cost, Deposit and Balance. Here's an example:
    This solution assumes that the balance due is the Total Cost minus the Deposit minus the sum of the Payments. What you wrote isn't exactly this, but I think this is what you meant. If I'm wrong, I'll try better to understand.
    Jerry

Maybe you are looking for

  • How do I make Pages my default program for opening doc files

    Currently TextEdit is the default program to open doc files that I download from emails. Now that I've installed iWork 08 I would like Pages to be the default program. Thanks!

  • How to open a htmlwebpage by using pl/sql?

    my problem is how to open/invoke a existing webpage by using pl/sql.Because I want to do a authentication function,and write a procedure to varify the user ID and password.If they are valid,a welcome webpage can display,otherwise a eror message/webpa

  • How to transfer contact from computer to iphone5

    How to transfer contacts from iMac to iphone5

  • Mailsession Multicast Error!!

              I need to use the javax.mail.Session class to send mail.           It works on a normal WL server, but not on a clustered server.           On the bottom of my cluster weblogic.properties file I have something like           weblogic.resour

  • PS 5.1 installation progress stops at 36%

    I am trying to install the PS 5.1 trial. It successfully downloads, extracts and the installation starts. It always stops at 36% and the "time remaining" just goes on adding minutes. I am on OSX Lion. Any hints/ideas on what to do?