Generate  Report based on latest request

Hi Frds,
Can we able to generate the Report based on the latest request.
if so , explain me clearly
thanks,

Hi,
1. Create 3 variables for Request ID, customer exit, single value, uncheck ready for input (e,g. ZEXIT01. ZEXIT02 , ZEXIT03).
ZEXIT01 represents request of Source1 , File1
ZEXIT02 represents request of Source1 , File2
ZEXIT03 represents request Source2, i.e. for source1 the two most recent requests
and for source2 the most recent request are provided by these variables.
2. For ZEXIT01add attached code to ZXRSRU01: Just modify bold expression according to your scenario.
3. For ZEXIT02 change  IF SY-TABIX = 1 to  IF SY-TABIX = 2 , WHEN 'ZEXIT01'.to
WHEN 'ZEXIT02'. and add code to ZXRSRU01.
4. For ZEXIT03 change 'YOUR_INDOSOURCE' to IS-name of Source2,WHEN 'ZEXIT01'.to WHEN 'ZEXIT03'. and add code to ZXRSRU01.
5. At last assign these  variables in Query Designer to characteristic Request ID.
Sample Code:
WHEN 'ZEXIT01'.
    TABLES:RSSELDONE,
           RSICCONT.
    DATA: L_T_SELDONE LIKE RSSELDONE OCCURS 0 WITH HEADER LINE.
    DATA: L_T_ICUBE LIKE RSICCONT OCCURS 0 WITH HEADER LINE.
    DATA : REQNO1 TYPE RSSELDONE-RNR.
    SELECT * FROM RSICCONT INTO TABLE L_T_ICUBE WHERE
           ICUBE = <b>'YOUR_CUBE'</b>.
    SORT L_T_ICUBE BY RNSIDLAST DESCENDING.
    SELECT * FROM RSSELDONE INTO TABLE L_T_SELDONE WHERE
           SOURCE  = <b>'YOUR_INDOSOURCE'</b>.
    SORT L_T_SELDONE BY RNR.
    LOOP AT L_T_ICUBE.
      IF SY-TABIX = 1.
        READ TABLE L_T_SELDONE WITH KEY L_T_ICUBE-RNR BINARY SEARCH.
        IF SY-SUBRC = 0.
          REQNO1 = L_T_ICUBE-RNR .
          EXIT.
        ENDIF.
      ENDIF.
    ENDLOOP.
    CLEAR L_S_RANGE.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-LOW = REQNO1.
    APPEND L_S_RANGE TO E_T_RANGE.
Best Luck
Joe

Similar Messages

  • Generating report based on dynamically generated sql query

    I have to rewrite asp reports to oracle reports.
    The original application has forms in asp where reports are generated dynamically based on the options selected.
    There are many options to select.
    Some add filter criteria to where clause.
    I have no problem with this. As i can generate report using parameter form.
    whereas i don't know how to generate reports whose columns change based on the user selection.
    The front end screens are going to be in java and jsp pages. The only way i can think of is generating reports on all possible options the user may select. But, as there are more than 15 options, i think this is not the right approach.
    How can i achieve this.
    Thank you very much.
    navya.

    One method that comes to mind would be to use an after parameter form, and use lexical parameters to create dynamic statements.
    For example in your after pform:
    If :P_NAME = 'JOHN' then
    :P_SELECT = 'SELECT COL1, COL2 ';
    :P_FROM = 'FROM JOHN ';
    :P_WHERE = 'WHERE COL3 = 'JOHN';
    END IF;
    Then in your query, you could say:
    &P_SELECT
    &P_FROM
    &P_WHERE
    Something like that - If only parts of you where statement will change, you can just write that one part -
    like
    IF :P_STATE is not null then
    :P_STATE = ' and table.state = :P_STATE_IN ';
    else :P_STATE = ' and 1=1 ';
    end if;
    and in your query...
    where....
    &:P_STATE
    So IF a person enters a state, then limit the search to that state, or else do a 1=1.
    Hope this gives you a start

  • Generate Report based on Select List

    Hi ,
    I have a drop down list those are the column names and a corresponding value i will enter in input text . so based on these two values how can i generate a report in Apex i am using apex 4.0.2.
    Means in where clause dropdown value will become column name and input text will become value for that column;
    Thanks
    Raghav

    This gets complicated really fast.
    I'd use an Interactive Report.
    select * from emp
    where (:P5_COLUMN_NAME='deptno' and deptno= :P5_COLUMN_VALUE)
       or (:P5_COLUMN_NAME='ename' and ename= :P5_COLUMN_VALUE)

  • How to Generate a Report Based on User's Parameters from Web Site

    Hi, all,
    I am trying to use Oracle Developer 6.0 Report Builder to generate report based on what user types in from the web site. Since I am a novice, I am wondering if anybody would help me with the following questions:
    1. How can I create a report based on user's parameters?
    Assuming that I have 2 text fields EMPNO and DEPT on the web site, after user types in some value, how can I pass these parameters into my query, can I do something like:
    select ENAME, JOB, EADDRESS from EMP
    where EMPNO =
    some_reference_of_parameters_from_user
    or is there any other way to achieve this functionality?
    2. How can I pass a PDF format report back to user after the report is generated?
    Any help is greately appreciated!!
    Best regards.
    Judy

    Hello,
    In the Report Builder, create two user parameters, and set the parameter name, datatype, width, and default values to what you want. Modify the query and put in a where clause (e.g., where deptno = :p_deptno). When you request the report with PARAMFORM=YES on the URL, it'll generate a default parameter form in HTML and allow the user to enter in the selected parameter values. Also set DESTYPE=CACHE&DESFORMAT=PDF on the URL to get the output back as PDF.
    If you upgrade to Reports 6i, you can customize the default HTML parameter form.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Query on generating report using XMLP based on a search spec

    Hi,
    We are using XMLP reporting tool to generate reports for our application. Our requirement is to generate reports based on a search spec. Should I send this search spec as a input parameter to the FO processor? In other words, what is the exact procedure to generate reports based on a search spec? This search spec is provided at runtime.
    Thanks,
    Sudha.

    Hi Henry,
    Thank  you for your response.
    BEx query has not been created yet. we need to create accordingly and require your help in creating the same.
    Regarding reporting requirements,  User wants to have adhoc reporting  with rolling months ( 12 months or 6 months) functionality. Users want to link any KF to this rolling months dimension.
    If we can't have this, what is the alternative that we can propose to user.
    Thanks
    Akshara.

  • Can We generate Check report based on Custom Dimension in FDM

    Hi All,
    We got a requirement in our project to generate the check report based on custom dimension. As far as i know the check reports that got generated in FDM are based on Entity Dimension.
    So, will you please let me know whether it is possible to generate report based on any one of the custom dimension.
    Thanks.

    I guess I am not understanding the question here?
    The check report is based on the location/entity that you are running the report for.  You can pull values for a specific intersection in the target application with the check report, so you could specify the custom dim in the intersection.

  • Reporting based on weighted product unit sales

    Hello! I was just wondering what the best way of generating reports based on weighted product unit sales? I know that reports can be build based on weighted revenue, but I'm keen to be able to report on product units as well. For instance, if I have three
    opportunities:
    Opportunity 1: Has a probability of 25% for 100 units of Product A, closing Month 1
    Opportunity 2: Has a probability of 50% for 100 units of Product A, closing Month 2
    Opportunity 3: Has a probability of 50% for 100 units of Product B, closing Month 3
    Ideally, a quarterly report would show that I have sales of 75 units for Product A ((25%*100)+(50%*100)) and sales of 50 units for Product B (50%*100). I could then drill down the quarter and look at the Monthly sales breakdown.
    Not sure if this can be done by using the default fields and some clever Report building, or whether I'd need to create a custom field for each product sale that had an auto-calculated field (OpportunityProbability * Quantity)?
    Does that make sense? Any pointers would be massively appreciated! :)

    ???

  • NCS reports based on AP groups

    Hello,
    I am wondering if it is possible to create reports in NCS and have them filtered according to AP Groups created on a WLC.
    I am wanting to generate reports based on the AP's in certain AP Groups.
    If it's not possible by using the WLC AP Groups, is there another method to create a criteria/filter in NCS based on a group of AP's
    Thanks in advance for any help or suggestions.
    Cheers,
    Jeremy Keen

    Please refer to AP summary reports from the report section
    http://www.cisco.com/en/US/docs/wireless/ncs/1.1/configuration/guide/reps.html#wp1138497

  • Enable Refresh Button/Menu in the Generated Report

    Dear Experts,
    I have created a program that generates report based on the user defined parameters.
    My question is, how do I enable the Refresh button/menu in the generated report so that user
    won't have to back to the parameter screen and re-execute?
    Thanks.
    Kath

    How is the output shown on the screen ?
    With Write statements it won't be possible, but with an ALV it is. You need to add a button to the application toolbar, usually it is present in the standard PF-STATUS, but if not then simply add one.
    Now when you capture the user command in the subroutine for handling user commands which looks like this,
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
    Follow these steps
    1. Refresh the output table that you have passed to the ALV.
    2. Fetch all the data again and populate the output table.
    3. Set the rs_selfield-refresh = 'X'. , this structure is passed to the user_command subroutine as shown above.
    regards,
    Advait

  • Auto.generate report

    Hello,
    I'd like to know if BEx has any capability to automatically generate reports based on number of specific input.
    For example, if there were 500 customers, will BEx be able to generate the same report format for 500 customers without manually input customer id?
    If customer number is not in order, to specify range of customer id might not be possible.
    Or could it be done on portal?
    Any suggestion?
    -WJ-

    Closed without solution!

  • Generating a report based on two analytics(for ex:PO and PR)

    I have a question regarding generating reports on two analytics.
    In our scenarios,
    We need to generate a report based on Purchase order and Purchase request.Is it possible in OBIA?
    if yes,please provide the solution.
    Thanks in advance

    Hi ,
    Thanks for your valuable time.
    We are in designing phase of the project. we need to know ,Is there any inbuilt dashboards or reports built using both PO and PR repositories?
    I would like to explain with ex:
    Let's say we need a report or dashboard containing few fields from PO and few fields from PR.Let's assume both PO and PR data available at same granularity.
    Do we have any such inbuilt reports or dashboard?
    If not,could we customize the report generation using both PO and PS tables?
    Please provide the solution.
    Thanks in advance.
    Edited by: user3561029 on Aug 31, 2008 9:03 PM

  • How to fetch latest data from database instead of clicking on Generate report in RSRT?

    Hi all,
    We are not able to get latest data of BEx query.Everytime we have to click on Generate Report  button in RSRT for getting latest value.
    Is there any way to get latest value automatically? We are not doing any changes in query.
    When we click on Generate Report it is fetching data from Database instead of cache,so if it is possible to disable cache or any other workaround?
    We have used time(0TIME) characteristic in query as a formula variable. We have applied a condition on that variable to fetch the first record (latest value). When we click on generate report, it fetches correct value with latest time but when we run the query without generate report, it is not fetching latest value. The cube on which this query is developed, is a realtime cube.
    Regards,
    Zalak

    Once its in the request attributes it would be far better to use JSP Expression Language as well as the JSTL that Malcolm suggested So if the servlet code said:
         request.setAttribute("myList", al);Then using EL and the JSTL tags from <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> the JSP would look something like:
    <c:forEach items="${myList}" var="user">
    <TR>
       <TD><c:out value="${user.name}" /></TD>
       <TD><c:out value="${user.fname}" /></TD>
       <TD><c:out value="${user.city}" /></TD>
       <TD><c:out value="${user.cont}" /></TD>
       <TD><c:out value="${user.age}" /></TD>
    </TR>
    </c:forEach>

  • How to generate a report based on account description

    Hi Experts,
    How to generate the report based on account description, that means
    i want to generate a report on G/L account and which account numbers are having 'CASH' description.
    for Ex: G/L a/c no: 25010026-Cash and Bank balance(des)
    G/L a/c no: 101000-Cash-freight
    like this.
    please help to do this,
    good answer will be appreciated with points,
    Thanks in advance
    Venkat

    Hi shana,
    my requirement is
    I have G/L account numbers, that account numbers having some descriptions, in these some descriptions are belongs to cash transactions, i want to generate the report on these cash transactions, and the report is " G/L account, debit cash, credit cash, balance".
    is it possible or not,
    thanks in advance,
    Venkat

  • Error in generating PDF Based form - SUI Report

    Hi,
    We are running Quarterly reports for Unemployment reporting at USA using tax reporter.
    We are not able to see the complete spool output for the Wage Type Listings but only just 1 page. In the tax reporter log we get the error "Error in generating PDF Based form HR_F_WLIST_CA" for respective states.
    Any idea how to resolve this.
    We are on ERP 6.04.
    Thanks,

    Hi,
    I think its  Basis problem.Ask basis gyus to repair the connection and try again.
    Regards,
    Manoj.

  • Generating an  html report based on table at sql 2005 db

    Hi
    I want to create an html report based on a table named inventory on sql server 2005 database.
    first code used to generate an output report
        try {
                // TODO add your handling code here:
                String s = "<html> <body> <table border=1><caption> Inventory Report </caption>";
                s += "<tr><td>Item_id<td>item_name<td>Existing quantity</td><tr><td>3<td>4<td> <td>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                    fs = new FileOutputStream("D:\\Report\\Report.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
    Second jdbc  code for connection and select all records in the table
    try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
         String s="";
    while(rset.next())
        s+=(rset.getString(1)+"\t\t"+rset.getString(2)+"\t"+rset.getString(3)+"\t"+rset.getString(4)+"\n");
          st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
            }                             I want someone helps me to merge two codes into one code to generate an output html report.
    thanks in advance

    This is my trial but not the desired result ,it's displayed the title and a line only
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            // TODO add your handling code here:
                          String s = "<html> <body> <table border=1> <caption>Report title</caption>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
    while(rset.next())
                   s+=("<tr><td>"+rset.getString("Item_Code")+"</td><td>"+rset.getString("Item_Name")+"</td><td>"+rset.getString("item_cost")+"</td><td>"+rset.getString("item_quantity")+"</td></tr>");
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
         st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
        }

Maybe you are looking for

  • What is the best way to find and apply the samples in the sap library

    I am a fresh man in the process of learning sap . Mainly aim at the MM and SD model . They all say that the best way to accomplish the task is to follow the sap on-line help. because i don`t know the struts of the library , so to find what i need in

  • Retrieving bookmarks from an old version of Safari

    Hi, my iBook hard drive crashed and I've just purchased a MacBook Pro and installed the latest software. I have the data from my old hard drive on an external hard drive (from data recovery company). I was using Tiger on the iBook and now have Leopar

  • Image size and dpi for iDVD menu custom background?

    I created a custom background for my iDVD menu. When showing on my TV, part of the words and image is cut off on each side, even after adjusting my tv picture between wide screen and standard screen. What is the correct size and dpi to make a photogr

  • Conversion of fixed length flat files to oracle table

    hello friends Please help me getting the code for conversion of fixed length flat files to oracle table Should the tables be pre-defined ????? In this case the de-limiters are variable length spaces and not commas.Please help me with the same Regards

  • Performance and wrong internal priorities

    Ligthroom has very good functions. But with big databases the performance is bad or better the internal task priority is wrong: I have a 1 1/2 year old Windows XP pc with 4 GB RAM. For example: I have build a small database (name it SMALL_A) with abo