SQL ERROR on Form Input

I used the wizard in Dreamweaver CS4 Developer Toolbox to have a form to upload an image and some data to a MySql dbase.
Here is the error I got:
Error:Internal error.
Developer Details:tNG_fields.getFakeRecordset:
SQL error: Error creating temporary table:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
SQL:
CREATE TEMPORARY TABLE KT_fakeRS_20100330 (fld_name TEXT, fld_location TEXT, fld_test TEXT, fld_image TEXT, key TEXT) (FIELDS_FAKE_RS_ERROR)
tNG Execution Trace - VIEW
tNG_insert.executeTransactionSTARTER.Trigger_Default_Starter
tNG_insert.getRecordset
tNG_insert.getLocalRecordset
tNG_insert.getFakeRecordset*
And here is the code that generated the error, again, all from developer toolbox:
<?php require_once('../../Connections/site.php'); ?>
<?php
// Load the common classes
require_once('../../includes/common/KT_common.php');
// Load the tNG classes
require_once('../../includes/tng/tNG.inc.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("../../");
// Make unified connection variable
$conn_site = new KT_connection($site, $database_site);
// Start trigger
$formValidation = new tNG_FormValidation();
$formValidation->addField("fld_name", true, "text", "", "", "", "");
$formValidation->addField("fld_location", true, "text", "", "", "", "");
$formValidation->addField("fld_test", true, "text", "", "1", "256", "Please enter less than 256 Characters.");
$tNGs->prepareValidation($formValidation);
// End trigger
// Make an insert transaction instance
$ins_tbl_testimonials = new tNG_insert($conn_site);
$tNGs->addTransaction($ins_tbl_testimonials);
// Register triggers
$ins_tbl_testimonials->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
$ins_tbl_testimonials->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$ins_tbl_testimonials->registerTrigger("END", "Trigger_Default_Redirect", 99, "/admin/testimonial/testimonial-control.php");
// Add columns
$ins_tbl_testimonials->setTable("tbl_testimonials");
$ins_tbl_testimonials->addColumn("fld_name", "STRING_TYPE", "POST", "fld_name");
$ins_tbl_testimonials->addColumn("fld_location", "STRING_TYPE", "POST", "fld_location");
$ins_tbl_testimonials->addColumn("fld_test", "STRING_TYPE", "POST", "fld_test");
$ins_tbl_testimonials->addColumn("fld_image", "FILE_TYPE", "FILES", "fld_image");
$ins_tbl_testimonials->setPrimaryKey("key", "NUMERIC_TYPE");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rstbl_testimonials = $tNGs->getRecordset("tbl_testimonials");
$row_rstbl_testimonials = mysql_fetch_assoc($rstbl_testimonials);
$totalRows_rstbl_testimonials = mysql_num_rows($rstbl_testimonials);
?>
<html>
<head>
<link href="../../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../../includes/common/js/base.js" type="text/javascript"></script>
<script src="../../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../../includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
</head>
<body>
<?php
    echo $tNGs->getErrorMsg();
?>
<form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" enctype="multipart/form-data">
  <table cellpadding="2" cellspacing="0" class="KT_tngtable">
    <tr>
      <td class="KT_th"><label for="fld_name">Fld_name:</label></td>
      <td><input type="text" name="fld_name" id="fld_name" value="<?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_name']); ?>" size="32" />
        <?php echo $tNGs->displayFieldHint("fld_name");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_name"); ?></td>
    </tr>
    <tr>
      <td class="KT_th"><label for="fld_location">Fld_location:</label></td>
      <td><input type="text" name="fld_location" id="fld_location" value="<?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_location']); ?>" size="32" />
        <?php echo $tNGs->displayFieldHint("fld_location");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_location"); ?></td>
    </tr>
    <tr>
      <td class="KT_th"><label for="fld_test">Fld_test:</label></td>
      <td><textarea name="fld_test" id="fld_test" cols="50" rows="5"><?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_test']); ?></textarea>
        <?php echo $tNGs->displayFieldHint("fld_test");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_test"); ?></td>
    </tr>
    <tr>
      <td class="KT_th"><label for="fld_image">Fld_image:</label></td>
      <td><input type="file" name="fld_image" id="fld_image" size="32" />
        <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_image"); ?></td>
    </tr>
    <tr class="KT_buttons">
      <td colspan="2"><input type="submit" name="KT_Insert1" id="KT_Insert1" value="Insert record" /></td>
    </tr>
  </table>
</form>
<p> </p>
</body>
</html>
What can be wrong? I understand its an SQL error, but not sure why ADDT caused an SQL Error or how to fix it myself.
Any help would be greatly appreciated.
Chris

Problem solved.  While it is noted that on a DC you cannot run the database as a local service, it is not mentioned that it will not even install if loaded as ANY service.  If given a full admin user and password to use as it's operating condition,
the install goes fine.  Then change to what is desired.  I am not impressed with the error reporting in this install, as even the event logs gave no indication as to the reason for this.  Most of the install of the database service went OK (In
the event logs and the install logs.) and when doing the final config, the problem pops up, aborting everything else.  You MUST then wipe ALL traces of the first install or different weird failures appear no matter what credentials are used.
Hi C Policki,
Sorry for my delay.
Glad to hear that you have solved this issue and thanks for sharing in the forum. Your time and efforts are highly appreciated.
I noticed that you install the SQL Server 2012 in a Windows Server 2012 R2 Essentials. Would you please let me confirm whether that Windows Server 2012 R2 Essentials was a Windows Server 2012
R2 Standard/Datacenter with Windows Server Essentials Experience role, then you deploy it in an Existing Active Directory Environment?
Deploying
Windows Server 2012 R2 Standard/Datacenter with Windows Server Essentials Experience role in an Existing Active Directory Environment
If it is just a Windows Server 2012 R2 Essentials, it should be a DC.That
will be not recommended to install SQL Server on a domain controller. There are specific security restrictions when running SQL Server in this configuration and given the resource demands of a domain controller, SQL Server performance may be degraded.
You may encounter problems when installing SQL Server on a domain controller
Best regards,
Justin Gu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • Error while calling "sql Type" in forms

    Hi all,
    I have created a SQL TYPE in user schema and call it through form.While compiling form following error message arise:
    Implementation restriction [may be temporary] ADT or schema level collection not supported at client side with non-OCI mode.
    My user has dba rights and i m using 9.0.4.
    Any idea ???
    Regards

    All,
    The problem is in Oracle Forms. The PL/SQL engine in Forms is not the same as the PL/SQL Engine in the database. Consequently, there will be features available in the Database that are not available in Forms. I suggest you alter your design so it doesn't use a database TYPE. There are a few Metalink articles that discuss this difference.
    Craig..

  • SQL error forced rollback and connection loss with OLE item in forms 6i

    We are running forms 6i client server on a Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit. We have a form that has 1 base table block that contains an OLE item where the user can create or edit a Microsoft Word document then save that document in a long raw column in the table. The OLE item is using the Word.Document.8 OLE class.
    We are having intermittant problems where the user presses commit in the form and gets a FRM-40508 error: unable to Insert record. The message displayed at the bottom of the screen is FRM-40655: SQL error forced rollback: clear form and re-enter transaction. When I press Shift-F1 to view the error I see ORA-03113: end-of-file on communication channel.
    DBA says that there are no errors being generated in the database. Does anyone have any experience with kind of problem? Any suggestions would be most welcome.

    The Ora-3113 error means that the connection has been lost.
    These issues normally are database or networking related and have little to do with ole objects.
    You need to determine if a server-side error is causing the disconnect.
    To start diagnosing this issue you first need to turn on sqlnet tracing to see what other ora-XXXX error is occuring. That will start to help diagnosing this issue.
    You may also want to check the database alert log for any RDBMS errors that may have caused the disconnect.
    If there aren't any RDBMS errors logged, you should generate a Net8 trace for the session to see if you can get more detailed errors.
    About sql tracing:
    To obtain a trace, you have to place the following entries in the SQLNet.ORA file. Make sure before you start your application that the C:\Trace directory exist.
    TRACE_FILE_CLIENT = net817
    TRACE_DIRECTORY_CLIENT = C:\trace
    TRACE_UNIQUE_CLIENT = ON
    TRACE_LEVEL_CLIENT = 16
    TRACE_TIMESTAMP_CLIENT = ON
    When finished obtaining both traces, set the TRACE_LEVEL_CLIENT = 0 from 16 to turn off tracing.
    Monica

  • Pl/sql error while compiling forms on AS 10g running on linux

    Compiling WHEN-BUTTON-PRESSED trigger on FILECHOOSER item in BLOCK2 data block...
    Compilation error on WHEN-BUTTON-PRESSED trigger on FILECHOOSER item in BLOCK2 data block:
    PL/SQL ERROR 201 at line 14, column 9
    identifier 'WEBUTIL_FILE.FILE_SELECTION_DIALOG' must be declared
    PL/SQL ERROR 0 at line 14, column 1
    Statement ignored
    Compiling WHEN-BUTTON-PRESSED trigger on DUMMY item in WEBUTIL data block...
    Compilation error on WHEN-BUTTON-PRESSED trigger on DUMMY item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 4, column 1
    identifier 'WEBUTIL_CORE.SHOWBEANS' must be declared
    PL/SQL ERROR 0 at line 4, column 1
    Statement ignored
    Compiling WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_CLIENTINFO_FUNCTIONS item in WEBUTIL data block...
    Compilation error on WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_CLIENTINFO_FUNCTIONS item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 2, column 3
    identifier 'WEBUTIL_CORE.CUSTOMEVENTHANDLER' must be declared
    PL/SQL ERROR 0 at line 2, column 3
    Statement ignored
    Compiling WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_FILE_FUNCTIONS item in WEBUTIL data block...
    Compilation error on WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_FILE_FUNCTIONS item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 2, column 3
    identifier 'WEBUTIL_CORE.CUSTOMEVENTHANDLER' must be declared
    PL/SQL ERROR 0 at line 2, column 3
    Statement ignored
    Compiling WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_HOST_FUNCTIONS item in WEBUTIL data block...
    Compilation error on WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_HOST_FUNCTIONS item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 2, column 3
    identifier 'WEBUTIL_CORE.CUSTOMEVENTHANDLER' must be declared
    PL/SQL ERROR 0 at line 2, column 3
    Statement ignored
    Compiling WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_SESSION_FUNCTIONS item in WEBUTIL data block...
    Compilation error on WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_SESSION_FUNCTIONS item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 2, column 3
    identifier 'WEBUTIL_CORE.CUSTOMEVENTHANDLER' must be declared
    PL/SQL ERROR 0 at line 2, column 3
    Statement ignored
    Compiling WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_FILETRANSFER_FUNCTIONS item in WEBUTIL data block...
    Compilation error on WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_FILETRANSFER_FUNCTIONS item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 2, column 3
    identifier 'WEBUTIL_CORE.CUSTOMEVENTHANDLER' must be declared
    PL/SQL ERROR 0 at line 2, column 3
    Statement ignored
    Compiling WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_OLE_FUNCTIONS item in WEBUTIL data block...
    Compilation error on WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_OLE_FUNCTIONS item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 2, column 3
    identifier 'WEBUTIL_CORE.CUSTOMEVENTHANDLER' must be declared
    PL/SQL ERROR 0 at line 2, column 3
    Statement ignored
    Compiling WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_C_API_FUNCTIONS item in WEBUTIL data block...
    Compilation error on WHEN-CUSTOM-ITEM-EVENT trigger on WEBUTIL_C_API_FUNCTIONS item in WEBUTIL data block:
    PL/SQL ERROR 201 at line 2, column 3
    identifier 'WEBUTIL_CORE.CUSTOMEVENTHANDLER' must be declared
    PL/SQL ERROR 0 at line 2, column 3
    Statement ignored

    i have already compile webutil.pll and its successfully compiled.
    now,when i go for compiling my form, the pl/sql error have been ocured.
    help required in placing the files (.pll,.olb.....) for utilizing the webutil functionality
    kindly reply. its urgent
    Message was edited by:
    user494855

  • Getting windows error during running the sql scripts from form 6i

    I made a little form application. The purpose of this application is to generate explain plan for a particular SQL. Some sql scripts run internally in order to populate the result on form’s screen after pressing the form’s button but I am getting windows error during running the sql scripts from form 6i.
    I am using forms 6i with patch 17 with Oracle 10G database on windows 2000 professional on same computer.
    This application runs fine with 8i.
    Please inform me where the problem is and how to overcome it.
    Zafri.

    I am using Text_IO in my form's when button press trigger , inorder to create the
    text file, then in the same when button press triger
    I am calling RMAN via host command in order to run the script which was created by text_IO.
    Below you find some of the code. I will appreciate if you solve the problem.
    when button press trigger:
    Declare
    in_file3 Text_IO.File_Type;
    linebuf3 VARCHAR2(1800);
    output11 varchar2(1000);
    BEGIN
         output11:='C:\EXPLAIN_PLUS\misc\rm_file.bat ';
    Host(output11,no_screen);
    :sql.execution_plan:= 'Working........................';
    synchronize;
    in_file3 := Text_IO.Fopen('c:\explain_plus\misc\create_table.txt', 'w');
    Text_IO.Put_Line(in_file3, linebuf3);
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' run { sql "create table PLAN_TABLE (statement_id,...object_name varchar2(30),object_instance numeric,object_type varchar2(30),optimizer varchar2(255),search_columns number,id .....partition_start varchar2(255),partition_stop  varchar2(255),partition_id numeric,other long,distribution varchar2(30)) "; } ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.put_line(in_file3,' ');
    Text_IO.FCLOSE(in_file3)
              Declare
    un VARCHAR2(80);
    pw VARCHAR2(80);
    cn VARCHAR2(80);
    output VARCHAR2(1000);
    output2 VARCHAR2(1000);
    dummy varchar2(40);
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(1800);
    BEGIN
         Get_Connect_Info(un,pw,cn);
         /* for Plan_table Begg. Second INNER BLOCK */
         declare
              dummy2 varchar2(40);
         begin
         select table_name into dummy2 from all_tables where table_name='PLAN_TABLE';
         if dummy2 = 'PLAN_TABLE' then
         output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\MISC\TRUNC2.txt ' ;
    Host(output2,no_screen);
         end if;
         exception
         when no_data_found     then
    output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\misc\create_table.txt ';
    Host(output2,no_screen);
         end; --

  • FRM-40655: SQL error forced rollback: clear form and re-enter transaction.

    Hello ,
    I have ORACLE 10G & Forms 6i on Windows server 2008 . When I open the forms for some work , it give me error in few minis.
    FRM-40655: SQL error forced rollback: clear form and re-enter transaction.
    I have not done anything unusual in form design. it was working properly from a long time.
    Yesterday i set the default profile to idle_time = 20. Will that make any problem ???
    I checked my Alert Log but no sign of any deadlock in it, or any other unusual activity ....
    What is the solution ???
    Thanks in advance ..

    This happens due to dead lock situation
    To avoid this problem, add NOWAIT option to the UPDATE and DELETE statements, which returns ORA-00054 error, trap this error and display user defined message like 'The record is being accessed and try after some time'.
    This even improves the performance
    because no process waits for the locks preventing dead locks.
    If it is due to the UPDATE's or DELETE's with base table blocks in the form, in the PRE-UPDATE and PRE-DELETE triggers write SELECT statements to select the particular row with FOR UPDATE NO WAIT option. Handle by trapping the ORA-00054 error

  • Forms 6i gives FRM-40734 Internal PL/SQL Error after Hourglass for 30 Min

    Hi,
    I am developing a New custom Form using a copy of Oracle Apps. TEMPLATE.FMB
    (Out of two custom forms , I am getting the below issue in only one form and the other is working fine)
    Everything works fine but I observed one unique issue during my testing.
    I executed the form and entered a value in one column of the master record
    (now the record in CHANGED status).
    Now I pressed the F11 Key (for Enter-Query in Apps) for doing the
    Query by ignoring the entered record values.
    Instead of giving a message "Do you want to Save the changes you have made (or)
    A Required Field must be entered"
    But the Form shows the Hourglass(Busy) for 30 Minutes then gives the error :
    FRM-40734 Internal PL/SQL Error
    May I know in the above situation, what are the triggers the form will fire and in which sequence (forms 6i)
    In summary what form triggers will be fired :
    When a NEW record status is CHANGED and when the user invokes Enter-Query
    (F11 on Apps and F8 on standalone) , before form changes to Enter-Query mode.
    Any pointers to my issue resolution.
    Below is my form canvas/block layout and I am getting the issue Only in Master Block and not in any of the detail blocks
    MASTER BLOCK
    DETAIL1 BLOCK
    DETAIL2 BLOCK DETAIL2 BLOCK DETAIL2 BLOCK
    thanks,
    Shashi

    Issue got resolved:
    ==================
    In my case, The solution I found is renaming the Relations with a unique name.
    When the Relation is created for two different master blocks
    the "Block creation wizard" has given the same name for both
    these relations.
    I renamed both of them with a custom unique name then the issue got resolved now the form is behaving correctly.
    thanks,
    Shashi

  • SQL ERROR

    HI EXPERTS!
    CAN ANYBODY TELL ME HOW TO RESOLVE THIS RUNTIME ERROR ON EXECUTING TRANSACTION PC00_M40_CALC.
    Runtime errors         DBIF_RSQL_SQL_ERROR
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     07.08.2007 at   14:13:06
    An SQL error occurred when accessing a table.
    What happened?
    What can you do?
    Make a note of the actions and input which caused the error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "GET_SLAB_RATE" "(METHOD)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "GET_SLAB_RATE"
    "(METHOD)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Database error text........: "ORA-04031: unable to allocate 4200 bytes of
    shared memory ("shared pool","SELECT * FROM "T7INT1" WHERE...","library
    cache","kkslpkp - literal info.")"
    Internal call code.........: "[RSQL/FTCH/T7INT1 ]"
    Please check the entries in the system log (Transaction SM21).
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC
    "CL_HRPAYIN_SLABRATES==========CP " or "CL_HRPAYIN_SLABRATES==========CM002 "
    "GET_SLAB_RATE"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.
    System environment
    SAP Release.............. "620"
    Application server....... "hmsidev01"
    Network address.......... "10.249.16.150"
    Operating system......... "Windows NT"
    Release.................. "5.0"
    Hardware type............ "2x Intel 801586"
    Character length......... 8 Bits
    Pointer length........... 32 Bits
    Work process number...... 0
    Short dump setting....... "full"
    Database server.......... "HMSIDEV01"
    Database type............ "ORACLE"
    Database name............ "DEV"
    Database owner........... "SAPDEV"
    Character set............ "English_United State"
    SAP kernel............... "620"
    Created on............... "Jun 13 2004 22:06:10"
    Created in............... "NT 5.0 2195 Service Pack 2 x86 MS VC++ 12.00"
    Database version......... "OCI_817_SHARE "
    Patch level.............. "1511"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 8.1.7.."
    SAP database version..... "620"
    Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
    User, transaction...
    Client.............. 100
    User................ "IR1"
    Language key........ "E"
    Transaction......... "PC00_M40_CALC "
    Program............. "CL_HRPAYIN_SLABRATES==========CP "
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where terminated
    The termination occurred in the ABAP program "CL_HRPAYIN_SLABRATES==========CP
    " in "GET_SLAB_RATE".
    The main program was "HINCALC0 ".
    The termination occurred in line 12 of the source code of the (Include)
    program "CL_HRPAYIN_SLABRATES==========CM002 "
    of the source code of program "CL_HRPAYIN_SLABRATES==========CM002 " (when
    calling the editor 120).
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "GET_SLAB_RATE" "(METHOD)" but was not handled locally, not declared
    in the
    RAISING clause of the procedure.
    The procedure is in the program "CL_HRPAYIN_SLABRATES==========CP ". Its source
    code starts in line 1
    of the (Include) program "CL_HRPAYIN_SLABRATES==========CM002 ".
    Source code extract
    000010   METHOD get_slab_rate .
    000020
    000030     DATA: wa_t7int1 TYPE  t7int1,
    000040           wa_t7int3 TYPE  t7int3,
    000050           slab_code TYPE t7int1-slcod.
    000060     CLEAR: wa_t7int1 ,
    000070           wa_t7int3 ,
    000080           slab_code .
    000090
    000100
    000110   * Select slab code from t7int1.
        SELECT * FROM t7int1 INTO wa_t7int1
    000130                WHERE sltyp = slab_type
    000140                AND begda LT ref_date
    000150                AND endda GE ref_date.
    000160       MOVE wa_t7int1-slcod TO slab_code.
    000170     ENDSELECT.
    000180
    000190   * Find out the rate for the salb code in which the income falls.
    000200     SELECT * FROM t7int3 INTO wa_t7int3 WHERE slcod = slab_code ORDER BY
    000210   hirge.
    000220       IF wa_t7int3-hirge GE income.
    000230         EXIT.
    000240       ENDIF.
    000250     ENDSELECT.
    000260
    000270     slab_rate = wa_t7int3-txval.
    000280
    000290
    000300   ENDMETHOD.
    Contents of system fields
    SY field contents..................... SY field contents.....................
    SY-SUBRC 0                             SY-INDEX 215
    SY-TABIX 63                            SY-DBCNT 1
    SY-FDPOS 1                             SY-LSIND 0
    SY-PAGNO 1                             SY-LINNO 1
    SY-COLNO 1                             SY-PFKEY
    SY-UCOMM                               SY-TITLE Payroll Driver, India
    SY-MSGTY                               SY-MSGID
    SY-MSGNO 000                           SY-MSGV1
    SY-MSGV2                               SY-MSGV3
    SY-MSGV4
    Active calls / events
    No.... Type........ Name..........................
           Program
           Include                                  Line
           Class
        16 METHOD       GET_SLAB_RATE
           CL_HRPAYIN_SLABRATES==========CP
           CL_HRPAYIN_SLABRATES==========CM002         12
           CL_HRPAYIN_SLABRATES
        15 FORM         STDDED03
           HINCALC0
           PCTAXIN0                                   564
        14 FORM         CALC_STANDARD_DEDUCTION
           HINCALC0
           PCTAXIN0                                   466
        13 FORM         FUINTAX
           HINCALC0
           PCTAXIN0                                   253
        12 FORM         AS-FUNKTION
           HINCALC0
           PCASFIN0                                    13
        11 FORM         ASLOOP
           HINCALC0
           RPCHRT09_ASLOOP                             58
        10 FORM         MONATSABRECHNUNG
           HINCALC0
           RPCHRT09_MONATSABRECHNUNG                   48
         9 FORM         RUECKRECHNUNG
           HINCALC0
           RPCHRT09_RUECKRECHNUNG                     136
         8 FORM         MAIN
           HINCALC0
           RPCHRT09_MAIN                              134
         7 FORM         %_GET_PERNR
           HINCALC0
           RPCHRT09                                   762
         6 FORM         FILL_INFOTYPE_TABLES_AND_PUT
           SAPDBPNP
           DBPNPF03                                   542
         5 FORM         PUTPERN
           SAPDBPNP
           DBPNPF03                                   470
         4 FORM         LOOP_AT_INDEX_AND_PUT
           SAPDBPNP
           DBPNPF01                                   996
         3 FORM         PUT_PERNR
           SAPDBPNP
           DBPNPF01                                   194
         2 FORM         %_ROOT
           SAPDBPNP
           SAPDBPNP                                   151
         1 EVENT        SYSTEM-EXIT
           HINCALC0
                                               20
    Chosen variables
        16 METHOD       GET_SLAB_RATE
           CL_HRPAYIN_SLABRATES==========CP
           CL_HRPAYIN_SLABRATES==========CM002         12
    SLAB_TYPE                      D
                                   4
                                   4
    REF_DATE                       20070331
                                   33333333
                                   20070331
    INCOME                         ####Q•“#
                                   00005991
                                   0001153C
    SLAB_RATE                      ########
                                   00000000
                                   0000000C
    WA_T7INT1                          0000000000000000
                                   222233333333333333332
                                   000000000000000000000
    WA_T7INT3                            #######       #######
                                   222222000000022222220000000
                                   000000000000C0000000000000C
    SLAB_CODE
                                   2222
                                   0000
    %_VIASELSCR                    #
                                   0
                                   4
    <%_TABLE_T7INT1>               ???
    %_SPACE
                                   2
                                   0
    SYST-REPID                     CL_HRPAYIN_SLABRATES==========CP
                                   4454554544554445454533333333334522222222
                                   3CF820199EF3C1221453DDDDDDDDDD3000000000
    SY-XPROG                       SAPDBPNP
                                   5454454522222222222222222222222222222222
                                   310420E000000000000000000000000000000000
    SY-REPID                       CL_HRPAYIN_SLABRATES==========CP
                                   4454554544554445454533333333334522222222
                                   3CF820199EF3C1221453DDDDDDDDDD3000000000
    SY-XFORM                       %_ROOT
                                   255445222222222222222222222222
                                   5F2FF4000000000000000000000000
    %_DUMMY$$
                                   2222
                                   0000
    <%_TABLE_T7INT3>               ???
        15 FORM         STDDED03
           HINCALC0
           PCTAXIN0                                   564
    STD_DED_TAB                    Table[initial]
                                   0000FFFD
                                   0000FFFF
    SY-TABIX                       63
                                   3000
                                   F000
    STD_PERCENT                    #####
                                   00000
                                   0000C
    %_SPACE
                                   2
                                   0
    SYST-REPID                     HINCALC0
                                   4444444322222222222222222222222222222222
                                   89E31C3000000000000000000000000000000000
    SPACE
                                   2
                                   0
    %_DUMMY$$
                                   2222
                                   0000
    $ENDDATE                       20070331
                                   33333333
                                   20070331
    $PRE_DEDN_AMOUNT               ####Q•“#
                                   00005991
                                   0001153C
    $CALC_DEDN                     ########
                                   00000000
                                   0000000C
    SY-REPID                       HINCALC0
                                   4444444322222222222222222222222222222222
                                   89E31C3000000000000000000000000000000000
    SY                             ×#######?###?###########################
                                   D000000030003000000000000000000000000000
                                   70001000F000F000000000000000000000000000
    ... +  40                      ####################„###############5###
                                   0000000000000000000080000000000000003000
                                   1000100010000000100040000000000000005000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000400000000000000000000000
    ... + 120                      ################################%###Ž###
                                   0000000000000000000000000000000020008000
                                   000000000000000000000000000000005000E000
    ... + 160                      ############XM## P#############   E0   1
                                   0000000000005400250000000000000222432223
                                   0000700040008D00000020000C0000C000500001
    ... + 200                      000         ####PNP                 100
                                   3332222222220000545222222222222222223332
                                   00000000000000000E0000000000000000001000
    ... + 240                           00
                                   222223322222222
                                   000000000000000
    NO_OF_ROWS
                                   2
                                   0
    SY-TFILL                       63
                                   3000
                                   F000
        14 FORM         CALC_STANDARD_DEDUCTION
           HINCALC0
           PCTAXIN0                                   466
    P0015[]                        Table IT_204[12x147]
                                   F7D4DED48000C000000090000000FFFF00004500
                                   871900998000C000C00030000000FFFF40000F00
    ... +  40
                                   0000C020
                                   20001E80
    SW_AUFROLLUNG                  X
                                   5
                                   8
    %BX03242_BLOCK_1000            Log
                                   4662222222222222222222222222222222222222
                                   CF70000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    SNAME                          40INDED
                                   33444442
                                   409E4540
    T559A-WTIME                    000000
                                   333333
                                   000000
    OGRT[]                         Table IT_299[0x53]
                                   00000000C0002000000030000000FFFF0000E300
                                   000000003000B100000050000000FFFF40000310
    ... +  40
                                   1000C200
                                   00001E00
    ENDDATE                        20070331
                                   33333333
                                   20070331
    T596F-PGMNA                    HINCALC0
                                   4444444322222222222222222222222222222222
                                   89E31C3000000000000000000000000000000000
    T596F-MODNA                    STDDED03
                                   55444433
                                   34445403
    P_PRE_DEDUCTION_BALANCE        ####Q•“#
                                   00005991
                                   0001153C
    STANDARD_DEDUCTION             ########
                                   00000000
                                   0000000C
    P2006[]                        Table IT_460[37x168]
                                   9ED40000E000C0002000A0000000FFFF00008500
                                   877900006000C100500080000000FFFF40000600
    ... +  40
                                   0000C020
                                   20001E00
        13 FORM         FUINTAX
           HINCALC0
           PCTAXIN0                                   253
    ANNUAL_IRREGULAR_INCOME        ####3#%L
                                   00003124
                                   0000365C
    %_SET_VOID_%_APP_%
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    ANNUAL_PERK                    ########
                                   00000000
                                   0000000C
    SET_ODC
                                   2
                                   0
    %_SET_ODC_%_APP_%
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    SET_REVR
                                   2
                                   0
    P%2007                         00000000           000000000000000000000
                                   3333333322222222222333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000                                00
                                   3333332222222222222222222222222222222233
                                   0000000000000000000000000000000000000000
    ... +  80                      0000000000 00###### ######   00000000000
                                   3333333333233000000200000022233333333333
                                   000000000000000000C000000C00000000000000
    ... + 120                      0000000000000000000000000
                                   3333333333333333333333333222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   222222222222
                                   000000000000
    PRE_DEDUCTION_BALANCE          ####Q•“#
                                   00005991
                                   0001153C
    OCRSN
                                   2222
                                   0000
    APER-PAPER-PABRJ               2006
                                   3333
                                   2006
    APER-IAPER-PABRJ               2007
                                   3333
                                   2007
    SW_INTIM
                                   2
                                   0
    APER-PAPER                     200612
                                   333333
                                   200612
    ANN_PTAX_AMT                   ########
                                   00000000
                                   0000000C
        12 FORM         AS-FUNKTION
           HINCALC0
           PCASFIN0                                    13
    P0584                          00000000           000000000000000000000
                                   3333333322222222222333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000                                 #
                                   3333332222222222222222222222222222222220
                                   0000000000000000000000000000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   00000C0000C0000C0000C0000C000000C000000C
    ... + 120                      ####################################
                                   0000000000000000000000000000000000002222
                                   000000C000000C0000C0000C000000C0000C0000
    ... + 160                                 0000
                                   22222222222333322222
                                   00000000000000000000
    ORGDIR                         00000        0000000000000000  00      0
                                   3333322222222333333333333333322332222223
                                   0000000000000000000000000000000000000000
    ... +  40                      0000000        0000000000000000000000000
                                   3333333222222223333333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  80                      0000000000000  00000000
                                   3333333333333223333333322222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                      00000000000000 000000000000000000000
                                   3333333333333323333333333333333333332222
                                   0000000000000000000000000000000000000000
    RP-IMP-CD-SUBRC                0
                                   0000
                                   0000
    CD-SUBRC                       0
                                   0000
                                   0000
    CD-INDEX                       0
                                   0000
                                   0000
    IT[]                           Table IT_490[63x53]
                                   EFC47AC4F000E000300030000000FFFF00005100
                                   0AB903399000A100F00050000000FFFF40000810
    ... +  40
                                   2000C000
                                   B0009E00
    IT                             */418######### #   ####################Q
                                   2233300000000020222000000000000000000005
                                   AF418000000000000000000000C0000000C00011
    ... +  40                      •“#
                                   9912222222222
                                   53C0000000000
    RGDIR_CA[]                     Table IT_383[0x156]
                                   00003ED4E0007000000090000000FFFF0000C100
                                   000086791000F1000000C0000000FFFF40000810
    ... +  40
                                   4000C000
                                   00001400
    RGDIR_CA                       00000        0000000000000000  00      0
                                   3333322222222333333333333333322332222223
                                   0000000000000000000000000000000000000000
    ... +  40                      0000000        0000000000000000000000000
                                   3333333222222223333333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  80                      0000000000000  00000000
                                   3333333333333223333333322222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                      00000000000000 000000000000000000000
                                   333333333333332333333333333333333333
                                   000000000000000000000000000000000000
    %%_DIR2[]                      Table IT_218[0x54]
                                   000000009000D000000030000000FFFF0000D100
                                   000000006000A000000060000000FFFF40008210
    ... +  40
                                   6000C000
                                   40001400
    <%_TABLE_T599B>                ???
    PY_PM_CONTAINER                                                00000000
                                   2222222222222222222222222222222233333333
                                   0000000000000000000000000000000000000000
    ... +  40                      0
                                   3222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    PNPSTATU-LOW
                                   222
                                   000
    SET_LCW                        010
                                   333
                                   010
        11 FORM         ASLOOP
           HINCALC0
           RPCHRT09_ASLOOP                             58
    P_WITH_LOG                     X
                                   5
                                   8
    SW_EXPORT_ES
                                   2
                                   0
    ASNUM                          215
                                   D000
                                   7000
    APER_NUMB                      15
                                   0000
                                   F000
    NEXT_AS_ENTRY                  244
                                   F000
                                   4000
    SW_REPETITION                  X
                                   5
                                   8
    SW_P0005_CHANGED
                                   2
                                   0
    PNPSACHZ
                                   222222222
                                   000000000
    PTEXT[]                        Table IT_139[0x548]
                                   0000CCC460008000000020000000FFFF00004300
                                   00000D79C000B000000042000000FFFF40000500
    ... +  40
                                   1000C200
                                   00001400
    SW_VOID
                                   2
                                   0
    SCREEN                         %_17SNS0000177553_%_%_%_%_%_%_
                                   2533545333333333352525252525252222222222
                                   5F173E30000177553F5F5F5F5F5F5F0000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                                           SRI00001#00000 ####
                                   2222222222222222222225543333303333320000
                                   0000000000000000000003290000100000000000
    SW_PROT
                                   2
                                   0
    PNPSBMOD-LOW
                                   2222
                                   0000
    PTEXT_LINES                    0
                                   0000
                                   0000
        10 FORM         MONATSABRECHNUNG
           HINCALC0
           RPCHRT09_MONATSABRECHNUNG                   48
    CALC_CURRENCY                  INR
                                   44522
                                   9E200
    SY-SUBRC                       0
                                   0000
                                   0000
    CALC_CURR_DEC                  1380862210
                                   0
                                   2
    TCURX-CURRDEC                  0
                                   0
                                   0
    PNPPERSK-LOW
                                   22
                                   00
    PNPKOSTL
                                   22222222222222222222222
                                   00000000000000000000000
    SL_BRUTTO
                                   2
                                   0
    FC-SL_B_N
                                   2
                                   0
    %_PNPSNAME_%_APP_%             PNPSNAMEEE name can be sorted         to
                                   5455444444266662666266276776622222222276
                                   0E03E1D5550E1D5031E02503F24540000000004F
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                         @1FQMultiple selection@
                                   2224345547676766276666766642222222222222
                                   000016C1D5C490C5035C5349FE00000000000000
    ... + 120
                                   222
                                   000
    APER-CALCD                     X
                                   5
                                   8
    DT                             /AEA00200612  00000000########
                                   24443333333322333333330000000022222
                                   F1510020061200000000000000000C00000
    DT[]                           Table IT_1916[4x35]
                                   F8F40000E0007000000020000000FFFF0000E400
                                   06090000A100C700400030000000FFFF40008610
    ... +  40
                                   1000C220
                                   00001E00
         9 FORM         RUECKRECHNUNG
           HINCALC0
           RPCHRT09_RUECKRECHNUNG                     136
    APER-PAYTY
                                   2
                                   0
    SY-XPROG                       SAPDBPNP
                                   5454454522222222222222222222222222222222
                                   310420E000000000000000000000000000000000
    PYCT                           0<>
                                   0000FFFF
                                   0000FFFF
    PNP-SW-AUTH-SKIPPED-RECORD     0
                                   3
                                   0
    P0007[]                        Table IT_201[4x138]
                                   CBC47DD48000C000000080000000FFFF00005400
                                   80390F99500090004000A0000000FFFF40008B00
    ... +  40
                                   0000C020
                                   20001E80
    PNPKOKRS[]                     Table IT_52[0x11]
                                   0000000020003000000000000000FFFF04007200
                                   00000000A00040000000B0000000FFFF44008700
    ... +  40
                                   0000C000
                                   A0001400
    PNPBLCKT
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    FC-NT_BEGIN                    0
                                   0000
                                   0000
    PNP-SW-IGNORELOCKEDRECORDS     Y
                                   5
                                   9
    FROM_DATE                      00000000
                                   33333333
                                   00000000
    %_SET_LCW_%_APP_%
                                   222222222222222222222222222222
                                   000000000000000000000000000000
         8 FORM         MAIN
           HINCALC0
           RPCHRT09_MAIN                              134
    %_PNPFKBER_%_APP_%             PNPFKBERFunctional Area               to
                                   5454444547667666662476622222222222222276
                                   0E06B25265E349FE1C012510000000000000004F
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                         @1FQMultiple selection@
                                   2224345547676766276666766642222222222222
                                   000016C1D5C490C5035C5349FE00000000000000
    ... + 120
                                   222
                                   000
    PERNR-PERNR                    00003015
                                   33333333
                                   00003015
                            Table IT_235[0x178]
                                   000045D4A000E0000000B0000000FFFF00003400
                                   000080390000B000000020000000FFFF40008110
    ... +  40
                                   1000C200
                                   00001400
    P0027[]                        Table IT_234[0x1851]
                                   0000A4D49000E000000030000000FFFF0000DE00
                                   00008F39F000A0000000B7000000FFFF40000610
    ... +  40
                                   0000C200
                                   80001E00
    PNPENAME
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    INFTY[]                        Table IT_116[34x4]
                                   8EC4000050007000200000000000FFFF0D008000
                                   0E790000A0004000200040000000FFFF43000900
    ... +  40
                                   2000C000
                                   20001400
    INFTY                          0078
                                   3333
                                   0078
    PNPBLCKP                       Payroll period
                                   5677666276766622222222222222222222222222
                                   0192FCC00529F400000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    SY-MSGNO                       000
                                   333
                                   000
    FC-PGM_TYP                     ABR
                                   4452
                                   1220
    PY12W_MEM_ID_BUFFER            T512W_BUFFER
                                   533355454445
                                   45127F256652
    RSJOBINFO                                                      00000000
                                   2222222222222222222222222222222233333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000
                                   3333332222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                      ####
                                   0000
                                   0000
    P0032                          00000000           000000000000000000000
                                   3333333322222222222333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000
                                   3333332222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                             #####
                                   2222222222222222222222200000222222222222
                                   000000000000000000000000000C000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                           

    Hello,
    strange, you have the same message in SQL Server forum, but we can see Oracle DB here:
    SQL ERROR
    Without developer traces it would be difficult to say. But it looks bad enough because of kernel 6.20 patch level 1511 (definitely dboraslib.dll has similar patch level) and Oracle 8.1.7 are out of support since years.
    best regards

  • SQL error 3113 occurred when executing EXEC SQL.

    Hi,
    We are facing one typical problem, One background is failing regularly with
    below dump. as we now got all notes giving information, if database  restarted
    taking backup, these type of failures occur, but our database is only down for backup once in a week, but it is failing with frequenly.
    in this two servers are located in different place, in this job tries to connect
    another server to get material statistics.
    It is giving some error message in sm21 with
    SQL error 3113 occurred when executing EXEC SQL.
    work procees in reconnect mode.
    all notes saying these types of dump occur when database restared, but this dump
    even though database is up.
    below is short dump, please can anyone help me from this problem.
    ABAP runtime errors    DBIF_DSQL2_SQL_ERROR
          Occurred on    08.01.2007 at 00:30:28
    >> Short dump has not been completely stored. It is too big.
    SQL error 3113 occurred when executing EXEC SQL.
    What happened?
    The error occurred in the current database connection "AZ1".
    What can you do?
    Note the actions and input that caused the error.
    Inform your SAP system administrator.
    You can print out this message by choosing "Print". Transaction ST22
    allows you to display and manage termination messages, including keeping
    them beyond their normal deletion date.
    Error analysis
    How to correct the error
    Database error text........: "ORA-03113: end-of-file on communication channel#"
    Triggering SQL statement...: "select mara.groes, mara.brgew, mara.ntgew,
    mara.gewei, mara.volum, mara.voleh, mara.mstae, mara.mstde, mara.prdha,
    marc.matnr, marc.werks, marc.mmsta, marc.mmstd from sapr3.mara, sapr3.m
    where sapr3.mara.mandt = sapr3.marc.mandt and sapr3.mara.matnr =
    Internal call code.........: "[DBDS/NEW DSQL]"
    Please check the entries in the system log (Transaction SM21).
    If the error occurred in a non-modified SAP program, you may be
    able to find a solution in the SAP note system.
    If you have access to the note system yourself, use the following
    search criteria:
    "DBIF_DSQL2_SQL_ERROR"
    "ZM2431216 " or "ZM2431216 "
    "EXTRACT_GENERAL_DATA"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
      To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
      To obtain this, call the system log with Transaction SM21
      and select the "Print" function to print out the relevant
      part.
    3. If the programs are your own programs or modified SAP programs,
      supply the source code.
      To do this, you can either use the "PRINT" command in th
      print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error o
      or which actions and input led to the error.
    System environment
    SAP Release.............. "46C"
    Application server....... "essceu3"
    Network address.......... "172.19.119.198"
    Operating system......... "AIX"
    Release.................. "5.3"
    Hardware type............ "00C7ADBD4C00"
    Database server.......... "ukblx176"
    Database type............ "ORACLE"
    Database name............ "EU3"
    Database owner........... "SAPR3"
    Character set............ "es_ES.ISO8859-1"
    SAP kernel............... "46D"
    Created on............... "Jul 9 2006 20:26:33"
    Created in............... "AIX 1 5 00447C4A4C00"
    Database version......... "OCI_920__OCI_7_API "
    Patch level.............. "2257"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 8.0.5.., ORACLE 8.0.6.., ORACLE
    8.1.6.., ORACLE 8.1.7.., ORACLE 9.2.0.., ORACLE 10.2.0.."
    SAP database version..... "46D"
    Operating system......... "AIX 1 4, AIX 2 4, AIX 3 4, AIX 1 5, AIX 2 5, AIX 3
    5, , System build information:,                                      , LCHN :
    841480"
    User, transaction...
    Client.............. 600
    User................ "MPZMMES"
    Language key........ "S"
    Transaction......... " "
    Program............. "ZM2431216 "
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "ZM2431216 " in
    "EXTRACT_GENERAL_DATA".
    The main program was "ZM2431216 ".
    The termination occurred in line 980
    of the source code of program "ZM2431216 " (when callin
    The program "ZM2431216 " was started as a background jo
    Source code extract
    009500              mara.ntgew,
    009510              mara.gewei,
    009520              mara.volum,
    009530              mara.voleh,
    009540              mara.mstae,
    009550              mara.mstde,
    009560              mara.prdha,
    009570              marc.matnr,
    009580              marc.werks,
    009590              marc.mmsta,
    009600              marc.mmstd
    009610        into :w_ops-groes,
    009620              :w_ops-brgew,
    009630              :w_ops-ntgew,
    009640              :w_ops-gewei,
    009650              :w_ops-volum,
    009660              :w_ops-voleh,
    009670              :w_ops-mstae,
    009680              :w_ops-mstde,
    009690              :w_ops-prdha,
    009700              :w_ops-matnr,
    009710              :w_ops-werks,
    009720              :w_ops-mmsta,
    009730              :w_ops-mmstd
    009740        from sapr3.mara, sapr3.marc
    009750        where sapr3.mara.mandt = sapr3.marc.mandt
    009760          and sapr3.mara.matnr = sapr3.marc.matnr
    009770          and sapr3.mara.mandt = :p_mandt
    009780          and sapr3.mara.matnr = :w_ebs-matnr
    009790          and sapr3.marc.werks = :p_owerks
        >    ENDEXEC.
    009810  endform.                    " extract_general_data
    009820  *&
    009830  *&      Form  append_i_ops
    009840  *&
    009850  *      Appends W_OPS to I_OPS
    009860  *
    009870  form append_i_ops.
    009880    append w_ops to i_ops.
    009890  endform.                    " append_i_ops
    009900  *&
    009910  *&      Form  extract_material_description
    009920  *&
    009930  *      Extracts a Material Description from the remote database an
    009940  *      modifies the current record in I_OPS.
    009950  *
    009960  *        >P_SPRAS  Language Key
    009970  *
    009980  form extract_material_description using    p_spras.
    009990    EXEC sql performing set_langauge.
    Contents of system fields
    SY field contents..................... SY field contents............
    SY-SUBRC 0                            SY-INDEX 0
    SY-TABIX 1                            SY-DBCNT 1
    SY-FDPOS 18                            SY-LSIND 0
    SY-PAGNO 0                            SY-LINNO 1
    SY-COLNO 1
    Chosen variables
    Name.......................... Contents.1........2........3....+..
    W_EBS-PRAT4
                                  2
                                  0
    W_OPS-GROES
                                  22222222222222222222222222222222
                                  00000000000000000000000000000000
    W_OPS-BRGEW                    #######
                                  0000000
                                  000000C
    W_OPS-NTGEW                    #######
                                  0000000
                                  000000C
    regards,
    krishnaiah.

    Hi,
    This is usually a SERVER SIDE DATABASE PROBLEM or SQLNET LISTENER (server side) PROBLEM.  The client side should initially be ignored and instead the server should be investigated. In rare cases, this can be caused by client
    side memory or other resource problem, or a DLL version mismatch, but this is
    unlikely.
    Enlist the assistance of your DBA.  Then reproduce the ORA-3113 error on your
    client application.  Ask your DBA to look at the database side Alert.log and
    trace files and look for ANY activity.  Any activity that coincides with your
    ORA-3113 will be a clue.
    REgards
    Vinod

  • While running the livecache server test a native sql error occures

    We are using scm4.1 livecache 7.5.0 And every time we are running the livecache test program he is dumping
    whith the following dump
    patch level scm & scm_basis is 8
    Runtime Errors         DBIF_DSQL2_SQL_ERROR
    Except.                CX_SY_NATIVE_SQL_ERROR
    Date and Time          31.10.2005 16:50:55
    ShrtText
    An SQL error occurred when executing Native SQL.
    What happened?
    Error 600 occurred in the current database connection "LCA".
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    is especially useful if you want to keep a particular message.
    How to correct the error
    Database error text........: "Work rolled back: DbpError -28814 in
    APS_ORDER_CH"
    Database error code .......: 600
    Triggering SQL statement...: " ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
    ? ? ? ? ? ? ? or'"
    Internal call code.........: "[DBDS/NEW DSQL]"
    Please check the entries in the system log (Transaction SM21).
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "DBIF_DSQL2_SQL_ERROR" CX_SY_NATIVE_SQL_ERRORC
    "/SAPAPO/SAPLOM_PLANNING" or "/SAPAPO/LOM_PLANNINGU08"
    "/SAPAPO/OM_ORDER_CHANGE"
    If you cannot solve the problem yourself and you wish to send
    an error message to SAP, include the following documents:
    1. A printout of the problem description (short dump)
    To obtain this, select in the current display "System->List->
    Save->Local File (unconverted)".
    2. A suitable printout of the system log
    To obtain this, call the system log through transaction SM21.
    Limit the time interval to 10 minutes before and 5 minutes
    after the short dump. In the display, then select the function
    "System->List->Save->Local File (unconverted)".
    3. If the programs are your own programs or modified SAP programs,
    supply the source code.
    To do this, select the Editor function "Further Utilities->
    Upload/Download->Download".
    4. Details regarding the conditions under which the error occurred
    or which actions and input led to the error.
    The exception must either be prevented, caught within the procedure
    "/SAPAPO/OM_ORDER_CHANGE"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    System environment
    SAP Release.............. "640"
    Application server....... "bebruap2"
    Network address.......... "195.213.49.227"
    Operating system......... "Windows NT"
    Release.................. "5.2"
    Hardware type............ "4x Intel 801586"
    Character length......... 16 Bits
    Pointer length........... 32 Bits
    Work process number...... 1
    Short dump setting....... "full"
    Database server.......... "BEBRUAP2"
    Database type............ "MSSQL"
    Database name............ "APD"
    Database owner........... "apd"
    Character set............ "C"
    SAP kernel............... "640"
    Created on............... "Aug 23 2005 00:00:49"
    Created in............... "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
    Database version......... "SQL_Server_8.00 "
    Patch level.............. "87"
    Patch text............... " "
    Supported environment....
    Database................. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
    SAP database version..... "640"
    Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
    Memory usage.............
    Roll..................... 8176
    EM....................... 24040336
    Heap..................... 0
    Page..................... 1687552
    MM Used.................. 1516920
    MM Free.................. 572032
    SAP Release.............. "640"
    User and Transaction
    Client.............. 000
    User................ "CGRAULS"
    Language key........ "E"
    Transaction......... "/SAPAPO/OM03 "
    Program............. "/SAPAPO/SAPLOM_PLANNING"
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where terminated
    The termination occurred in the ABAP program "/SAPAPO/SAPLOM_PLANNING" in
    "/SAPAPO/OM_ORDER_CHANGE".
    The main program was "/SAPAPO/OM_TB_FLOW_QUANTITY ".
    The termination occurred in line 91 of the source code of the (Include)
    program "/SAPAPO/LOM_PLANNINGU08"
    of the source code of program "/SAPAPO/LOM_PLANNINGU08" (when calling the
    editor 910).
    Processing was terminated because the exception "CX_SY_NATIVE_SQL_ERROR"
    occurred in the
    procedure "/SAPAPO/OM_ORDER_CHANGE" "(FUNCTION)" but was not handled locally,
    not declared in the
    RAISING clause of the procedure.
    The procedure is in the program "/SAPAPO/SAPLOM_PLANNING ". Its source code
    starts in line 5
    of the (Include) program "/SAPAPO/LOM_PLANNING$08 ".
    Source Code Extract
    Line
    SourceCde
    61
    is_gen_params-simversion
    62
    is_gen_params-dont_set_netchg_flag
    63
    space.
    64
    65
    Kontrollstruktur IS_GET_CHANGED_OPTIONS anpassen.
    66
    IF NOT et_changed_orders IS REQUESTED.
    67
    is_get_changed_options-send_chg_top_order = gc_false.
    68
    ENDIF.
    69
    IF NOT et_changed_cap_reqs IS REQUESTED.
    70
    is_get_changed_options-send_chg_cap_req = gc_false.
    71
    ENDIF.
    72
    IF NOT et_changed_io_nodes IS REQUESTED.
    73
    is_get_changed_options-send_chg_ionode = gc_false.
    74
    ENDIF.
    75
    IF NOT et_changed_io_pp_nodes IS REQUESTED.
    76
    is_get_changed_options-send_chg_io_pp = gc_false.
    77
    ENDIF.
    78
    IF NOT et_changed_pegids IS REQUESTED.
    79
    is_get_changed_options-send_chg_pegid = gc_false.
    80
    ENDIF.
    81
    IF NOT et_deleted_fix_pegging IS REQUESTED.
    82
    is_get_changed_options-send_del_fix_peg = gc_false.
    83
    ENDIF.
    84
    start_function 'OM_ORDER_CHANGE'.                         "#EC *
    85
    Verbindung zum liveCache aufbauen
    86
    check_server.
    87
    connect_to_livecache.
    88
    COM-Routine zum Anlegen bzw. Überschreiben eines Zeitstrahls
    89
    90
    EXEC sql.
    >>>>>
    execute procedure                  "APS_ORDER_CHANGE" (
    92
    in  :ls_gen_com_params,
    93
    out :lv_rc,
    94
    in  :et_rc,
    95
    in  :it_order_method,
    96
    in  :it_ordkeys,
    97
    in  :it_ordmaps,
    98
    in  :it_orders,
    99
    in  :it_activities,
    100
    in  :it_mode,
    101
    in  :it_cap_reqs,
    102
    in  :it_positions,
    103
    in  :it_inputs,
    104
    in  :it_outputs,
    105
    in  :it_prodflow,
    106
    in  :it_intern_constraints,
    107
    in  :it_extern_constraints,
    108
    in  :it_charact_val_acts,
    109
    in  :it_charact_req_inpnode,
    110
    in  :it_charact_val_outnode,
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    0
    SY-INDEX
    0
    SY-TABIX
    1
    SY-DBCNT
    1
    SY-FDPOS
    0
    SY-LSIND
    0
    SY-PAGNO
    0
    SY-LINNO
    1
    SY-COLNO
    1
    SY-PFKEY
    SY-UCOMM
    SY-TITLE
    Flow Quantity Test
    SY-MSGTY
    S
    SY-MSGID
    /SAPAPO/OM_TEST
    SY-MSGNO
    001
    SY-MSGV1
    Create transSim
    SY-MSGV2
    SY-MSGV3
    SY-MSGV4
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
    Name
    3 FUNCTION     /SAPAPO/SAPLOM_PLANNING             /SAPAPO/LOM_PLANNINGU08                91
    /SAPAPO/OM_ORDER_CHANGE
    2 FORM         /SAPAPO/OM_TB_FLOW_QUANTITY         /SAPAPO/OM_TB_FLOW_QUANTITY           802
    CHANGE_DATA
    1 EVENT        /SAPAPO/OM_TB_FLOW_QUANTITY         /SAPAPO/OM_TB_FLOW_QUANTITY            11
    START-OF-SELECTION
    Chosen variables
    Name
    Val.
    No.       3 Ty.          FUNCTION
    Name  /SAPAPO/OM_ORDER_CHANGE
    IS_ATP_INFO
    01ATP0000001~CGRAULSXX##
    334553333333744545455500
    011400000001E37215C38800
    000000000000000000000000
    000000000000000000000000
    IS_CONTROLPARAMETERS
    &#38657;&#4096;#&#3074;&#770;&#9073;&#13586;&#40084;#####
    2222222222222222222222001007190000022
    0000000000000000000000100221240000100
    0000000000000000000000910002390000000
    0000000000000000000000700C335C000C000
    IS_GEN_PARAMS
    01PLV0000001~CGRAULS
    3354533333337445454522222
    010C60000001E37215C300000
    0000000000000000000000000
    0000000000000000000000000
    IS_GET_CHANGED_OPTIONS
    2222222
    0000000
    0000000
    0000000
    IT_ACTIVITIES
    Table IT_274[1x256]
    PROGRAM=/SAPAPO/OM_TB_FLOW_QUANTITYFORM=CHANGE_DATADATA=LT_ACTIVITIES
    Table reference: 41
    TABH+  0(20) = 5087FFDF00000000000000002900000012010000
    TABH+ 20(20) = 0100000000010000FFFFFFFF0487000000290000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x5087FFDF
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 41    (0x29000000)
    label        = 274   (0x12010000)
    fill         = 1     (0x01000000)
    leng         = 256   (0x00010000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000205
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0x180112E0
    pghook       = 0x00000000
    idxPtr       = 0x00000000
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 16    (0x10000000)
    lineAlloc    = 16    (0x10000000)
    store_id     = 126   (0x7E000000)
    shmIsReadOnly = 0     (0x00000000)
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_CAP_REQS
    Table IT_276[1x112]
    PROGRAM=/SAPAPO/OM_TB_FLOW_QUANTITYFORM=CHANGE_DATADATA=LT_CAP_REQS
    Table reference: 39
    TABH+  0(20) = 48BB06E000000000000000002700000014010000
    TABH+ 20(20) = 0100000070000000FFFFFFFF04870000C0290000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x48BB06E0
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 39    (0x27000000)
    label        = 276   (0x14010000)
    fill         = 1     (0x01000000)
    leng         = 112   (0x70000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000209
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0x188D04E0
    pghook       = 0x00000000
    idxPtr       = 0x00000000
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 16    (0x10000000)
    lineAlloc    = 16    (0x10000000)
    store_id     = 124   (0x7C000000)
    shmIsReadOnly = 0     (0x00000000)
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_CHARACT_REQ_INPNODE
    Table IT_418[0x140]
    FUNCTION=/SAPAPO/OM_ORDER_CHANGEDATA=IT_CHARACT_REQ_INPNODE
    Table reference: 32
    TABH+  0(20) = 00000000000000000000000020000000A2010000
    TABH+ 20(20) = 000000008C000000FFFFFFFF04870000301D0000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x00000000
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 32    (0x20000000)
    label        = 418   (0xA2010000)
    fill         = 0     (0x00000000)
    leng         = 140   (0x8C000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000142
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = Not allocated
    pghook       = Not allocated
    idxPtr       = Not allocated
    refCount     = Not allocated
    tstRefCount  = Not allocated
    lineAdmin    = Not allocated
    lineAlloc    = Not allocated
    store_id     = Not allocated
    shmIsReadOnly = Not allocated
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_CHARACT_VAL_ACTS
    Table IT_417[0x156]
    FUNCTION=/SAPAPO/OM_ORDER_CHANGEDATA=IT_CHARACT_VAL_ACTS
    Table reference: 50
    TABH+  0(20) = 00000000000000000000000032000000A1010000
    TABH+ 20(20) = 000000009C000000FFFFFFFF04870000901D0000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x00000000
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 50    (0x32000000)
    label        = 417   (0xA1010000)
    fill         = 0     (0x00000000)
    leng         = 156   (0x9C000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000144
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = Not allocated
    pghook       = Not allocated
    idxPtr       = Not allocated
    refCount     = Not allocated
    tstRefCount  = Not allocated
    lineAdmin    = Not allocated
    lineAlloc    = Not allocated
    store_id     = Not allocated
    shmIsReadOnly = Not allocated
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_CHARACT_VAL_OUTNODE
    Table IT_419[0x156]
    FUNCTION=/SAPAPO/OM_ORDER_CHANGEDATA=IT_CHARACT_VAL_OUTNODE
    Table reference: 60
    TABH+  0(20) = 0000000000000000000000003C000000A3010000
    TABH+ 20(20) = 000000009C000000FFFFFFFF04870000901D0000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x00000000
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 60    (0x3C000000)
    label        = 419   (0xA3010000)
    fill         = 0     (0x00000000)
    leng         = 156   (0x9C000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000144
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = Not allocated
    pghook       = Not allocated
    idxPtr       = Not allocated
    refCount     = Not allocated
    tstRefCount  = Not allocated
    lineAdmin    = Not allocated
    lineAlloc    = Not allocated
    store_id     = Not allocated
    shmIsReadOnly = Not allocated
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_EXTERN_CONSTRAINTS
    Table IT_416[0x124]
    FUNCTION=/SAPAPO/OM_ORDER_CHANGEDATA=IT_EXTERN_CONSTRAINTS
    Table reference: 71
    TABH+  0(20) = 00000000000000000000000047000000A0010000
    TABH+ 20(20) = 000000007C000000FFFFFFFF04870000E02A0000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x00000000
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 71    (0x47000000)
    label        = 416   (0xA0010000)
    fill         = 0     (0x00000000)
    leng         = 124   (0x7C000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000215
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = Not allocated
    pghook       = Not allocated
    idxPtr       = Not allocated
    refCount     = Not allocated
    tstRefCount  = Not allocated
    lineAdmin    = Not allocated
    lineAlloc    = Not allocated
    store_id     = Not allocated
    shmIsReadOnly = Not allocated
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_INPUTS
    Table IT_278[1x420]
    PROGRAM=/SAPAPO/OM_TB_FLOW_QUANTITYFORM=CHANGE_DATADATA=LT_INPUTS
    Table reference: 63
    TABH+  0(20) = 087400E0C0E303E0000000003F00000016010000
    TABH+ 20(20) = 01000000A4010000FFFFFFFF04870000202A0000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x087400E0
    ext1         = 0xC0E303E0
    shmId        = 0     (0x00000000)
    id           = 63    (0x3F000000)
    label        = 278   (0x16010000)
    fill         = 1     (0x01000000)
    leng         = 420   (0xA4010000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000211
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0x78DC11E0
    pghook       = 0x00000000
    idxPtr       = 0x00000000
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 16    (0x10000000)
    lineAlloc    = 16    (0x10000000)
    store_id     = 123   (0x7B000000)
    shmIsReadOnly = 0     (0x00000000)
    >>>>> 1st level extension part <<<<<
    regHook      = 0x2029FFDF
    hsdir        = 0x00000000
    ext2         = 0x00000000
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_INTERN_CONSTRAINTS
    Table IT_415[0x124]
    FUNCTION=/SAPAPO/OM_ORDER_CHANGEDATA=IT_INTERN_CONSTRAINTS
    Table reference: 49
    TABH+  0(20) = 000000000000000000000000310000009F010000
    TABH+ 20(20) = 000000007C000000FFFFFFFF04870000E02A0000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x00000000
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 49    (0x31000000)
    label        = 415   (0x9F010000)
    fill         = 0     (0x00000000)
    leng         = 124   (0x7C000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000215
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = Not allocated
    pghook       = Not allocated
    idxPtr       = Not allocated
    refCount     = Not allocated
    tstRefCount  = Not allocated
    lineAdmin    = Not allocated
    lineAlloc    = Not allocated
    store_id     = Not allocated
    shmIsReadOnly = Not allocated
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_MODE
    Table IT_275[1x164]
    PROGRAM=/SAPAPO/OM_TB_FLOW_QUANTITYFORM=CHANGE_DATADATA=LT_MODES
    Table reference: 52
    TABH+  0(20) = A03C00E000000000000000003400000013010000
    TABH+ 20(20) = 01000000A4000000FFFFFFFF0487000060290000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0xA03C00E0
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 52    (0x34000000)
    label        = 275   (0x13010000)
    fill         = 1     (0x01000000)
    leng         = 164   (0xA4000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000207
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0xC8F611E0
    pghook       = 0x00000000
    idxPtr       = 0x00000000
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 16    (0x10000000)
    lineAlloc    = 16    (0x10000000)
    store_id     = 125   (0x7D000000)
    shmIsReadOnly = 0     (0x00000000)
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_ORDERS
    Table IT_293[1x320]
    PROGRAM=/SAPAPO/OM_TB_FLOW_QUANTITYFORM=CHANGE_DATADATA=LT_ORDERS1
    Table reference: 47
    TABH+  0(20) = 20B403E000000000000000002F00000025010000
    TABH+ 20(20) = 0100000040010000FFFFFFFF0400000030380000
    TABH+ 40( 8) = 01000000C1308000
    store        = 0x20B403E0
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 47    (0x2F000000)
    label        = 293   (0x25010000)
    fill         = 1     (0x01000000)
    leng         = 320   (0x40010000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000286
    occu         = 1     (0x01000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0x9080FFDF
    pghook       = 0x00000000
    idxPtr       = 0x00000000
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 1     (0x01000000)
    lineAlloc    = 1     (0x01000000)
    store_id     = 130   (0x82000000)
    shmIsReadOnly = 0     (0x00000000)
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_ORDER_METHOD
    Table IT_268[2x62]
    PROGRAM=/SAPAPO/OM_TB_FLOW_QUANTITYFORM=CHANGE_DATADATA=LT_ORDER_METHOD
    Table reference: 51
    TABH+  0(20) = 8882FFDF0000000000000000330000000C010000
    TABH+ 20(20) = 020000003E000000FFFFFFFF04000000B0360000
    TABH+ 40( 8) = 10000000C1248000
    store        = 0x8882FFDF
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 51    (0x33000000)
    label        = 268   (0x0C010000)
    fill         = 2     (0x02000000)
    leng         = 62    (0x3E000000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000278
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 2     (cmpSingleMcmpR)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0x0868FFDF
    pghook       = 0x00000000
    idxPtr       = 0x00000000
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 16    (0x10000000)
    lineAlloc    = 16    (0x10000000)
    store_id     = 122   (0x7A000000)
    shmIsReadOnly = 0     (0x00000000)
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    hsdir        = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    IT_ORDKEYS
    Table IT_271[1x332]
    PROGRAM=/SAPAPO/OM_TB_FLOW_QUANTITYFORM=CHANGE_DATADATA=LT_ORDKEYS
    Table reference: 29
    TABH+  0(20) = 80E303E000000000000000001D0000000F010000
    TABH+ 20(20) = 010000004C010000FFFFFFFF04870000E0270000
    TABH+ 40( 8) = 10000000C1308000
    store        = 0x80E303E0
    ext1         = 0x00000000
    shmId        = 0     (0x00000000)
    id           = 29    (0x1D000000)
    label        = 271   (0x0F010000)
    fill         = 1     (0x01000000)
    leng         = 332   (0x4C010000)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000199
    occu         = 16    (0x10000000)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    collHash     = 0
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0

    Hi,
    the error DbpError -28814 denotes that an object cannot be found.
    Can you maybe tell me your exact liveCache version (incl. Build level) and LCA Build?
    Additionally, please copy the relevant error information from the file (/sapdb/data/wrk/<SID>/)knldiag.err into this thread.
    Which exact 'liveCache test program' are your referring to (which of the /SAPAPO/... transactions)?
    Kind regards,
    Roland

  • HTML special characters in form input

    In my site I store form input in my database. Before I store
    the data, I parse out smart quotes, en dashes, and other extended
    special characters and convert them into HTHML quivalents such as
    &#8217;
    All is well and good until the user goes to edit their info.
    In my form these characters show up in my <input> tags as
    their long-winded HTML equivalents, such as &#8217; instead of
    a smart apostrophe.
    Is there any way to convert these back to the special
    characters from the HTML on the form input text fields so that
    users can edit them without being confused?
    Thanks.

    Hmmm, well I ran the MX 6.1 updater and installed the two hot
    fixes that had to do with null pointer exceptions and it still does
    not work.
    Here is the detailed error I'm getting, if it helps. Any more
    ideas? Thanks again for the help, I'm really stuck on this one...
    The system has attempted to use an undefined value, which
    usually indicates a programming error, either in your code or some
    system code.
    Null Pointers are another name for undefined values.
    The error occurred in C:\Inetpub\wwwroot\store\index.cfm:
    line 1
    1 : <cfquery name="getBooks" datasource="#dsn#">
    2 : SELECT *
    3 : FROM products
    Please try the following:
    * Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    * Search the Knowledge Base to find a solution to your
    problem.
    Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
    rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7
    Remote Address 127.0.0.1
    Referrer
    Date/Time 09-Oct-07 02:20 PM
    Stack Trace
    at
    cfindex2ecfm1770128649.runPage(C:\Inetpub\wwwroot\store\index.cfm:1)
    java.lang.NullPointerException
    at coldfusion.sql.QueryTable.populate(QueryTable.java:260)
    at coldfusion.sql.QueryTable.populate(QueryTable.java:159)
    at coldfusion.sql.Executive.getRowSet(Executive.java:505)
    at coldfusion.sql.Executive.executeQuery(Executive.java:974)
    at coldfusion.sql.Executive.executeQuery(Executive.java:886)
    at coldfusion.sql.SqlImpl.execute(SqlImpl.java:236)
    at
    coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447)
    at
    cfindex2ecfm1770128649.runPage(C:\Inetpub\wwwroot\store\index.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:24)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • DBIF_RSQL_SQL_ERROR with SQL error in the database when accessing a table.

    dear all,
      i have done a system copy from production server into quality server. quality was scrapped and freshly installed with SAP then used the DB flush method to carry out the system copy. i had to change the DBS_ORA_SCHEMA in environment variables to SAP<SOURCE SID> from SAPSR3. the sap version is ECC6.0,DB is ORACLE10.2 on WIN NT.
      after MMC opened, i get "SQL error in the database when accessing a table" error is coming. in SM21, I am getting "Transaction Canceled 00 671 ( DBIF_RSQL_SQL_ERROR 20081018130339sibqty_QTY_00 SAPSYS 000 )
    Database error 8103 at SEL access to table TBTCO
    Run-time error "DBIF_RSQL_SQL_ERROR" occurred
    Database error 8103 at FET access to table TBTCP
    Run-time error "DBIF_RSQL_SQL_ERROR" occurred
    > Short dump "081018 130339 sibqty_Q TY_00 " generated
    Transaction Canceled 00 671 ( DBIF_RSQL_SQL_ERROR 20081018130339sibqty_QTY_00 SAPSYS 000
    > Short dump "081018 130339 sibqty_Q TY_00 " generated
    Transaction Canceled 00 671 ( DBIF_RSQL_SQL_ERROR 20081018130339sibqty_QTY_00 SAPSYS 000
    Delete session 001 after error 023
    Database error 8103 at DEL access to table TMSALOGAR
    Run-time error "DBIF_RSQL_SQL_ERROR" occurred
    > Short dump "081018 130432 sibqty_Q TY_00 " generated
    Database error 8103 at FET access to table SNAP
    Run-time error "DBIF_RSQL_SQL_ERROR" occurred
    > Short dump "081018 130432 sibqty_Q TY_00 " generated
    Transaction Canceled SY 002 ( SQL error in the database when accessing a table. )
    Database error 8103 at FET access to table TSP02"
    please find the st22 DUMP:
    ow to correct the error                                                                          |
    Database error text........: "ORA-08103: object no longer exists"
    Internal call code.........: "[RSQL/READ/TBTCO ]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "SAPMSSY2" or "SAPMSSY2"
    "INITIATE_JOB_START"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "INITIATE_JOB_START" "(FORM)", or its possible occurrence must be declared in
    the
    RAISING clause of the procedure.
    |   
    please do me this favor if you know to avoid this problem..
    thanks a lot..

    Hello Anuj,
    This is because the COUNT(*) is returning a value which is longer than the INT4 data type it is expecting. If you restrict the selection by introducing a WHERE clause, then you won't get the dump:
    DATA: dyn_from    TYPE string,
          dyn_where   TYPE string,
          gx_sql_err  TYPE REF TO cx_sy_open_sql_error,
          gv_text     TYPE string.
    dyn_from  = `DD01L INNER JOIN DD02L ON DD02L~AS4LOCAL = DD01L~AS4LOCAL AND DD02L~AS4VERS = DD01L~AS4VERS`.
    dyn_where = `DOMNAME LIKE 'Z%'`.
    TRY .
        SELECT COUNT(*) FROM (dyn_from) WHERE (dyn_where).
        WRITE: / sy-dbcnt NO-GROUPING.
      CATCH:  cx_sy_open_sql_db             INTO gx_sql_err,
              cx_sy_dynamic_osql_semantics  INTO gx_sql_err,
              cx_sy_dynamic_osql_syntax     INTO gx_sql_err.
    ENDTRY.
    IF gx_sql_err IS BOUND.
      gv_text = gx_sql_err->get_text( ).
      WRITE: / gv_text.
    ENDIF.
    BR,
    Suhas

  • SQL Error when inserting record

    When attempting to update a record in dreamweaver, I am receiving the following error:
    "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1"
    I suspect there is a problem with my SQL statements but I'm not a programmer and I was hoping someone could take a look at my script and see if there is an obvious problem with my SQL statements.
    Thank you for any help you can provide and here is the entire script from my page:
    <?php require_once('Connections/group4.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE saar SET Supervisor_SupervisorNumber=%s, TypeofRequest=%s, `Date`=%s, SystemName=%s, SystemLocation=%s, JustificationforAccess=%s, TypeofAccessRequired=%s, UserRequiredAccess=%s, VerificationofNeedtoKnow=%s, AccessExpDate=%s, Individual_IndividualNumber=%s WHERE SAARNumber=%s",
                           GetSQLValueString($_POST['Supervisor_SupervisorNumber'], "int"),
                           GetSQLValueString($_POST['TypeofRequest'], "text"),
                           GetSQLValueString($_POST['Date'], "text"),
                           GetSQLValueString($_POST['SystemName'], "text"),
                           GetSQLValueString($_POST['SystemLocation'], "text"),
                           GetSQLValueString($_POST['JustificationforAccess'], "text"),
                           GetSQLValueString($_POST['TypeofAccessRequired'], "text"),
                           GetSQLValueString($_POST['UserRequiredAccess'], "text"),
                           GetSQLValueString($_POST['VerificationofNeedtoKnow'], "text"),
                           GetSQLValueString($_POST['AccessExpDate'], "text"),
                           GetSQLValueString($_POST['Individual_IndividualNumber'], "int"),
                           GetSQLValueString($_POST['SAARNumber'], "int"));
      mysql_select_db($database_group4, $group4);
      $Result1 = mysql_query($updateSQL, $group4) or die(mysql_error());
      $updateGoTo = "view.php?SAARNumber=" . $row_rsSAAR['SAARNumber'] . "";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    $varSupervisor_rsSAAR = "2";
    if (isset($_GET['SAARNumber'])) {
      $varSupervisor_rsSAAR = $_GET['SAARNumber'];
    mysql_select_db($database_group4, $group4);
    $query_rsSAAR = sprintf("SELECT * FROM supervisor, saar, individual WHERE SAARNumber = %s AND saar.Supervisor_SupervisorNumber = supervisor.SupervisorNumber AND individual.IndividualNumber = saar.Individual_IndividualNumber", GetSQLValueString($varSupervisor_rsSAAR, "int"));
    $rsSAAR = mysql_query($query_rsSAAR, $group4) or die(mysql_error());
    $row_rsSAAR = mysql_fetch_assoc($rsSAAR);
    $totalRows_rsSAAR = mysql_num_rows($rsSAAR);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Validate a User</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .header {
    font-size: 36px;
    text-decoration: underline;
    .quote {
    font-size: 18px;
    font-style: italic;
    </style>
    </head>
    <body>
    <p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
    </span></p>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="home.php">Home</a>  </li>
      <li><a href="search.php">Search</a></li>
      <li><a href="contact.php">Contact Us</a>  </li>
    </ul>
    <p> </p>
    <p>User Information:</p>
    <p> </p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table align="center">
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">TypeofRequest:</td>
          <td><input type="text" name="TypeofRequest" value="<?php echo htmlentities($row_rsSAAR['TypeofRequest'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Date:</td>
          <td><input type="text" name="Date" value="<?php echo htmlentities($row_rsSAAR['Date'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">SystemName:</td>
          <td><input type="text" name="SystemName" value="<?php echo htmlentities($row_rsSAAR['SystemName'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">SystemLocation:</td>
          <td><input type="text" name="SystemLocation" value="<?php echo htmlentities($row_rsSAAR['SystemLocation'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">JustificationforAccess:</td>
          <td><input type="text" name="JustificationforAccess" value="<?php echo htmlentities($row_rsSAAR['JustificationforAccess'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">TypeofAccessRequired:</td>
          <td><input type="text" name="TypeofAccessRequired" value="<?php echo htmlentities($row_rsSAAR['TypeofAccessRequired'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">UserRequiredAccess:</td>
          <td><input type="text" name="UserRequiredAccess" value="<?php echo htmlentities($row_rsSAAR['UserRequiredAccess'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">VerificationofNeedtoKnow:</td>
          <td><input type="text" name="VerificationofNeedtoKnow" value="<?php echo htmlentities($row_rsSAAR['VerificationofNeedtoKnow'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">AccessExpDate:</td>
          <td><input type="text" name="AccessExpDate" value="<?php echo htmlentities($row_rsSAAR['AccessExpDate'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="Update record" /></td>
        </tr>
      </table>
      <input type="hidden" name="SAARNumber" value="<?php echo $row_rsSAAR['SAARNumber']; ?>" />
      <input type="hidden" name="Supervisor_SupervisorNumber" value="<?php echo htmlentities($row_rsSAAR['Supervisor_SupervisorNumber'], ENT_COMPAT, 'utf-8'); ?>" />
      <input type="hidden" name="Individual_IndividualNumber" value="<?php echo htmlentities($row_rsSAAR['Individual_IndividualNumber'], ENT_COMPAT, 'utf-8'); ?>" />
      <input type="hidden" name="MM_update" value="form1" />
      <input type="hidden" name="SAARNumber" value="<?php echo $row_rsSAAR['SAARNumber']; ?>" />
    </form>
    <p> </p>
    <p class="quote">&quot;Be polite, be professional, but have a plan to kill everybody you meet&quot; General James Mattis</p>
    <p> </p>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsSAAR);
    mysql_free_result($rsSupervisor);
    ?>

    > I am being directed to the page that has the error message on it.
    So you have two problems. First, you have a SQL error on the page you are being redirected to, and second, you are being sent to the wrong page...correct?
    What's the name of the page you want to be redirected to? What's the name of the page you are being redirected to?

  • "Invalid Cursor" Error in Form

    Hi,
    I wrote a procedure that take a REF CURSOR as an IN OUT argument. This procedure does an "OPEN cursor FOR qry" with a dynamic query:
    OPEN l_cursor FOR
           'SELECT A '||
             'FROM B '||
            'WHERE C = :l_var'
         USING myVar;After calling the procedure, I do a LOOP with FETCH.
    It works well when I use it in SQL*Plus with DBMS_OUTPUT but it returns a "ORA-01001 invalid cursor" error in Forms.
    Any help is welcome!
    Regards,
    Olivier.

    I found a solution on Metalink:
    Note:170881.1
    Note: 1007395.6
    Olivier.

  • Error compiling form in 6i

    Moving this thread from "PL/SQL" to "Forms"
    purple
    Posts: 3
    Registered: 02/23/11
    PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 8:55 AM
    oracle , builder , 6i , pl , sql , forms           Reply
    I'm a total newbie here. We have someone using Oracle Form Builder [32-Bit]. Oracle 6i database. Her information is as follows:
    Forms [32 Bit] Version 6.0.8.21.3 (Production)
    Oracle Toolkit Version 6.0.8.21.0 (Production)
    PL/SQL Version 8.0.6.0.0 (Production)
    Oracle Procedure Builder V6.0.8.17.0 Build #863 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.8.20.1 (Production)
    Oracle Multimedia Version 6.0.8.20.0 (Production)
    Oracle Tools Integration Version 6.0.8.18.0 (Production)
    Oracle Tools Common Area Version 6.0.8.18.0
    Oracle CORE Version 4.0.6.0.0 - Production
    She's having trouble compiling a form. In comparing her PC with another (working) PC, the only difference is in the third line.
    Her's is: PL/SQL Version 8.0.6.0.0 (Production)
    The working PC is: PL/SQL Version 8.0.6.3.0 (Production)
    How do I "upgrade" this?
    BluShadow
    Posts: 16,328
    Registered: 09/21/05
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:08 AM in response to: purple Helpful
    Reply
    Well, that database is very much out of date, and I don't even think you'd be able to easily get the patches from Oracle any more as they haven't supported that version for many years now. If you have a support contract with Oracle you could try asking for the relevant patch.
    Other than that, you're looking at upgrading the database to something more recent and supported.
    purple
    Posts: 3
    Registered: 02/23/11
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:29 AM    in response to: BluShadow           Reply
    Thank you for the quick response. Yes, it's true it is an old database, but that's what we're using here. I used Patch12 which I thought was the most recent patch.
    SomeoneElse
    Posts: 11,472
    Registered: 10/15/98
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:57 AM in response to: purple Helpful
    Reply
    She's having trouble compiling a form.
    Aside from the ancient software you have, you never told us what the trouble is.
    An error message? A syntax error? Something else?
    purple
    Posts: 3
    Registered: 02/23/11
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 10:45 AM    in response to: SomeoneElse           Reply
    She's tried several different scenarios and still is not able to compile a "XXFPQLTR" form.
    It still appears to be something with the xxfps_price_pkg package in the get_rates procedure. If she comments out the line below it won't blow her out of forms.
    If it's in there, it tells her it's encountered an error, and closes forms with a non-descript error message.
    She attempted to hit 'debug' instead of 'close' when she got the forms error, and it did not provide herwith any further information .... it just blew up.
    Forms is only blowing up when she tries to compile a form that accesses pl/sql tables . If we take out the procedure that has the pl/sql she can compile the form.
    Billy Verreynne
    Posts: 12,472
    Registered: 05/27/99
    Re: PL/SQL Version 8.0.6.0.0 (Production)
    Posted: Feb 23, 2011 9:47 PM in response to: purple Reply
    Forms is not PL/SQL and PL/SQL is not forms. Yes, somewhat common language. No, very different as one runs on the client (Forms) and the other runs on the server (PL/SQL).
    And this is a PL/SQL forums - not Forms. So answers will tend to be about PL/SQL and not Forms. Make sure you do not mistake these as answers for Forms.
    In your sho3s.. I would dump Forms in favour of using Oracle 11gr2 with Apex.

    I've applied Patch12 to no avail
    So, what is your PL/SQL Version now that you've applied Patch 12?
    Patch12 is not the latest patch but but Patch17 is
    True, but you always want your development environments to match your production environment. If Prod is currently at Patch 12, then Patch 12 should be installed on ALL developer workstations.
    It is entirely possible that the problem is truly isolated to this one workstation. Have you tried performing a complete Unistall/Install of the Developer Suite (DS) 6i? With version 6i, I also found running Microsoft's RegClean tool often cleared up issues with the DS 6i. Microsoft no longer supports RegClean, but you can find it on the internet.
    you can put the code in a database procedure instead of a Forms procedureIf things still don't work after all this, I agree with InoL, perhaps the best option would be to move your logic to a database procedure and call the DB procedure from your Form.
    Out of curiosity, what is your Workstation operating system?
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Feb 24, 2011 11:01 AM

Maybe you are looking for

  • Constant Kernel Panics on Mavericks 10.9.5

    Hey Everyone, I really hope someone out there can help me out because these recent kernel panics I've been getting are driving me crazy because they always happen right in the middle of some important project I'm working on. Before I share the latest

  • Macbook pro 2011 problems

    I am having problems with my macbook pro 2011 version. First of my display will not go to sleep, it will stay on screensaver. I told the sreen to go to sleep in 5 mins and i set hot corners to sleep display. When i go to the corner to make the screen

  • Report execution statistics

    How I can generate statistics about execution of report custom on the system? I know transaction ST03 but is not possible to analyze data in a long time range. I want to generate statistics to undestand if all reports custom present on the R/3 are us

  • Role Validity date

    Hi Guys, I have a role assigned to a user with a validity date (say 01/20/10 to 04/20/10). However after the expiry date the user is able to perform actions related to that role. I do have PFUD scheduled which runs every day. I understand that prgn_c

  • Building application with microsoft agent

    Can someone clarify if there is anything different that needs to be done while building a stand-alone application that includes VIs that use the MS agent voice VIs (for example MSagentTTS.llb) along with CGI VIs? I have been able to build application