Report based on query w/ input variable

Hi,
How can i do a sql report on APEX with an input variable (:P1).
In my tests i've created a sql report then added one text box to the page with name (P1).
When i execute the report it gives me the text box, then i insert the value, press enter and it gives me the result No data found. If i activate the debug i can see, :P1=P1="xpto", so the text box is working fine, but why the report is not generated/displayed?
Thanks In advance

When i activate the debug mode this is what i get.
As you can see it seems that the binding is working and it also seems that the query is done because of the message rows loop: 15 row(s), but it doesn't apear any result in the page.
0.06: Computation point: BEFORE_BOX_BODY
0.06: Processing point: BEFORE_BOX_BODY
0.06: Region: Search
Search
0.06: Item: P606_FILENAME TEXT
Search Filename
0.06: Item: P606_GO BUTTON
0.06: Region: Files &P606_TEXT.
Files Ola
0.06: Item: P606_TEXT HIDDEN
0.07: show report
0.07: determine column headings
0.07: parse query as: ADMINSTI
*0.08: binding: ":P606_FILENAME"="P606_FILENAME" value="FLAP_090909.251"*
0.08: print column headings
*0.08: rows loop: 15 row(s)*
no data found
0.08: Computation point: AFTER_BOX_BODY
0.08: Processing point: AFTER_BOX_BODY

Similar Messages

  • Print layout designer for develop report based on query

    Dear Experts/Gurus,
    I am amazing about the manage previous reconciliation report. When I opened it using print layout designer, it looks like the report is not built using query, but I am not sure yet. This is very confusing. I created query similar with manage previous reconciliation (MPR), but when I link the query to print layout and try to make similar format/appearance with MPR report (reconciliation management (system)), it is not success.
    Isn't the MPR report built not based on query ? I appreciate your answer. TIA
    Rgds,

    Hi,
    I am not sure I understand what's the problem:
    Is it the layout that is different or the data?
    Regarding the data you can use SQL Profiler (maybe you did?) to find out what queries are fired, but please note that there are some stored procedures in the DB that are used for some specific functions - not sure whether the "MPR" uses any of these.
    Then you must include some non-default filter in SQL Profiler...
    ...but you can also use the logging functionality in B1 for that purpose:
    Just activate the logging (see the "log" folder in the B1 subdirectory) in the corresponding config file: choose the option to have the SQLs logged in conjunction with the logging being triggered in all cases (not just error).
    Thus you will get all the SQLs - just plain - from the B1 application, but note that it will obviously slow it down!
    HTH,
    Frank

  • Diplaying of ordsys.ordimage field in a Report based on Query

    Hi,
    I have a table with a ordsys.ordimage field, where I am uploading images. I created a custom report based on that table but I just cant seem to find a way to show images in it. Could anyone please tell me how to do this.
    I tried using this
    "portal30.wwv_user_utilities.get_intermedia('CP_IMAGE01','CP_IMAGE01','IMAGE',rowid) the_picture " but this does not help at all
    Thanks!
    vimpi

    Hello Prajwal,
    It is definely possible !!
    If you have already created your query pls paste the same here so that I can help you otherwise. I will give you a general guidelines and you can take it from there..
    Using the CASE Statement inside your SELECT you can achieve this.
    SELECT T1.ItemCode AS 'Item No.', T1.ItemName AS 'Item Description',
    CASE WHEN  T1.QryGroup1 = 'N' THEN T0.Price ELSE 0 END 'List Price'
    FROM  [dbo].[ITM1] T0  INNER  JOIN [dbo].[OITM] T1  ON  T1.ItemCode = T0.ItemCode   WHERE T0.PriceList = 1

  • Create Report based on Query in SCCM 2012

    I have a lot of useful queries, however I would like to create a few reports based on these queries. What is the simple way to do this? I started to create a New Report, but kind of lost after that. Is there a way I can just copy my statement from the
    query to a blank report?

    Execute the WQL query from the queries node in the console and watch smsprov.log on the site server. It should contain the "translated" SQL statement.
    Torsten Meringer | http://www.mssccmfaq.de

  • Crystal Reports with BEx Query using Custom Exit Variable

    Hi,
    We have BW BEx Query using Customer User Exit variable to derive  the Fiscal Week for Last Year (called it VAR2) based on another user input variable Current Fiscal Week (called it VAR1).
    VAR2 is derived from VAR1 in CMOD via some codings and thus it DOES NOT have the "Variable is Ready for Input" flag ticked in the BEx. VAR1 is user input variable, so it has "Variable is Ready for Input" flag ticked in the BEx.
    When we create a Crystal Reports with the BEx Query using variable VAR2, and when we run it we got an error message saying "Failed to execute query; '[]<java.lang.UnsupportedOperationException: No Selection State Support!ZP_MI_LYPUBWEEK>'. Redesign your query or contact the data source maintainer to solve the problem".  (note: ZP_MI_LYPUBWEEK is VAR2 in this case).
    Could anyone please assist? Surely, CR supports BEx customer user exit variables like the above, right?. I also refer to the forum below as it seems to have a similar issue (except mine with an error message), but it does not provide a solution in it.
    Crystal Reports with BEx Query using Custom Exit Variable
    Thanks,
    Andy

    Hi Vibhav,
    We have the SAP Crystal Reports for Enterprise XI4.0 Version 14.0.0. Not sure if SP0 or other SP, got to check with Basis Team later.
    We tried that "mandatory" option and did not work either.
    Anyway, SAP has now come back again saying it is something they will fix it in next release/version. We got a phone call from them and a reply below to our OSS.
    23.08.2011 - 08:20:49 CET - Info for Customer by SAP  
    I have raised this issue on the Idea#s Place as an enhancement request
    on the below link:
    https://cw.sdn.sap.com/cw/ideas/5586
    This ER contains the information of including the customer exit
    variables in the report without checking the #input for ready# option.
    This ER can be considered for being implemented in the future
    versions. You can refer to SAP Note: 1515837 - How To: Enhancement
    Request Process - "Idea Place" for more information regarding the Idea
    Place.
    Cheers,
    Andy

  • Data Selection for report based upon a 'Prompt Value'

    I want to report information in my report based upon a 'user input prompt value'
    for example:
    'Enter Shareholder Selection - A-Active, I-Inactive, B-Both Active and Inactive'
    if the user enters 'A', the report selects only active shareholders
    if the user enters 'I', the report selects only inactive shareholders
    if the user enters 'B' the report selects all shareholders, active and inactive
    the field in the database that this based upon is their total share value.
    if this field is greater than zero (>0) they are considerd 'active'
    if this field is equal to zero (=0) they are considered 'inactive'.
    I have tried creating some type of filter,  but am not having any luck. 
    I saw a few examples within the forums that I have tried without any luck....unfortunately most of the examples I've seen are base one only two choices.
    I'm sure I need to create some type of 'independant varible' but am not sure how to do that either.
    Any suggestions would be appreciated.
    Thanks.

    Hi Daryl,
    I Tried this unsuccessfully in DESKI . We can't Eliminate Rows having Empty Measure Values or Measure with 0 as values using Table Level Filter as FIlter can't FIlter rows based on Prompt value selection dynamically. Filters filter rows at a time and not based on 3 condition as Active, Inactive and Both. thus filters are of no use.
    I Tried this in WEBI, and it is working perfectly you donu2019t have to create any Object in Universe, you can do it using function UserResponse() at report level.
    Hence if you are comfortable using WEBI for Generating this report then Follow the steps.
    1. Create Report With Name and Shares Object. It will display all Shareholder Names and No.of shares they hold.
    2. Use Status Object in Query filter, use condition as u201CEqual Tou201D and Select prompt. It  contains Active, Inactive and Both as values.
    3. Report will Display all Shareholder names and No. of  shares  like 45, 789, 0, 4562 where 0 is inactive Shareholder and all other are active shareholder.
    4. Create Variable using Formula.
    =If(UserResponse("Enter Status:")="Active" And [Shares]>0;[Shares];If(UserResponse("Enter Status:")="Inactive" And [Shares]<=0;[Shares];If(UserResponse("Enter Status:")="Both";[Shares])))
    5. Remove Shares Object from the report and Put Variable created with Names of Shareholders.
    6. Select Table-> Properties-> Display-> Uncheck the Option u201CShow Rows with Empty Measure Valuesu201D
    7. Report will display Value correctly as per your Prompt value selection.
    I Hope this Helpsu2026
    Thanksu2026
    Pratik

  • Dynamic Query Input Variables / Dynamic Reporting Ouput

    Hi All,
    Overall Architecture :
    Front End : Webpshere Portal
    Middle Tier : Webpshere Application Server
    Reporting Presentation Layer : Business Objects Reports (The reports will use the BEX query as a datasource)
    Reporting DataSource = BEX Query
    I am trying to build a BEX query based on the following. I have a sales ODS that shows the following data. Based on a user's selection, the report should return the corresponding data. What would be the best way to tackle something
    like that ? Thanks all or your help !
    Example :
    SALES ODS :
    Customer -
    Sales $ - Rebate Indicator---Refund Indicator-----Equipment Indicator
       Apple -
    1000--False False--
    False
       Apple -
    10--True -  False--
    False     
       Apple -
      50--False True--
    False
       Apple -
    40--False False--
    True
    QUERY INPUTS #1 :
    Customer Site             = Apple
    Rebate Indicator       = True
    Refund Indicator       = True
    Equipment Indicator     = False
    QUERY RESULT :
    Customer -
    Sales $
       Apple -
         1060
    QUERY INPUTS #2 :
    Customer Site              = Apple
    Rebate Indicator        = False
    Refund Indicator        = True
    Equipment Indicator      = False
    QUERY RESULT :
    Customer----
    Sales $
       Apple----
    1050

    Hi Nigel ,
    Instead of creatin query on ODS u should create on Cube .
    ODS Data :
    Customer -
    Sales $ - Rebate Indicator---Refund Indicator-----Equipment Indicator
    Apple -
    1000--False False--
    False
    Apple -
    10--True - False--
    False
    Apple -
    50--False True--
    False
    Apple -
    40--False False--
    True
    Cube data :Would get aggregated depend on Customer and other similar charatoristic.

  • WebI report based on BEx query in Live Office document

    Hi
    We have a BEx query in BW that has one input ready variable (period). Then we have created a WebI report based on this BEx query (the WebI report itself does not have any prompts). When we run the WebI report we get asked to enter a value in the BEx variable (remember: this is not a WebI prompt). Until this stage everything works fine. Then we have created a Live Office document and added the WebI report. When we refresh the Live Office document, the BEX variable is not shown. The data that is retrieved is from the last time the WebI report run. The refresh option is set to u201COn demand: From the databaseu201D.
    Is there a way to get the BEx variables to be shown when refreshing the Live Office document? Remember, we do not use WebI prompts.
    We use BW 7.3 and BO BI 4.0.
    Kind regards
    Erik

    Hi,
    Unfortunately, this feature has not been developped the BICS connectiviy. It is only available for manda
    tory prompts based on universe. Others have noted the same problem, so there is an enhancement request for the feature to be available using BICS connection in the "Ideas Place".
    Use the link to vote for the idea, more votes gives a better chance that this will be picked up for development.
    [LifeOffice idea|https://cw.sdn.sap.com/cw/ideas/4094]
    Thanks,
    Marianne

  • Error in Query input variable

    Hello Experts
    I have a query which has input variable 0I_FPER for Fiscal year period and takes interval as input.
    when i try to select values i get following error. i have tried different inputs
    "Characteristic Fiscal year/period has no master data for "003.2010" "
    I tried creating new input variables and still get same ptoblem for TO value put in.
    Please help.
    Thanks in advance
    Regards
    Sudeep

    Hi
    I am using 0FISCPER infoobject for restriction, master data table for this is T009B.
    i even tried to rebuild this using tranfer global setting s option but problem still exists.
    0FISCPER object has no SID table.
    Moreover this report work fine using RSRT but give error at inputs when i run it over web.
    I am still facing same problem
    Please help
    Regards
    Sudeep
    Edited by: Sudeep Paranjape on Dec 27, 2010 10:50 AM

  • Input Variable in BO Webi Report

    Hi,
    We have BW-Query and have defined BO Webi-Report using Universe on this query.
    When we execute BW-Query direct in BW, we can see all plants from
    master data table in the input Variable (Input help/F4).
    When we execute BO-Report in BO, it shows only plants in the input variable, for which there are transaction data
    in InfoCube. I expect here to see all plants from the master data table (like BW Query).
    Is it normal? Or is there some other issue?
    Thanks

    Hi,
    as the webi report will contain only transactional data anyway (webi MDX statement will ask for non empty records), this is the normal behavior what you are experiencing.
    What settings do you have on the infoObject, on which you have the variable set?:
    -Query Def Filter Value Selection
    -Query Execution Filter Val. Selection
    There you should be able to choose between "Only Values in InfoProvider" and "master data".
    Best regards

  • Query input variable issue

    Hi experts,
    We are using BEx 3.5.
    1.We defined a RKF such that restricting the 0deb_cre_lc on Fiscal Year/period and restricted Fiscal Year/Period with a mandatory variable and the condition is <= ( Less than or equal to ).
    When we execute a query a input screen will come asking to enter a Fiscal Year/Period.
    Its a mandatory field.As per our client only 16 periods are defined and the fiscal year variant is V3.
    Periods are from 001 to 016.
    User will be entering like 001.2005 or 012.2008 like that.So in the output we will be getting the balance
    i.e 0deb_cre_lc amount less than or equal to the user entered fiscal year/period.
    But when user enters 234.2008 or any other wrong value which is other than 001 to 016 the report should
    not be executed.But now it is executing.
    Is there any possibility such as if user enters any period out of the range 001 to 016 then the report
    should not be executed. or show any error message. Or Is there any possibility such that if user enters
    only the values which are in the infoprovider then only the report should be executed.
    For the above requirement, please check whether the following code matches or not. But the code is not
    working.
    Tables: /BIC/AZSM_DSO00.
    data: begin of zfisc occurs 0,
    fiscper(7),
    end of zfisc.
    Data WA_I_T_RANGE like line of I_T_VAR_RANGE.
    If i_step = 3.
    Case i_vnam.
    WHEN 'TEST_FCE'.
    SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC where FISCPER = /BIC/AZSM_DSO00-FISCPER.
    READ TABLE I_T_VAR_RANGE INTO WA_I_T_RANGE WITH KEY VNAM = 'TEST_FCE' .
    *READ TABLE ZFISC with key fiscper = WA_I_T_RANGE-LOW.
    IF ZFISC CA WA_I_T_RANGE-LOW.
    IF sy-subrc EQ 0.
    exit.
    else.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    i_class = 'CD'
    i_type = 'E'
    i_number = '121'
    i_msgv1 = 'Enter Correct value for FISCPER'
    EXCEPTIONS
    dummy = 0
    OTHERS = 0.
    RAISE no_processing.
    ENDIF.
    ENDIF.
    Endcase.
    Endif.
    Please check the code and let me know if i have done any mistakes.
    Regards,
    smitha.

    Have done the specified changes. The code is as follows. But it is not working.
    Tables: /BIC/AZSM_DSO00.
    data: begin of zfisc occurs 0,
    fiscper(7),
    end of zfisc.
    data: text(12) type c.
    text = text-001.
    Data WA_I_T_RANGE like line of I_T_VAR_RANGE.
    If i_step = 3.
    Case i_vnam.
    WHEN 'TEST_FCE'.
    *SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC where FISCPER = /BIC/AZSM_DSO00-FISCPER.
    SELECT FISCPER FROM /BIC/AZSM_DSO00 INTO table ZFISC.
    READ TABLE I_T_VAR_RANGE INTO WA_I_T_RANGE WITH KEY VNAM = 'TEST_FCE' .
    READ TABLE ZFISC with key fiscper = WA_I_T_RANGE-LOW.
    *IF ZFISC CA WA_I_T_RANGE-LOW.   commented this
    IF sy-subrc EQ 0.
    exit.
    else.
    CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
    EXPORTING
    i_class = 'CD'
    i_type = 'E'
    i_number = '121'
    i_msgv1 = text
    EXCEPTIONS
    dummy = 0
    OTHERS = 0.
    raise again.
    RAISE no_processing.
    *ENDIF.  commented this
    ENDIF.
    Endcase.
    Endif.
    The structure of table /BIC/AZSM_DSO00. It is having 96 fields. Short des is 'ODS Object ZSM_DSO : Active Records'
    Regards,
    smitha.

  • Issues with Infoview data refresh on Crystal Reports based on BW BeX query

    Hi all,
    We applied the Business Objects XI3.1 fix pack 3.1 with Integration toolkit fix pack 3.1 in our environment.
    After that we started having trouble with Crystal Reports based on BeX queries that use manual input variables.
    The data refresh would not work in Infoview.
    The data refresh would work using the Crystal Reports designer gui on local machine.
    regards,
    Abhishek

    Hi all,
    This thread is for the benefit of all the BW/BO people who faced issues with BO reports not working after certain fix pack installations.
    After lot of time spent in debugging this and researching and some help from SAP, we found that BASIS had missed a step in the BO patching. This step was relating to applying some BW transports in the BW system related to the new Integration toolkit.
    Please use below notes for the BW transport task of patching BOE Integration toolkit.
    Refer to Note#1472104 which explains about loading the
    transports when we install BO Service Packs or Fix Packs. Also please refer to the Note#1271751 for the advice on transports for BW systems.
    Please go through page 206 (Configuring transports) in the SAP Integration Kit installation guide. You can download this document at below link.
    https://websmp106.sap-ag.de/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf
    Refer to Note#1345919 which explains about the process of loading transports for SAP IK.
    regards,
    Abhishek

  • Performance issues with query input variable selection in ODS

    Hi everyone
    We've upgraded from BW 3.0B to NW04s BI using SP12.
    There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
    Using ST01 and SM50 to trace the code in the same query, we see a difference here:
    <u>NW04s BI SQL command</u>
    SELECT                                                                               
    "P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"                             
    FROM                                                                               
    ( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON  "P0000"."COMP_CODE" = "T0000
      "."COMP_CODE"                                                                               
    WHERE                                                                               
    "P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM              
      "/BI0/APY_PP_C100" "O" )                                                                               
    ORDER BY                                                                               
    "P0000"."COMP_CODE" ASC#                                                                               
    <u>BW 3.0B SQL command:</u>
    SELECT ROWNUM < 500 ....
    In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
    It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
    I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
    Anyone with similar experience or can provide help on this?

    here is a reason why the F4 help on ODS was faster in BW 3.x.
    In BW 3.x the ODS did not support the read mode "Only values in
    InfoProvider". So If I compare the different SQL statements I propose
    to change the F4 mode in the InfoProvider specific properties to
    "About master data". This is the fastest F4 mode.
    As an alternative you can define indexes on your ODS to speed up F4.
    So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
    Check below for insights
    https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
    Hope it Helps
    Chetan
    @CP..

  • Bold a single row in a Report based on SQL Query

    Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?

    One way to do this is to add a hidden column to your report which contains the formatting value, for example:
    select empno
    , ename
    , sal
    , decode(empno,1,'font-weight:bold','font-weight:normal') style
    from emp
    Hide the STYLE column.
    Then you can use this column for each column in Column Formatting > HTML expression in this way:
    <span style="#STYLE#">#SAL#</span>
    Unfortunately you have to do this for each colum you want to appear bold.
    good luck,
    Dirk Dral

  • Logic to select Report name based on User's input.

    Hi Guru's
    Good Morning!
    I have a requirement to create a XMLPUBLISHER Report Whihc is Called as ITEM COUNT SUMMARY + ITEM COUNT DETAIL REPORT Following below
    are my ParameterS
    0.REPORT NAME
    1.ORG
    2.ORG COUNTRY
    3.ITEM SELECTION
    4.ORDER TYPE
    5.STATUS
    6.RECEIPT DATE FROM
    7.RECEIPT DATE TO
    8.TRANSIT DAYS
    REPORT NAME: PARAMETER WILL LET THE USER to select the requrired Reports to be run.
    ORG: is the Names of the SHIP FROM ORG
    ORG COUNTRY: is a Dependent Parameter based on the ORG (i.e When a SHIP FROM ORG is Selected the ORG CHOICE Should have the CHoices for the selected ORG and when Nothing Selected from that ORG it should run for every ORG COUNTRY in that SHIP FROM ORG Currently we have two ORG COUNTRY PER SHIP FROM ORG say(USA, CANADA)
    ITEM SELECTION: We need to Run this Report based on Item Selection ( The Logic should handle a total item selection whihc are comma seperated for upto 29
    items)
    ORDER TYPE : Types of Order Again this can be a List of Comma Seperated Values for order Types
    STATUS: STatus should be Comma Seperated (ENTERED,WAVED,NOTWAVED,SHIPPED)
    TRANSIT DAYS: Transit Days
    RECEIPT DATE FROM: This is the Starting DATe range for the REport to be run
    RECEIPT DATE TO: This is the END DATe range for the REport to be run.
    The ITEM COUNT SUMMARY Report should allow the users to run the report 3 ways
    1.ITEM COUNT RUN BY ORDER TYPE ( for all the STATUS)
    2.ITME COUNT RUN BY STATUS ( FOR all the ORDER TYPES)
    3.ITEM COUNT RUN BY TRANSIT DAYS
    And My approach is I have three Queries Created for the above and in the DATA DEFINITION File
    I have them Listed my DATA DEFININTION ( Sorry as my Query's GO More than 70+ LINES for Each Query I thought I will just paste the Order How i have arranged my queries in the Tempalte)
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <dataTemplate name="TPC_ITEM_COUNT_SUMMARY" description = "TPC_ITEM_COUNT_SUMMARY" version="1.0">
    <properties>
         <property name="xml_tag_case" value="upper"/>
    </properties>
    <!-- parameters for the Report -->
         <parameters>
         <parameter name="report_name" dataType="varchar2"/>
         <parameter name="item_selection"          dataType="varchar2"/>
         <parameter name="order_type"               dataType="varchar2"/>
         <parameter name="pstatus"               dataType="varchar2"/>
         <parameter name="org_name"               dataType="varchar2"/>
         <parameter name="org_choice"               dataType="number"/>
         <parameter name="first_receipt_date"     dataType="date"/>
         <parameter name="last_receipt_date"     dataType="date"/>
         <parameter name="from_date"               dataType="date"/>
         <parameter name="to_date"                    dataType="date"/>
         <parameter name="transit_days"          dataType="number"/>
         </parameters>
    <dataQuery>
    <sqlStatement name= "HDR">
    <![CDATA[
    SELECT UPPER('The ABC Corporation, Ltd.')     AS "COMPANY"
                   ,'Item Count Summary - '||INITCAP(:report_selection)||' for Company '||:org_name AS "REPORT"
                   ,'Order Types - '||UPPER(:order_type) AS "ORDER_TYPE"
                   , SYSDATE AS "RUN_DATE"
         ,'Receipt Date'||' '||TO_CHAR(NVL(TO_DATE(:first_receipt_date,'DD-MON-YYYY'),SYSDATE),'YYYYMMDD')                     ||' '||'thru'||' '||TO_CHAR(NVL(TO_DATE(:last_receipt_date,'DD-MON-YYYY'),SYSDATE),'YYYYMMDD') AS "RANGE"
    FROM DUAL;
    ]]>               
    </sqlStatement>
    <sqlStatement name= "BY_STATUS">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by STATUS
    ]]>
    </sqlStatement>
    <sqlStatement name= "BY_ORDERTYPE">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by ORDERTYPE
    ]]>
    </sqlStatement>
    <sqlStatement name= "BY_TRANSITDAYS">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by TRANSITDAYS
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_HDR" source="HDR">
              <element name="COMPANY" value="COMPANY" />
              <element name="REPORT" value="REPORT" />
              <element name="ORDER_TYPE" value="ORDER_TYPE" />
              <element name="RANGE" value="RANGE" />
    </group>
    <group name="G_BY_STATUS" source="BY_STATUS">                
              <element name="RCPT_DT" value="RCPT_DT"/>
    <element name="ITEM"     value="ITEM" />
              <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION" />
              <element name="ENTERED"     value="ENTERED" />
    <element name="WAVED"     value="WAVED" />
    <element name="NOTWAVED"     value="NOTWAVED" />
    <element name="SHIPPED"     value="SHIPPED"/>
    </group>
              <group name="G_BY_ORDERTYPE" source="BY_ORDERTYPE">                                         
    <element name="ITEM"          value="ITEM" />
              <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION" />
              <element name="RCPT_DT"     value="RCPT_DT"/>
              <element name="ORDER_TYPE"     value="ORDER_TYPE" />
    <element name="QUANTITY" value="QUANTITY" />
              </group>
    </dataStructure>
    </dataTemplate>
    Now My Problem is How Do i Get a Logic to Let the Report Name Selection To be REferenced in the Data Definition file..
    I would like to request you to Please help me out in arriving at a Solution for Implementing the Logic
    When the USer selects ITEM COUNT SUMMARY BY ORDER TYPE I want "BY_ORDERTYPE" to be Executed and so on..
    Is there a Way That I can Write in my Data definition file as
    DECODE(:REPORT_NAME ,'ITEM COUNT SUMMARY BY ORDERTYPE', Run query for BY_ORDERTYPE,
    ,'ITEM COUNT SUMMARY BY STATUS', Run query for BY_STATUS,
    ,'ITEM COUNT SUMMARY BY TRANSIT DAYS', Run query for BY_TRANSITDAYS,run query for DETAIL REPORT);
    Also My Item Description Contains Special Characters like Registered Symbol, Copyright Symbol How would I force my XML Parser to Still consider them as TEXT's
    May I Directly Specify <?xdofx:DECODE :REPORT_NAME = 'ITEM COUNT SUMMARY BY ORDERTYPE' THEN BY_ORDERTYPE ?> in the DATA DEFINITION file , I think this is only allowed in RTF please Help,
    Thanks
    vasanthanand

    Thanks for the Reply sir,
    When you say Write the Code, you are referring to the Package is that correct,unfortunately I am not implementing this via PL/SQL Package.
    you mentioned that I can Implement the Logic in the Data definition file( which is a XML file), how and Where I have print use that IF construct (or) Can you Please Print the Code snippet in the Model XML template that i have pasted in my Post.
    May i know what is this
    ln_req_id := fnd_request.submit_request -- for XML1 For...
    Sorry about my ignorance...

Maybe you are looking for

  • How to print multiple addresses on one sheet of avery labs using Pages?

    How do I print mulitple addresses on one sheet of avery labels? I used Numbers to make a database. I used Pages to use the Avery label template. I formatted the labels for the database but it shows my first sheet of labels as my first addressee and m

  • Tips to deal with the appalling wifi on iPhone 5 since 6.1 update?

    Hi guys I'm aware there are hundreds of threads on this issue and various different ways of addressing it. I just wanted the most up to date tips and fixes and to share my symptoms. Ever since I updated to 6.1 my home wifi connection has been horrifi

  • E17-cvs packages

    I have rebuilt e17 packages. If you want to download them using pacman, add this to your pacman.conf: [e17-cvs] Server = http://dreameen.hopto.org:1102/~dreameen/e17/packages I must warn you though...My upload is painfully slow, so it's be better if

  • Publish a Dreamweaver designed Site to a Wordpress hosted Domain

    Hi everyone, I'm very new to this, and been relying on some amazing YouTube tutorials out there! I've come across a slight problem. I brought a domain name using Wordpress.com and have a rough blog there - very messy. I've since redesigend the entire

  • Does anyone have a copy of Adobe Premiere 5.0/5.1?

    I'm trying to get hold of it any can't find it anywhere! rogercorke UK