Dynamic changes in the report

I generated one report in BI 7.0 using the BEx Analyser. But what the user want is to simulate the report in according to the market changes. For example: Suppose fields for the ingredients of a product and the % of amount used to get the profit is there in the report. He wants to try for the various possibilities that he can do to get better profit from his products mentioned in the BEx report. So what he wants is ‘whatever changes he do in the report should reflect the other fields in the report for planning his future composition. How can this be done in the report? Is it possible by using macros? How to use Macros in this case? Can someone please explain this in detail?

I generated one report using BEx Analyser. In that report price of individual raw materials are there and the total cost for the production of a commodity from that raw materials. After the report generation my client understood that the price of certain raw materials varied. So he wants to change the price of the raw materials manually and get the total cost after the change. This is the requirement.
What I think is that the formulas used in the  report can be generated to another excel sheet and using macros i can do the calculation and can show the result in the new excel sheet. I dont know whether this idea will work or not as I am unaware of how to generate the formulas to another excel sheet and I am unaware of the macro code. So can anyone help me to solve this issue by explaining in detail and can someone send me some macro codes for example that can give an idea of summation of filed values.

Similar Messages

  • Doing changes to the report dynamically

    hi
    i am working on a report whichaccepts a report in selection screen and  finds 'upload' function module available in it and replaces this with 'gui_upload' function module.
    i have written code for commenting the existing function module and creating new function module i.e. 'gui_upload'.
    can anyone let me know how can i implement these changes in to the report that i pass in the selection screen.
    i.e. how ca i write these changes to the report.
    thanks in advance.

    Hi,
    Use the following logic.
    PARAMETERS : p_prog  TYPE reposrc-progname. " Report Name
    *Check for Program Name in TADIR
    SELECT obj_name object
                INTO TABLE tb_tadir FROM tadir
                WHERE pgmid = 'R3TR'
                  AND object = 'PROG'
                  AND obj_name LIKE  p_prog.
    Read the Program and Get all the Update/Modify or Insert Statement
    *through which  Z Tables are Getting Updated Directly
          PERFORM read_program USING wa_tadir-obj_name.
    FORM read_program  USING  wa_tadir-obj_name.
      REFRESH tb_text.
    Read the Report/Program
      READ REPORT wa_tadir-obj_name INTO  tb_text.
      DESCRIBE TABLE  tb_text LINES w_lines.
      DO w_lines TIMES.
        w_index = sy-index.
    Read the table and search for MODIFY , UPDATE and INSERT
        READ TABLE tb_text INTO wa_text INDEX sy-index.
        IF sy-subrc EQ 0.
          SHIFT wa_text-text LEFT DELETING LEADING space.
          SEARCH wa_text-text+0(6)  FOR 'UPLOAD'.
          IF sy-subrc EQ 0.
    Here write a routine to Replace UPLoad with GUI_UPLOAD.       
          ENDIF.
        CLEAR wa_text.
      ENDDO.
    ENDFORM.
    Thanks,
    Shrikanth

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • How to track personal details changes in the report without using triggers on the database tables

    Hi There,
    I'm having a requirement to track the oracle HRMS Personal details changes in the report not using the triggers.
    ex: if some changes the address of the person, then that changed values should be populated in the report.
    Please find below query:
    If any of the following columns data is updated, the new value should be populated in the report.
    SELECT PAPF.PERSON_ID                                                       PAPF_PERSON_ID
    ,      PAPF.EMPLOYEE_NUMBER                                               EMPLOYEE_NUMBER        
    ,      PAPF.FIRST_NAME                                                            FIRST_NAME   
    ,      PAPF.LAST_NAME                                                            LAST_NAME
    ,      TO_CHAR(PAPF.DATE_OF_BIRTH ,'DD-MON-YYYY')     DATE_OF_BIRTH
    ,      ADDR.ADDRESS_LINE1                                                   ADDRESS_1
    ,      ADDR.ADDRESS_LINE2                                                   ADDRESS_2
    ,      ADDR.ADDRESS_LINE3                                                   ADDRESS_3
    ,      ADDR.TOWN_OR_CITY                                                    TOWN
    ,      ADDR.REGION_1                                                              COUNTY
    ,      ADDR.POSTAL_CODE                                                     POST_CODE
    ,      ADDR.COUNTRY                                                              COUNTRY
    ,      PAY.PAYROLL_NAME                                                     PAYROLL_NAME
    ,      PLN_TYP.NAME                                                              PLAN_TYP
    ,      PLN.NAME                                                                     PRODUCT_NAME
    ,      BOF.NAME                                                                     COVERAGE
    FROM   PER_ALL_PEOPLE_F                                                PAPF
    ,      PER_ALL_ASSIGNMENTS_F                                          PAF
    ,      PER_ADDRESSES                                                        ADDR
    ,      PAY_PAYROLLS_F                                                       PAY
    ,      BEN_PRTT_ENRT_RSLT_F                                                 PEN
    ,      BEN_PL_TYP_F                                                         PLN_TYP
    ,      BEN_PL_F                                                             PLN
    ,      BEN_OIPL_F                                                           BOIPF
    ,      BEN_OPT_F                                                            BOF
    WHERE 1                                     = 1
    AND PAPF.PERSON_ID                          = PAF.PERSON_ID
    AND TRUNC(SYSDATE)                          BETWEEN PAPF.EFFECTIVE_START_DATE AND PAPF.EFFECTIVE_END_DATE
    AND TRUNC(SYSDATE)                          BETWEEN PAF.EFFECTIVE_START_DATE AND PAF.EFFECTIVE_END_DATE
    AND PAPF.PERSON_ID                          = ADDR.PERSON_ID
    AND ADDR.PRIMARY_FLAG                       = 'Y'
    AND ADDR.DATE_TO                            IS NULL
    AND PAF.PAYROLL_ID                          = PAY.PAYROLL_ID(+)
    AND PEN.PERSON_ID                           = PAPF.PERSON_ID
    AND PEN.BUSINESS_GROUP_ID                   = PAPF.BUSINESS_GROUP_ID
    AND TRUNC(SYSDATE)                          BETWEEN TRUNC(PEN.EFFECTIVE_START_DATE) AND TRUNC(PEN.EFFECTIVE_END_DATE)
    AND PEN.PRTT_ENRT_RSLT_STAT_CD              IS NULL
    AND PEN.SSPNDD_FLAG                         = 'N'
    AND ( PEN.ENRT_CVG_THRU_DT                  >= TRUNC(SYSDATE)
    OR    PEN.ENRT_OVRIDN_FLAG                  = 'Y')
    AND EXISTS(SELECT PIL.PER_IN_LER_ID
               FROM   BEN_PER_IN_LER PIL
               WHERE  PIL.PER_IN_LER_ID         = PEN.PER_IN_LER_ID
               AND    PIL.BUSINESS_GROUP_ID     = PEN.BUSINESS_GROUP_ID
               AND    PIL.PER_IN_LER_STAT_CD    NOT IN ('VOIDD','BCKDT'))
    AND PEN.PL_TYP_ID                           = PLN_TYP.PL_TYP_ID  
    AND TRUNC(SYSDATE)                          BETWEEN PLN_TYP.EFFECTIVE_START_DATE AND PLN_TYP.EFFECTIVE_END_DATE  
    AND PLN_TYP.PL_TYP_ID                       = PLN.PL_TYP_ID 
    AND TRUNC(SYSDATE)                          BETWEEN PLN.EFFECTIVE_START_DATE AND PLN.EFFECTIVE_END_DATE
    AND PLN.PL_ID                               = PEN.PL_ID
    AND PEN.OIPL_ID                             = BOIPF.OIPL_ID(+)
    AND TRUNC(SYSDATE)                          BETWEEN NVL(BOIPF.EFFECTIVE_START_DATE,HR_GENERAL.START_OF_TIME) AND NVL(BOIPF.EFFECTIVE_END_DATE,HR_GENERAL.END_OF_TIME)
    AND BOIPF.OPT_ID                            = BOF.OPT_ID(+)
    AND TRUNC(SYSDATE)                          BETWEEN NVL(BOF.EFFECTIVE_START_DATE,HR_GENERAL.START_OF_TIME) AND NVL(BOF.EFFECTIVE_END_DATE,HR_GENERAL.END_OF_TIME)
    AND (:P_SYSDATE)                            BETWEEN TRUNC(PEN.ENRT_CVG_STRT_DT) AND TRUNC(PEN.ENRT_CVG_THRU_DT)
    AND (CASE WHEN :P_PAYROLL_ID IS NULL THEN 'Y' ELSE NVL((SELECT 'Y' FROM DUAL WHERE PAY.PAYROLL_ID  = :P_PAYROLL_ID), 'N') END) = 'Y'
    AND PAPF.LAST_UPDATE_DATE                   = (:P_SYSDATE) ;
    --AND PAPF.LAST_UPDATE_DATE                   BETWEEN to_date(:P_SYSDATE) and (to_date(:p_sysdate) + INTERVAL '31' Day);
    --AND (:P_SYSDATE)                           = PAPF.LAST_UPDATE_DATE ;
    Thanks

    check this -
    Re: Best Event-Based notifications for Sox Complience?

  • Adding Dynamic remarks to the report by user

    Any idea's of adding text to queries? Our customer is using Crystal Reports based on Baan DWH. On of the functions is adding textblocks to the report and put in remarks / comments.
    This will be <u>replaced</u> by BW. Is it possible to add (dynamic) <b>textblocks</b> to the BW reporting which can be filled in by the <b>end-user</b>? Any advice will be great!

    Yes it is.
    In BW, this can be achieved by using document management. The option will be available to the user via context menu in the report (goto-->documents - text/pdf/img etc). In your case user can choose to create/change/display a 'text' document, which will be attached to the report.
    cheers,

  • Dynamic change in the query name based on user input

    Hi Gurus,
    In a scenario, country appears as a user input variable.When the user specifies his country, the same query displays <b>Business trends</b>' data pertaining to his own country and rest of the world(international) in two tables.The reports are developed using Web application designer.
    Can the name(description) of the query be changed  so that the user input value for country gets dynamically reflected in the query name like <b>Business trends:Selected country vs International</b>?
    Regards,
    Balaji

    Hi Bala,
      ya this can be done by text variables. create a text variable( replacement path on the country infoobject) by going to the query properties on the description.
    if the user enters country value then it will be displaed on the description of the query .
    assign points if useful .
    regards
    santosh

  • Date Format  changes in  the Reporting side..

    Hi friends,
    I have one date field that is Keyfigure (not a Time charecterstic) ...now i want to display date in DD- MON - YYYY format... but up to modelling side my date format is DD.MM.YYYY.....
    i dont want to change in modelling side.. because.. this required format is needed only for some querys ...
    so, can any one suggest me is there any chance to get the date format in the reporting side like this..(27-JAN-2007) ..
    helpful answers will be appriciated..
    Thanks
    Babu

    Hi Babu,
    If the format is required in the Bex analyser then its system dependent setting .
    Control panel - > Regional & language options -> Regional options -> Customize -> Date -> Short Date format -> DD-MMM-YYYY(Change) .
    Do not forget to log off and re-login into bex,execute queries and see the output.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • Changes in the report are not appearing

    Hello All,
    I have the following command
    Run_Product(REPORTS, 'tpd_subst_rep', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL) in the form.
    I have changed the report tpd_subst_rep but I am not able to see the changes. Can any one please explain from where the old report is appearing?
    I have senn the documentation which is telling that it will look tpd_subst_rep in a default path, but how to see what is the default path?

    Hi,
    I'm using a later version so I am unsure as to whether the layout etc. will be the same.
    I don't know if it helps, but I may have misled you. Do you have the Object Navigator? If I condense all my options, I'm left with Forms, Menus, PL/SQL libraries, Object Libraries, Built-in packages, Database Objects.
    Go into 'Forms' (1st option), your module will be listed, open that using the + next to it and in the list that is displayed, one of the options will be 'Reports'. Then open that using + and follow my instructions as before to find the filename path. This will tell you whether it is referencing your .rdf or your .rpt. Presumably it should be .rpt, so it will tell you where that is being saved.
    I then opened my .rdf and just used 'Save As' to save it with a .rpt extension, using the address path taken from the Forms property palette of your report. That should then save your changes and update the file in Forms.

  • Format changing in the REport

    Hi Guru,
    We are running report in t-code:S_ALR_87012251, but last two onward we are not able to see the Expand and Collape tab option and Hierarchy option also, and the report format also got changed but the user want as per the previous format and which we can do the drill down.
    And pl inform me how to get the report name .
    Regards,
    John Pal
    double post

    Try putting
    SRW.DO_SQL('alter session set NLS_NUMERIC_CHARACTERS='', ''');
    in the Before Report Trigger.
    The setting might be reused for the next report if Reports is set to reuse the database connection.
    To avoid this, I guess you change it back to default in the After Report Trigger.
    Hope this helps!
    Morten

  • Regarding dynamic changes in the layout based on the data received

    hi,
    i am trying to design an application using flex at the frontend and what i want is that based on the inputs given on the client-side the data received from the back end should change accordingly like the no of panels showing a particular information can vary depending upon the data and has to be adjusted
    in a limited given space.how can i be able to acheive this dynamic display and change on the frontend arrangement of panels.
    thanks

    Hi Naidu,
    In the Second Screen first Create all 15 Fields.
    in PBO of Second Screen.
    module STATUS_100.
    In Program
    Module status_100.
    case FIELD_VALUE.
    when 'X'.
    loop at screen.
    if screen-name = 'SCREEN_NAME' " The Field which you dont want.
    screen-invisible = 1.
    screen-active = 0.
    modify screen.
    endif. " Similary process for other Values aswell.
    endloop.
    endmodule.
    Just you need to do little bit more work since this gives a clear Idea as how to proceed.
    CHeerz
    Ram

  • Need to execute Dynamic query for the report

    I was wondering if we can have the option of choosing at runtime from the report builder parameter so that if the end-user selects 'Yes' then the report will run one specific query and if he chooses 'No' then another particular query is invoked. What I mean to say that by choosing between Yes and No at runtime one should have the option of returning query results based on the same table but having different columns selected via the SELECT statement
    means we have two querires on our report & upon the chosen parameter we should execute only one of them ... wht should i do to apply tht ???

    As the previous post noted lexicals are a terrific way to accomplish dynamic queries in Oracle reports.
    Another way you could accomplish this would be to use a UNION, whereas the first select in the UNION represents one user option, then second query represents the second option.
    For example:
    SELECT customer_name name, customer_address address
    FROM customer_table
    WHERE :p_choice = 'Customer Info'
    UNION
    SELECT employee_name name, employee_address address
    FROM employee_table
    WHERE :p_choice = 'Employee Info'If when running the report, the user chooses 'Customer Info' the first query would return results, if the user chose 'Employee Info' then just information from the second query would return information.
    So there are different ways to accomplish what you are looking for, you just need to find which is going to work best for you.
    Hope this helps!

  • Dynamically changing of the Applet Label

    Hello!
    How could I change Applet Label dynamically
    (it should depends on the one business components' field)?
    Siebel 8.1
    Thanks very much!

    Hi,
    Clone the applet. Change the Label name which you want to modify. Based on the BC field value toggle the applet and display the cloned applet(which has the different label name). This is the way you can achieve this.
    Regards,
    Joseph

  • Dynamic Changes to the JPanel Content

    Hi to All,
    I have a JPanel and it contains two subpanels in it. second sub panel content
    is dynamic.
    Eg: Main Panel
    - Sub Panel1 (Static)
    - Sub Panel2 (Dynamic)
    Sub Panel2 Contains Array of Controls(dynamic).
    Whenever i add new controls to Sub Panel2, it is not displaying newly added
    controls.
    Only when i am adjusting SplitPane divider, it is showing changes.
    I also placed Main Panel in JScrollPane. So it may not be a space problem.
    Please help me.

    Whenver you add/remove components to/from a container you need to revalidate(), the container so the components can be layed out by the Layout Manager.

  • Dynamically need to change the report value reference names

    Hi Forum,
    Greetings to all !!!
    I have to create one report(document summary report) and the parameters are Document type(Special Information name through lov) and start date and end date.
    Based on these parameters it will fetch only that document details. I prepared the report based on this , now user selecting another document type then the segmets which are attached to this is coming but the heading details are not able to change in the report layout.
    Can any body suggest me how to create the layout for this type of reports.
    Regards,
    Nag.

    Hi Guru,
    We are running report in t-code:S_ALR_8701225, but last two days onwards we are not able to see the Expand and Collape tab option and Hierarchy option also, and the report format also got changed but the user want as per the previous format and which we can do the drill down. Please help me.
    And please inform me how to get the report name .
    Regards,
    John Pal

  • The CR 2010 for VS engine changes the margins and scales the report

    The CR 2010 for VS engine changes the margins and scales the report but only when printing.
    Environment:
    OS: Windows 7 x64 / Windows 2008 x64
    VS: VS 2010 x64
    CR designer: CR 2008 SP3.5
    CR engine: CR 2010 for VS SP1
    We have upgraded the Crystal Reports engine from version 10 to u201CCrystal Reports 2010 for VSu201D and are now having major issues with printing reports to preprinted papers, giro forms etc. because the report margins are changed and the reports are scaled (when report elements are in non-printable area?). Reports with elements in non-printable area are shown correctly in print preview (CR 2010 CrystalReportViewer) but moved to printable area when printed. This behavior was different in CR 10. Changing the PrintLayoutSettings in code is ignored when printing.
    Error u2013 The printed reports are scaled:
    -     Print in the CR 2008 Designer SP2
    -     CR 2010 for VS SP1
    OK u2013 The reports are not scaled:
    -     Print in the CR 2008 Designer SP3.5
    -     Print in the CR 10 Designer
    -     CR 10 engine
    Test:
    1) Crystal Reports Designer 2008 (with SP 3.5)
      a) Create a new blank RPT file.
      b) Set report margins to 0,0,0,0 in Page Setup.
      c) Add a box in the upper left corner (x=0, y=0).
      d) Select "Print preview" and validate that the box is located in 0,0 in preview window.
      e) Select u201CPrintu201D and validate that the box is located in 0,0 of the paper. Some of the box borders might be outside of the printable area but that is ok.
    2) Visual Studio 2010 and u201CCR 2010 for VSu201D with SP1:
      a) Create a new Windows Forms Application project (.NET Framework 4.0). Set project to u201C.NET Framework 4.0u201D and platform target u201Cx86u201D.
      b) Add the CrystalReportViewer control to Form1.
      c) Add the RPT file to the CrystalReportViewer control
      d) Run the application
      e) Validate that the box is located in 0,0 in the CrystalReportViewer control.
      f) Select the "Print" icon in the CrystalReportViewer
      h) Click the "Print" button and validate that the box is moved to the printable area which is wrong.
    Notice: In the print dialog (CR 2010 for VS) select the "Layout" tab page and see that "Scale u2026" is selected and cannot be changed. This is different from the CR 2008 Designer even though that it is the same report file and printer.

    I have done the requested test (and more - see below) and can not reproduce the issue.
    Tests done
    1) Crystal Reports Designer 2008 (with SP 3.5)
    a) Create a new blank RPT file.
    b) Set report margins to 0,0,0,0 in Page Setup.
    c) Add a box in the upper left corner (x=0, y=0).
    d) Select "Print preview" and validate that the box is located in 0,0 in preview window.
    e) Select u201CPrintu201D in the CR designer. Results in the box printing at 0,0 coordinate of the paper.
    f) Repeat all of above with a text field report
    g) Select u201CPrintu201D in the CR designer. Results in the text printing at 0,0 coordinate of the paper.
    2) Visual Studio 2010 and u201CCR 2010 for VSu201D with SP1:
    a) Create a new Windows Forms Application project (.NET Framework 4.0). Set project to u201C.NET Framework 4.0u201D and platform target u201Cx86u201D.
    b) Add the CrystalReportViewer control to Form1.
    c) Add the RPT file to the CrystalReportViewer control
    d) Run the application
    e) Validate that the box is located in 0,0 in the CrystalReportViewer control.
    f) Select the "Print" icon in the CrystalReportViewer
    g) Click the "Print" button
    h) Text filed report test results in the text printing at 0,0 coordinate of the paper.
    i) Box report test results in the text printing at 0,0 coordinate of the paper.
    3) VS2010 IDE
    a) Create a new blank RPT file.
    b) Set report margins to 0,0,0,0 in Page Setup.
    c) Add a box in the upper left corner (x=0, y=0).
    d) Preview report in the ID designer and validate that the box is located in 0,0 in preview window.
    e) Select u201CPrintu201D in the IDE designer. Results in the box printing at 0,0 coordinate of the paper.
    f) Run above report in code
    g) Preview report and validate that the box is located in 0,0 in preview window
    h) Select the "Print" icon in the CrystalReportViewer
    i) Click the "Print" button
    j) Text filed report test results in the text printing at 0,0 coordinate of the paper.
    k) Repeat all of above with a new report that uses a text field rather than a box.
    None of my reports have the option "No Printer" checked.
    All of my reports have the option "Dissociate Formatting Page Size and Printer Paper Size" checked
    From the above, you can see that all of the printing tests result in consistent printing, be it a report created in CR 2008 or CRVS2010, useing a box or a field. No difference in printing.
    Suggestions:
    1) I am not sure if you have followed the steps you recommended. E.g.; are you creating a new report or using your existing report? See if following the steps described reproduces the issue (it may be there is something specific to your existing reports)
    2) Make sure you have the latest printer driver available for your printer
    3) Try a different printer
    4) Add a report to the VS2010 IDE and preview the report in the IDE of VS2010
    5) Compare the "No Printer" and "Dissociate Formatting Page Size and Printer Paper Size"  options
    6) Consider creating a phone case so a support technician can troubleshoot the issue with you
    - Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for