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

Similar Messages

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • 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?

  • 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.

  • Error while doing change in the PO

    Hi Gurus,
    When we are doing any change in the po after release of the Po at that time we get below error "Release outside filed of responsibility".
    Please provide me the solution for the same.
    Regards,
    Anant

    Hi
    Got the error message "Release outside field of responsibility," it means you tried to approve a line item you are not authorized to approve.
    \kindly checlk the authorisation for the same
    Regards
    Damu

  • 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

  • Hi, 3 weeks ago i just got my iphone4 for and then i upgraded it to iOS5..am just wondrin', does changing of the iOS causes the phone to shuts down automatically and turn on again? thanks.. =)

    hi, 3 weeks ago i just got my iphone4 for and then i upgraded it to iOS5..am just wondrin', does changing or upgrading the OS causes the phone to shuts down automatically and turn on again? thanks.. =)

    How long are you leaving it on the charger?
    Are you connecting it directly to an electrical outlet or trying to charge via USB?  USB may not provide enough power to adequately charge the device if the battery is that low.
    If none of that helps, then the only option would be a warranty replacement as either the battery or system board is bad.

  • From the Web application does not display the report...

    Hello,
    I have a Web application in VS 2010 (NET 4.0) running reports in VS 2003 (NET 1.1) and CR XI. What should I consider for the reports to run well? When setting up the basics of the folder where the reports are in IIS 7.5, item I keep in the Application Pool: NET 1.1, but when in the same IIS server I click on Browse *: 80, I generated the following error: HTTP Error 500.19 - Internal Server Error
    The requested page can not be accessed Because the related configuration data for the page is invalid.
    I can do, thanks.

    Reports are made in VS 2003 (. NET 1.1) and CR XI using a framework. This framework is placed in the web server (Windows 2008 Server R2) and called from VS 2010.
    Sorry, I'm still having problem understanding this.
    Only CRVS2010 will work with VS2010. The reports can be created in any version of CR you want, but to load the reports in VS2010, you need CRVS2010, create a project in VS2010, then deploy the project and the CRVS2010 runtime(?).
    E.g.;
    1) Create report using CR XI
    2) Install CRVS2010 on a computer that has VS2010
    3) Create a project using CRVS2010 in VS 2010 - can use any framework you want
    4) Deploy VS2010 project
    5) Install CRVS2010 runtime
    - Ludek

  • I purchased an App it does nothing and the Report this App button doesn't exist, what other recourse do I have?

    My kidspurchased Littlest Pet Shop for the iPad2.  It loads and then does nothing.  There is no Report this App button in the top right corner as suggested in App Support.  What else can I do?

    Contact iTunes Support: http://www.apple.com/support/itunes/contact/

  • Change the title of a report dynamically

    Hi all,
    I have a report which does both download and upload activities.
    Then we have two TCODES based on which download and upload happen.
    My requirement is based on the two TCODES, I need to change the title of the report dynamically.
    Thanks and regards,
    Anishur

    Hi ,
    Set your title bars based on the condition.
    Created 2 title bars and use it
    INITIALIZATION.
      IF tcode = 'TCODE1'.
        SET TITLEBAR 'TCODE1'.
      ELSE.
        SET TITLEBAR 'TCODE2'.
      ENDIF.
    reward if usefull.
    Taher

  • 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

  • Changing the report header/footer in SAP BusinessObjects Enterprise X1 3.1

    Hi ,
    We have SAP BO 3.1. We have a requirement to change the header\footer of all the reports in the system.
    I tried the option under Header/Footer Properties --> Appearance , Apply to all reports.
    This option does change all the header\footer of all the tabs/pages within a report.
    In our environment currently we have around 300 reports. We cannot edit individual report and make changes to the header/footer.
    Is there any option through which i can change the header\footer of all the reports existing in the system?
    Thanks in Advance
    Regards,
    Pavithra P

    Hi Pavithra P,
    Check the below links,
    https://cw.sdn.sap.com/cw/ideas/1388
    https://cw.sdn.sap.com/cw/ideas/5239
    http://scn.sap.com/thread/2050054
    http://evtechnologies.com/web-intelligence-4-0-default-paper-size/
    http://devlibrary.businessobjects.com/businessobjectsxi/en/en/RE_SDK/resdk_dg_doc/doc/customizing_webintelligence_EN/ewucw_082.html
    Regards,
    Anish

Maybe you are looking for