Last value in hierarchy of Dynamic parameters is not working in BO CMC

I have a crystal report with dynamic parameters up to 4 levels (Hierarchy of 4 levels) that is developed on version 12.3.0.601 which is working fine on my system... But when the same was uploaded on Business Objects Central Management Console version is 3.1x first 3 hierarchies are populating fine but when comes to 4th hierarchy I am only getting the values that are linked to First Value of 2nd hierarchy.
Example:
If I take the example of the organization following is the hierarchy.
1st : business head  // One Value
2nd : Project head  // 4 values (p1,p2,p3,p4)
3rd : Team head     // 1 value
4th:  developer       // 2 values for every project head  that means total of 8 values.
If 2nd hierarchy is p1,p2,p3,p4 then I am getting only 2 values of P1, In the same way if 2nd hierachy is p2,p1,p3,p4 then I am getting only 2 values that is of P2... but in real I need to total of 8 values because of all 4 parameters are selected at run time in 2nd level of hierarchy.
I have tried all possible combinations of dynamic paramters but nothing was working for me...
Problem is only in Business Objects CMC where the dynamic parameter is prompt is wrong in dev system everything is correct.
Experts please help me in this.. I hope I have explained it clear... If not please let me know will provide more information.
Thanks for your time.
Siva
Message was edited by: siva kumar

" there are more than 170 similar list of values as _1, _2..._170"
That's what happens when you build your prompts in the report and chose "update the repository" every time you save it to BO.
For the future, you have a couple of options for initially creating dynamic prompts:
1.  Create them directly in the BVM (all of the various pieces...)
2.  Create them in Crystal, publish them to the repository only the first time you save the report, and then use the BVM for any maintenance.
3.  Create a "dummy" report that just has in it the data you need for a single dynamic prompt.  Then create a dynamic parameter in the report based on that prompt.  Save it to your favorites folder, making sure that you update the repository so that the LOV gets created.  Again, use the BVM for any maintenance. (My personal favorite way to do these...)
For options 2 and 3, a _DC will be created each time you update the repository.  However, best practice is to have a single "common" _DC for each database you connect to.  So, after saving the LOV you would then open the BVM, modify the _DF so that is points to the correct "common" _DC and then delete the new _DC.
What I would do in your current situation depends on how many reports you have that access the same type of dynamic parameter.  If you have one or just a few reports using this same 4-level hierarchy prompts, I would do the following:
1.  Delete all but the first set of BVM objects for the LOV (the ones without any numbers on the end).
2.  Edit this set of BVM objects so that it has all of the information you're looking for.
3.  Edit each report and set the dynamic parameter to point to this single LOV.
If you have more reports than you can comfortable edit right now, I would still modify the first set of BVM objects to set them up as the common LOV.  Then you can do this:
1.  As you edit each report, log on to the repository (on the File menu or in the Repository Explorer).
2.  Edit the parameter and determine which set of objects it's pointing to.
3.  Point the parameter to the common LOV.
4.  Open the BVM and delete the set of objects that you found in step 2.
-Dell

Similar Messages

  • Cascading Dynamic Parameters Do Not Work In Crystal Viewer 2008?

    I have generated a report with Crystal Reports 2008 that uses a dynamic cascading parameter. I work in waste management and the report I create in Crystal is used as a "template" with the tonnages collected from all of our customers. Our less technically minded employees can then open this report with Crystal Reports Viewer 2008, use the drop down menus to select only the customer they need a report for and then export this to PDF for delivery.
    The report as designed works perfectly in Crystal Reports, but the parameter does not work in Crystal Viewer.
    Some of our customers have more than one physical location that we service. The cascading dynamic parameter in my report allows you to select the customer name, and then it only shows the locations linked to that customer, so the end user can select only the relevant location(s) for the report. The cascading parameter is dynamic and allows multiple selections, and is linked to a Saved Data formula. The report is saved with the data.
    When the report is opened in Viewer, one of two things happens. If the report is saved in Crystal Reports and a specific customer/location is selected, then ONLY those selected customer/locations are available in the Viewer. If ALL the customers/locations are selected in Crystal Reports and saved, then in the Viewer they are all available, but selecting one customer does NOT narrow down the locations (i.e. it does not "cascade") and instead ALL of the locations are available even if they do not apply to the customer.
    If I use a single dynamic parameter and select ALL of the customers (for example), then when this is opened in Crystal Viewer all of the customers are available from the parameters drop down and the report works fine. As soon as this is tried with a cascading parameter however, Crystal Viewer falls down.
    Does anyone know of a workaround to this or if there is something I am doing wrong?

    I am using the free Crystal Report 2008 Viewer along with designing reports with Crytal Reports ver 12.3. With a test file from SAP called "Interactive Parameters", the parameter feature works to refresh the report. The parameters that are supplied in the sample report work with Viewer. They show up under the parameter list in the parameter side panel in Viewer and are available to make record selections. When I add a parameter to the sample report in Crystal 2008 and then view the report in Viewer, my parameters are unavalable for record selection while the original parameters remain available. Futher, my parameters are displayed under a section called "Current Data Set" in the Parameter side panel, while the selectable parameters are displayed under the "Parameter" section in the parameter side panel. There must be a setting that is treating the parameters I create differently form the parameters created in the original sample report. Any help would be appreciated.

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Populating Text Field using Dynamic Actions is not working

    I've a Select List (P14_ACCOUNT) and Text Field (P14_BILLING_ADDRESS_1) on a form. On selecting a value on the Select List, I've to populate the Text Fields by fetching its values from the database by using the Select List value as the primary key. To do this, I created a Dynamic Actions (Advanced) on the Select List, with event onchange and Set Value as SQL. However this is not working.
    Below are the sqls of Select List and Dynamic Action respectively:
    select ACCOUNT_NO || ' - ' || COMPANY_NAME display_value, ACCOUNT_ID return_value
    from ACCOUNT
    order by 1
    select a.address1 from account a where a.account_id = :P14_ACCOUNTNow when I substitute the Dynamic Action sql with any of the below sqls, the value shows up:
    select address1 from account where account_id = 41
    select address1 from account where rownum=1
    select user from dualI thought of seeing the value of :P14_ACCOUNT in session or debug, but session does not show any value and on clicking debug it throws a popup message "Debugging is not enabled for this application."
    I've been trying since few hours but with no luck. How can I debug further?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hozy,
    Take alook at your application on apex.oracle.com
    The session state for items, when SQL is used, is set using the Page Items to Submit parameter as has been set in your application.
    Regards,

  • SPA3000 F/W 3.1.20(GW) last digit repetition within the dial plan is not working for gateway 0-4

    H/W: SPA3000
    F/W: 3.1.20(GW)
    Problem: The last digit repetition within the dial plan is not working for gateway 0-4.
    Line 1 Dial Plan: (****|<#,xx.<:@gw1>|1747xxxxxxxx.<:@gw1>)
    Dial "17474743246#" which works for gw1.
    Dial "#17474743246" which also works for gw1.
    Dial "17474743246" which doesn't work and actually goes through VoIP 1 but not gw1.
    It results in I have to specify a fixed number of digits for gw0-gw4 in the dial plan or it won't works. This could be very difficult for international calls.
    Is there any way to specify Interdigit Short Timer with <:@gw0>?
    BTW, it's strange that I have to include (****) in the dial plan to enter IVR. Without it I can't even hear any sound coming from gw1 (SIPphone). Maybe the SPA needs a factory reset. The test dial plan might look like,
    S:4,(****|*xxx.|[2-9]|xxxxx|*0<:@gw1>|1747xxxxxxx<:@gw1>|1408xxxxxxx<:@gw0>|xxxxxxxxxxxxxxxxxxxx.!)
    The last barring sequence "xxxxxxxxxxxxxxxxxxxx!" is to make sure the Interdigit Short Timer works after the last digit dialed otherwise the number will be transmitted immediately which is not preferred.

    IMHO , if there's a need for you to include *** on the dial plan to enter the IVR menu there might be a need to reset the unit.
    I believe that you can set the interdigit timer by including that on the dial plan ie: xxxxS0 just like on a hotline, i just never had a chance to try including that syntax when invoking gw0 on the dial plan , but i guess you may give it a try.

  • Premiere Pro to Adobe Audition Dynamic link does not work. Cannot edit audio in Audition.

    Trying to edit Audio from Premiere Pro within Audition thru the Dynamic link but it does not fire up Audition to edit. Seems like a common problem/bug. But no one has posted a solution. Please Help
    -Windows 7
    -Premiere Pro CC 2014
    -Adobe Audition CC 2014

    You dont understand it was all working fine in the previous Adobe versions. matter of fact you can go on youtube and see a couple of videos that shows the work flow between Premiere Pro and audition by way of Dynamic link. If you edit a video clip in Premier Pro and want to add some music or simply edit the audio that is contained in the video there was a time within Premiere Pro you can just right click "Edit in Adobe Audition" and Audition would open with the audio clip in place. Much in the same way Premiere Pro works with After Effects thru the Dynamic Link. The Dynamic Link is the bridge between applications to work with each other. For some reason Premiere Pro and Audition Dynamic Link is not working properly.

  • Last update to ios6 - worst ever, facetime does not work as it used to, problems with skype

    last update to ios6 - worst ever, facetime does not work as it used to, problems with skype, losing connection or no9t connecting facetime to face time. Do something with it.

    I'm not sure yet, but It may be as simple as "settings", "FaceTime" "Off"

  • Binding parameters does not work properly

    Hi,
    I've installed the ODT with ODA (ODTwithODAC1110720) in my Windows developer enviroment.
    I've a .NET 2008 project, using the Oracle.DataAccess library, v2.0.50727.
    I need to call a PL/SQL function developed in Oracle 11.1.0.6.
    This is the c# function I wrote to insert (throught that PL/SQL function) a record:
    public static string InsertContact(OracleConnection conn, string in_id_user, string in_i_type_contact, string in_priority, string iv_contact, string iv_note)
    StringBuilder sbSQL = new StringBuilder();
    sbSQL.Append("declare ");
    sbSQL.Append(" id_contact number; ");
    sbSQL.Append("begin ");
    sbSQL.Append(" :id_contact := pk_contact.insert_record( ");
    sbSQL.Append(" :in_id_user");
    sbSQL.Append(" ,:in_i_type_contact");
    sbSQL.Append(" ,:in_priority");
    sbSQL.Append(" ,:iv_contact");
    sbSQL.Append(" ,:iv_note");
    sbSQL.Append(" ); ");
    sbSQL.Append("end;");
    Oracle.DataAccess.Client.OracleCommand cmd = conn.CreateCommand();
    cmd.CommandText = sbSQL.ToString();
    cmd.Parameters.Add("in_id_user", OracleDbType.Int32).Value = "265";
    cmd.Parameters.Add("in_i_type_contact", OracleDbType.Int32).Value = "1";
    cmd.Parameters.Add("in_priority", OracleDbType.Int32).Value = Convert.DBNull;
    cmd.Parameters.Add("iv_contact", OracleDbType.Int32).Value = "348";
    cmd.Parameters.Add("iv_note", OracleDbType.Varchar2).Value = Convert.DBNull;
    cmd.Parameters.Add("id_contact", OracleDbType.Int32, ParameterDirection.ReturnValue);
    cmd.ExecuteScalar();
    // Return the new id_user
    return cmd.Parameters["id_contact"].Value.ToString();
    This was working fine when I used the System.Data.OracleClient library (I was using DbType instead of OracleDbType, and Number instead of Int32, and Varchar instead of Varchar2).
    Now it seems that the parameters are not bound, the PL/SQL functionreceives all NULL.
    What am I doing wrong?
    Thanks in advance,
    Samuel

    Hi,
    You didnt provide the interface of the PLSQL procedure, but it looks like you're having a problem because the ReturnValue parameter is currently appended last, and needs to come first. ODP defaults to Bind By Position, so the parameters ned to be added in the order declared in the statement. There's also a cmd.BindByName property you can set to true if you want to change the default behavior.
    Also, not that it's illegal or anyting, but you dont really need to go through the trouble of creating your own anonymous block to call the proc. You could just set
    cmd.CommandText = "pk_contact.insert_record"
    cmd.CommandType = CommandType.StoredProcedureand then apend the parameters in the right order(again, returnvalue gets added first).
    Hope it helps,
    Greg
    Edited by: gdarling on Jul 7, 2010 9:16 AM
    Note also that the ODP forum would be more appropriate for future ODP questions, and is located at ODP.NET

  • Date type parameters do not work package procedure

    a cordial greeting to the whole community, in advance thank you very much for your precious time
    a general way I have the following, a package in which I have a main procedure which I recible three parameters: a start date, a final, and a number of client
    to use the dates I enter as parameter to query yields no records, but if I assign the date internally in the procedure, if it sheds records, the strange thing is that both the data and the parameters that are identical internally assigned even in its length and I checked, the truth and I stay out of ideas thank you very much for your time attaching the code
    for now I'm just using the second query forget the first
    ------call to procedure-----
    DECLARE
    errcode VARCHAR2(200);
    errbuf VARCHAR2(200);
    BEGIN
    xxxxx.pkg.xxxinitial_end(errcode  ,errbuf
                                                        ,'2013/08/19 00:00:00'
                                                        ,'2013/08/23 00:00:00','456456456546');
    END;
    -----------------------------------------------------------------procedure---------------------------------------------------------------------
    PROCEDURExxxinitial_end (ERRCODE OUT VARCHAR2
      , ERRBUFF OUT VARCHAR2
      , p_initial_date IN VARCHAR2
      , p_end_date IN VARCHAR2
      , customer IN VARCHAR2)IS
    l_encoding_line VARCHAR2(240);
    cur_without_customer SYS_REFCURSOR;
    cur_with_customer SYS_REFCURSOR;
      initial_date DATE;
      end_date DATE;
      initial_date2 DATE;
      end_date2 DATE;
    BEGIN
    l_encoding_line := '<?xml version="1.0" encoding=' || '"iso-8859-1"' ||
                       ' ?>' || chr(10) || '<XXOCS_TOTAL_VENTAS_SINEXP>';
      initial_date := to_date(p_initial_date, 'YYYY/MM/DD HH24:MI:SS');-----------------input parameters  NOT WORKING
      end_date := to_date(p_end_date, 'YYYY/MM/DD HH24:MI:SS');-------------------input parameters
      initial_date2:=to_date('2013/08/19 00:00:00', 'YYYY/MM/DD HH24:MI:SS');---------------------default values
      end_date2:=to_date('2013/08/23 00:00:00', 'YYYY/MM/DD HH24:MI:SS');---------------------default values        WORKING FINE
      IF customer IS NULL THEN
       -- OPEN cur_without_customer;
        DBMS_OUTPUT.PUT_LINE('se ejecuto el primero');
        -------------------------cursor  -----------------------------------
        OPEN cur_without_customer FOR
            SELECT rct.customer_trx_id
                  ,rctl.customer_trx_line_id
                  ,hp.party_name ---cliente
                  ,hca.account_number ----N° Cliente
                  ,rctl.line_number -----item
                  ,rctt.name---descripcion transaccion
                  ,rct.trx_number -----numero
                  ,rctt.type ------tipo de transaccion
                  ,hp.party_id--control solamente
                  ,rct.trx_date------Fecha de emisión Comprobante de Venta
                  ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                  ,mp.attribute9||rct.trx_number N_Comprobante---No. de Comprobante de Venta
                  ,rct.attribute4-----Unidad Estratégica de Negocio
                  ,mp.attribute9----  N° de establecimiento
                  ,rctl.description-----Descripción (Tipo de Combustible)
                  ,rctl.quantity_invoiced---Cantidad Vendida en galones
                  ,rctl.unit_selling_price---Precio de venta unitario
                  --,rctl.taxable_amount-------Valor Base Imponible --restriccion
                  --,rctl.extended_amount---valor iva 12%
                 -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
              FROM ra_customer_trx_all         rct,
                   ra_customer_trx_lines_all   rctl,
                   hz_cust_accounts            hca,
                   hz_parties                  hp,
                   ra_cust_trx_types_all       rctt,
                   mtl_parameters              mp
                  -- mtl_system_items_b          msi,
                 --  zx_lines                    zl
                   --ra_batch_sources_all  rbs
             WHERE
               --rct.trx_date BETWEEN initial_date  AND end_date --parametros de fecha
               rct.trx_date BETWEEN to_date('2013/08/19 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*initial_date*/ AND to_date('2013/08/23 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*end_date*/
               AND rct.sold_to_customer_id = hca.cust_account_id
               AND hca.party_id = hp.party_id
               AND rct.customer_trx_id=rctl.customer_trx_id
               --AND rctl.inventory_item_id=msi.inventory_item_id
               AND mp.organization_id=rctl.warehouse_id
               AND rct.cust_trx_type_id = rctt.cust_trx_type_id;
         print_output(fnd_file.output, l_encoding_line);
        get_xml(cur_without_customer, 'G_REGISTER', 'CABECERA', ERRCODE);                         
      IF ERRCODE = 1 THEN
        ERRBUFF := 'El reporte no arrojo datos para los parametros ingresados';
        ERRCODE := 2;
        RETURN;
      ELSIF ERRCODE = 2 THEN
        ERRBUFF := SQLERRM;
        RETURN;
      END IF;
      print_output(fnd_file.output, '</XXOCS_TOTAL_VENTAS_SINEXP>');
         ELSE
         --  OPEN cur_with_customer;
           DBMS_OUTPUT.PUT_LINE('se ejecuto el segundo');
           -----------------------cursor 2---------------------------
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS              '||length(p_initial_date));
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS              '||length(p_end_date));
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS   quemados   '|| length(initial_date2));
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS   quemados   '|| length(end_date2));
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS convertidso  '|| length(initial_date));
           DBMS_OUTPUT.PUT_LINE('ASI ESTAN ENTRANDO LOS PARAMETROS convertidos  '|| length(end_date));
           OPEN  cur_with_customer FOR
          SELECT     rct.customer_trx_id
                    ,rctl.customer_trx_line_id
                    ,hp.party_name ---cliente
                    ,hca.account_number ----N° Cliente
                    ,rctl.line_number-----item
                    ,rctt.name---descripcion transaccion
                    ,rct.trx_number -----numero
                    ,rctt.type ------tipo de transaccion
                    ,hp.party_id---control solamente
                    ,rct.trx_date------Fecha de emisión Comprobante de Venta
                    ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                    ,mp.attribute9||rct.trx_number N_Comprobante--No. de Comprobante de Venta
                    ,rct.attribute4------ Unidad Estratégica de Negocio
                    ,mp.attribute9---------N° de establecimiento
                    ,rctl.description---------Descripción (Tipo de Combustible)
                    ,rctl.quantity_invoiced----Cantidad Vendida en galones
                    ,rctl.unit_selling_price ---Precio de venta unitario
                   -- ,rctl.taxable_amount-------Valor Base Imponible --restriccion
                   -- ,rctl.extended_amount---valor iva 12%
              -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
                FROM ra_customer_trx_all           rct,
                     ra_customer_trx_lines_all     rctl,
                     hz_cust_accounts              hca,
                     hz_parties                    hp,
                     ra_cust_trx_types_all         rctt,
                     mtl_parameters                mp
                    -- mtl_system_items_b            msi,
                     --zx_lines                      zl
                 WHERE hca.account_number=customer
                  AND  hca.party_id=hp.party_id
                  AND  hca.cust_account_id=rct.sold_to_customer_id
                  AND  rct.customer_trx_id=rctl.customer_trx_id
                 -- AND  rctl.inventory_item_id=msi.inventory_item_id
                  AND  mp.organization_id=rctl.warehouse_id
                  AND  rct.cust_trx_type_id = rctt.cust_trx_type_id
                  AND rownum = 1
            AND rct.trx_date BETWEEN initial_date AND end_date;<------------when I assign these parameters( initial_date AND end_date  )--are the insert by parameter  initial_date2 AND end_date2 defualt
           DBMS_OUTPUT.PUT_LINE('customer ' || customer);
           DBMS_OUTPUT.PUT_LINE('fe inicial ' || initial_date);
           DBMS_OUTPUT.PUT_LINE('fe final ' ||end_date);
           print_output(fnd_file.output, l_encoding_line);
           get_xml(cur_with_customer, 'G_REGISTER', 'CABECERA', ERRCODE);                         
      IF ERRCODE = 1 THEN
        ERRBUFF := 'El reporte no arrojo datos para los parametros ingresados';
        ERRCODE := 2;
        RETURN;
      ELSIF ERRCODE = 2 THEN
        ERRBUFF := SQLERRM;
        RETURN;
      END IF;
      print_output(fnd_file.output, '</XXOCS_TOTAL_VENTAS_SINEXP>');
        END IF;
        EXCEPTION
      WHEN OTHERS THEN
        print_output(fnd_file.log, 'Error Ventas sin Exportaciones:' || SQLERRM);
        ERRCODE := 2;
        ERRBUFF := SQLERRM;
      -- Initialization
    END  xxxinitial_end;

    Welcome.  As a note, this question has nothing to do with PL/SQL XML programming and everything to do with SQL and PL/SQL
    That said, the simple test case I setup, because I don't have all your tables, works just fine.
    declare
       l_errcode  VARCHAR2(300);
       l_errbuff  VARCHAR2(300);
       PROCEDURE xxxinitial_end (ERRCODE OUT VARCHAR2
         , ERRBUFF OUT VARCHAR2
         , p_initial_date IN VARCHAR2  -- why not a date?
         , p_end_date IN VARCHAR2      -- why not a date?
         , customer IN VARCHAR2)
       IS
         initial_date DATE;
         end_date DATE;
         l_value  VARCHAR2(10);
       BEGIN
         initial_date := to_date(p_initial_date, 'YYYY/MM/DD HH24:MI:SS');
         end_date := to_date(p_end_date, 'YYYY/MM/DD HH24:MI:SS');
         -- Not trapping the No Data Found on purpose
         SELECT 'hit'
           INTO l_value
           FROM dual
          WHERE SYSDATE BETWEEN initial_date AND end_date;
       END  xxxinitial_end;
    begin
      -- Test statements here
      xxxinitial_end(l_errcode, l_errbuff
                     ,'2013/08/19 00:00:00'
                     ,'2013/10/19 00:00:00'
                     ,null);
    end;
    As a comment above says, if you are dealing with dates, why not use a DATE parameter in the procedure and avoid the conversion in your code.
    Also, you can simplify your code a bit by using a third sys_refcursor and setting one of the opened cursors to it.  This allows you to pull out the common logic following the OPEN and only have one copy of it.
    PROCEDURE xxxinitial_end (ERRCODE OUT VARCHAR2
      , ERRBUFF OUT VARCHAR2
      , p_initial_date IN VARCHAR2  -- why not a date?
      , p_end_date IN VARCHAR2      -- why not a date?
      , customer IN VARCHAR2)
    IS
      l_encoding_line VARCHAR2(240);
      cur_without_customer SYS_REFCURSOR;
      cur_with_customer SYS_REFCURSOR;
      cur_comm          SYS_REFCURSOR;
      initial_date DATE;
      end_date DATE;
    BEGIN
      l_encoding_line := '<?xml version="1.0" encoding=' || '"iso-8859-1"' ||
                         ' ?>' || chr(10) || '<XXOCS_TOTAL_VENTAS_SINEXP>';
      initial_date := to_date(p_initial_date, 'YYYY/MM/DD HH24:MI:SS');-----------------input parameters  NOT WORKING
      end_date := to_date(p_end_date, 'YYYY/MM/DD HH24:MI:SS');-------------------input parameters
      IF customer IS NULL THEN
        -------------------------cursor  -----------------------------------
        OPEN cur_without_customer FOR
            SELECT rct.customer_trx_id
                  ,rctl.customer_trx_line_id
                  ,hp.party_name ---cliente
                  ,hca.account_number ----N° Cliente
                  ,rctl.line_number -----item
                  ,rctt.name---descripcion transaccion
                  ,rct.trx_number -----numero
                  ,rctt.type ------tipo de transaccion
                  ,hp.party_id--control solamente
                  ,rct.trx_date------Fecha de emisión Comprobante de Venta
                  ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                  ,mp.attribute9||rct.trx_number N_Comprobante---No. de Comprobante de Venta
                  ,rct.attribute4-----Unidad Estratégica de Negocio
                  ,mp.attribute9----  N° de establecimiento
                  ,rctl.description-----Descripción (Tipo de Combustible)
                  ,rctl.quantity_invoiced---Cantidad Vendida en galones
                  ,rctl.unit_selling_price---Precio de venta unitario
                  --,rctl.taxable_amount-------Valor Base Imponible --restriccion
                  --,rctl.extended_amount---valor iva 12%
                 -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
              FROM ra_customer_trx_all         rct,
                   ra_customer_trx_lines_all   rctl,
                   hz_cust_accounts            hca,
                   hz_parties                  hp,
                   ra_cust_trx_types_all       rctt,
                   mtl_parameters              mp
                  -- mtl_system_items_b          msi,
                 --  zx_lines                    zl
                   --ra_batch_sources_all  rbs
             WHERE
               --rct.trx_date BETWEEN initial_date  AND end_date --parametros de fecha
               rct.trx_date BETWEEN to_date('2013/08/19 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*initial_date*/ AND to_date('2013/08/23 00:00:00', 'YYYY/MM/DD HH24:MI:SS')/*end_date*/
               AND rct.sold_to_customer_id = hca.cust_account_id
               AND hca.party_id = hp.party_id
               AND rct.customer_trx_id=rctl.customer_trx_id
               --AND rctl.inventory_item_id=msi.inventory_item_id
               AND mp.organization_id=rctl.warehouse_id
               AND rct.cust_trx_type_id = rctt.cust_trx_type_id;
           cur_comm := cur_without_customer;
         ELSE
           -----------------------cursor 2---------------------------
           OPEN  cur_with_customer FOR
          SELECT     rct.customer_trx_id
                    ,rctl.customer_trx_line_id
                    ,hp.party_name ---cliente
                    ,hca.account_number ----N° Cliente
                    ,rctl.line_number-----item
                    ,rctt.name---descripcion transaccion
                    ,rct.trx_number -----numero
                    ,rctt.type ------tipo de transaccion
                    ,hp.party_id---control solamente
                    ,rct.trx_date------Fecha de emisión Comprobante de Venta
                    ,rct.attribute1   ---No. de autorización del Comprobante de Venta
                    ,mp.attribute9||rct.trx_number N_Comprobante--No. de Comprobante de Venta
                    ,rct.attribute4------ Unidad Estratégica de Negocio
                    ,mp.attribute9---------N° de establecimiento
                    ,rctl.description---------Descripción (Tipo de Combustible)
                    ,rctl.quantity_invoiced----Cantidad Vendida en galones
                    ,rctl.unit_selling_price ---Precio de venta unitario
                   -- ,rctl.taxable_amount-------Valor Base Imponible --restriccion
                   -- ,rctl.extended_amount---valor iva 12%
              -- ,NVL(importe_12(rctl.customer_trx_line_id,rct.customer_trx_id),'N/A')
                FROM ra_customer_trx_all           rct,
                     ra_customer_trx_lines_all     rctl,
                     hz_cust_accounts              hca,
                     hz_parties                    hp,
                     ra_cust_trx_types_all         rctt,
                     mtl_parameters                mp
                    -- mtl_system_items_b            msi,
                     --zx_lines                      zl
                 WHERE hca.account_number=customer
                  AND  hca.party_id=hp.party_id
                  AND  hca.cust_account_id=rct.sold_to_customer_id
                  AND  rct.customer_trx_id=rctl.customer_trx_id
                 -- AND  rctl.inventory_item_id=msi.inventory_item_id
                  AND  mp.organization_id=rctl.warehouse_id
                  AND  rct.cust_trx_type_id = rctt.cust_trx_type_id
                  AND rownum = 1
            AND rct.trx_date BETWEEN initial_date AND end_date;<------------when I assign these parameters( initial_date AND end_date  )--are the insert by parameter  initial_date2 AND end_date2 defualt
         cur_comm := cur_with_customer;
      END IF;
      print_output(fnd_file.output, l_encoding_line);
      get_xml(cur_comm, 'G_REGISTER', 'CABECERA', ERRCODE);
      CLOSE cur_comm;
      IF ERRCODE = 1 THEN
        ERRBUFF := 'El reporte no arrojo datos para los parametros ingresados';
        ERRCODE := 2;
        RETURN;
      ELSIF ERRCODE = 2 THEN
        ERRBUFF := SQLERRM;
        RETURN;
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
        print_output(fnd_file.log, 'Error Ventas sin Exportaciones:' || SQLERRM);
        ERRCODE := 2;
        ERRBUFF := SQLERRM;
      -- Initialization
    END  xxxinitial_end;

  • Crystal Reports dynamic parameter does not work in InfoView

    Hello,
    We have developed Crystal Reports in CR2008 on top of SAP infoset and we have one of our selection parameter as dynamic parameter. It works fine in the CR Dev tool but when i upload the report in the InfoView, report does not show any value in the "Available Values"
    Any input will be much appreciated.
    Thanks.

    I did found the solution for this, i had to go into Business View Manger (BO Client Tools) and Schedule the LOV (List of Values). This is odd setting! but it works....

  • Want to set mailto for google apps;tried editing the gecko...mailto.2.uritemplate as per instructions found on web; set 3 related config values to "true" as per instructions; does not work; tried javascript method without success

    I want to set the mailto app for google apps gmail.
    I tried editing the gecko...mailto.2.uritemplate as per instructions found on web (https://mail.google.com/a/MYDOMAIN/mail/?extsrc=mailto&url=%s.
    Set 3 related config values to "true" as per instructions (network.protocol-handler.expose.mailto ; network.protocol-handler.warn-external.mailto ; AND, third, gecko.handlerService.allowRegisterFromDifferentHost.
    Does not work, no Google Apps in the mailto app spot.
    Tried javascript method in address bar without success:
    javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/a/MYDOMAIN/mail/?extsrc=mailto&url=%s","Google Apps GMail")
    Any light anyone can shed will be appreciated. Cheers, jlf

    Great howto Steve! This further increased my understanding of the MVC patterns used by BC4J.
    Some remarks:
    [*]Select New Business Components...
    This should be 'New Business Components Package', or you won't be able to add business components.
    ename as "Name",
    sal as "Salary"
    from emp
    where empno = ?That should be deptno.
    [*]Select the EditEmpsInDepartment view objectThat should be EmpsInDepartment.
    Greetings,
    Ivo

  • I updated my Ipad 2 last night, and now my Kobo application is not working. Any ideas?

    So, last night, updated my Ipad 2, it took ages, but went smoothly. Two things I noticed right away--my Kobo application is not working (opens, but bookmarked screen is blank), and when I went to the App store to see if I had missed a Kobo update perhaps, the APP update screen was frozen and wouldn't allow me to select ANY updates.  Anyone have some advice?

    Try giving it a reset. Hold down the sleep and home keys for about 20 seconds. When you see the silver apple, let go and let it reboot and see if that helps.

  • Why is my symbol loaded dynamically from library not working?

    Hope someone could help,
    The code in "Example1" work fine if the video symbol is located on the stage. But what I'm trying to do is load the video symbol from the library dynamically and that doesn't work as illustrated in "Example2".
    My question is why does Example1 work and Example2 not work?
    Example1:
    var youtube = $("<iframe/>");
    sym.$("video").append(youtube);
    youtube.attr('type', 'text/html');
    youtube.attr('width', '560');
    youtube.attr('height', '315');
    youtube.attr('src', 'https://www.youtube.com/embed/A3PDXmYoF5U');
    youtube.attr('frameborder','0');
    youtube.attr('allowfullscreen', '0');
    Example2:
    sym.myVideo;
    sym.myVideo = sym.createChildSymbol("video", "Stage");
    var youtube = $("<iframe/>");
    sym.$("myVideo").append(youtube);
    youtube.attr('type', 'text/html');
    youtube.attr('width', '560');
    youtube.attr('height', '315');
    youtube.attr('src', 'https://www.youtube.com/embed/A3PDXmYoF5U');
    youtube.attr('frameborder','0');
    youtube.attr('allowfullscreen', '0');
    Thanks in advanced,
    -Angel

    Have you tried a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • I just upgraded to OS 10.8.4 last night and my Office 2011 programs will not work.

    I just upgraded my MacBook Pro (early 2011) to OS 10.8.4 last night and my Office for Mac 2011 programs will not work. To test in safe mode, I shut down my computer, restarted in safe mode to see if I could open any of my word or excel documents, which I was able to do.  I restarted, and tried opening an office document (word and excel), which did not work.  Does anyone have a solution to this?  I cannot revert back to OS 10.8.3 because I did not use Time Machine.  Any help will be appreciated.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; } | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}' | open -f -a TextEdit 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Adobe Dynamic Link will not work - Premiere Pro CS4 to After Effects CS4

    Hello,
       I am edited a video with a deadline, I'm importing a sequence from Premiere Pro CS4 to After Effects and making edits in After Effects. I'm able to import the Premiere Pro sequence into After Effects using Dynamic Link, but  I go back to Premiere Pro and nothing has changed. Then I have to export the 21 minute long video in After Effects and that takes about 12 hours, that I can't afford. I don't know what I'm doing wrong, before I imported the timeline into AE, while I was in Premiere Pro I right clicked it and selected -Edit original. It took me to the .mov that I imported- since it's a redo. I learned how to use Dynamic Link from this tutorial-
    http://tv.adobe.com/watch/learn-cs4-production-premium/using-dynamic-link/
    At first when Dynamic link didn't work I thought it was because I was cutting the imported Sequence from Premiere Pro in After Effects becasue I was motion tracking. When you import a Premier Pro sequence can you cut it into individual layers in After Effects? 

    I'm importing a sequence from Premiere Pro CS4 to After Effects
    That doesn't create the type of Link you want here.  In this case, changes made to PP would show up in AE.  You want the reverse.  (And you can only go one way, not both.)
    http://help.adobe.com/en_US/PremierePro/4.0/WS725e431141e7ba651172e081238226cdf5-8000.html

Maybe you are looking for