SYNTAX TO RETRIEVE REPORTS

Hi,
I need some help. I need to retrieve records in reports between specific donorcodes that i provide based on specific conditions
The query below is what i created earlier to retrieve records between specific donorcodes: saved as REPORTSBETWEENDONORCODES.rdf
SELECT ALL INITCAP(TITLE_TAB.TITLE_NAME||' '||DONOR_TAB.FIRST_NAME||' '||DONOR_TAB.MIDDLE_NAME||' '||DONOR_TAB.LAST_NAME) donor_name,
(INITCAP(RPAD(DONOR_TAB.ADDRESS1, 35, ' ')||RPAD(DONOR_TAB.ADDRESS2, 35, ' ')||RPAD(DONOR_TAB.STREET, 30, ' '))) initcap_rpad_address1_35_rpad_,
INITCAP(CITY_MASTER_TAB.CITY_NAME||' - '||DONOR_TAB.PIN) initcap_city_name_pin1,
INITCAP(CITY_MASTER_TAB.STATE_NAME||' - '||CITY_MASTER_TAB.COUNTRY_NAME) initcap_state_name_country_nam,
UPPER('DONOR CODE'||' - '||CITY_MASTER_TAB.CITY_NAME||'/'||DONOR_TAB.DONOR_CODE) upper_donor_code_donor_code1
FROM DONOR_TAB, CITY_MASTER_TAB, TITLE_TAB
WHERE (DONOR_TAB.REMINDER = :P_REMINDER
AND DONOR_TAB.LANG = :P_LANG)
AND ((DONOR_TAB.CITY_CODE = CITY_MASTER_TAB.CITY_CODE)
AND (DONOR_TAB.TITLE_CODE = TITLE_TAB.TITLE_CODE))
ORDER BY DONOR_TAB.DONOR_CODE
This query given below is what i created now to retrieve records between specific donor codes:DONORCODESBETWEEN
SELECT ALL INITCAP(TITLE_TAB.TITLE_NAME||' '||DONOR_TAB.FIRST_NAME||' '||DONOR_TAB.MIDDLE_NAME||' '||DONOR_TAB.LAST_NAME) donor_name,
(INITCAP(RPAD(DONOR_TAB.ADDRESS1, 35, ' ')||RPAD(DONOR_TAB.ADDRESS2, 35, ' ')||RPAD(DONOR_TAB.STREET, 30, ' '))) initcap_rpad_address1_35_rpad_,
INITCAP(CITY_MASTER_TAB.CITY_NAME||' - '||DONOR_TAB.PIN) initcap_city_name_pin1,
INITCAP(CITY_MASTER_TAB.STATE_NAME||' - '||CITY_MASTER_TAB.COUNTRY_NAME) initcap_state_name_country_nam,
UPPER('DONOR CODE'||' - '||CITY_MASTER_TAB.CITY_NAME||'/'||DONOR_TAB.DONOR_CODE) upper_donor_code_donor_code1
FROM DONOR_TAB, CITY_MASTER_TAB, TITLE_TAB
WHERE (DONOR_TAB.REMINDER = :P_REMINDER
AND DONOR_TAB.LANG = :P_LANG
AND DONOR_TAB.DONOR_CODE BETWEEN :P_DONORCODE1 AND :P_DONORCODE2
AND DONOR_TAB.CITY_CODE = CITY_MASTER_TAB.CITY_CODE
AND DONOR_TAB.TITLE_CODE = TITLE_TAB.TITLE_CODE)
ORDER BY DONOR_TAB.DONOR_CODE
The query below is written in my WHEN-BUTTON PRESSED TRIGGER in the form:
DECLARE
PL_ID PARAMLIST;
CONDITION VARCHAR2(450);
RANDOM_RECEIPTS varchar2(100);
DONOR_CODE_FROM VARCHAR2(100);
DONOR_CODE_TO VARCHAR2(100);
CITY_TYPE VARCHAR2(30);
CITYCODE NUMBER;
CHANGED_CITY_TYPE VARCHAR2(30);
CHANGED_STATE_TYPE VARCHAR2(30);
CHANGED_COUNTRY_TYPE VARCHAR2(30);
CHANGED_lang varchar2(30);
STATENAME VARCHAR2(30);
COUNTRYNAME VARCHAR2(30);
CHANGED_REM VARCHAR2(4);
changed_random_receipts VARCHAR2(100);
b number;
BEGIN
IF NOT Id_Null(get_parameter_list('ABC')) THEN
Destroy_Parameter_List('ABC');
END IF;
PL_ID:=create_parameter_list('ABC');
IF
CHECKBOX_CHECKED('MAILING_BLK.CHK_RANDOM_DONOR_CODE') = FALSE AND
CHECKBOX_CHECKED('MAILING_BLK.CHK_CITY_TYPE') = FALSE AND
CHECKBOX_CHECKED('MAILING_BLK.CHK_STATE_TYPE') = FALSE AND
CHECKBOX_CHECKED('MAILING_BLK.CHK_BETWEEN_DONOR_CODES') = TRUE THEN
--modified21
if (:MAILING_BLK.donor_code_from is null or :MAILING_BLK.donor_code_to is null )THEN
if :MAILING_BLK.donor_code_from is null then
-- m:=show_alert('alert60');
b:=show_alert('alert323');
--message('Please Enter donor_code_from');
previous_item;
go_item('MAILING_BLK.donor_code_from');
raise form_trigger_failure;
elsif :MAILING_BLK.donor_code_to is null then
--message('Please Enter donor_code_to');
b:=show_alert('alert323');
--m:=show_alert('alert60');
previous_item;
go_item('MAILING_BLK.donor_code_to');
raise form_trigger_failure;
end if;
else
--modified21
DONOR_CODE_FROM:=:MAILING_BLK.DONOR_CODE_FROM;
DONOR_CODE_TO:=:MAILING_BLK.DONOR_CODE_TO;
CONDITION:= ' AND DONOR_TAB.DONOR_CODE BETWEEN '||DONOR_CODE_FROM||' AND '
||DONOR_CODE_TO;
Add_parameter('ABC','paramform',TEXT_parameter,'no');
Add_parameter('ABC','P_REMINDER',text_parameter,changed_REM);
Add_parameter('ABC','P_LANG',text_parameter,changed_lang);
Add_parameter('ABC','WHERE_CLAUSE',TEXT_PARAMETER,CONDITION);
Run_Product(REPORTS,'e:\reports\report60\reports\reportsbetweendonorcodes.rdf',ASYNCHRONOUS,RUNTIME,
FILESYSTEM,PL_ID,NULL);
_/*Run_Product(REPORTS,'e:\reports\report60\reports\reportsbetweendonorcodes.rdf',ASYNCHRONOUS,RUNTIME,
FILESYSTEM,PL_ID,NULL); */
end if;
else
message('Select one option For Report Generation');
message('Select one option For Report Generation');
previous_item;
go_item('MAILING_BLK.CHK_city_type');
raise form_trigger_failure;
END IF;
My problem is that when i press the trigger,it is retrieving records based on languaga and reminder conditions but not between specific donorcodes.
How do i define it in the report and form
If i run the report individually within the report as per the second report file DONORCODESBETWEEN.rdf, i get data but in the form i'm not getting it
Can anyone help?

This is a server-side PL/SQL forum - not Oracle Forms.
The client-side PL/SQL used by Oracle Forms is very different from the server-side PL/SQL used by the database.
I suggest that you
- post your question in the [urlhttp://forums.oracle.com/forums/forum.jspa?forumID=82]Oracle Forms Forum
- use the PRE and /PRE tags (in square brackets) to format your code as it is pretty much unreabable in its current format

Similar Messages

  • The report I published on the SQL server report server is not showing in the application we use to retrieve reports.

    The report I published on the SQL server report server is not showing in the application we use to retrieve reports. My cell phone number is {removed}
    Thanks.

    Hello Roger Tenn,
    Thank you for posting in the TechNet Forum.
    As this issue is related to SQL server report server, to receive better report, it is recommended to ask in the SQL server forum.
    https://social.technet.microsoft.com/Forums/en-US/home?category=sqlserver
    The professionals here will be glad to help you.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Error while trying to retrieve reports

    Hi ,
    I am getting the below error while trying to retrieve reports.
    "5203:ADM Error proceessing results from query:The dataform grid is invalid. Verify that all members selected are in Essbase. "
    Can any one help me know the cause of this error and how to get rid of it?
    Thanks in advance

    It sounds like you have a grid (visible or hidden) with an invalid member name in it. IT could be caused by the member being hard coded into a row or column and then the member being deleted or renamed in the outline. The only way to fix it is to check each member anme in the grids and determine what changed.

  • Need efficient queries to retrieve reports inside a folder

    Case 1:
    To retrieve reports in a particular folder -
    I am currently using 2 queries -
    a) retrieving parentid given a folder name
    b) retrieving all reports given the above parent id.
    Can I combine these into 1 query ?
    Case 2:
    I also need to retrieve all reports within a given folder and subfolder. Can this be done with 1 query?
    or do I need to retrieve all objects in the folder and then iterate in a loop
    if folder exists and retrieve the reports.

    Hi Jam
    For Case1:  To retrieve Crystal reports in a particular folder, the following query should work.
    Select COUNT (SI_ID) From CI_INFOOBJECTS where SI_KIND = 'CrystalReport' and SI_PARENT_FOLDER = 22826 and SI_INSTANCE = 0
    Hope this helps.
    ThanksSoni

  • Sql syntax to retrieve xml

    Hi:
    I have a table ASSAYS as:
    ASSAY_NAME VARCHAR2(30)
    ASSAY SYS.XMLTYP(...)
    What is sql syntax to retrieve xml from assay as XMLType object in Java?
    Thanks!

    Get xml from xdb from java

  • Error retrieving reporting data

    Hi,
    After I enter to https://afcs.acrobat.com/ I getting this error :
    "Error retrieving reporting data"
    What to do?
    Thanks, Eyal.

    Hi Eyal,
    We're aware of this one - we hit a glitch last night with the reporting
    servers and had to take them down for maintenance. They should be back up
    later today.
      nigel

  • Is it possible to retrieve report for more then one record at Bi Pub

    is it possible to retrieve report for more then one record at a time using BI Publisher on siebel Application

    Hi Sudhir,
    We have tried this.
    I think currently you can query for records you want on UI and run report , then you can see the result set of query in report.
    But i think in future releases of BIP the feature to run a report for selected & Multiple Selected records will be provided.
    Thanks,
    Vamsi

  • Open doc syntax to pass report filter

    Hi All,
    I am trying to drill from Xcelsius dashboard to Webi report scheduled instance based on some prompt value but resulting Webi report refresh it self.
    I want that on drill webi report just open scheduled instance with filter, no refresh required because data on dashboard and webi report become out of sync.
    I am using following syntax to open instance and expecting that report will jus open scheduled instance:
    https://<SERVER NAME>/OpenDocument/opendoc/openDocument.jsp?iDocID=AXY.YppbgI5LikDNEuu7pSc&sIDType=CUID&sType=wid&sRefresh=N&sInstance=Last&sReportName=Detail&sWindow=New&lsSBSD=GPF&lsSClosed=Closed
    Is there any way I can open scheduled instance with filter value and report does not refresh?
    Thanks in advance

    Hi Kumar,
    Instead of opening the last instance with these parameters, that will force the refresh, you need to open the latest instance with the same parameters. The correct syntax for your OpenDocument URL should be:
    https://<SERVER NAME>/OpenDocument/opendoc/openDocument.jsp?iDocID=AXY.YppbgI5LikDNEuu7pSc&sIDType=CUID&sType=wid&sRefresh=N&sInstance=param&sReportName=Detail&sWindow=New&lsSBSD=GPF&lsSClosed=Closed
    More information in this KBA:
    https://service.sap.com/sap/support/notes/1554262
    For full documentation about OpenDocument:
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Regards,
    Julian

  • Is there any way to retrieve reports removed by the PRCSYSPURGE

    Hi everyone. I am trying to retrieve the last month reports but by default in process scheduler system settings the retention days is set to 7 days it was automatically purge the all process run types. Can any one know how to retrieve the those reports.
    Thanks in advance.
    Thanks & Regards,
    Siva Prasad B

    You could possibly try looking in the Report Repository. If you are not sure where that path is, you can look at the Report Node Definition to find out. PeopleTools > Process Scheduler > Report Nodes. For me, it is in the "Network Path" at the bottom of the screen. Another location you can look is in the Web Profile -- PeopleTools > Web Profile > Web Profile Configuration. Again, at the bottom of the screen, you should see "Report Repository Path".
    In the Repository Path, you would see one folder for each environment. Go into your environment's folder. Then, you should see a folder for each date. I haven't changed the default 7 day rule, and I still have folders from back in 2010, so you might be able to still get the reports. I am not sure.
    You wouldn't be able to open these from online (like in Process Monitor), but if something hasn't deleted the report file from the repository directory, you should still be able to view the reports.
    Hope that helps.

  • Retrieving report resultset information

    Hi. I have a form1 and a report1 on the same page. The report1 shows the results of a query based on the selections made within the form1.
    On my report1 I want to have one of the columns in the result set to link to a another report2. The problem is that I need to pass some information to this report2 via the link. The information I need to pass is contained within a single row with in the report1 results. How do I retrieve information for a reports resultset to pass into a url?
    Thank you.

    check out FetchProfile......
    FetchProfile fp = new FetchProfile();
    fp.add(FetchProfile.Item.ENVELOPE);
    folder.fetch(msgs, fp);

  • Missing dataSourceId when retrieving report dataproviders

    Hi,
    I'm writing script that is retrieving information about reports from CMC and I have some issues with retrieving data provider details.
    For some reason, my script is not able to retrieve dataSourceId in some reports, it's empty:
    [DBG]: (...) >> $dpDetails.dataprovider
    id           : DP0
    name         : Query 1
    dataSourceId :
    updated      : 2014-08-06T08:38:27.000+02:00
    duration     : 0
    isPartial    : False
    rowCount     : 0
    flowCount    : 1
    dictionary   : @{expression=System.Object[]}
    query        : SELECT DISTINCT (...)
    It appears on about 1 per 5 reports. I've checked few of them, I was able to edit data provider, add new objects from universe, refresh report. I was able to open universe with universe design tool (using the same credentials).
    I've checked now using chrome advanced restfull client, result is the same:
    URL: http://serverName:6405/biprws/raylight/v1/documents/5603515/dataproviders/DP0
    Response:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <dataprovider>
    <id>
    DP0 
    </id>
    <name>
    Query 1 
    </name>
    <dataSourceId />
    <updated>
    2014-08-06T09:02:15.000+02:00 
    </updated>
    <duration>

    </duration>
    <isPartial>
    false 
    </isPartial>
    <rowCount>

    </rowCount>
    <flowCount>

    </flowCount>
    <dictionary>
    <expression qualification="Dimension" dataType="String">
    <id>
    DP0.DO2b3 
    </id>
    What could be the source of the issue?
    Many thanks and regards
    Part of my code used to retrieve DP details:
    # Send any GET request, returns results
    Function GetResults($logonToken, $contentLocale, $URL)
        Write-Verbose "GetResults $logonToken, $contentLocale, $URL"
        # Header
        $headers = @{ "X-SAP-LogonToken" = $logonToken ;
                  "Accept"           = "application/json" ;
                  "Content-Type"     = "application/json" ;
                  "X-SAP-PVL"        = $contentLocale
        # GET
        $result = (Invoke-RestMethod -Method Get -Uri $URL -Headers $headers)
        return ,$result
    # Find dataproviders used by report
    Function GetDataProviders($logonToken, $contentLocale, $URL, $reportID)
        $reportUrl = $URL + "/raylight/v1/documents/" + $reportID
        $result = (GetResults $logonToken $contentLocale ($reportUrl + "/dataproviders"))
        Write-Verbose $result.dataproviders
        return $result
    # Get given dataprovider details information
    Function GetDataProviderDetails($logonToken, $contentLocale, $URL, $reportID, $dataProvider)
        $reportUrl = $URL + "/raylight/v1/documents/" + $reportID
        $result = (GetResults $logonToken $contentLocale ($reportUrl + "/dataproviders/" + $dataProvider))
        return $result

    Hello again Howard,
    I am unable to reproduce the issue that you mentioned of with .unv webi docs migrated from 4.0 SP2 to 4.1 SP05.
    Below is a response of get dataproviders of a .unv webi document that I created in 4.0 SP2 and migrated to 4.1 SP05.
    [GET] http://{host}:{port}/biprws/raylight/v1/documents/33198/dataproviders
    header:Accept = application/xml
    header:X-SAP-LogonToken = "{server}:6400@{3&2=33222,U3&2
    RESPONSE:
    header:Date = Mon, 16 Feb 2015 08:35:09 GMT
    header:Content-Length = 322
    header:Content-Type = application/xml
    header:Server = Apache-Coyote/1.1
    meta:Status = HTTP/1.1 200 OK
    meta:HttpCode = 200
    meta:Content = <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <dataproviders>
        <dataprovider>
            <id>DP0</id>
            <name>Query 1</name>
            <dataSourceId>5148</dataSourceId>
            <dataSourceType>unv</dataSourceType>
            <updated>2015-02-16T07:34:45.000+01:00</updated>
        </dataprovider>
    </dataproviders>
    Could you please let us know what is the status on your side and help close this discussion in case you dont face the issue anymore?
    Thanks & Regards,
    Saritha

  • Retrieving Reports from Cache

    10gAS 9.0.4.1
    Reports 9.0.2.0.3
    First Issue:
    I am trying to reuse reports from cache. I have caching turned on in my rep_<server>.conf file, and the following entry in my cgicmd.dat file:
    rep17: report=<report name>.jsp <parameter>=%1 desformat=pdf destype=cache server=<report server> paramform=no ssoconn=<rad> tolerance=30
    Each time I run the report, a new copy is generated in the cache directory. The report returned to me is the new copy. Should the report server not retrieve an earlier copy of the report as long as it was generated within the last 30 minutes?
    Second Issue:
    When I run the report URL in Internet Explorer (version 6.0.2800.1106CO), 2 copies of the report output are created in cache. When using Netscape (version 7.2), only 1 copy of the report output is generated in cache. What are the issues with IE that cause two copies of the report output to be generated?

    Hi Birol,
    Can you please tell me is the content you have used in that "BAPI_DOCUMENT_CHECKOUTVIEWX programme"????
    Regards
    Harshavardhan.G

  • Syntax Error - INCLUDE Report "%_HR9010" Not Found

    I have an HR ABAP program(Query Generated) that works in Enterprise and is now being testing in the ECC 6.0 test environment and is getting an syntax error. The syntax points the line in the code where a custom infotype is declared with the infotypes syntax. Example:
    Infotypes:
    9010
    syntax error reads:
    'include report"%_HR9010" not found.
    Why am I getting that syntax error? The syntax error does not occur on standard sap infotypes, 0000, 0001, 0002. It appears to be failing on custom infotypes.  The Structure definition is there, the table definition is there and there are thousands of records in the table and it can be read by other programs with no problem. What piece is missing, could it be something to do with Infosets, whatever they are?

    Hi Murali,
    Please excute the report RPUMS40CCI. This report is to generate infotype includes and additional structures required for not only custom but also standard infotypes.
    In the selection screen provide the infotype number and select checkboxes 'Generate infotype include'
    and 'Generate additional structure'.
    Note: "RPU40CCI" is only for infotypes which starts with number '9*'.
    Thanks & Regards
    Santhosh
    Edited by: SS on Feb 12, 2009 1:21 PM

  • Execute t-sql before retrieving report data

    Hi,
    Is there a way to execute t-sql, with the connection from within the report, before the report retrieves it's data?
    I need this to initialize the connection's context_info.
    After searching the web I have found a solution to my problem which is instead of using a View, use a stored procedure which takes care of initializing the context_info and return the result of the view.
    Is there any other solution using crystal reports XI (sp none)?

    Download the service Pack or upgrade to CR XI R2 ( 11.5 ) for free and use your XI keycode to install it.
    Only other way would be to possibly use a SQL Expression, it may work. Only one data source can be used if using an expression.
    Thank you
    Don

  • Web Service to retrieve report

    I am trying to use the web services to retrieve a report's metadata, in particular the report filters. I can't find in the documentation the right classes/methods to use.
    In Jdeveloper, I have set up web service proxy for the WEBCatalogService, as well as SAWSession...
    Has anyone done this, and if so, could you provide any examples?
    This is on OBIEE 11g.
    thanks in advance!

    Check these links
    www.rittmanmead.com/files/biforum2011/Heljula_SOA.pdf
    http://www.rittmanmead.com/2011/11/web-services-in-bi-publisher-11g/
    http://oraclebizint.wordpress.com/2007/07/31/customizing-obi-ee-soap-api/
    http://www.rittmanmead.com/2011/10/oow2011-obiee-11g-and-adf-integration-using-the-action-framework/
    Pls mark if helps

Maybe you are looking for

  • Opening 2 PDF's with the same file name

    I have someone who has difficulty opening two PDF's with the same file name. They had a file open, then try to open another PDF document with the same file name as the original document, however it will not open (and no error displays) and reverts ba

  • Storing on an external drive in windows

    Im running low on disk space in windows under bootcamp and i want to put some things on my external drive but it keeps saying i need persmission even though im an admin and i have enabled sharing and everything. I can read files but not write files o

  • My iphone wont sync photos

    from a panasonic lumix what can i do? the photos are in iphoto and wont sync to either my ipad or iphone

  • Get actual column name

    Is there a way to get the actual column name from a result set metadata? For this query "select registration_date as fff from ggg" both getColumnName and getColumnLabel both return 'fff' where I expected getColumnName to return 'registration_date'. T

  • [Solved] XBMC no Sound after update

    Hi Everyone, I setup XBMC on my Arch install. I wanted to make XBMC standalone so I did: systemctl enable xbmc Everything was fine for a while , except that it didn't always boot straight into XBMC but ..one problem at a time. Fast-forward, I updated