Parameter value in sql statement (Custom Folder)

Hi ,
I want to formulate a custom folder - consisting of a sql statement , inside of which there is a parameter. Then in Desktop , the users can select a number as the searching criteria and this value will replace the parameter in sql statement , as in the following:
select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA from
select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA , row_number() over (order by sum_posotita desc) rw  from
  (SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES ,SUM(POSOTITA) SUM_POSOTITA
          FROM  EKTELESI_AT_SINT_CLINIC A, MITROO_FARMAKOU B
           WHERE CODE_FARMAKOU = FARMAK_CODE
           GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS))
  where rw<=&p
  order by SUM_POSOTITA desc The problem is that the use of parameter , whereas in sql*plus is valid, in Discoverer is not....
What can i do in this situation...????
Thanks , a lot
Simon

However , a peculiar event happens....
whereas the sql statement is:
select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA,RW from
select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA , row_number() over (order by sum_posotita desc) rw  from
  (SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES ,SUM(POSOTITA) SUM_POSOTITA
          FROM  EKTELESI_AT_SINT_CLINIC A, MITROO_FARMAKOU B
           WHERE CODE_FARMAKOU = FARMAK_CODE
           GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
  UNION ALL
  SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
          FROM  EKTELESI_AT_SINT_EX_IATR A, MITROO_FARMAKOU B
           WHERE CODE_FARMAKOU = FARMAK_CODE
           GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
  UNION ALL
  SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
          FROM  EKTELESI_AT_SINT_FOREON_MS A, MITROO_FARMAKOU B
           WHERE CODE_FARMAKOU = FARMAK_CODE
           GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
  UNION ALL
  SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
          FROM  EKTELESI_GEN_SINT_KLIN A, MITROO_FARMAKOU B
           WHERE CODE_FARMAKOU = FARMAK_CODE
           GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
  UNION ALL
  SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
          FROM  EKTELESI_GEN_SINT_EX_IATR A, MITROO_FARMAKOU B
           WHERE CODE_FARMAKOU = FARMAK_CODE
           GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS))
  order by RW ascand produces the results....
CODE_FARMAKOU                            EMP_NAME                                                                         PACKTYPE                     PACKSIZE                  SUM_POSOTITA         RW
1000003279                               MOXACEF                                                                          BT                           40(BLIST10X4)                       45          1
0000014071                               DOPAMINE HYDROCHLORIDE                                                           VIAL                         5 ML X 25                           30          2
1000016655                               KABIVEN                                                                          BT                           50ÖÕÓ.×1,7ML                        21          3
1000014127                               DEPON VIT. C                                                                     BT                           2TUBX10                              6          4
0000002419                               FACTREL INJECTION                                                                VIAL                         2 ML                                 5          5
0000086289                               DETUSSIN EXPECTORANT                                                             BOT                          120 ML                               3          6
1000016655                               KABIVEN                                                                          BT                           50ÖÕÓ.×1,7ML                         2          7
1000014127                               DEPON VIT. C                                                                     BT                           2TUBX10                              2          8
1000000760                               DEPON                                                                            BT                           20(BLIST2X10)                        2          9
1000003279                               MOXACEF                                                                          BT                           40(BLIST10X4)                        1         10
1000003279                               MOXACEF                                                                          BT                           40(BLIST10X4)                        1         11
1000000760                               DEPON                                                                            BT                           20(BLIST2X10)                        1         12
12 rows selectedIn Discoverer , even i select to see -as parameter- let's say the 10 first records, the system displays the 7 first records , whereas when i want to see the 1,2,3,4,5,6,7 first records the system works fine....and displays accordingly 1,2,3,4,5,6,7 first records. The problem occurs above the 8th record-as parameter selected..!!!!!
I defined the parameter as :Rw<=:Rw
What may be the problem...????
SORRY!!!!! I FOUND THE PROBLEM ....!!!!
Regards and many thanks,
Simon
Message was edited by:
sgalaxy

Similar Messages

  • Trace is still getting generated even after disabling the profile option Initialization SQL Statement - Custom

    Hi All,
    we have a problem with profile option "Initialization SQL Statement - Custom". we have set this at user level. after some time, we have cleared the profile option value for this user.
    But we can still see the generated trace files are getting updated. we did checked this trc files from path returned from below query.
    select name, value
    from   v$parameter
    where  name like 'user_dump_dest';
    Please help us on how to resolve this issue. we are using Oracle Apps R 12.1.2 version.
    Thanks in advance
    Raghava

    Before logging out we suspect that he closed the browser instead of logout link.
    What if you make the user logout, can you reproduce the issue then?
    We have verified the profile options for this user and found that value is cleared for profile Initialization SQL Statement - Custom.
    How do you know that the files were generated for this user and because of this profile option? Have you verified profile options for all users at all level?
    Thanks,
    Hussein

  • Defaulting DFF Segment Value using sql statement in SSHR gives error when using parameter

    Dear All,
    i am having an issue that i am making one segment in DFF (SEGMENT3) being defaulted by using sql statement
    Select MAX(SEGMENT7) FROM PER_ANALYSIS_CRITERIA cri, PER_PERSON_ANALYSES ana where cri.Analysis_Criteria_id = ana.ANALYSIS_CRITERIA_ID and ana.PERSON_ID = :ANALYSES.PERSON_ID
    The Above Select Statement is working fine on the PUI form and getting the Default value correctly but when opening the SSHR page that contain this DFF, it  gives me the below error.
    "No field listener is registered to resolve field ANALYSES.PERSON_ID referenced by the flexfield with application short name PER and name PEA. Please contact your system administrator. "
    Any Help Please???

    Please see the following docs.
    Cannot Add Salary:No Field Listener is Registered to Resolve Field Review.assignment_id (Doc ID 558295.1)
    No Field Listener Is Registered To Resolve Field Assgt.Effective_start_date (Doc ID 889794.1)
    List of Current Enhancement Requests (ER) for Oracle EBS Self Service Human Resource (SSHR) (Doc ID 1381936.1)
    No field listener is registered to resolve field xxx.xxx referenced by the flexfield with application short name ASO... (Doc ID 1359270.1)
    Customer Form, Address Error: No field listener is registered to resolve field GLOB.FLEX_COUNTRY_CODE referenced by the flexfield with application short name AR (Doc ID 1276934.1)
    DFF issue : No Field Listener Is Registered To Resolve Field XXX Referenced By The Flexfield (Doc ID 555589.1)
    Thanks,
    Hussein

  • How to pass parameter in where clause in custom folder?

    I have the follow query
    blue color are the parameters
    i have paste this to a custom folder
    and
    select last_update_date, creation_date
    from ra_customer_trx_all
    where trunc(last_update_date)='29-SEP-2012'
    and customer_trx_id=1109
    to another custom folder returning 1 row only and create another worksheet in the same workbook and create
    3 parameter and 2 of them pointing to the 1 row query and create calcualtion
    SET_CONTEXT('Date_From',TO_CHAR(:Date From)) and SET_CONTEXT('Date_TO',TO_CHAR(:Date To))
    and 1 condition 1= SET_PARAM3(:Period)
    but this doesnt work for me, no data return please help
    select m.party_name TENANT_NAME 
    , b.interface_line_attribute10 lease_num
    --, b.interface_line_attribute12 "PPS Number" 
    ,b.interface_line_attribute2 LOCATION_CODE
    ,flexv.description property_name
    , a2.trx_number INVOICE_NUMBER
    --, t.name "Transaction Type" 
    --, e.attribute15 "AS400 Key" 
    , b2.description "BILL_ITEM_INVOCIE_DESCRIPTION" 
    ,case when gcc.segment5 like '6%' then 'P/L'
    when gcc.segment5 like '7%' then 'P/L'
    when gcc.segment5 like '8%' then 'P/L'
    when gcc.segment5 like '9%' then 'P/L'
    else 'B/S'
    end as account_nature
    --, gcc.concatenated_segments as "Charge Account" 
    ,gcc.segment1 company_code
    ,gcc.segment2 department_code
    ,gcc.segment3 property_code
    ,gcc.segment4 business_segment
    ,gcc.segment5 account_code
    ,gcc.segment6 project_code
    ,gcc.segment7 intercom_code
    ,gcc.segment8 spare1
    ,gcc.segment9 spare2
    , b2.extended_amount BILL_ITEM_INVOICE_AMOUNT
    ,to_char(substr(ps.gl_date,4,8)) gl_period
    , b.interface_line_attribute11 bill_start_date
    , b.interface_line_attribute14 bill_end_date 
    , decode(a2.invoicing_rule_id, '-2',  
       DECODE(TO_CHAR(b.RULE_START_DATE, 'YYYYMM'), to_char(to_date(to_char(TRUNC(to_date(SETPARAM.GET_PARAM3,'yyyymm') , 'Month')-1),'DD-MON-YYYY'),'YYYYMM'), 'Current', 'In Advance'), 
       'Current') bill_nature 
    , to_char(a2.trx_date, 'DD-MON-YYYY') invoice_date
    ,pal.lease_commencement_date
    ,pal.lease_termination_date
    ,h.user_name created_by
    --, NULL as remarks 
    from ra_customer_trx_all a 
    , ra_customer_trx_lines_all b 
    , pn_leases_all d 
    , pn_tenancies_all e 
    , hz_cust_accounts l 
    , hz_parties m 
    , fnd_user h 
    , ar_payment_schedules_all ps 
    , RA_CUST_TRX_LINE_GL_DIST_ALL dist 
    , gl_code_combinations_kfv gcc 
    , AR_RECEIVABLE_APPLICATIONS_all app 
    , ra_customer_trx_all a2 
    , ra_customer_trx_lines_all b2 
    , RA_CUST_TRX_TYPES_all t 
    , fnd_flex_values_vl flexv
    ,pn_lease_details_all pal
    where  
    app.APPLICATION_TYPE = 'CM' 
    and flexv.flex_value=gcc.segment3
    and flexv.FLEX_VALUE_SET_ID=1014916
    and pal.lease_id=d.lease_id
    and app.applied_customer_trx_id = a.customer_trx_id 
    and app.customer_trx_id = a2.customer_trx_id 
    and a2.cust_trx_type_id = t.cust_trx_type_id(+) 
    and a2.org_id = t.org_id(+) 
    and b.customer_trx_line_id = b2.previous_customer_trx_line_id 
    and dist.CUSTOMER_TRX_LINE_ID = b2.CUSTOMER_TRX_LINE_ID 
    and dist.account_class = 'REV' 
    and dist.account_set_flag = DECODE(NVL(a2.invoicing_rule_id,1), -2, 'Y', 'N') 
    and gcc.CODE_COMBINATION_ID(+) = dist.CODE_COMBINATION_ID 
    and b.interface_line_attribute10 = d.lease_num 
    and d.lease_id = e.lease_id 
    and e.primary_flag = 'Y' 
    and b2.customer_trx_id = a2.customer_trx_id 
    and a2.bill_to_customer_id = l.cust_account_id 
    and l.party_id = m.party_id 
    and a2.created_by = h.user_id 
    and ps.customer_trx_id = app.customer_trx_id 
    and ps.gl_date between trunc(trunc(TO_DATE(SYS_CONTEXT('DISCO_CONTEXT','Date_From')),'MM')-1,'MM') and trunc(TO_DATE(SYS_CONTEXT('DISCO_CONTEXT','Date_To')),'MM')-1

    What exactly is wrong with the results? Can you make the report include the gl_date so that you can see exactly what is being included?
    The only way to troubleshoot this is to go back to basics. You have to be 100% certain that the parameter and calculations for the dates are working. You have granted execute permission over the function to your EUL owner - yes? What I did was create the function in a package owned by EUL_US then I had no issue with grants or permissions.
    Also, gl_date is a DATE and not a string right? I ask because if it is not a date but a string then some dates might be left out.
    Assuming you are 100% certain of the building blocks you should start by including only the gl_date and primary key from the table you are using. Once you are sure you are getting the right data you can start to add in more fields.
    I do notice you are using E-Business Suite objects. I copied the code into my system where I am not using leasing. So I commented out the references to the 3 PN tables. I got 150 rows of data when I queried using the parameter and again when I hard coded the BETWEEN for the gl_date. You do have to make sure that your EUL owner has been granted SELECT right from all the tables and views used in your code and, if you intend to share this code with someone else, you will also need to have GRANT rights.
    Try your code in a SQL tool such as TOAD and see what happens. Are you absolutely sure that every one of your transactions has an entry in the PN tables? This might be why you are not getting the results you expect. You could try, as I did, to comment those lines out and then see what happens.
    Hope this has given you enough to solve your issue
    Michael
    PS. It would be nice to know your name. You haven't used it once in your thread.

  • How to capture a parameter value in SQL QUERY of scale marker using GO URL

    Hi,
    Can any one please tell me how to capture the parameter value from go url inside Where clause of Scale Marker.
    I am trying to sift the position of scale marker based on SQL Query.
    Thanks-Bhaskar Gouda.
    Edited by: 961171 on Sep 25, 2012 12:33 AM

    Since this is a synchronous interface, where source is a soap(proxy) call and target is JDBC in the first mapping both of them are request scenarios.
    Source Structure:
    RootNode
        Request             1...unbounded
           No_of_Days   1.1 String
    Target Structure:
    RootNode
       Statement
         TableName
             Action mapped to SQL_QUERY
            Access -  SELECT DISTINCT AL.EC_NO,DP.DATE_TO_FORMAL FROM T_APPLICATION_LIST AL,(SELECT DE.EC_NO AS "EC_NO", DE.PACKAGE_NO AS "PACKAGE_NO",PC.DATE_TO_FORMAL AS "DATE_TO_FORMAL" FROM DAICYO_ECNO DE,PACKAGECTL PC WHERE DE.PACKAGE_NO = PC.PACKAGE_NO AND PC.DATE_TO_FORMAL > (TRUNC(SYSDATE) - to_number('$No_Of_DAYS$'))) DP WHERE AL.EC_NO IN  (SELECT EC_NO FROM DAICYO_ECNO WHERE PACKAGE_NO IN (SELECT PACKAGE_NO FROM PACKAGECTL WHERE DATE_TO_FORMAL > (TRUNC(SYSDATE) - to_number('$No_Of_DAYS$')))) AND (AL.FAMILY = ''  or  '' is null and AL.FAMILY is not null ) and DP.EC_NO = AL.EC_NO ORDER BY DATE_TO_FORMAL
         Key
          No_Of_Days   1..1 String
    In Return I am expecting a JDBC response from the Oracle Database as:
    Source Structure:
    RootNode
      STATEMENT_response   1...unbounded
         row                               0...undbounded
           EC_NO                        1..1   String
    Target Structure:
    RootNode
      RESPONSE
        row
         EC_NO                     1..1     String

  • Parameter Issue in Sql statement

    Hi experts
    I am writing a simple parameter query and somehow it is not working .
    Let me specify the condition
    Customer want to choose from three parameter --OINV table and INV1
    1.Customer code C
    2.Date between And B
    At running sequence :
    Customer can either put all the parameter values --A and B And C
    Or
    Customer will put A and B  but Not C
    Can you help me on this
    Thank you
    Bishal

    In case there are credits:
    SELECT t1.docdate, t1.docnum, t0.itemcode, t0.Dscription, t0.quantity, t0.linetotal, t2.cardname FROM dbo.inv1 t0
    inner join dbo.oinv t1 on t1.docnum = t0.docentry
    inner join dbo.ocrd t2 on t2.cardcode = t0.Basecard
    where t2.cardname like '[%2]%' and t2.cardtype = 'C' and t1.docdate >= '[%0]' and t1.docdate<= '[%1]'
    Union
    SELECT t1.docdate, t1.docnum, t0.itemcode, t0.Dscription, t0.quantity, t0.linetotal * -1, t2.cardname FROM dbo.rin1 t0
    inner join dbo.orin t1 on t1.docnum = t0.docentry
    inner join dbo.ocrd t2 on t2.cardcode = t0.Basecard
    where t2.cardname like '[%2]%' and t2.cardtype = 'C' and t1.docdate >= '[%0]' and t1.docdate<= '[%1]'

  • Parameter reuse in SQL statement

    I'm trying to convert to ODP.NET (version 10.1.0.200) from the Microsoft OracleClient. With the ms client I was able to reuse parameters within the sql statement multiple time. It appears with ODP.NET I can only do this one time with one parameter - after that an ora-01008 is thrown.
    For example:
    cmd.commandText = "select count(*) from some_table where (dept_no = :deptNo or :deptNo is null) and (emp_no = :empNo or :empNo is null)"
    Above would work in ms OracleClient but doesn't appear to in ODP.NET. I am correctly adding the parameters to the command - everything works fine until I add the second occurrence of the second parm...
    Has anyone else run into this or found a fix?

    Never Mind - The default behavior is cmd.BindByName = false. Once I set it to true everything was just wonderful.

  • Hardcode value in sql statement

    Hi,
    This may be a simple thing which I'm missing.
    I'm trying to hardcode numeric value in my SQL statement
    '1.0000' AS NUMBER (10,4) - It returns value as 1 instead of 1.0000
    '1.1255' AS NUMBER(10,4) - returns 1.1255
    I need my o/p to be as 1.0000 not as 1.Is there anyway I can get the result as I'm looking for
    Thanks in advance

    Hi,
    847750 wrote:
    Hi,
    This may be a simple thing which I'm missing.
    I'm trying to hardcode numeric value in my SQL statement
    '1.0000' AS NUMBER (10,4) - It returns value as 1 instead of 1.0000
    '1.1255' AS NUMBER(10,4) - returns 1.1255
    I need my o/p to be as 1.0000 not as 1.Is there anyway I can get the result as I'm looking for
    Thanks in advance
    It's hard to tell what you really want to do from such a tiny code fragment.
    Whenever you have a question, post a complete test script that people can run to re-create the problem and test their ideas.
    The value 1 is exactly the same as the value 1.0000; there is no difference between those numbers.
    If you want to display a number in a certain format (e.g. '1.0000' instead of '1'), the front end is probably the best place to do that.
    If you're using SQL*Plus as the front end, you can set the display for the column called increase_pct like this:
    COLUMN  increase_pct  FORMAT 990.0000
    This will make it display the numbers in that column with at least 1 digit to the left of the decimal point, and exactly 4 digits to the right of the decimal point.
    Other front end tools have similar features.
    If you need to do the equivalent in SQL, use the TO_CHAR function, like this
    SELECT  ename
    ,       TO_CHAR (sal, '99999.00')   AS salary
    FROM    scott.emp
    If you really are hard-coding literals, you can hard code a string, such as '1.0000'.  Don't CAST it to a NUMBER..

  • How to pass the dynamic request parameter value $fieldName:IsSelected for framework folder service FLD_PROPAGATE?

    Hello All,
    I created a WSDL for Framework folder service FLD_PROPAGATE  and FLD_PROPAGATE service has following two required request parameter:
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate
    So, I am facing issue in passing the parameter $fieldName:isSelected.
    I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
    <csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
    <csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
    <csx:fSecurityGroup>Public</csx:fSecurityGroup>
    Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
    Here is the complete service definition:
    FLD_PROPAGATE
    Service that propagates metadata down through the folder structure in Folders.
    Service Class: intradoc.folders.FoldersService
    Location: IdcHomeDir/resources/frameworkfolders_service.htm
    Required Service Parameters
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate

    Hello All,
    I created a WSDL for Framework folder service FLD_PROPAGATE  and FLD_PROPAGATE service has following two required request parameter:
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate
    So, I am facing issue in passing the parameter $fieldName:isSelected.
    I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
    <csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
    <csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
    <csx:fSecurityGroup>Public</csx:fSecurityGroup>
    Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
    Here is the complete service definition:
    FLD_PROPAGATE
    Service that propagates metadata down through the folder structure in Folders.
    Service Class: intradoc.folders.FoldersService
    Location: IdcHomeDir/resources/frameworkfolders_service.htm
    Required Service Parameters
    $fieldName:isSelected: Set to 1 to propagate the specified field.
    $fieldName: The value of the field to propagate

  • Parameter passing in sql statement

    hello..
    i want to execute a value insertion query in jdbc..where the values are all parameterized string variables.but it failed to execute the query...
    and generating a sql exception "too few parameter.."
    but it succesfully executes with a direct string like'hello'....
    heres my sample code for this...
    public void settablevalue(String pn,String pid,String time)
    try
    Statement s1=con.createStatement();
    System.out.println(pn+" "+pid+" "+time);
    char []pname=new char[50];
    char []prcsid=new char[50];
    char []timecrtn=new char[100];
    pname=pn.toCharArray();
    prcsid=pid.toCharArray();
    timecrtn=time.toCharArray();
    s1.execute("insert into ProcessEvent values(pname[],prcsid[],timecrtn[])");
    System.out.println("Executed");
    s1.close();
    catch (Exception err)
    System.out.println("ERROR: " + err);
    now do i insert string values in the table...
    pls help...thnx in advance

    You should use a PreparedStatement. Read the JavaDoc of PreparedStatement.
    Usually you prepare a statmenet like this: "insert into ProcessEvent values (?, ?, ?)" and then use setString(), setDate(), ... to set the concrete values.
    Additionally ('though this doesn't have to do anything with your problem): You don't need to create char-arrays, and even if you do, you don't have to initialize them (using "char[]pname=new char[50]") if you later assign a new value (using "pname=pn.toCharArray()").

  • Trace not generated using  Initialization SQL Statement - Custom profile

    Im following the steps given below to generate trace :
    Navigate to System Administrator > Profile > System
    Check --User and provide the User for which the tracing has to be set.
    In the Profile field provide Initialization%SQL%Custom and click Find-- button.
    (b) In the User Value column on the Profile Values form, enter the statement shown below and click 'Save'.
    BEGIN FND_CTL.FND_SESS_CTL('','','','','','ALTER SESSION SET max_dump_file_size=5000000 EVENTS=''10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'''); FND_TRACE.SET_TRACE_IDENTIFIER('XXXTEST'); END;
    Note: Specify an identifier to help you identify your trace file. XXXTEST was used in this case and will show at the end of the trace file name.
    You may need to set the MAX_DUMP_FILE_SIZE to UNLIMITED if the file is truncated
    But the the trace is not getting generated. I searched user_dump_dest and all other location but couldn't find a file with the name "XXXTEST".
    kindly help....

    Hİ;
    I suggest please check How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]. If you are sure your system generate trace, you may go with find -name xx.trace
    Regard
    Helios

  • Using passed values in SQL statements

    Using Adobe Livecycle Designer 7, we wish to populate a pdf document with values from a MS SQL database. The values will change depending on the ID of the record called for.
    We can already populate the form using SQL (SELECT firstname FROM names WHERE id = 1), but we need to populate it based on a 'passed' value in a url (http://www.mysite.com/mypdf.pdf?id=1).
    When we try to include this into the SQL (SELECT firstname FROM names WHERE id = request.id) we get an error. Could anyone provide us with the correct syntax that will allow us to populate the form based on the ID passed in a URL?
    Many Thanks
    Craig

    Hi all of you,
    I do have a problem with coding correctly a form I am designing sing the Adobe Livecycle . In one of the field, there is an underlying field that when you exit the first name field or the Middle Initial field or the last name, it should all pass the respective values to the underlying field which becomes visible on printout. I do have this code I wrote on the exit event, but do not understand why it it not working. Please, can anyone tell me why it is not working or help me out on a better way of making it work.
    xfa.host.messageBox("Check this");
    if (EMPFNAME.rawValue <> " " ){
    xfa.host.messageBox("EMPFNAME");
    EMPNAME.rawValue = String(EMPFNAME.rawValue) + " ";
    if (EMPFNAME.rawValue <> " " )&&(EMPMI.rawValue <> " "){
    EMPNAME.rawValue = String(EMPFNAME.rawValue) + " " + String(EMPMI.rawValue) + ".";
    var s = EMPMI.rawValue;
    EMPMI.rawValue = s.toUpperCase();
    if (EMPFNAME.rawValue <> " " )&&(EMPMI.rawValue <> " ")&&(EMPLNAME.rawValue <> " "){
    EMPNAME.rawValue = String(EMPFNAME.rawValue) + " " + String(EMPMI.rawValue) + "." + " " + String(EMPLNAME.rawValue);
    var s = EMPMI.rawValue;
    EMPMI.rawValue = s.toUpperCase();
    Thanks
    Lucky P

  • USING MULTIPLE SELECT VARIABLE IN A SQL STATEMENT

    In HTMLDB, the value of the parameter of a multiple select box is colon delimited(ie P6_Name = Smith:Jones:Burke). Is there an easy way to use this parameter in a SQL statement?
    Example
    Select *
    from names
    where
    Name=P6_Name
    Select *
    from names
    where
    Name IN ('Smith','Jones','Burke')
    Thank you

    Thank you for your response! I'm an idiot. It didn't make sense to me because your talking about a <i>multi-select</i> variable and I was thinking about a <i>select-list</i> variable. My problem is that I need to assign a list of values to one select list item.
    <br>
    For example:
    <br>
    SELECT * FROM EMPLOYEE
    WHERE EMPLOYEE_TYPE IN ( :SELECT_LIST_RETURN_VALUE );
    <br><br>
    With the select list as
    <br><br>
    Display value = All Types, Some Types, One Specific Type<br>
    Return Value = (Type1, type2, type3), (type1, type2), (type3)
    <br><br>
    I've just started in all of this so I'd imagine that I'm probably going about it wrong.

  • Sub report linking definition based on result, not on parameter value

    Dear all,
    I have created a report with CR 2008 SP6. The parameters from the referring BI query are period and customer. After the user enter parameter values, the report provides then Customer and product information.
    I have add a sub report with additional information for product. I can transfer the parameter value (user input) for Customer to the sub report, but not for product, due to the fact that in the main report Product is not selected as parameter, but is a result set after the report is executed.
    Is there a way to define in the Sub report linking exactly these result values of Product as new parameter for the sub report.
    In the sub report linking definition I only see the possibility of defining the parameter as linking object, but not the report result set. See also the screenshot.
    Any idea would be great. Best regards,
    Stefanos from Munich/Germany

    Hi Stefanos,
    Where is the Subreport placed on the report?
    Do you have a prompt in the Subreport for 'product'?
    If yes, then here's open the 'Change Subreport Links' window > Move the Product field to the Pane on the right > From the drop down at the bottom left that says 'Subreport parameter field to use', choose the Product prompt.
    If you don't have a prompt for product in the Subreport, then just move the Product field to the Pane on the right > From the drop down at the bottom right that says 'Select data in Subreport based on field', choose the Product field from the drop-down.
    -Abhilash

  • About sql statement in AM

    Using jdev11.1.1..5.0
    select 1 from dual where DUMMY = :pdummy ;@ run time if i give :pdummy as String X means i get an value 1
    so same try to do in AM.
        public void dummy(String pdummy)
                CallableStatement cs = null;
                try{
                String sql = "select 1 from dual where DUMMY = :pdummy ;" ;   
                cs =  getDBTransaction().createCallableStatement(sql,0);
                cs.registerOutParameter(1, Types.VARCHAR);
                cs.setString(2,pdummy ); 
                cs.executeUpdate();
                catch(SQLException e)
                throw new JboException(e);
                finally
                if (cs!=null)
                try
                cs.close();
                catch (Exception e){System.out.println ("Dummy Exception Thrown "+e);}
                }Error throwing such invalid index. can anyone re-correct me.

        public void dummy(String pdummy)
                    CallableStatement cs = null;
                    try{
                    String sql = "select 1 from dual where DUMMY = ?" ;   
                    cs =  getDBTransaction().createCallableStatement(sql,0);
                    cs.setString(1,pdummy );
                    System.out.println("ex"+ cs.execute());
                    catch(SQLException e)
                    throw new JboException(e);
                    finally
                    if (cs!=null)
                    try
                    cs.close();
                    catch (Exception e){System.out.println ("Dummy Exception Thrown "+e);}
                    }sir,
    thank you but..i want to see the value of sql statement. how can i see that?
    above code is working but i want to see the value.
    so i did like this.
        public String dummies(String pdummy)
                    CallableStatement cs = null;
                    try{
                    String sql = "select 1 from dual where DUMMY = ?" ;   
                    cs =  getDBTransaction().createCallableStatement(sql,0);
                    cs.setString(1,pdummy );
                    cs.execute();
                    return cs.getString(1);
                    catch(SQLException e)
                    throw new JboException(e);
                    finally
                    if (cs!=null)
                    try
                    cs.close();
                    catch (Exception e){System.out.println ("Dummy Exception Thrown "+e);}
                    }some invalid index error.. can show me way to see the value of sql statement.
    Edited by: subu123 on Apr 18, 2012 1:59 AM

Maybe you are looking for

  • Time Machine backup from previous computer

    So I just traded in my 2009 iMac for a Mac Pro. I had backed up everything from the iMac using Time Machine. Is getting all that info back on the new Pro as easy as turning it on, mounting the Time Machine drive and getting it rolling? Or is there a

  • How do I turn off password manager

    I don't want to use it. Having to respond to it every time I go to websites is way past annoying!

  • How can I use iMessage internationally?

    I have been in India for the past three months and will be here for another two. I've kept my phone in Airplane Mode nearly the whole trip and have only turned in on on occasion to send urgent messages back to the US. At the beginning on the trip, iM

  • Yosemite Time Machine with Synology slow

    Hi all, now im trying to run a time machine backup (50GB) since more than one week. I don't now the bottleneck MacPro or the Synology Disk Station. But the access to the disk station works fine, also normal network file transfer is running with a goo

  • Sharing broadband with my old imac

    Hi I have an emac running tiger and a very old imac, the first model, currently running 8.6. I bought a wireless ethernet bridge to share broadband and configured everything with the internet setup assistant. This ran beautifully for a day, with IE b