Direct database request and session variable value

Hi,
I have a problem by doing the following : idea is to have report with a list of all tables in user schema (which are not all in repository physical layer).
By clicking on the name of any, should bring answer report which is done as direct database request doing basically select * from table_clicked (this will be basically the same table with sufix _err holding error rows).
What I'm trying to do is having some kind report for error rows which can be in different tables in my database. So i had in mind to construct name of table i need , and pass it to database request through session variable. Am i doing right by doing direct database request like this :
select * from 'VALUEOF(NQ_SESSION.TestVar2)'
Is there another easyer way of doing this? I know this can be done by gourl by passing parameters but not sure how when i can't filter columns in direct database request (this can be different tables with different names of columns). I hope i didn't complicated this too much.
Thnx in adwance

Hi,
I know this is a hack, and would be much more easy to create one table with dimension and measures, but this is intended to be used with code generator, which can produce different error tables with different column names in different time: It is not conviniet for somebody to add them to repository every 5 minutes. For example : i run my workflow and for first run I have errors in table1(let us say customer table with 30 columns) and if click on the table name in some answer report, i want to see all the bad records in the table. Tomorrow after the run, there are bad records in table1 and in table2 (lets say products) so I would have choice to pick table 1 or table2 and see al the bad records in any of these tables. This means that I can not now which tables will I have tomorrow, and as it is generic, I can manually add some tables in my model, and would have to add err table also as a possibility to have error rows?
I saw post saying that you can pass parameter value by using go url functionality, by modifying configinstance file, but didn't suceed - http://gerardnico.com/wiki/dat/obiee/logical_sql/obiee_session_variable_go_url . Maybe some mistake or any better solution? I created session variable TestVar2, also modified instanceconfig.xml by adding this before </ServerInstance>
<ParamList>
<Param name="NQ_SESSION.TestVar2" source="url" nameInSource="SETVAR"/>
</ParamList>
and used go url in column formula : ''||"Physical Targets"."Physical Table"||''
Can I use @1 for using first column value?
Thnx

Similar Messages

  • Table Functions, Direct Database Requests, and NUMBER data types

    Hello. I call a number of table functions from our BI Enterprise server, and I've elected to do so using Direct Database Requests (I believe you can also call table functions in the physical layer of the repository, but that's not what I'm doing). The problem is that whenever I return any number from the table function that is not a whole number (1.23, for example), BI assigns the INTEGER datatype to the field instead of the DOUBLE datatype, thereby rounding my number to the nearest integer. Here's a concise example:
    Create these 3 database objects:
    CREATE OR REPLACE TYPE my_row AS OBJECT (my_num NUMBER);
    CREATE OR REPLACE TYPE my_tab AS TABLE OF my_row;
    CREATE OR REPLACE FUNCTION my_table_function RETURN my_tab
    PIPELINED IS
    BEGIN
    PIPE ROW(my_row(1.23));
    END;
    Then make this your query in your Direct Database Request:
    SELECT my_num FROM table(my_table_function);
    That query correctly returns "1.23" when it's called from the database. In BI, on the other hand, it returns "1" (and labels the field an INTEGER instead of DOUBLE data type). If in the Direct Database Request you change the Column Properties ->Data Format -> Decimal Places from 0 to 2, it then not surprisingly displays "1.00". I then tried changing MY_ROW.MY_NUM's datatype by explicitly specifying precision, and no luck. BI still labels this field as an INTEGER. Then I started trying to trick BI by massaging the SQL statement itself. None of the following worked:
    SELECT to_number(my_num) as my_num2 FROM table(my_table_function);
    SELECT my_num2 + 0.01 as my_num3 FROM (SELECT my_num - 0.01 AS my_num2 FROM table(my_table_function));
    SELECT to_number(to_char(my_num)) as my_num2 FROM table(my_table_function);
    SELECT to_number(substr(to_char('x'||my_num),2)) as my_num2 FROM table(my_table_function);
    Now I did find a solution, but I'm surprised that I have to resort to this:
    SELECT * FROM (SELECT /*+ NO_MERGE */ my_num FROM table(my_table_function));
    Does anyone out there know of a better way to do this? The above is a hack in my opinion. :)
    Thanks in advance for any input.
    -Jim

    Yes, it's really amazing.
    But I got it.
    CREATE OR REPLACE TYPE my_row AS OBJECT (my_num NUMBER(10,2));and in your SQL :
    SELECT cast(my_num as double precision) as my_num2 FROM table(my_table_function);I have the good result and I see the numbers after the comma.
    Very tricky !
    Edited by: gerardnico on Jul 7, 2009 2:55 PM change number(10,2) by double precision ......... pfffff

  • Server hangs and session variable value not maintained.

    dear all,
    this is exteremetly urgent. i upgraded my tomcat to 4.1.24.but i have problems running the same code which was working earlier, i get null in the value of session variable. and also get the following error
    ////////////////error got /////////////
    Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
    .java:473)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:190)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
    95)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
    3)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :594)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:392)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :565)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:619)
    at java.lang.Thread.run(Thread.java:536)
    ///////////////end of error messsge ////////////
    the code where i am getting this message is as follows
    <%@ page session="true"%>
    <HTML>
    <HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
    <%@ page import="java.sql.*" %>
    <%! // declaring variables
    String s = "";
    java.sql.ResultSet rs=null;
    java.sql.Connection con;
    java.sql.Statement stmt=null,stmt1=null;
    String username = "";
    String password = "";
    String Ousername = "";
    String Opassword = "";
    String changepass="";
    String usertype ="",useremail="",EmpName="";
    %>
    <body>
         <%      
         try
         //set session for max of 100 milliseconds
         // session.setMaxInactiveInterval(10000);
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
              stmt = con.createStatement();
              s = "select * from LoginUser";     
         username = request.getParameter("LogonId"); //get this through prev. form
         password = request.getParameter("txtPassword");
         out.println(username + " " + password);
         // make explicitly to lower case
         username = username.toLowerCase();
         rs = stmt.executeQuery(s);               
                        while(rs.next())
                        //getting data from database
                        Ousername = rs.getString("EmpName");
                        Opassword = rs.getString("Password");
                        useremail = rs.getString("EmailId");
                        usertype = rs.getString("UserType");     
                        if(Opassword.equals(password) && Ousername.equals(username)) //found match correct entry
                             changepass = request.getParameter("PasswordNew");
                             if(changepass != null)
                             stmt1 = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_UPDATABLE);     
                             s = "update LoginUser set Password = '" + changepass + "' where EmpName = '" + username +"'";
                             out.println(s);
                             stmt1.executeUpdate(s);
                             stmt1.close();
                             if(usertype.equals("User") == false)//ie admin
                             session.setAttribute("username",username);     
    ************************this value not maintained *********************
                             session.setAttribute("useremail",useremail);
                             session.setAttribute("usertype",usertype);
    ************************this value not maintained *********************
                             //closing connections
                             %>                                                       
                                  <jsp:forward page= "ComplaintType.jsp" />                         
                             <%
                             else //user
                             EmpName = username;
                             session.setAttribute("EmpName",EmpName);                         
                             session.setAttribute("useremail",useremail);
                             //closing connections
                             %>
                             <jsp:forward page="ComplaintCategory.jsp" />
                             <%     
                             }//end if
                        }//while loop                                   
                        //first closing connections then forwarding                    
         %>
                        <jsp:forward page="InvalidLOGIN.jsp" />
                        <%     
                        ///rs.close();
                        ////closing
                        //stmt.close();
         // con.close();
         }//try
              catch(Exception ep)
              out.println(ep);
              System.exit(1);
         %>
    </BODY>
    </HTML>

    hi all,
    thanx a lot for your help,specially hari52
    hari52 strangely enough the code started working,but
    now i have another problem
    after a while my server hangs or gets shutdown ,a
    message is shown as
    "java.exe has generated error and will be shutdown"
    i know that more connections can be a prob. but i
    make sure that connections r closed on each page,also
    i am a newbie and do not have the time at present to
    learn abt. connection pool ,can this problem be
    solved easily?
    it would be a great help again on your part,
    thanx again,You remove the System.exit(1) line from the code inside the catch block
    and try again. That's the reason tomcat getting down. System.exit(1) should not be used inside jsp. it will make the underlaying Servlet Engine to shutdown.

  • OBIEE 11.1.1.6.8 Direct Database Request

    I have created a report using direct database request and created a filters using Presentation variable as prompt
    However All choices from Prompt is not capturing but for any value its working fine. Please let me know how can we do for All choices with DDR
    Thanks
    NK

    you can't pass all the choices to direct database request because direct database and here there is no relationship with existing subject area. So only one dynamic value can pass from prompt else you can hardcode the values in the bind variable. For this please refer my link https://forums.oracle.com/thread/2562814

  • Direct Database Request - Add Drop Down List

    Hi,
    I have created a direct database request and would like to represent the output in table format. How can I add a page drop down filter, I would like to move two columns as page drop down lists and also be able to view the columns in the table.
    I know how to acheive this with a pivot table, but can this also be done with a table layout?
    Thanks

    Here is the answer to your specific question: No, you can't do "page drop downs" in Table View. You will have to use Pivot Table as described in previous posts.
    You will have to use dashboard prompts to get your choices. You are probably saying, "but dashboard prompts must be built on a Subject Area column and I can't select it because I am using a direct database as my source. So how do I create the prompt?"
    Good question. My question is, on the columns that you need as the "drop down filters," are those columns in any existing Subject Area? I know that your request is built by direct database, but if the specific column you need for your dashboard prompt can be found in a Subject Area, then you can use that Subject Area on which to build your dashboard prompts.
    You can add a WHERE condition in your direct database to receive the presentation variables. Read below to learn how:
    http://108obiee.blogspot.com/2009/11/variables-in-direct-database-requests.html

  • Unable to Schedule a Direct Database Request in OBIEE 11g.

    Hi All,
    I am trying to schedule a Report that is generated using a Direct Database Request Query.
    Whenever I try to create an Alert for this specific Report it Fails to deliver.
    I checked the Job Manager for this Alert. I found out that the Job has completed with an Exit Code = 2 and there was no other error description for the same.
    Can we not create an alert for a Direct Database Request.
    Please let me know if anyone has dealed with such an issue and if anyone has a solution for this.
    Thanks in advance.
    Dev.

    Analyses based on direct database requests and sent out through agents work just like any other analysis in terms of content, delivery etc.
    Are you sure that you're not hitting a privilege problem and that the user executing the agents isn't allowed to run direct database requests?

  • Obiee 11g Executing a Direct Database Request in my Dashboard

    Hi Experts,
    i want to create in my dashboard Button:
    when i presses Button message will appear with question with 2 buttons :
                  1 Ok        : will execute Direct Database procedure.
                  2 Cancel : return to source dashboard.
    what is the way to execute ?
    I would appreciate your help.
    sin

    Analyses based on direct database requests and sent out through agents work just like any other analysis in terms of content, delivery etc.
    Are you sure that you're not hitting a privilege problem and that the user executing the agents isn't allowed to run direct database requests?

  • Applying Prompt on Direct Database Request in OBIEE 11g

    Hi
    I am creating Analysis by using 'Direct Database Request' and i am executing SQL Query to direct Database i am NOT creating Business and Presentation Model in RPD. Now i have to apply Filters on Report. any idea how i can do that?
    Example:
    Prompt (filter) :   Year                 Employee Department
                              2011                    HR
                              2012                    IT
                              2013                    Finanical
    Employee Name |    Employee Age   | Gender  | Leave Status     |    Leave Type
    abc                            31                      male       on leave              Sick leave
    xyz                             39                    Female    on leave               Annual leave
    i want to filter by YEAR and Employee Department.
    Regards
    Baig

    NO!!!!!!!!!!
    You Direst SQL query should contain the url
    ex:
    SELECT COL1,COL2,
    '<a href=http://obiapps:9704/analytics/saw.dll?Go&Path=/Answers&path=%2Fshared%2FAppslink%20Dashboards%2F_portal%2FAppslink%20Dashboards%2FEmployee%20Department=Navigate&P0='+BUSINESS_GROUP_NAME+' target=_new>'+BUSINESS_GROUP_NAME+'</a>
    FROM TABLE
    then go for the column format
    Note: in MS SQL + is for concat, you might have to change based on your db.

  • Drill down on direct database request

    Hi all,
    I would like to know if its possible to drill down in a table created with a direct database request. I've created the direct request and run it perfectly, but drilling down is not enabled and I, even thought I've looked for it, I couldnt find any option to enable it. I've also checked privileges just in case it had something to do with this, but didnt see anything neither.
    To sum up, could anyone tell me if drilling down is possible in direct database request and, if so, how can I achieve it?
    Thank you very much in advanced for any kind of help.

    NO!!!!!!!!!!
    You Direst SQL query should contain the url
    ex:
    SELECT COL1,COL2,
    '<a href=http://obiapps:9704/analytics/saw.dll?Go&Path=/Answers&path=%2Fshared%2FAppslink%20Dashboards%2F_portal%2FAppslink%20Dashboards%2FEmployee%20Department=Navigate&P0='+BUSINESS_GROUP_NAME+' target=_new>'+BUSINESS_GROUP_NAME+'</a>
    FROM TABLE
    then go for the column format
    Note: in MS SQL + is for concat, you might have to change based on your db.

  • Get value from Direct Database Request

    Hi Experts,
    I have report based on Direct Database Request which returns one row. I have to use value from this report in other one.
    So, I have to get value from query and set into some variable but I don't know there is any way to do it.
    Thanks in advance for any suggestion
    Regards,
    Esk

    Thank you for your reply, but I don't want to use variable in Direct Database Request in clausal 'WHERE' or 'IN'.
    I want value which returns query. For example if my Direct Database Request is : 'Select ID from table1', then
    I wand this 'ID' in variable to use it in other report.
    regards
    Esk
    Edited by: Eskarina on 21-may-2012 2:16

  • Direct Database Request & prompts

    Is it possible to use Prompts in a Request base on a "Direct Database Request". How do I access the prompt variables in my SQL query?

    user643210 wrote:
    Hi,
    I am unable to get the data based on the prompt applied this way. Can u please tell how to get the data using prompt on dashboard?It has been outlined for you above.
    Define a presentation variable using your dashboard prompt,
    In your SQL in the direct request, filter your column using the value in the variable using :
    where column1= '@{somevar1}'
    where @{somevar1} is the name of your presentation variable.
    To Debug why your are not getting results, have a look at the what value got substituted into the Physical SQL being sent to the the underlying database using the session manager.

  • Direct Database Request with Dashboard Prompt LOV Source

    I have complex Direct Database Request query having Dashboard Prompt. In Dashboard prompt I want to have LOV. But to create the DPrompt having LOV, I must have the table/column in Subject Area. How I can have table in RPD not connected or joined with any table in RPD?
    The idea is to do the reporting based on direct query with Prompt/LOV but do not want to include the prompt source table with other my main logical model which is used for other purpose.

    Hi Kishore
    Thanks for the reply but it is little less clear because I already have working Dashboard level prompt where
    1. Instead of LOV I type the value, use the Presentation Variable as Set Variable on Dashboard Prompt, say pDepartment
    2. Created direct database rqeuest query having where condition .. WHERE Department= '@{pDepartment}'
    And the above Dashboard works great. Only problem is that I want to have LOV for Department for which I need to have the respective table/column in RPD
    I liked your idea about BI publisher but how do you really deploy the BI Publisher?
    Thanks
    OBIEEFAN

  • Using Filters in Direct Database Request

    Hi,
    I am creating my report table using direct database request option. Now i want to filter the column values. But in Direct Database Request report OBIEE is not giving option for filtering i.e. filter Add Filter button is not visible. How can i do it?
    Thanks
    Aasim Khan

    Actually i can not hard code these values in my SQL. I am using variables in my SQL to give where clause condition. But how can i set these variables? The actual scenario is that i have a report table. When i clicked some column of this report i have to navigate to another report and pass some value of clicked row to the next report. On the next report SQL i have defied a variable in my where clause. But i am unable to set this variable when i clicked on some row link. So how can i achieve it in direct database request report?
    In normal answer report all values of the clicked report are passed to the next report, and in the next report we mention filters with "is prompted" option to apply the selected values. But in Direct Database Request report we do not have this filter option. So can anybody explain how can i update variable values in the above mentioned scenario.
    Thanks,
    Aasim Khan.

  • Reg-Direct database request Prompt

    Hi
    I have a direct database request I kept this report on dashboard with request date as a prompt
    the filter on the report is
    TRUNC(FCR.request_date) = TO_DATE('@{Date1}{07/23/2012}','mm/dd/YYYY').(Data is coming fine)
    but
    I wanted to show the data for the current_date on the dashboard "default"
    When I try to do
    TRUNC(FCR.request_date) = TO_DATE('@{Date1}{Sysdate}','mm/dd/YYYY') Its throwing an error.
    I am not sure whether we have to use Sysdate or Current_date.Please let me know how to achieve this.
    Thanks
    Edited by: user13545914 on Jul 23, 2012 2:27 PM

    Prompt should like this:
    1) Column->Date [IF you do any formula here, you have to do every place, in this case I'm not doing any formula]
    2) Operator-> is equals to is in
    3) Control-> Calendar
    4)Default to ->SQL Results
    use query like
    SELECT Time.Date FROM "Service - CRM Service Requests" where Time.Date=current_date
    This would show default value select as todays date
    5) Set Variable -> PS
    Call the PS variable in the report without any default value. this should work fine, once you get confidence and this approach start doing what ever you want.
    if you want you can try same scenario with couple of columns.
    Just relax and read all threads and do it.

  • OBIEE 10G Direct Database Request

    Hey Everybody,
    I'm on OBIEE 10G in a solaris environment and I'm connected to Oracle 11.2 database. I'm having trouble getting the correct dataset returned from a Direct Database Request from a dashboard that users input data. I have the dashboard created and have all the dashboard prompts setup as prestentation variables. My DDR sql looks like this:
    Select from table where Batch_ID = '11' and PID = '1234' and Reported_Date = '01011900'*
    My issue is that I want the Reported Date dashboard prompt to be a optional field that user do not have to enter on the dashboard. However, if a user doesn't enter a value on the dashboard then an error is thrown because the DDR sql is expecting a value for the Reported Date.
    I've tried to enter the OBIEE standard "%" as an all choices option in the database and changed the DDR sql to look like this:
    Select from table where Batch_ID = '11' and PID = '1234' and Reported_Date like '%'*
    However, this throws an error saying an unidentified characters has been used even though if I run this above sql query directly against the database myself it gives back the wanted dataset.
    Anybody ever ran across this situation before?
    Thanks,
    Jeff

    Here is the code I used as my DDR. When I leave the @reported_date prompt empty it doesn't return anything. Thanks.
    select Batch_ID_0,
    Batch_Seq_Nbr_1,
    AC_TL_Seq_Nbr_2,
    Contributor_ID_3,
    Account_Nbr_4,
    Account_Type_5,
    Account_Status_6,
    Opened_Date_7,
    Reported_Date_8,
    Closed_Date_9,
    Current_Balance_10,
    AC_Assoc_Seq_Nbr_11,
    ECOA_Code_12,
    SSN_13,
    Phone_Nbr_14,
    Birth_Date_15,
    Last_Name_16,
    First_Name_17,
    Middle_Name_18,
    Generation_Code_19,
    Line1_of_Addr_20,
    Line2_of_Addr_21,
    City_22,
    State_23,
    Zip_24
    From (
    Select Ac_Trade.Batch_ID Batch_ID_0,
    Ac_Trade.Batch_Seq_Nbr Batch_Seq_Nbr_1,
    Ac_Trade.AC_TL_Seq_Nbr AC_TL_Seq_Nbr_2,
    Ac_Trade.Contributor_ID Contributor_Id_3,
    Ac_Trade.Account_Nbr Account_Nbr_4,
    Ac_Trade.Account_Type Account_Type_5,
    Ac_Trade.Account_Status Account_Status_6,
    Ac_Trade.Opened_Date Opened_Date_7,
    Ac_Trade.Reported_Date Reported_Date_8,
    Ac_Trade.Closed_Date Closed_Date_9,
    Ac_Trade.Current_Balance Current_Balance_10,
    Ac_Assoc.AC_Assoc_Seq_Nbr AC_Assoc_Seq_Nbr_11,
    Ac_Assoc.Ecoa_Code ECOA_Code_12,
    Ac_Assoc.SSN SSN_13,
    Ac_Assoc.Phone_Nbr Phone_Nbr_14,
    Ac_Assoc.Birth_Date Birth_Date_15,
    Ac_Assoc.Last_Name Last_Name_16,
    Ac_Assoc.First_Name First_Name_17,
    Ac_Assoc.Middle_Name Middle_Name_18,
    Ac_Assoc.Generation_Code Generation_Code_19,
    Ac_Assoc.Line1_of_Addr Line1_of_Addr_20,
    Ac_Assoc.Line2_of_Addr Line2_of_Addr_21,
    Ac_Assoc.City City_22,
    Ac_Assoc.State State_23,
    Ac_Assoc.Zip Zip_24,
    row_number() over(order by Ac_Trade.batch_id) row_limit
    From owb.Ac_Trade, owb.Ac_Assoc
    Where Ac_Trade.Batch_Id = Ac_Assoc.Batch_Id
    And Ac_Trade.Batch_Seq_Nbr = Ac_Assoc.Batch_Seq_Nbr
    And (Ac_Trade.Batch_Id = ( @{batch_id}{'1'} ))
    And (Ac_Trade.Processor_Id = ( @{processor_id}{'1'} ))
    And (Ac_Trade.Reported_Date like (CASE WHEN '@{reported_date}{}' = '' THEN '%%' ELSE '@{reported_date}' END) ))
    Where Row_Limit <= 25
    Order By Batch_ID_0,
    Batch_Seq_Nbr_1,
    AC_TL_Seq_Nbr_2,
    Contributor_ID_3,
    Account_Nbr_4,
    Account_Type_5,
    Account_Status_6,
    Opened_Date_7,
    Reported_Date_8,
    Closed_Date_9,
    Current_Balance_10,
    AC_Assoc_Seq_Nbr_11,
    ECOA_Code_12,
    SSN_13,
    Phone_Nbr_14,
    Birth_Date_15,
    Last_Name_16,
    First_Name_17,
    Middle_Name_18,
    Generation_Code_19,
    Line1_of_Addr_20,
    Line2_of_Addr_21,
    City_22,
    State_23,
    Zip_24

Maybe you are looking for

  • Everyone Stop Worrying About The iPhone 5 It's Not Coming Out This Year!

    Many have been saying, don't buy the Verizon iPhone 4 because in 6 months it will be outdated by the iPhone 5, this is completely false! Just because Apple has introduced a new iPhone every year doesn't mean it couldn't skip a year, I mean it's only

  • How to find the S/N of a 7941 on CUCM 7.0

    Thieves stole a CP-7941 and we are trying to determine what is the serial number of the phone. Is there a way to find out on CUCM 7.0? Thanks for the assistance and support. Leo

  • Vendor posting with discount base larger than open items amount

    Hello, I'm trying to do the following post: Vendor (Debit) 500 u20AC Cost Account (Debit): 1250 u20AC Bank Account  (Credit) : 2000 u20AC VAT (Debit) 250 u20AC And I got the following warning message: "Items rel. to cash disc. Total 750 larger than o

  • E-mails in HTM format: some are sent, some are not.

    Hi all, we're experiencing a very strange problem. We're creating emails in HTM format that are visible inside transaction SOST. Then when sending them, some of them are successfully sent and others are not. It seems that if depends on the lines of t

  • Reg:- Include portal DC in Enterprise Application DC

    Hi All, I have a requirement to reference a portal DC from an Enterprise Application DC. Here's the scenario: We have a Web Module DC which uses a portal DC as Used DC. Then I created an Enterprise Application DC to deploy the Web Module DC. But, whe