Issue with formal parameters

Hi,
The Sample Procedure is been displayed Below:--
i_userId is an input (number) parameter to the Stored Procedure (SP)..
This same parameter is used for filtering Data (can be found almost bottom , i had marked as "ISSUE FOUND" there.).
i'm been using the SP without TO_NUMBER (i_userId) in my database 11g which works fine.
When the same Script is been imported to another 11g Database.. the query fetches NOTHING..... And it Works only when i had given TO_NUMBER (i_userId)........
Why is its So?........
Is this issue occur due to any installation problem, or Database creation problem.............
CREATE OR REPLACE PROCEDURE ADM_MENUSUBLEVEL_GET (i_userId IN NUMBER,
i_parent IN NUMBER,
o_menuCur OUT SYS_REFCURSOR,
o_Return OUT NUMBER) IS
array_tab array_tbl := array_tbl();
BEGIN
The Query below Fetches the lower most child node and returns its parent based on
hierachy
WITH MAINDATA AS
(SELECT LAG(purity, (LVL - 1), 0) OVER (ORDER BY rn) Val, unique_id, menu_id, parent_id, remarks, is_active, lvl
FROM (SELECT ROWNUM rn, DECODE (lvl, 1, menu_id, NULL) purity, unique_id,
menu_id, parent_id, remarks, is_active, lvl
FROM (SELECT 'A' unique_id, menu_id, parent_id, remarks, is_active, lEVEL lvl
FROM adm_menuconfig t
START WITH menu_id IN (SELECT adm.menu_id
FROM adm_users adu,
adm_user_auth_role adur,
adm_rolemenumapping adr,
adm_menuconfig adm
WHERE adu.user_id = adur.user_id
AND adur.role_id = adr.role_id
AND adm.menu_id = adr.menu_id
AND (NVL (adr.menu_add, 0) > 1 OR
NVL (adr.menu_modify, 0) > 1 OR
NVL (adr.menu_cancel, 0) > 1 OR
NVL (adr.menu_view, 0) > 1 OR
NVL (adr.menu_print, 0) > 1 OR
NVL (adr.menu_re_print, 0) > 1 OR
NVL (adr.menu_delete, 0) > 1 OR
NVL (adr.menu_process, 0) > 1 OR
NVL (adr.menu_approve, 0) > 1 OR
NVL (adr.menu_pre_dated_entry, 0) > 1 OR
NVL (adr.menu_import, 0) > 1 OR
NVL (menu_export, 0) > 1 OR
NVL (adr.menu_validation, 0) > 1)
AND adur.is_active = 1
AND adu.user_id = to_number(i_userId)) ------------------ ISSUE FOUND
CONNECT BY menu_id = PRIOR parent_id)))
SELECT parentid BULK COLLECT INTO array_tab/*Parent_Tab*/ -- Plsql Type
FROM (SELECT parentid, (SELECT lvl
FROM MAINDATA md
WHERE md.parent_id = parentid
AND ROWNUM = 1) lvl
FROM (SELECT DISTINCT parent_id parentid
FROM adm_menuconfig t
START WITH menu_id IN
(SELECT menu_id
FROM MAINDATA
WHERE lvl = 1)
CONNECT BY menu_id = PRIOR parent_id)
WHERE parentid IS NOT NULL)
ORDER BY lvl;
EXCEPTION
WHEN OTHERS THEN
o_Return := 1;
END ADM_MENUSUBLEVEL_GET;
Regards
Nims

user12265791 wrote:
i'm been using the SP without TO_NUMBER (i_userId) in my database 11g which works fine.
When the same Script is been imported to another 11g Database.. the query fetches NOTHING..... And it Works only when i had given TO_NUMBER (i_userId)........
Why is its So?........
Is this issue occur due to any installation problem, or Database creation problem.............Check the datatypes involved on the machine where it is not working. Its possible an implicit datatype conversion is taking place and is producing different results (leading spaces, for instance, in a string) than the TO_NUMBER

Similar Messages

  • Minor issue with open parameters upon initial PDF load

    Hello, everyone.
    I am experiencing an odd issue with using open parameters to view a PDF in a browser window.
    We are using ColdFusion Server 9.0.1 (soon to upgrade to 10) and the Solr Collection Server that is bundled with it.  The server is updating the collections on a daily basis via Scheduled Tasks.
    When a user (okay.. it's me.. still in testing mode) uses the form to search the collection of PDFs for a specific keyword (let's use "petroleum"), the collections indicate that there are about 31 PDF files that contain the word "petroleum".  Most of them (when opened via "http://domain.com/pdf_file_a.pdf#search="petroleum"&zoom=100") will highlight the word "petroleum" in the document, every time.
    However, there are some PDFs that when opened will indicate that there are ZERO instances of "petroleum" in the document.  But if you refresh the browser, it suddenly finds three instances that it didn't see the first time.
    Is this a bug?  Has anyone else experienced this issue?  Is there a fix or work-around for it?
    Thank you,
    ^_^

    Anyone?

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

  • Issue with passing parameters from JSP to Backing bean

    hi ,
    I have an issue in passing parameters from my JSP to backing bean. I want to fetch the parameter from my URL in backing bean .This is how i am coding it right now. But the parameter companyID returns me null.
    URL http://localhost:8080/admin/compadmin.jsp?companyID=B1234.
    In my backing bean
    FacesContext context = FacesContext.getCurrentInstance();
    String companyID = (String)context.getExternalContext().getRequestParameterMap().get("CompanyID");
         public void setCompanyID(String companyID)
              this.companyID=companyID;
         public String getCompanyID()
              return this.companyID;
    faces-config.xml :
       <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.admin.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>companyadminbean</property-name>
                   <property-class>com.admin.model.AdminBean</property-class>
                   <value>#{companyadminbean}</value>
                         </managed-property>
                        <managed-property>
                                 <property-name>companyID</property-name>
                              <value>#{param.companyID}</value>
                             </managed-property>Please let me know if iam missing something.Appreciate your help in advance
    Thanks

    Thanks very much for your input. I made changes to my bean accordingly. Actually the method getAdminType() is a not a getter of a property. It's just a method which iam calling in AdminController bean constructor to verify whether the person is System Admin or Client admin. So now the issue is inspite of making changes still the link "Copy Users" shows up for Client admin too which is incorrect.
    My Administrator bean:
    public class Administrator {
      boolean GSA=false;
      boolean SA=false;
      public Administrator(){}
    public boolean isGSA()
        return GSA;
      public boolean isSA()
        return SA;
      public void setGSA(boolean value)
        this.GSA=value;
      public void setSA(boolean value)
        this.SA=value;
    }My backing bean:
    public class AdminController {
    private AdminBean adminbean = new AdminBean();
    public AdminController(){
    int userID=1234;
    this.getAdminType(userID);           
    public void getAdminType(int userID)
             Administrator admin = new Administrator();
             if (userID<0) return;
             try{
                 if(Rc.isGlobalSystemAdmin(userID)){
                      admin.setGSA(true);
                              }else if(Rc.isClientSystemAdmin(userID)){
                      admin.setSA(true); // i could see these values setup correctly in the admin bean when i print them
                 adminbean.setAdmin(admin);
                  } catch (Exception e){ }
    Admin Bean:
    public class AdminBean {
    private Administrator admin; 
    public Administrator getAdmin()
                        return this.admin;
              public void setAdmin(Administrator admin)
                        this.admin = admin;
    faces-config.xml
    <managed-bean>
              <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>adminbean</property-name>
                   <property-class>com.model.AdminBean</property-class>
                   <value>#{adminbean}</value>
             </managed-property>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>adminbean</managed-bean-name>
              <managed-bean-class>com.model.AdminBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <managed-property>
                   <property-name>admin</property-name>
                   <property-class>com.model.Administrator</property-class>
                   <value>#{admin}</value>
                             </managed-property>
         </managed-bean>     My JSP:<h:outputLink id="ol1" value="/companyadmin/copyusers.jsp">
               <h:outputText id="ot1" value="Copy Users" rendered="#{adminbean.admin.isGSA}" /><f:verbatim><br/></f:verbatim>
               </h:outputLink>    so now the issue is thelink copy users is displayed even #{adminbean.admin.isGSA} is FALSE. please advise.
    Thanks
    Edited by: twisai on Oct 15, 2009 7:06 AM

  • Issue with Input Parameters & Variables

    Hello Gurus,
    I have a situation where, when the user enter “Parent Company”   say for ex: ABC, then the over all
    Result should filter by ‘ABC’, and then there is key figure column where I need to consider not equal to ABC and then sum the key figure.
    In HANA, here both variables and Input patemters are mutually exclusive. Is there any way that I can pass the value of the variable to the input parameters without writing the code in Analytical or calculation views.
    If it’s BW-bex, it was very straight forward, I can create the variable for parent company ‘ABC’, put it as global filter, so that whenever the user selects ‘ABC” it should display on ABC data in the out put.
    I can also use the same variable and crate calculated column in BEx and attach the variable to the key figure and say the sum the key figure but exclude the Parent company “ABC’.
    I have tried the projection view and try to put filter on it, but it did not work. My requirement is
    Whenever the user selects ABC, it should display only ABC data, only 10 records out of 100 records and for one key figure column; I need to aggregate but excluding the Parent company “ABC”.
    Can I pass the Variable value to input parameters without writing the code?
    Regards
    Ramakrishnan Ramanathaiah 

    How about the following:
    Assuming you have 2 characteristics (Plant and Parent company) and 1 KF (Net Sales).
    Now let's create a projection with Filter using Input parameter on Parent company (with user input value as ABC), which might give the output as:
    Plant
    comp
    Net Sales
    P1
    ABC
    10
    P2
    ABC
    5
    Now, let's create a second projection with the Calc KF "Net Sales calculated" with the formula as:
    if comp = $input_value$, then 0 else Net_Sales.. this way you can simulate the EXCLUDE functionality.
    Plant
    comp
    Net sales
    P1
    ABC
    0
    P1
    BCD
    15
    P2
    ABC
    0
    Now union both the projections with two diff KFs, Net Sales and Net Sales Calculated.
    Plant
    Net Sales
    Net Sales Calc
    P1
    10
    15
    P2
    5
    0
    Subsequent model depends on your reporting drilldown requirement. If you drilldown Parent company also in the rows, then you will see the split in the values.
    Please try this and let us know if it works or what other issues come up.. we can try resolving the issues..
    Ravi

  • Issue with passing parameters to an applet?

    Hi,
    I have an apex page which is a popup page. I am passing parameters to the applet and then reading them in from my java code.
    Here is my applet code
    <SCRIPT>
      function getStatus(retStatus) {
        $s("P3_MESSAGE", ''||retStatus||'')
    </SCRIPT>
    <APPLET ARCHIVE="/i/bin/offline_load.zip" CODE="offline_load.class"  STATUSMSG WIDTH=0 HEIGHT=0>
    <PARAM name="username" value="&APP_USER.">
    <PARAM name="dbuser" value="&P3_DBUSER.">
    <PARAM name="dbpassword" value="&P3_DBPASSWORD.">
    <PARAM name="dbserver" value="&P0_DBSERVER.">
    <PARAM name="dbport" value="&P3_DBPORT.">
    <PARAM name="dbsid" value="&P3_DBSID.">
    </APPLET>P3_DBUSER, P3_DBPASSWORD, etc are all defined on page zero as hidden and protected items
    My applet code
    public void init() {
        CallableStatement load_stmt = null;
        String userName = this.getParameter("username");
        String dbUser = this.getParameter("dbuser");
        String dbPass = this.getParameter("dbpassword");
        String dbServer = this.getParameter("dbserver");
        String dbPort = this.getParameter("dbport");
        String dbSid = this.getParameter("dbsid");
        try {
          System.out.println("init(): loading OracleDriver for applet created at " + created.toString());
          Class.forName("oracle.jdbc.driver.OracleDriver");
          System.out.println("init(): getting connection");
          conn = DriverManager.getConnection("jdbc:oracle:thin:@" + dbServer + ":" + dbPort + ":" + dbSid, dbUser, dbPass);
        } // end tryThe odd thing is I have gotten this working twice then unexpectedly it just stops working when I make a change to the java applet code.
    And the changes have absolutely nothing to do with the above code it can be anything the first time was error handling I added
    to another section and the second I modified a stored procedure call.
    Anyone have any idea why this might be occurring as this is driving me completely insane :(
    Thanks in advance

    Hi,
    In your init() code, you have a "try" block - do you have a "finally" block to close the connection? Something like:
    finally {
      try {
        conn.close();
      catch (Exception ignore) {
    }Could it be that you have reached the limit of the number of available open connections?
    Your code looks ok as far as I can see (based on examples at: http://www.orafaq.com/wiki/JDBC )
    Also, in your new bits of code, have you added try/catch/finally blocks? Does the code compile fully (ie, no warnings)? Have you added new imports that may conflict with existing code such that you have to fully qualify existing objects/classes (eg, you may now have two DriverManager classes or CallableStatement objects)?
    Andy

  • Issue with BAPI parameters  -  BAPI_SALESORDER_CHANGE

    Hi,
       I am trying to use BAPI_SALESORDER_CHANGE to modify the contents of the sales order item quantity. but the below code was not working, can any one correct the below program.
       I have seen the same type of post few months back but no one provided the solution till now. I hope experts can correct my program. Surely i will reward.
    regards
    jaya
    REPORT y_bapi1 .
    TABLES: vbap.
    DATA:
          bapichdr  LIKE bapisdh1,
          bapichdrx LIKE bapisdh1x,
          bapirtn   LIKE bapiret2     OCCURS 0 WITH HEADER LINE,
          bapiitm   LIKE bapisditm    OCCURS 0 WITH HEADER LINE,
          bapiitmx  LIKE bapisditmx   OCCURS 0 WITH HEADER LINE.
    DATA: s_vbap LIKE vbap.
    PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT '40486',
                p_posnr LIKE vbap-posnr DEFAULT '20'.
    start-of-selection.
    START-OF-SELECTION.
    PERFORM get_data_4m_vbap.
    PERFORM fill_header_in.
    PERFORM fill_header_inx.
    PERFORM fill_item_in.
    PERFORM fill_item_inx.
    PERFORM call_bapi_so_change.
    PERFORM call_bapi_commit.
    *&      Form  get_data_4m_vbap
          text
    FORM get_data_4m_vbap.
      SELECT SINGLE * FROM
               vbap
               INTO s_vbap
               WHERE vbeln = p_vbeln
                 AND posnr = p_posnr.
    ENDFORM.                    " get_data_4m_vbap
    *&      Form  fill_header_in
          text
    FORM fill_header_in.
    *bapichdr
    ENDFORM.                    " fill_header_in
    *&      Form  fill_header_inx
          text
    FORM fill_header_inx.
       bapichdrx-updateflag = 'U'.
    ENDFORM.                    " fill_header_inx
    *&      Form  fill_item_in
          text
    FORM fill_item_in.
    bapiitm-itm_number = p_posnr.
    bapiitm-target_qty = s_vbap-kwmeng + 5.
    APPEND bapiitm.
    CLEAR bapiitm.
    ENDFORM.                    " fill_item_in
    *&      Form  fill_item_inx
          text
    FORM fill_item_inx.
      bapiitmx-itm_number = p_posnr.
      bapiitmx-updateflag = 'U'. " I for insert & D for Delete
      bapiitmx-TARGET_QTY = 'X'.
        APPEND bapiitmx.
        CLEAR bapiitmx.
          bapiitmx-itm_number = p_posnr.
          bapiitmx-updateflag = 'I'. " I for insert & D for Delete
          bapiitmx-target_qty = 'X'.
        APPEND bapiitmx.
        CLEAR bapiitmx.
    ENDFORM.                    " fill_item_inx
    *&      Form  call_bapi_SO_change
          text
    FORM call_bapi_so_change.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = p_vbeln
       order_header_in              = bapichdr
        order_header_inx            = bapichdrx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
      TABLES
        return                      = bapirtn
        order_item_in               = bapiitm
        order_item_inx              = bapiitmx
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
      READ TABLE bapirtn WITH KEY id = 'V1' number = '311'.
      IF sy-subrc <> 0.
        PERFORM bapi_errorlist.
      ENDIF.
    ENDFORM.                    " call_bapi_SO_change
    *&      Form  call_bapi_commit
          text
    FORM call_bapi_commit.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       wait          =  'X'
    IMPORTING
      RETURN        =
    ENDFORM.                    " call_bapi_commit
    *&      Form  bapi_errorlist
          text
    FORM bapi_errorlist.
    DATA: bapierr TYPE c,
          string TYPE string,
          i TYPE i.
      bapierr = 'X'.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      LEAVE TO LIST-PROCESSING.
      SET PF-STATUS 'LIST'.
      FORMAT INTENSIFIED ON.
      WRITE: / 'BAPI ERROR OCCURED' COLOR COL_NEGATIVE INVERSE ON.
      SKIP 1.
      LOOP AT bapirtn.
        CONCATENATE bapirtn-type bapirtn-number '(' bapirtn-id ')'
          INTO string.
        WRITE: / string.
        i = strlen( bapirtn-message ).
        WRITE bapirtn-message(i).
      ENDLOOP.
      LEAVE TO SCREEN 0100.
    ENDFORM.                    " bapi_errorlist

    Hello Jaya,
    The problem would be you are not using SCHEDULE_LINES  ,so try to use.
    see the below program for referenec:
    REPORT  ZTRIALBAPICHANGE    message-id z3d                   .
    DATA:I_HEADER1 TYPE BAPISDH1.
    DATA:I_HEADER1X TYPE BAPISDH1X.
    DATA:I_PART1 LIKE BAPIPARNR  OCCURS 0 WITH HEADER LINE.
    DATA:I_ITEMS1 LIKE BAPISDITM OCCURS 0 WITH HEADER LINE.
    DATA:I_ITEMS1X LIKE BAPISDITMX OCCURS 0 WITH HEADER LINE.
    DATA:I_SCH1 LIKE BAPISCHDL OCCURS 0 WITH HEADER LINE.
    DATA:I_SCH1X LIKE BAPISCHDLX OCCURS 0 WITH HEADER LINE.
    data:err like bapiret2 occurs 0 with header line.
    DATA:RETSALES LIKE VBAK-VBELN.
    DATA:R(4).
    R = '609'.
    I_HEADER1-SALES_ORG = '0001'.
    I_HEADER1-DISTR_CHAN = '01'.
    I_HEADER1-DIVISION = '01'.
    MOVE:'U' TO I_HEADER1X-UPDATEFLAG.
    MOVE:'X' TO I_HEADER1X-SALES_ORG.
    MOVE:'X' TO I_HEADER1X-DISTR_CHAN.
    MOVE:'X' TO I_HEADER1X-DIVISION.
    **PARTNER
    CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'
      EXPORTING
        INPUT = 'SP'
        IMPORTING
         OUTPUT = I_PART1-PARTN_ROLE.
    I_PART1-PARTN_NUMB = '0000000011'.
    APPEND I_PART1.
    **ITEM DETAILS
    I_ITEMS1-MATERIAL = '000000000000000011'.
    I_ITEMS1-ITM_NUMBER = '000011'.
    APPEND I_ITEMS1.
    MOVE:'U' TO I_ITEMS1X-UPDATEFLAG.
    MOVE:'X' TO I_ITEMS1X-MATERIAL.
    APPEND I_ITEMS1X.
    **SCHEDULE LINE
    I_SCH1-ITM_NUMBER = '000011'.
    I_SCH1-REQ_QTY = '100'.
    I_SCH1-SCHED_LINE = '0000'.
    APPEND I_SCH1.
    MOVE:'U' TO I_SCH1X-UPDATEFLAG.
    MOVE:'X' TO I_SCH1X-ITM_NUMBER.
    MOVE:'X' TO I_SCH1X-REQ_QTY.
    MOVE:'X' TO I_SCH1X-SCHED_LINE.
    APPEND I_SCH1.
    UNPACK R TO RETSALES.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = RETSALES
        ORDER_HEADER_IN             = I_HEADER1
        order_header_inx            = I_HEADER1X
       SIMULATION                  = 'X'
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      tables
        return                      = ERR
       ORDER_ITEM_IN               = I_ITEMS1
      ORDER_ITEM_INX              = I_ITEMS1X
       PARTNERS                    = I_PART1
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
       SCHEDULE_LINES              = I_SCH1
       SCHEDULE_LINESX             = I_SCH1X
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    loop at err.
    format color 4.
    write:/ err-type,
    err-id,
    err-number,
    err-message,
    err-log_no,
    err-log_msg_no,
    err-message_v1,
    err-message_v2,
    err-message_v3,
    err-message_v4,
    err-parameter,
    err-row,
    err-field,
    err-system.
    *WRITE:/10 ERR-MESSAGE.
    endloop.
    IF ERR-TYPE <> 'E'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
      MESSAGE S101 WITH RETSALES.
    ELSE.
      MESSAGE S100.
    ENDIF.
    Thanks
    Seshu

  • Issue with Parameterized Popup

    Hi,
    I have created a parameterized popup which gets opened on click of an image. Opening the popup is working fine but custom close button (not the X icon) is not working. I have added javascript:closeit() as the destination URI of the button but nothing happens when I click the button. I also tried adding a javascript function for closing the window and put a PPR on the button to forward to the current page and execute the java script but no luck :-( Issue with using X button for closing the popup is - the control is still in the popup processformrequest afer I close the wondow using X. Whatever action I perform on the base page is yielding no results/undesired results. That's why I wanted a custom close button so that I can direct the control back to the calling page.
    Please advise.
    My requirement is to have 2 buttons on the popup region (save and close). On click on save, data should be saved and the calling (base) page should get refreshed and close should just close the popup and bring the control back to the base page. I have a standalone region created with desired fields and buttons and this region is added to the region popup.
    Can anyone please help me with this?
    Thanks in advance.
    Shreevatsa

    Thanks Peddi. Any other option of achieving this functionality in parameterized popup?
    Also I saw the below in the dev guide.
    You can handle user interactions for embedded and parameterized pop-ups as follows:
      All-Submit - Configure buttons on an embedded pop-up to submit the pop-up data and the base page data together. The pop-up closes and the base page submits after this event.
      Self-PPR - Define partial page refresh events on the pop-up to refresh the pop-up window alone. The pop-up remains displayed after a self-PPR event.
      Page-PPR - Define partial page refresh events on the pop-up to refresh the base page items. The popup closes after a page-PPR event.
    I didn't understand completely as what are the differences and how we can enable these actions on popup. I am thinking of Page-PPR which might work for my requirement but I am not sure how to enable this. Is this same as enabling a PPR on a item on the popup region.
    Thanks
    Shreevatsa

  • I'm getting the below issue when I try to deploy a report with Dynamic parameters, when I deploy it with static parameters I'm not getting this issue.

    I’m getting the below issue when I try to deploy a crystal report with Dynamic parameters in BI Launch Pad, when I deploy the same report with static parameters I can deploy and run it. I have Restarted the BI server, still the issue exitno use. kindly help me on this issue.
    “This error occurred: Adding Crystal Report "CrystalReport1.rpt" failed. The server with kind rptappserver returned an error result. Failed to copy the report file to the report object. Refreshing the report object properties might have failed. Failed to read data from report file CrystalReport1. Reason: Failed to read parameter object”.

    BO does not run dynamic params through the report as would happen without BusinessObjects (BO) or Crystal Reports Server (CRS).  When you publish a report with dynamic parameters to BO/CRS, the prompt is published to the repository so that it can be accessed through the Business View Manager (which can be installed as part of the client tools).  In order for this to work a couple of things need to happen:
    1.  You need to be sure that you check the "Update Repository" box on the Save As screen the first time you publish the report.
    2.  Your BO/CRS user needs to have "view" access to the Crystal2013ReportApplicationServer in the Servers section in the CMC - in fact, the Everyone group should be given view access to the server in order for dynamic prompts to work correctly.
    3.  In the Business View Manager, the Administrator user needs to give your user, or, even better, a Crystal Developers group full control access to the "Dynamic Cascading Prompts" folder.
    Best practice for dynamic prompts in a BO/CRS environment is to actually create the prompts in the Business View Manager.  This will allow you to create a single data connection that can be reused and also create lists of values such that the same list or prompt can be reused by multiple reports.  If you just create the prompts in Crystal, you will end up with multiple data connections to the same database, the prompts will use the whole query for the reports to get the dynamic values instead of just a focused query to the lookup table that contains the values, and there ends up being lots of duplication and chaos.
    -Dell

  • Issue with Validation for some report parameters

    Hello,
    I have a report with 2 parameters : Start_Date and End_Date. And a Validation (Function returning Error Text) with "Error message display location" = Inline Notification.
    Now, in case I have end_date less than start_date (OR some other conditions, that should be checked on server side), I display the inline error (which works fine)
    The problem is that the report still displays having as parameters those wrong "start_date" and "end_date", and I would like the report not be displayed at all in this case.
    I could use conditional display for the report (using the same validation function), after moving parameters in another region, but I don't really like (calling twice Validation function, etc ...)
    Any other idea ?
    Ussing Apex 2.2 right now.
    Thank you.

    You can add a pseudo items start_date1 and end_date1. And a procedure that will run After Submit. You report have to address to this new item. In this case if validation is fired your pseudo parameters will not changed.
    Best Regards, Kostya Proskudin

  • Adobe 9 Multiple issues with scale resetting, hand tool disappearing, and bad parameters

    Hello and thank you for help!
    We are having a single machine have issues with the scale resetting on a documents after they have been saved.  We will set the scale to 1-30 and after re-opeing the pdf, its back to 1-1
    Also having issues with the hand tool reverting to the pointer tool after an indeterminet amount of time.  And lastly we recieve the bad parameter message when using the clouding tool, the feature can be used right after that with no issues.  Where to start troubleshooting this issue?
    Adam

    Are you saying that
    you are going to the Document Properties tab->Initial View and setting the magnification and then saving the file, that this setting does not stick when you reopen the file
    or
    you just changing the view magnfication while looking at the file, saving the file and that view mangification doesn't stick.
    If the latter, its not supposed to. If the former, then Houston we have a problem.

  • Issue with xsd Data type mapping for collection of user defined data type

    Hi,
    I am facing a issue with wsdl for xsd mapping for collection of user defined data type.
    Here is the code snippet.
    sample.java
    @WebMethod
    public QueryPageOutput AccountQue(QueryPageInput qpInput)
    public class QueryPageInput implements Serializable, Cloneable
    protected Account_IO fMessage = null;
    public class QueryPageOutput implements Serializable, Cloneable
    protected Account_IO fMessage = null;
    public class Account_IO implements Serializable, Cloneable {
    protected ArrayList <AccountIC> fintObjInst = null;
    public ArrayList<AccountIC>getfintObjInst()
    return (ArrayList<AccountIC>)fintObjInst.clone();
    public void setfintObjInst(AccountIC val)
    fintObjInst = new ArrayList<AccountIC>();
    fintObjInst.add(val);
    Public class AccountIC
    protected String Name;
    protected String Desc;
    public String getName()
    return Name;
    public void setName(String name)
    Name = name;
    For the sample.java code, the wsdl generated is as below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions
    name="SimpleService"
    targetNamespace="http://example.org"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    >
    <wsdl:types>
    <xs:schema version="1.0" targetNamespace="http://examples.org" xmlns:ns1="http://example.org/types"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://example.org/types"/>
    <xs:element name="AccountWSService" type="ns1:accountEMRIO"/>
    </xs:schema>
    <xs:schema version="1.0" targetNamespace="http://example.org/types" xmlns:ns1="http://examples.org"
    xmlns:tns="http://example.org/types" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://examples.org"/>
    <xs:complexType name="queryPageOutput">
    <xs:sequence>
    <xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="accountEMRIO">
    <xs:sequence>
    <xs:element name="fIntObjectFormat" type="xs:string" minOccurs="0"/>
    <xs:element name="fMessageType" type="xs:string" minOccurs="0"/>
    <xs:element name="fMessageId" type="xs:string" minOccurs="0"/>
    <xs:element name="fIntObjectName" type="xs:string" minOccurs="0"/>
    <xs:element name="fOutputIntObjectName" type="xs:string" minOccurs="0"/>
    <xs:element name="fintObjInst" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="queryPageInput">
    <xs:sequence>
    <xs:element name="fPageSize" type="xs:string" minOccurs="0"/>
    <xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
    <xs:element name="fStartRowNum" type="xs:string" minOccurs="0"/>
    <xs:element name="fViewMode" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://example.org" xmlns:ns1="http://example.org/types">
    <import namespace="http://example.org/types"/>
    <xsd:complexType name="AccountQue">
    <xsd:sequence>
    <xsd:element name="arg0" type="ns1:queryPageInput"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AccountQue" type="tns:AccountQue"/>
    <xsd:complexType name="AccountQueResponse">
    <xsd:sequence>
    <xsd:element name="return" type="ns1:queryPageOutput"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AccountQueResponse" type="tns:AccountQueResponse"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="AccountQueInput">
    <wsdl:part name="parameters" element="tns:AccountQue"/>
    </wsdl:message>
    <wsdl:message name="AccountQueOutput">
    <wsdl:part name="parameters" element="tns:AccountQueResponse"/>
    </wsdl:message>
    <wsdl:portType name="SimpleService">
    <wsdl:operation name="AccountQue">
    <wsdl:input message="tns:AccountQueInput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
    ns1:Action=""/>
    <wsdl:output message="tns:AccountQueOutput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
    ns1:Action=""/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="SimpleServiceSoapHttp" type="tns:SimpleService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="AccountQue">
    <soap:operation soapAction=""/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="SimpleService">
    <wsdl:port name="SimpleServicePort" binding="tns:SimpleServiceSoapHttp">
    <soap:address location="http://localhost:7101/WS-Project1-context-root/SimpleServicePort"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    In the above wsdl the collection of fintObjInst if of type xs:anytype. From the wsdl, I do not see the xsd mapping for AccountIC which includes Name and Desc. Due to which, when invoking the web service from a different client like c#(by creating proxy business service), I am unable to set the parameters for AccountIC. I am using JAX-WS stack and WLS 10.3. I have already looked at blog http://weblogs.java.net/blog/kohlert/archive/2006/10/jaxws_and_type.html but unable to solve this issue. However, at run time using a tool like SoapUI, when this wsdl is imported, I am able to see all the params related to AccountIC class.
    Can some one help me with this.
    Thanks,
    Sudha.

    Did you try adding the the XmlSeeAlso annotation to the webservice
    @XmlSeeAlso({<package.name>.AccountIC.class})
    This will add the schema for the data type (AccountIC) to the WSDL.
    Hope this helps.
    -Ajay

  • Issue with filename in gui_download fn module

    Hi,
    i have an issue with the filename of text file that was dowloaded using gui_download fn module.
    PARAMETERS : p_file TYPE rlgrap-filename.
    CONCATENATE s_laufd-low6(2) s_laufd-low4(2) INTO gv_dt.
    CONCATENATE 'HINL' gv_dt '.001' INTO p_file.
    START-OF-SELECTION.
      DATA: v_file TYPE string.
      v_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          append                  = 'X'
        TABLES
          data_tab                = it_tab[]
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    data is downloaded into the textfile with filename as HINL2411 truncating the decimal part.
    How can i get the filename along with the decimal part as HINL2411.001.
    Thanks

    Hi ,
    Declare p_file  as TYPE string

  • Issues with WiFi connection to Deskjet 3545

    Hi,
    I have number of issues with WiFi connection to my new Deskjet 3545 AIO:
    1. Printer is not able to get IP address automatically from home WiFi router (all other devices get IP with no problem). Using WPS allow printer to register in network but after switching off, WPS setting is not stored, so I have to do it again. This I was able to solve with manual entering of IP address, netwrok mask, DNS and gateway address.
    2. Official HP software installed from HP site was able to find printer for 3dattempt, and it started to work. But after a while, "HP utility" program loose connection to printer,  so I can not see any parameters, and I get "can not find printerä message when start to to print. After a some time (minutes to hours), whithout any action from my side, connection to printer seems to be restored, so I can see printer parameters in "HP utility" and printing is started.
    3.  Official HP software installed from HP site on PC (Windows 7) is not able to find printer on WiFi at all, works only with USB.
    All this is disaponinting and unexpected, as my office HP LaserJet Pro 400 Color works perfect.

    Hi @DmiBro,
    Welcome to the HP Forums!
    I see that you are having some wireless issues with your HP Deskjet 3545 to your Mac OS X 10.10 and Windows 7 computers. I am sorry to hear this, but I am happy to help!
    I would recommend the following guides:
    HP Single-Function and Multifunction Printers - 'Printer is offline' Message Displays on the Compute.... (The solutions for OS X v10.8 Mountain Lion and OS X v10.9 Mavericks will work on Mac OS X 10.19 Yosemite.)
    HP Single-Function and Multifunction Printers - 'Printer is offline' Message Displays on the Compute....
    HP ENVY 4500 and HP Deskjet Ink Advantage 3540 e-All-in-One Printer Series - Printer Does Not Mainta....
    Tips for troubleshooting wireless connection issues
    The following tips can help you troubleshoot and avoid wireless connectivity issues. You can try these tips separately or in combination to get a successful wireless signal.
    Move the printer and the computer closer to the router, but no closer than 6 ft (1.8 m). Wireless signals can be weaker at greater distances between the printer and the router.
    If you are experiencing an intermittent wireless connection, try restarting your router. Consult your router manufacturer, Internet service provider, or network administrator for instructions on how to restart the router.
    Remove any metal objects between the printer, the computer, and the router. Objects such as refrigerators, microwaves, or metal bookcases can interfere with wireless transmission.
    Move any device that emits radio signals, such as microwaves and cordless telephones, farther away from the printer. Such devices can interfere with wireless signals.
    I would also recommend this website, HP Wireless Printing Center - Troubleshooting Issues.
    Hope this information is helpful, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Performance issues with dynamic action (PL/SQL)

    Hi!
    I'm having perfomance issues with a dynamic action that is triggered on a button click.
    I have 5 drop down lists to select columns which the users want to filter, 5 drop down lists to select an operation and 5 boxes to input values.
    After that, there is a filter button that just submits the page based on the selected filters.
    This part works fine, the data is filtered almost instantaneously.
    After this, I have 3 column selectors and 3 boxes where users put values they wish to update the filtered rows to,
    There is an update button that calls the dynamic action (procedure that is written below).
    It should be straight out, the only performance issue could be the decode section, because I need to cover cases when user wants to set a value to null (@) and when he doesn't want update 3 columns, but less (he leaves '').
    Hence P99_X_UC1 || ' = decode('  || P99_X_UV1 ||','''','|| P99_X_UC1  ||',''@'',null,'|| P99_X_UV1  ||')
    However when I finally click the update button, my browser freezes and nothing happens on the table.
    Can anyone help me solve this and improve the speed of the update?
    Regards,
    Ivan
    P.S. The code for the procedure is below:
    create or replace
    PROCEDURE DWP.PROC_UPD
    (P99_X_UC1 in VARCHAR2,
    P99_X_UV1 in VARCHAR2,
    P99_X_UC2 in VARCHAR2,
    P99_X_UV2 in VARCHAR2,
    P99_X_UC3 in VARCHAR2,
    P99_X_UV3 in VARCHAR2,
    P99_X_COL in VARCHAR2,
    P99_X_O in VARCHAR2,
    P99_X_V in VARCHAR2,
    P99_X_COL2 in VARCHAR2,
    P99_X_O2 in VARCHAR2,
    P99_X_V2 in VARCHAR2,
    P99_X_COL3 in VARCHAR2,
    P99_X_O3 in VARCHAR2,
    P99_X_V3 in VARCHAR2,
    P99_X_COL4 in VARCHAR2,
    P99_X_O4 in VARCHAR2,
    P99_X_V4 in VARCHAR2,
    P99_X_COL5 in VARCHAR2,
    P99_X_O5 in VARCHAR2,
    P99_X_V5 in VARCHAR2,
    P99_X_CD in VARCHAR2,
    P99_X_VD in VARCHAR2
    ) IS
    l_sql_stmt varchar2(32600);
    p_table_name varchar2(30) := 'DWP.IZV_SLOG_DET'; 
    BEGIN
    l_sql_stmt := 'update ' || p_table_name || ' set '
    || P99_X_UC1 || ' = decode('  || P99_X_UV1 ||','''','|| P99_X_UC1  ||',''@'',null,'|| P99_X_UV1  ||'),'
    || P99_X_UC2 || ' = decode('  || P99_X_UV2 ||','''','|| P99_X_UC2  ||',''@'',null,'|| P99_X_UV2  ||'),'
    || P99_X_UC3 || ' = decode('  || P99_X_UV3 ||','''','|| P99_X_UC3  ||',''@'',null,'|| P99_X_UV3  ||') where '||
    P99_X_COL  ||' '|| P99_X_O  ||' ' || P99_X_V  || ' and ' ||
    P99_X_COL2 ||' '|| P99_X_O2 ||' ' || P99_X_V2 || ' and ' ||
    P99_X_COL3 ||' '|| P99_X_O3 ||' ' || P99_X_V3 || ' and ' ||
    P99_X_COL4 ||' '|| P99_X_O4 ||' ' || P99_X_V4 || ' and ' ||
    P99_X_COL5 ||' '|| P99_X_O5 ||' ' || P99_X_V5 || ' and ' ||
    P99_X_CD   ||       ' = '         || P99_X_VD ;
    --dbms_output.put_line(l_sql_stmt); 
    EXECUTE IMMEDIATE l_sql_stmt;
    END;

    Hi Ivan,
    I do not think that the decode is performance relevant. Maybe the update hangs because some other transaction has uncommitted changes to one of the affected rows or the where clause is not selective enough and needs to update a huge amount of records.
    Besides that - and I might be wrong, because I only know some part of your app - the code here looks like you have a huge sql injection vulnerability here. Maybe you should consider re-writing your logic in static sql. If that is not possible, you should make sure that the user input only contains allowed values, e.g. by white-listing P99_X_On (i.e. make sure they only contain known values like '=', '<', ...), and by using dbms_assert.enquote_name/enquote_literal on the other P99_X_nnn parameters.
    Regards,
    Christian

Maybe you are looking for

  • 2gen iPod is not recognized by laptop nor iTunes.

    Good day, I've got a 5th gen Video iPod that works flawlessly with my laptop. I've got a 2nd gen iPod with Dock Connector that I haven't used in about a year, and never used on this computer. Unfortunately I do not have the software disc I had to ins

  • How to set up Web Repository in KM

    Hi , We are using SP21 in our Enterprise portal 7.0. Could you please give me the steps, how to set up the Web Repository in KM. Thanks and best Regards, Manoj K

  • HT5622 someone has an apple ID and it has locked my phone? how do i get off it? and unlock it?

    i cant get into my phone as it is 2nd hand and has someone elses apple ID and Icloud on it

  • IOS 8.1.2 update not working.

    Today I tried to update my iPhone to 8.1.2 VIA iTunes. However, it doesn't seem to be working. I got the the screen with the Apple logo and the loading bar. Then, the phone restarted and the screen is showing up again. The bar has under a half an inc

  • Using external XML to load an swf

    Here's the deal - I have a main SWF with lots of loaders. Can a hyperlink in an external XML file load another external swf in the root flash doc? I have a list of links load in main SWF from an external XML file. From these links, I'd like to load o