Runtime Error in Record INsertion to an Infotype

Hi all,
I have created an infotype PA9035.
In that i want to insert records with value
Data:  WA_PA9035 TYPE PA9035.
  WA_PA9035-PERNR  = P_PERNR.
  WA_PA9035-ZZKOKRS = V_KOKRS.
  WA_PA9035-ENDDA = '99991231'.
  WA_PA9035-BEGDA = SY-DATUM.
I used the below funciton mod to insert data,
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '9035'
        NUMBER                 = P_PERNR
      SUBTYPE                =
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = '99991231'
       VALIDITYBEGIN          = SY-DATUM
      RECORDNUMBER           =
        RECORD                 = WA_PA9035
        OPERATION              = 'INS'.
      TCLAS                  = 'A'
      DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
      RETURN                 =
      KEY                    =
I am getting RUNTIME ERROR in that..the error is....
The source field is too short.
In the running program "SAPLHRMM" a field should have been assigned to a field
symbol, which is shorter than the type of the field symbol.
This is not possible.
It is a statement of the form ASSIGN f TO <fs> CASTING...
or ASSIGN f TO <fs> with a field symbol that was created with the
STRUCTURE addition.
Please help me...
Regards,
Thendral.

Hi all,
I have created an infotype PA9035.
In that i want to insert records with value
Data:  WA_PA9035 TYPE PA9035.
  WA_PA9035-PERNR  = P_PERNR.
  WA_PA9035-ZZKOKRS = V_KOKRS.
  WA_PA9035-ENDDA = '99991231'.
  WA_PA9035-BEGDA = SY-DATUM.
I used the below funciton mod to insert data,
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '9035'
        NUMBER                 = P_PERNR
      SUBTYPE                =
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = '99991231'
       VALIDITYBEGIN          = SY-DATUM
      RECORDNUMBER           =
        RECORD                 = WA_PA9035
        OPERATION              = 'INS'.
      TCLAS                  = 'A'
      DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
      RETURN                 =
      KEY                    =
I am getting RUNTIME ERROR in that..the error is....
The source field is too short.
In the running program "SAPLHRMM" a field should have been assigned to a field
symbol, which is shorter than the type of the field symbol.
This is not possible.
It is a statement of the form ASSIGN f TO <fs> CASTING...
or ASSIGN f TO <fs> with a field symbol that was created with the
STRUCTURE addition.
Please help me...
Regards,
Thendral.

Similar Messages

  • RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic itab

    Hi guys,
    I'm trying to do this
    INSERT (l_nametab) FROM TABLE <dynamic_table>.
    where:
    DATA: l_nametab TYPE TABNAME VALUE 'PA0002'.
    FIELD-SYMBOLS: <dynamic_table> TYPE STANDARD TABLE.
    DATA: dy_table2 type ref to data.
    CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).
    ASSIGN dy_table2->* TO <dynamic_table>
    ... but I received this runtime error:
    DBIF_RSQL_INTERNAL_ERROR
    Internal error when accessing a table.
    The current ABAP/4 program terminated due to
    an internal error in the database interface.
    An internal error in the database interface occurred during access to
    the data of table "PA0002 ".
    The situation points to an internal error in the SAP software
    or to an incorrect status of the respective work process.
    For further analysis the SAP system log should be examined
    (transaction SM21).
    For a precise analysis of the error, you should supply
    documents with as many details as possible.
    Does anybody know how can it be solved?
    I'll really apreciate it.
    Thanks and Regards.

    Hi Max,
    How can I upload this data if I'm reading the info from an Input File.
    The FM HR_INFOTYPE_OPERATION is useless because the UNAME fild doesn't remain into the record. They really need these field.
    The main idea of these program is to read the Input File Line, wich can belong to any infotype.
    I'm already reading the Infotype data from the input file and I need to transfer it to the PAXXXX table.
    Next, a little explanation of it:
    This program is to INSERT DATA INTO HR TABLES...
    The FM HR_INFOTYPE_OPERATION is useless in this process...
    Only with INSERT dbtab it has to be done!!!
    1.- Read HR data from an input file. The data type of the file lines is PRELP.
    2.- Get the input file data into an internal table (TYPE PRELP) using the ABAP Method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD.
    3.- Get the DDic. Table Name using CONCATENATE 'PA' wa_file-infty INTO l_nametab.
    4.- Get the DDic.Struct.Name using CONCATENATE 'P' wa_file-infty INTO l_nametype.
    5.- Assign values with the same code:
      FIELD-SYMBOLS: <dyn_table> type standard table,
                     <dyn_wa>,
                     <dyn_field>.
      FIELD-SYMBOLS: <dyn_table2> type standard table,
                     <dyn_wa2>,
                     <dyn_field2>.
      DATA: dy_table2 type ref to data,
            dy_line2  type ref to data.
      DATA: dy_table type ref to data,
            dy_line  type ref to data,
                CREATE DATA dy_table TYPE STANDARD TABLE OF (l_nametype).
                ASSIGN dy_table->* TO <dyn_table>.
                " Create dynamic work area and assign to FS
                CREATE DATA dy_line LIKE LINE OF <dyn_table>.
                ASSIGN dy_line->* TO <dyn_wa>.
                CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).
                ASSIGN dy_table2->* TO <dyn_table2>.
                " Create dynamic work area and assign to FS
                CREATE DATA dy_line2 LIKE LINE OF <dyn_table2>.
                ASSIGN dy_line2->* TO <dyn_wa2>.
    6.- Convert the Input File Line from PRELP type to PNNNN type with the ABAP method
          CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN            EXPORTING        PRELP  = wa_file
                                                                                    IMPORTING        PNNNN  = <dyn_wa>.
    7.- As <dyn_wa2> and <dyn_table2> are of PANNNN Data Type, there is an structure with the MANDT field to be assigned to it:
    " Type Definition
    TYPES: BEGIN OF type_mandt,
              mandt TYPE MANDT,
           END OF type_mandt.
    " Structure Definition
    DATA: wa_mandt TYPE type_mandt.
    " Structure value assignation
    wa_mandt-mandt = sy-mandt.
    8.- Assign corresponding values and INSERT INTO dbtab
              MOVE-CORRESPONDING <dyn_wa> TO <dyn_wa2>. "XXXX
              MOVE-CORRESPONDING wa_mandt TO <dyn_wa2>.
              APPEND <dyn_wa2> TO <dyn_table2>.
             INSERT (l_nametab) FROM TABLE <dyn_table2> ACCEPTING DUPLICATE KEYS.
    9.- In these code line, the menctioned runtime error appears.
    I hope it can be solved...
    Thanks and regards...

  • Handling runtime errors while recording a script.

    When I record a script, I have a couple areas of the target website that throw an exception within the browser of e-Tester ( but not in any normal browser ). It is a runtime error, and complains about an unteriminated string constant. I'm not interested in trying to fix the cause, I just want to deal with the dialog. Here are my questions:
    1. I want to first check to see IF the screen is present. It looks like a standard windows error dialog.
    2. IF it's present, I then want to select the 'No' button, because I don't want to debug it, I just want to close the dialog and move on.
    That's all I want to do. I've attached a screenshot of the windows dialog I want to handle.

    I'd love to be able to find out what is causing the crash, because then I could log a bug against the web page to have the unterminated string resolved. Any idea of how I could find this? Perhaps looking through the source of the page?
    Until I find a way to determine exactly what the problem is with the web page ( sorry, it's proprietary, so I can't post the code up here ), I'm going to write a little app to watch for the box, then close it.
    I just need to find a way to call an external app before I click on the web page. How do I call an external app from within e-Tester in such a way that the call is made, and the execution continues as normal? I do NOT want e-Tester to wait for the app to close before continuing.

  • ITunes won't play/QuickTime RunTime error -- Total Recorder related ...

    Hello -- I am having some iTunes issues. It will not play any MP3s in my library ... it will play CDs, but I get an error message when I try to rip them. And, very odd, QuickTime gives me this error:
    "The application has requested the RunTime to terminiate it in an unusual way. Please contact ehe applications support team for more information."
    I know this is likely based on my installing the nefarious "Total Recorder" (boo!) and I'm well-versed in the issues it has with iTunes and have tried the fixed proposed on apple.com. I have removed it and even scanned my registry to make sure there are no references; and re-installed my audio drivers.
    Any ideas?
    Dell Inspiron 700m   Windows XP Pro  

    ... it's hard in the poor places tonight ...
    When I try to rip I get the cryptic "An unknown error occured (-223)."
    okay. what antivirus and antispyware applications are you running at the moment?
    i've seen one case of that one being caused by interference by an antispyware package:
    http://discussions.apple.com/thread.jspa?messageID=825155&#825155
    (good lord ... and i now see Justin was getting the same "itunes won't play music" symptom too. i hadn't remembered that.)
    perhaps first try switching your antispyware off (experimentally) prior to playing or ripping, to see if that helps. otherwise, let's try a reinstall with antispyware disabled (like Justin) to see if that helps matters.
    love, b

  • Runtime error while inserting in PA0036 during Massupload of HR Master data

    Hi All,
    We are creating HR master data for infotypes : 0000,0001, 0002, 0003, 0017, 0105.
    with the help of BAPI_HRMASTER_SAVE_REPL_MULT .  Where we append appropriate data in internal tables and send it to the BAPI. We are able to create/update data for several personal Nos.
    When we try to upload around 3000 data records & try to create them as mentioned above, it results into Runtime Error : MESSAGE_TYPE_X in program SAPUP50R. The Errors reads : Error in INSERT from table PA0336 argument.....
    My question is : why is it giving Runtime error, when it perfectly runs for few records at a time & why is it trying to update PA0336 infotype, when we are not using it at all.
    Any pointers would help to solve the problem.
    Regards,
    Siddhesh Sanghvi

    Are you using several countries (MOLGA)?
    The error sounds like using the infotype views:
    With the feature IVWID (is stored PA0003-VIEKN) the infotype views (see table T582V+T582W) are read and set in background process within the infotype classes. For infotype 0002 (MOLGA = 19 , Portugal) the infotype view V336 is called and the data are stored in table PA0336 additionally.
    Here you have to check the table T500P (Personnel Areas) for the entries in field MOLGA, the feature IVWID for the return value, perhaps field value PA0003-VIEKN for the "crashed" employees.
    regards
    Peter

  • [SOLVED] FRM-40508:ORACLE error: unable to INSERT record

    Hi all,
    I have migrated this form from 4.5 to 10g (Version 10.1.2.0.2 ). This form inserts a record into the database table when all the fields in the form are filled and a button Save is presed.
    At the time when I press the Save button, I get this error. FRM-40508:ORACLE error: unable to INSERT record
    So I went on to see the "Display Error" from help and found to be the database error, inserting into a table.
    The error message is ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    The form where I press Save button has 3 date fields and I checked the properties of them and they are Date only.
    I also generated to object list report and tried to find some answer, but no use.
    Please help me in debugging this form.
    Edited by: Charan on Aug 18, 2011 4:05 PM

    I think you need to get a description of the table and compare all the "database" columns in the form with the ones in the database table to see that the types match. Somewhere there's a mismatch. Also check the block(s) "query data source columns" and see if there's any
    columns in there that the type does not match the table. (check the sizes of things too while you're at it.)

  • Dreamweaver CS4 - Record Insertion Form js error

    Hi
    I'm dreamweaver cs4 and started using the Record Insertion form, I was mainly experimenting with it and just seeing what it could do.
    However when I get to the wizard i have to wait a few seconds for it to connect to the database and then I get an error message that says:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following Javascript error(s) occured:
    At line 283 of the file "Macintosh HD:Application:Adobe Dreamweaver
    CS4:Configuration:Commands:ServerObject-FormCmnPHP.js":
    invalid array length
    I was just wondering if this was a common problem, or I've messed something up either in Dreamweaver, or in the SQL database that I'm using.
    I've also noticed that its the same for Update and Delete Records Wizards aswell.
    Any help would be greatly appreciated
    Aaron Kennedy

    I see it's your first post. Welcome to the forum.
    A good place to start looking for answers is the Dreamweaver FAQ. You'll find the answer to your question under "Crashes, installation, JavaScript, and unexplained problems".

  • RunTime error DBIF_RSQL_INVALID_RSQL while updating infotype 0035

    Dear Experts,
    I am delimiting(changing the end date from future date to current date) the HR objects in IT 0035 using FM RH_CUT_INFTY. It is delimiting the records as per required.
    To do this update we have developed a report where we read the Object ID and the PERNR on the selection screen and inside the program we update IT35.
    The program executes in three steps:
    1. Lock HR Object
    2. Update(in synchronous mode) the records for the specified Object ID-PERNR pair using FM RH_CUT_INFTY
    3. Release HR object and go to next HR object and go back to step 1.
    The report is executing good when there are less number of records for an HR object. But, when the number of (PERNR)records for an HR object is more then the report is giving a po-up "Update was terminated" and when I checked the dump for the same in ST22, it gives the following details:
    Runtime Errors : DBIF_RSQL_INVALID_RSQL
    Exception         : CX_SY_OPEN_SQL_DB
    I would be grateful if anyone can please help me resolve this issue.
    Thanks,
    Jiten

    Hi Jiten,
    I don't know how much I can help you on this.
    But I found an FM: RH_CUT_INFTY_GENERIC
    This FM seems to be designed for mess process of CUT INFTY.
    I check the source code, the VTASK is set to 'B' when calling RH_CUT_INFTY in a loop.
        CALL FUNCTION 'RH_CUT_INFTY'
             EXPORTING
                  LOAD               = ' '
                  GDATE              = GDATE
                  HISTO              = HISTO
                  DEL_SUCC           = DEL_SUCC
                  VTASK              = 'B'
                  ORDER_FLG          = ORDER_FLG
                  COMMIT_FLG         = COMMIT_FLG
                  AUTHY              = AUTHY
              PPPAR_IMP          =
                  KEEP_LUPD          = KEEP_LUPD
                  WORKF_ACTV         = WORKF_ACTV
             TABLES
                  INNNN              = action_tab
               ILFCODE            =
             EXCEPTIONS
                  ERROR_DURING_CUT   = 1
                  NO_AUTHORIZATION   = 2
                  GDATE_BEFORE_BEGDA = 3
                  CUT_OF_TIMCO_ONE   = 4
                  CORR_EXIT          = 5
                  OTHERS             = 6.
    And when all the objects have been submitted to delimitation, call FM RH_UPDATE_DATABASE at last.
    I think this could be a workaround for your issue.
    Cheers,

  • Runtime Error when activating Comp Records

    When trying to activate IT 0759 records in Comp to update Basic Pay, some employees received a Runtime Error. It states, "The exception CX_HRPA_VIOLATED_POSTCONDITION was raised, but it was not caught anywhere along the call hierarchy."
    It says it was not caught in 'HR_ECM_INSERT_INFOTYPE' function.
    Has anyone else seen this problem? It didn't happen for all employees.
    Thanks!

    Hi guys,
    Another reason for locked SPO's is:
    The terrible attribute-change-run (ACR). When you try to activate  a locked SPO, you only get a message like this:
    Runtime Lock: Activity ACTIVATE_SPO, Object DATATARGET ZZZ
    Unable to lock the semantically partitioned object
    Error when activating Semantically Partitioned Object ZZZ
    NO DTP request is running, so you can take all the day trying to find the error.
    So  in my case, there was an incomplete ACR (cancelled with error - red).
    It's like a curse. It is not easy to find the relation between ACR an SPO activation process (SAP error message is not useful to identify the reason)
    Finally, keep in mind:
    Check any DTP request running or cancelled that affect your SPO model and
    Check if you have an ACR (running or cancelled). This can lock your SPO object
    regards!

  • How to get count of records inserted and errored out in an email

    Hi
    I have following question
    I want to send report statics of scenario i.e Number of rows inserted during the scenario and
    Number of rows in error in the scenario in an email.Here in my scenario I am trying to insert data into Essbase database and when i try to use getNbInserts() and getNbErrors functions of ODI in an email body,its giving zero value even though there 140 records inserted and 10 errored out.Can any one let me know how we get this number of records inserted and number of records errored in email.
    Thanks in advance
    Regards
    Baji

    Hi
    I have following question
    I want to send report statics of scenario i.e Number of rows inserted during the scenario and
    Number of rows in error in the scenario in an email.Here in my scenario I am trying to insert data into Essbase database and when i try to use getNbInserts() and getNbErrors functions of ODI in an email body,its giving zero value even though there 140 records inserted and 10 errored out.Can any one let me know how we get this number of records inserted and number of records errored in email.
    Thanks in advance
    Regards
    Baji

  • Runtime error when inserting rows in hrp1018 and hrt1018 tables

    Hi All,
    I have a requirement to insert row in hrp1018 and hrt1018 tables.These tables are interlinked.So, I have used FM 'RH_INSERT_INFTY'. The exact code which I have used is as follows.
    *****************************************code***************************************************************
    << Please post only the relevant portion of the code >>
    The runtime error which is coming is as follows:
    Error analysis
        An internal error in the database interface occurred during access to
        the data of table "HRT1018 ".
        The situation points to an internal error in the SAP software
        or to an incorrect status of the respective work process.
        For further analysis the SAP system log should be examined
        (transaction SM21).
        For a precise analysis of the error, you should supply
        documents with as many details as possible.
    Please let me know why this error is coming.I am not able to find out mistake in the FM and form used in the code.
    Thanks in advance,
    BBKrishna.
    Edited by: Rob Burbank on Jun 9, 2009 1:31 PM

    I am adding the code once again.Please let me know why the error is coming up.
    lv_mproj = 'BLDNG'.
      wa_p1018-mandt = sy-mandt.
      wa_p1018-otype = '9M'.
      wa_p1018-objid = '50009650'.
      wa_p1018-begda = '20090608'.
      wa_p1018-endda = '99991231'.
      wa_p1018-infty = '1018'.
      wa_p1018-plvar = '01'.
      wa_p1018-otype = '9M'.
      wa_p1018-istat = '1'.
      append wa_p1018 to it_p1018.
      repid = sy-repid.
    *Updating hrp1018 and hrt1018 tables
      CALL FUNCTION 'RH_INSERT_INFTY'
        EXPORTING
        FCODE                     = 'INSE'
        VTASK                     = 'D'
         AUTHY                    = ' '
          REPID                   =  repid
          FORM                    = 'FILL_TABS'
        TABLES
          INNNN                   = it_p1018
    EXCEPTIONS
       NO_AUTHORIZATION          = 1
       ERROR_DURING_INSERT       = 2
       REPID_FORM_INITIAL        = 3
       CORR_EXIT                 = 4
       BEGDA_GREATER_ENDDA       = 5
       OTHERS                    = 6
      IF SY-SUBRC <> 0.
        CALL FUNCTION 'BALW_BAPIRETURN_GET'
          EXPORTING
            TYPE                             = SY-MSGTY
            CL                               = sy-msgid
            NUMBER                           = SY-MSGNO
      PAR1                             = ' '
      PAR2                             = ' '
      PAR3                             = ' '
      PAR4                             = ' '
      LOG_NO                           = ' '
      LOG_MSG_NO                       = ' '
         IMPORTING
           BAPIRETURN                        = return_rec
    EXCEPTIONS
      ONLY_2_CHAR_FOR_MESSAGE_ID       = 1
      OTHERS                           = 2
        IF SY-SUBRC <> 0.
            lv_mproj = text-011
                      ELSE.
                      ii_return = return_rec.
                      CONCATENATE                  ii_return-type '-' ii_return-message
                      INTO lv_err_msg SEPARATED BY SPACE.
        ENDIF.
      ENDIF.
    *RHCD_TAB-PROZT
       FORM fill_tabs TABLES ins_tab
                   USING ins_set ins_index.
      DATA : BEGIN OF set.
              INCLUDE STRUCTURE wplog.
      DATA : END   OF set.
      DATA: BEGIN OF h_pt1018.             "to initialize INS_TAB
              INCLUDE STRUCTURE pt1018.
      DATA: END OF h_pt1018.
      REFRESH ins_tab.
      set = ins_set.
      CASE set-infty.
        WHEN '1018'.
          h_pt1018-posnr = lv_mproj.
          h_pt1018-prozt = '100.00'.
          IF NOT ( h_pt1018 IS INITIAL ).
            CLEAR ins_tab.
            ins_tab+36(8) = lv_mproj. "h_pt1018.
            ins_tab+134(5) = '100.00'.
            APPEND ins_tab.
          ENDIF.
      ENDCASE.
    ENDFORM.

  • Errors not logged when IKM Oracle Multi Record Insert is selected

    Dear All,
    I am new in ODI 11g and I am facing the following problem:
    I created a package with 3 Interfaces with Oracle Multi Record Insert.
    In the first interface I load the source data to a temporary target
    In the second interface target#1 table is loaded using interface#1
    In the third interface target#2 is loaded using interface#1 and the multiple insert is executed and committed.
    This works correctly, but when a data error occurs (e.g. mandatory column is null), instead of the error being logged in the Error table, execution of the last interface fails with the following error:
    Caused By: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into (<schema>.<table>.<column>)
    I noticed that when I use Oracle Incremental Update instead, the errors get logged correctly in the error table.
    Does anyone know what could be causing this?

    Hi Bhabani,
    Thanks for the reply.
    I am afraid that this is a major issue for me, I do not want to re-query the source table for each target table, but on the other hand I cannot fail the process for each invalid record and I need the logging.
    Can you think of a workaround for my use case?
    Thank you!

  • Client insert Diagram returns runtime error

    Hello,
    I'm runnning BIP client 10.1.3.4.1 under Word (MS Office 2010).
    If I use "Insert diagram" I receive "runtime error 429".
    The template and BIP client installation I use is - in my opinion - valid - e.g. just displaying data as a table works.
    Kind Regards and thanks in advance
    Peter

    Sorry folks,
    I destroyed the bip client after installation. Installed again and everything works.
    Peter

  • Runtime error for Inspection Point Results Recording

    Hi,
    I am changing the already done Results Recording for using already used Inspection Point.
    I am getting the runtime error. Anybody came across such error?
    Regards
    Ramakanth

    Hi,
    In the in-process inspection I am using Inspection Points. Initially I have done Results Recording once with quantities.
    And then again I wanted to change the quantities for the same Inspection Point. So, I went to Results Recording for same Inspection Point and changed the quantities and saving. At this event I am getting Runtime error.
    I  have even deactivated one BADI INSPECTIONLOT_UPDATE and tried again. Even then I am getting same error.
    Ultimately my requirement is this:
    My client wants UD at operation level. They want only quantity which is accepted in Results Recording to be moved to the next operation. In the operation level confirmation the system should only accept the quantity which is accepted in Results Recording.
    Any suggestion in this regard.
    Thanks
    Ramakanth

  • SQL syntax error when creating record insertion form

    Good day,
    I was hoping someone could help me.  I am trying to create a record insertion form on a website to insert data into a database table.  When attempting to create the form, I am getting 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
    Not sure what is going on.  I am running windows 8 and DW cs5 w/ MYSQL.  I am testing on a local server prior to pushing to the remote server.
    Thank you for your assistance and please advise any code you would like me to send.

    Here is all the code from this particular webpage.  I apologize, I am too stupid to realize which parts are SQL vice PHP vice HTML:
    <?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_insert"])) && ($_POST["MM_insert"] == "form1")) {
       $insertSQL = sprintf("INSERT INTO individual (Grade, LastName, FirstName, M.I., Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMailing Address`, Citizenship, Designation, IATrainingComplete, IADate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                            GetSQLValueString($_POST['Grade'], "text"),
                            GetSQLValueString($_POST['LastName'], "text"),
                            GetSQLValueString($_POST['FirstName'], "text"),
                            GetSQLValueString($_POST['MI'], "text"),
                            GetSQLValueString($_POST['Organization'], "text"),
                            GetSQLValueString($_POST['Office'], "text"),
                            GetSQLValueString($_POST['Department'], "text"),
                            GetSQLValueString($_POST['Phone'], "double"),
                            GetSQLValueString($_POST['EmailAddress'], "text"),
                            GetSQLValueString($_POST['JobTitle'], "text"),
                            GetSQLValueString($_POST['OfficialMailing_Address'], "text"),
                            GetSQLValueString($_POST['Citizenship'], "text"),
                            GetSQLValueString($_POST['Designation'], "text"),
                            GetSQLValueString($_POST['IATrainingComplete'], "text"),
                            GetSQLValueString($_POST['IADate'], "text"));
      mysql_select_db($database_group4, $group4);
       $Result1 = mysql_query($insertSQL, $group4) or die(mysql_error());
      $insertGoTo = "index.php";
       if (isset($_SERVER['QUERY_STRING'])) {
         $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
         $insertGoTo .= $_SERVER['QUERY_STRING'];
       header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_group4, $group4);
    $query_rsIndividual = "SELECT * FROM individual ORDER BY IndividualNumber ASC";
    $rsIndividual = mysql_query($query_rsIndividual, $group4) or die(mysql_error());
    $row_rsIndividual = mysql_fetch_assoc($rsIndividual);
    $totalRows_rsIndividual = mysql_num_rows($rsIndividual);
    ?>
    <!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>Contact Us</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;
    .tablethisone {
      margin: 5px;
      padding: 25px;
      border: medium none #000;
      text-align: center;
    </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="index.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>PRIVACY ACT STATEMENT</p>
    <p>Executive Order 10450, 9397; and Public Law 99-474, the Computer Fraud and Abuse Act.
       To record names, signatures, and other identifiers for the purpose of validating the trustworthiness of individuals requesting
       access to Department of Defense (DoD) systems and information. NOTE: Records may be maintained in both electronic
       and/or paper form.</p>
    <p> </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">Grade:</td>
           <td><input type="text" name="Grade" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">LastName:</td>
           <td><input type="text" name="LastName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">FirstName:</td>
           <td><input type="text" name="FirstName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">M.I.:</td>
           <td><input type="text" name="MI" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Organization:</td>
           <td><input type="text" name="Organization" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Office:</td>
           <td><input type="text" name="Office" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Department:</td>
           <td><input type="text" name="Department" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Phone:</td>
           <td><input type="text" name="Phone" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">EmailAddress:</td>
           <td><input type="text" name="EmailAddress" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">JobTitle:</td>
           <td><input type="text" name="JobTitle" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">OfficialMailing Address:</td>
           <td><input type="text" name="OfficialMailing_Address" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Citizenship:</td>
           <td><input type="text" name="Citizenship" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Designation:</td>
           <td><input type="text" name="Designation" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IATrainingComplete:</td>
           <td><input type="text" name="IATrainingComplete" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IADate:</td>
           <td><input type="text" name="IADate" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right"> </td>
           <td><input type="submit" value="Insert record" /></td>
         </tr>
       </table>
       <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>Disclosure of this information is voluntary; however, failure to provide the requested information may impede, delay or
    prevent further processing of this request.</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($rsIndividual);
    ?>

Maybe you are looking for

  • Active Directory domain controller could not be contacted

    Hello Help please. I am trying to add a new server (2008) to domain 'bridgelimited.local' - only one DC (2003) doing everything at the moment. The plan is to add the new server, then move everything over from the old machine, then retire/upgrade the

  • Error in communication channel AS2 Seeburger EDI Adapter

    Hi, I am facing one issue in communication channel at receiver side. Adapter type is AS2 Seeburger EDI adapter. Brief overview of scenario: Sender is R/3 sending an IDOC and Reciever is Party (Vastra_Gotaland). The error in reciever communication cha

  • Error message when running Flash MX 2004

    I have installed Flash MX 2004 on my PowerBook and when I open it, I get the following error message: "The target flash player "__First Run" is not installed. The standard Flash player will be used instead." Then Flash crashes. Any ideas?

  • Flash installation not working

    Tried in vain to install flash (11.6.602.171) many times.  It doesn't take.  Using Firefox 19.0 on a MacBook Pro (OSX10.6.8), do i need to install it via Safari even if Mozilla Firefox is what I use?  I unblocked cookies for adobe.com (since I normal

  • "Unkown error" when trying to sign into itunes store

    When I try to sign into the itunes store it says "unkown error" when I try to sign in. If I try again it prompts me to reset my password, which I did twice because I thought maybe I was just an idiot and forgot my password 3x, but that's not it. I ca