How to validate DBMS_SQL Urgent

Hi All,
I have astrange problem, Oracle says that DBMS_SQL, when called from form(D2K)is invalid i've tried to compile the package from SYS schema even then it shows the same error. If i try to see its code it is in compressed format, i don't know how to decompress it.
Please help i'm in a fix.
Thanx in advance,
Munish.
null

Hi,
You can try recreating DBMS_SQL package from oracle_home\ora81\rdbms\admin\dbmssql.sql file.
Sukumar
null

Similar Messages

  • How to validate user inputs against checktables

    Hi all,
    how to validate userinputs for s_bukrs and s_hkont  against respective check tables(t001 and skb1).
    can u pl zprovide me codeing for this validations.
    very urgent.
    thanks in advance
    swathi

    Hi
    Write the report
    REPORT ZREPORT.
    tables: t001,skb1,
    select-options: s_bukrs for t001-bukrs,
                           s_hkont for skb1-saknr.
    AT SELECTION-SCREEN.
    Validate the screen fields
      PERFORM validate_screen.
    *&      Form  validate_screen
    Validation of Selection Screen fields
    FORM validate_screen .
    Validation of Company code
      CLEAR t001-bukrs.
      IF NOT s_bukrs[] IS INITIAL.
        SELECT bukrs UP TO 1 ROWS
            INTO t001-bukrs
            FROM t001
            WHERE bukrs IN s_bukrs.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Company code'(002).
        ENDIF.
      ENDIF.
    Validation of Account Number
      CLEAR skb1-SAKNR.
      IF NOT s_SAKNR[] IS INITIAL.
        SELECT SAKNR  UP TO 1 ROWS
            INTO skb1-SAKNR
            FROM skb1
            WHERE SAKNR IN s_SAKNR and
                         bukrs    in S_BUKRS.
        ENDSELECT.
        IF sy-subrc <> 0.
          MESSAGE e000 WITH 'Invalid Account Number'(003).
        ENDIF.
      ENDIF.
    ENDFORM.
    Reward points if useful
    Anji

  • How to validate an text field item using javascript for numbers only.

    hi,
    how to validate an text field item using javascript for numbers only.please help me on this urgent
    please mail me solun if posible on [email protected]

    Hi,
    Page HTML header
    <script>
    function onlyNum(evt) {
      // Usage: onKeyPress="return onlyNum(event)"
      evt = (evt) ? evt : window.event;
      var charCode = (evt.which) ? evt.which : evt.keyCode;
      if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        var status = 'This field accepts numbers only!';
        alert(status);
        return false;
      var status = '';
      return true;
    </script>Item HTML Form Element Attributes
    onKeyPress="return onlyNum(event)"Br,Jari

  • How to Validate SubmitButton

    Hi Firends,please see my requirement as below,
    1)i have a page that contains only one dropdowlist suppliername, go button and table region,user select supplier from dropdown and click the go button all the supplier information getting populate into table region.
    2)in table region i have a button called addsupplier to detail, user can select check box associated wih any row and click add supplier to deatil , selected supplier information going to supplier detail page,up to this OK.
    3)Now waht is the problem is , first time page gets render, user will not select any supplier from dropdown and also not clicking go button also , simply user clcik the addsupplier to detail button , i am getting error.
    so how to validate addsupplier to detail button, suppose user should not select any row in table region.
    i hope requirement is clear you guys.please help me out....
    Thanks
    vamshi

    Hi Sumit, Thanks for your quick reply.
    but i am not getting any null pointer exception. the error below as follows...
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT
    MV.VENDOR_ID,
    MV.VENDOR_NAME,
    MV.VENDOR_SITE_CODE,
    MDVS.CITY,
    MDVS.STATE,
    MDVS.COUNTRY,
    MVA.STATUS,
    MVA.STATUS_UPDATE_DATE
    FROM MODPOS_VENDOR_COMPS MV,MODPO_DISTINCT_VENDOR_SITES_V MDVS,MODPOS_QUOT_STG MQS,MODPOS_VENDOR_ASSES MVA
    WHERE MV.VENDOR_ID=MDVS.VENDOR_ID
    AND MDVS.VENDOR_SITE_CODE=MV.VENDOR_SITE_CODE
    AND MVA.VENDOR_ID=MV.VENDOR_ID
    AND MVA.VENDOR_SITE_CODE=MV.VENDOR_SITE_CODE
    AND MQS.AAM_PRODUCT=MV.PRODUCT_NAME
    AND MQS.COMPONENT_TYPE=MV.DIR_MATERIAL_NAME
    AND MQS.PROCUREMENT_CATEGORY=MV.PURC_COMMODITY
    AND MQS.BUSINESS_UNIT=MV.BUSINESS_UNIT
    AND MQS.AAM_PRODUCT LIKE NVL(:1,MQS.AAM_PRODUCT)
    AND MQS.COMPONENT_TYPE LIKE NVL(:2,MQS.COMPONENT_TYPE)
    AND MQS.PROCUREMENT_CATEGORY LIKE NVL(:3,MQS.PROCUREMENT_CATEGORY)
    AND MQS.BUSINESS_UNIT LIKE NVL(:4,MQS.BUSINESS_UNIT)
    AND MV.VENDOR_NAME LIKE NVL(:5,MV.VENDOR_NAME)
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1294)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2396)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
    at OA.jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3289)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:1207)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4146)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:567)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:531)
    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2343)
    at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1224)
    at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2347)
    at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5167)
    at xxaam.oracle.apps.pos.quotstg.webui.AddSupplierCO.processFormRequest(AddSupplierCO.java:185)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
    at OA.jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01008: not all variables bound
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3289)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:1207)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4146)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:567)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:531)
    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2343)
    at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1224)
    at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2347)
    at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5167)
    at xxaam.oracle.apps.pos.quotstg.webui.AddSupplierCO.processFormRequest(AddSupplierCO.java:185)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
    at OA.jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    and also inside button , i am handling this code.
    below code SupplierSearchVO1 contains above error query
    if (pageContext.getParameter("AddSupplierstoStrategy")!= null)
    OAViewObject vo = (OAViewObject)am.findViewObject("SupplierSearchVO1");
    int quoteCount =0;
    for(SupplierSearchVORowImpl row = (SupplierSearchVORowImpl)vo.first();row!=null;row=(SupplierSearchVORowImpl)vo.next())
    if(row.getAttribute("Select")!=null && row.getAttribute("Select").equals("Y"))
    String VendorId=row.getAttribute("VendorId").toString();
    System.out.println("VendorId"+VendorId);
    String VendorName = row.getAttribute("VendorName").toString();
    System.out.println("VendorName"+VendorName);
    String VendorSiteCode = row.getAttribute("VendorSiteCode").toString();
    System.out.println("VendorSiteCode"+VendorSiteCode);
    String City = row.getAttribute("City").toString();
    System.out.println("City"+City);
    String Country = row.getAttribute("Country").toString();
    System.out.println("Country"+Country);
    String Status = row.getAttribute("Status").toString();
    System.out.println("Status"+Status);
    DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
    String stringStatusUpdateDate =StatusUpdateDate.toString();
    System.out.println("print"+stringStatusUpdateDate);
    long date=new SimpleDateFormat("yyyy-MM-dd").parse(stringStatusUpdateDate,new ParsePosition(0)).getTime();
    java.sql.Date dbDate=new java.sql.Date(date);
    String ProgId1 = pageContext.getParameter("ProgId");
    System.out.println("ProgId"+ProgId1);
    OADBTransaction txn =am.getOADBTransaction();
    CallableStatement cs = txn.createCallableStatement("begin do_insert(?,?,?,?,?);end;",5);
    System.out.println("procedure is:"+cs);
    try
    cs.setString(1,VendorId);
    cs.setString(2,VendorSiteCode);
    cs.setString(3,Status);
    cs.setDate(4,dbDate);
    cs.setString(5,ProgId1);
    cs.executeUpdate();
    cs.close();
    txn.commit();
    catch(Exception e)
    //throw new OAException(e.getMessage(),OAException.ERROR);
    throw new OAException("POS","MODPOS_SUPPLIER_EXIST");
    i hope you clear every thing .please help me out..urgent
    Make sure that if no rows are selected either nothing happens or an appropriate message is shown to the user.can you give some example code snippet to add throw appropiate message if user is not selected any row.
    Thanks
    vamshi

  • How to validate numbers in char field.

    Hello all,
    I have one database column with char data type. This field should allow insert only
    numbers [ zero to nine] and plus symbol .. how to validate this?
    Pls help me..
    I.m using oracle 9i database. So it does not allow REG-EXP and WITH methods.. So give some
    sql coding to do this

    As this forum is for issues with the SQL Developer tool, you'll probably get more answers in the SQL And PL/SQL forum.
    Regards,
    K.

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • How to validate material status in physical Inv Doc creation using MI01

    Hi Experts,
    I would like to know how to validate material status while creating physical inventory document using MI01 transaction.
    I tried to figure out a suitable BADI and customer exits ,but it didnt work out well.
    Kindly share your thoughts on how this can be achieved.
    Regards,
    Mohammed Aslam Rasheed

    Do you really create your inventory documents with this MI01 transaction manually by entering material for material?
    The real transaction for physical inventory is MI31. How do you want SAP to react if hundreds of materials are selected and inventory documents are created in a batch process?
    SAP takes care about the material status in MI04 and MI07 transactions.
    I am not aware of any exit for MI01 maintenance, you may consider Explicit and Implicit Enhancement Options

  • How to Validate a User on the click of a button in Oracle APEX

    Hi,
    How to Validate a User on the click of a button in Oracle APEX.
    say for e.g: I want to allow only a specific user to go beyond after clicking on a button and restrict all the other Users. Any ideas please.
    Thanks in Advance,
    Af

    Well , the actual idea was to hide the button for specific users and show the button only for some specific users... is this possible...?
    @ AndyH: yeah, what you have suggested also fits well for my requirement... Could you please let me know how can i achieve it...
    Regards,
    Af

  • How to validate the file path when downloading.

    Hi
    How to validate the file path when downloading to Presentation or application Server.

    hiii
    you can validate file path by following way
    REPORT zvalidate.
    TYPE-POOLS: abap.
    DATA: w_direc TYPE string.
    DATA: w_bool TYPE abap_bool.
    w_dir = 'c:\Myfolder\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
    directory = w_direc
    RECEIVING
    result = w_bool
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF NOT w_bool IS INITIAL.
    WRITE:/ 'Directory exists.'.
    ELSE.
    WRITE:/ 'Directory does not exist.'.
    ENDIF.
    regards
    twinkal

  • How to validate a date in message mapping

    Hi experts,
                    how to validate a date in message mapping. For ex:  if date comes as 2008/02/31, then file it shold not get processed.how to achieve this in message mapping. Please help .
    Thanks&Regards,
    Reyaz Hussain

    Hi,
    There are few simple ways for date validation as follow,
    1.If you would like to handle it in XI only, then in message mapping you could verify about it with the help of generating smart exception.
    For e.g in mapping there is one Date conversion API i.e. somthing DateTransformation It converts the incoming date format to required format. Here give the date format i.e expected from Sender File.
    If in case the format miss-matched then it will create the exception.
    You could handle this exception with the use of [Alert notification|http://help.sap.com/saphelp_nw04/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/frameset.htm] and could be even able to notify to sender system about it.
    2. The another solution is easy for SAP synchornous communication --If you are passing the file data to SAP, then you could use below function modules to verify date format in receiver RFC/BAPI or inbound IDOC program. If the sy-subrc is not 0 then don't process further.
    CONVERT_DATE_FORMAT
    ISU_DATE_FORMAT_CHECK
    Thanks
    Swarup

  • How to validate the  FI-AR& AP& FI-GL   and CO-PA extractor in R3

    Hi,
    I would like to do the integration testing in R/3 and BW.
    How to validate  Standard FI-AR& AP& FI-GL  and CO-PA extractor in R/3.
    Snapshot result of RSA3 and the tables?
    What are the tables and extractors need to be validate for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    As per our integration testing for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    How would i like to do the testing in BW QA system.
    Please some one will help me in this and answer would be great appreciate.

    Solved

  • How to validate Quantity field in TV - Inputfield ?

    Hello All,
            I'm using a table view to show the output .
    IN this table view I made 2 fields as Input fields.
    Both the fields are Quantity fields.
    Now when the user enters a value in this Quantity field I want to validate it with respect to it's units .
    How can I do that ?
    In my case if the user enters correct value it works but when he enters a wrong value my BSP is going for a dump.
    I tried to debug the<b> LIPS table</b> to verify how SAP was handling this checking for the field <b>LFIMG</b>. But there there is a statement called chain --endchain.
    SO there is no chance for debugging.
    My code is as follows :-
            LOOP AT gt_final INTO wa_final.
              CLEAR: gv_row,lv_qty,lv_string,gv_len,gv_cell_id1.
              gv_row = sy-tabix.
              gv_len = STRLEN( gv_row ).
              gv_len = gv_len - 1.
    * Modify the Third Column
              CONCATENATE 'INB01_TV_ID' '_' gv_row(gv_len) '_' '3' INTO gv_cell_id1 .
              lv_string = request->get_form_field( name = gv_cell_id1 ).
              WRITE lv_string TO lv_qty  UNIT wa_final-units.
              CLEAR :wa_final-del_quantity.
              wa_final-del_quantity = lv_qty.
              MODIFY gt_final FROM wa_final TRANSPORTING del_quantity.
            ENDLOOP.
    Can anyone tell me how to validate the entry for the Quantity filed ?
    Regards,
    Deepu.K
    I have one more Question .
    Whenever BSP goes for a dump in this case I want to handle this by a message .
    Is it possible ?
    Message was edited by:
            deepu k

    Hello Raja,
           I want to validate the entry in the QUantity field with respect to the Unit of the Quantity.
    I.e say for example I have a unit as PC (pieces) then the quantity must be only of thousands,lakks and so..on......but not in points i.e a piece quantity must be full either 200 ,2 lakhs or 2 pieces but not 2.5 pieces.
    SO now if the user enters 2.5 it's a wrong value as the quantity for the Unit PIECES can't have half-piece. (2.5 = 2 + 0.5) .SO i want to validate this .
    I hope I'm clear.
    How should I do ?
    Regards,
    Deepu.k

  • How to validate a program in background

    hello folks,
    i need to validate my program, my program should run only in background
    in case if it runs in foreground it should give error message. how to validate my
    program.
    can any one just tell the procedure how to do it.
    any help will be greatly appreciated,
    thanks in advance.
    regards,
    cnu

    Hello CNU,
    following snippet should do.
    Regards
      Klaus
    if ( 'X' ne sy-Batch ).
      message e000 with 'Only in Batch'(BTC).
    endif.

  • How to validate a filed in a search help which is created in se11

    hi
    i got a requirement that validate a search help. i created a ztable with 3 fileds for that one i have to create a search help so help me to how to validate fields in a search help.
    regards
    krishna

    Hello Krishna,
    What do you mean by validating a field? Usually you use a search help to display possible values for a certain input field based on values in another table. You can restrict the values that are displayed by certain conditions if you need to.
    If you want to allow only values based on complex conditions or authorizations of the user, you can always create a search help exit and in there you have complete control over what the user is allowed to see in the search help and what he is allowed to select.
    Function Module F4IF_SHLP_EXIT_EXAMPLE gives you an idea what you can do in a search help exit.
    Regards,
    Michael

  • How to validate a session object in jsp?

    Hi All,
    i am facing a problem.The problem is how to validate the session object object in jsp.I have written a java script by using a defined function as setInterval and has given 5 mintues if the user is idle and will show a pop up menu before time out the session but in case of page active still this pop up menu is coming. The java script as follows.
    function SetTimer(){
         //How long before timeout (should be a few minutes before your server's timeout
         //set timer to call function to confirm update
         if(timeoutMinutes)
         timerObj = setInterval("ConfirmUpdate()",60000);
    function clearTimerFn(){
              timerCount = 0;
              clearInterval(timerObj);
              //timerObj = setInterval("ConfirmUpdate()",60000);
    function ConfirmUpdate(){
         //Ask them to extend
         if(confirm("Your session is about to expire. Press 'OK' to renew your session.")){
              //load server side page if ok
              var url = "ajaxSessionchecker.do?sessionvalidate=sessionvalid";
              LoadXMLDoc(url);
    And in jsp i am calling this js function as
    <%session=request.getSession(false);
              if(session.getLastAccessedTime()==60000){ %>
              <script type="text/JavaScript">
         clearTimerFn();
    </script>
    <%}else{
    session.setMaxInactiveInterval(-1000);} %>
    could you pls help me out?

    The reason for doing this is when ever i come to this user.jsp from account.jsp with a different account number this user.jsp is not refreshed and i still
    see the same old user.jsp for the previous account that i naviated before. Also please let me know if there is any other approach to acheive this taskDoes refreshing the page by pushing F5 solve the problem?
    If so, then the browser is caching the page, despite your attempts to stop it.

Maybe you are looking for

  • Need for multiple ASM disk groups on a SAN with RAID5??

    Hello all, I've successfully installed clusterware, and ASM on a 5 node system. I'm trying to use asmca (11Gr2 on RHEL5)....to configure the disk groups. I have a SAN, which actually was previously used for a 10G ASM RAC setup...so, reusing the candi

  • Full Screen mode feedback

    I love that Flash CC now has a Full Screen mode. However, a couple of minor oversights keep me from using it regularly: I can't see tabs of the other documents I currently have open. In order to switch documents, I have to switch back to regular view

  • ASA5510 - VPN AnyConnect - Two Part Authentication

    Currently, we have the AnyConnect client authenticating our users to our AD environment.  All is working as desired.  Now our Controll Agency is requiring a two step authentication for VPN access.  Is it possible (and if so how do you do it) to also

  • Custom Greeting Issue

    I have uploaded a custom greeting and all is well there, my problem is that at the end after a caller hears my greeting, they get that AT&T... leave a message after the tone...automatic greeting behind it, letting everyone know it is a cell phone. I'

  • How to make an Audio library with a download option?

    I'm looking to set up an online audio library with Business Catalyst, I'm wandering how would be the best way to set it up if its at all possible?