Integrate different  tables output into a unique table

Hello,
Please, I have the same BAPI in different systems with a table as output. I need to integrate in a unique table the outputs of the different tables (of each system) with VC 7. How can I do it?
Thanks in advance.

Hi Belen,
You can use the UNION (if the table have the same output) or Combine (for table that have different field) in additionnal Operators under the Compose Panel. Basically the UNION have 2 tables view as input and 1 table View as output. You have to choose a key to determine how the table are combine. I hope this helps.
Vincent

Similar Messages

  • How to integrate different tables structures from different databases?

    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    Thanks

    Arun Rajesh wrote:
    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    ThanksWelcome to Forum!!!
    Please elaborate your question.
    Arun Rajesh wrote:
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.1. What are the ATTRIBUTES?
    Arun Rajesh wrote:
    The structure of tables in both the database are different but they carry same attributes in same relation.2. Post the Table Structures.
    Arun Rajesh wrote:
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?3. What is the end result that you desire? A sample output shall help in our understanding.
    PS:- Please go through this to understand SQL and PL/SQL FAQ.
    Regards,
    P.

  • Extracting unique records from two different tables record

    Hello,
    In the following code of two different tables www.testing.com exists in both tables. I want to compare two different columns of the two different tables to get unique records.
    SQL> select unique(videoLinks) from saVideos where sa_id=21;
    VIDEOLINKS
    www.testing.com
    SQL> ed
    Wrote file afiedt.buf
      1* select unique(picLinks) from saImages where sa_id=21
    SQL> /
    PICLINKS
    test
    test14
    www.hello.com
    www.testing.comThanks & best regards

    Unfortunatly you didn't mention the expected output. I guess it would be the one line
    "www.testing.com"
    in that case simply join the two tables.
    select *
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;If needed then you could change the select list to retrieve only distinct values.
    select unique v.sa_id, v.videolinks
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;I usually avoid distinct/unique whereever possible. This requires the database to do a sort and makes the query slow.
    Edited by: Sven W. on Feb 10, 2011 1:55 PM

  • Save report painter output into internal table

    Hi,
      i have created a report painter for vendor aging report. got output in drill down format.
    i need to show the data in smartform as well. so need to save the report painter output into an internal table. can anyone please help me resolving this.
    regards,
    sudha.m

    Hi Sudha
    You can use sample below:
    DATA: list_tab TYPE TABLE OF ABAPLIST.
    SUBMIT NROWS EXPORTING LIST TO MEMORY
                  AND RETURN VIA SELECTION-SCREEN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    Best regards

  • Can i use one interface to load data into 2 different tables

    Hi Folks,
    Can i use one interface to load data into 2 different tables(same schema or different schemas) from one source table with same structure ?
    Please give me advice
    Thanks
    Raj
    Edited by: user11410176 on Oct 21, 2009 9:55 AM

    Hi Lucky,
    Thanks for your reply,
    What iam trying is ...Iam trying to load the data from legacy tables(3) into oracle staging tables.But i need to load the same source data into two staging tables(these staging tables are in two different schemas)
    can i load this source data into two staging tables by using single standard interface(some business logic is there)
    If i can then give me some suggestion how to do that
    Thanks in advance
    Raj

  • Insert data from a table into 5 different tables

    My application has a data block than display information from another table. From this data block, the user has the option to select the records for upload. The information in the data block is used to insert data into 5 different tables. So if any exception occurs while inserting, the whole process should be rollback, but before this happen a record is inserting in a failed table indicated the reason of the failed.
    For this process I use the following commands:
    1.     sp_name := Get_Application_Property(SAVEPOINT_NAME);
    2.     INSERT DDL
    3.     INSERT DDL
    4.     INSERT DDL
    5.     INSERT DDL
    6.     INSERT DDL
    7.     If Other Exception then ISSUE_ROLLBACK(sp_name) Otherwise FORMS_DDL ('commit')
    The problem the previous insert(s) rollback
    Thanks,

    Hi,
    If you are using FORMS_DDL built-in to insert the data, then after each FORMS_DDL statement, you have to check the values of FORM_SUCCESS or FORM_FAILURE built-ins.
    FORMS_DDL('<insert_statement_1>');
    IF FORM_FAILURE THEN
    <the statement fails. so have to be rollbacked>
    END IF;
    FORMS_DDL('<insert_statement_2>');
    IF FORM_FAILURE THEN
    <the statement fails. so have to be rollbacked>
    END IF;Hope this helps.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to do a SELECT from different tables into an internal table?

    How to do a SELECT from different tables into an internal table?
    I want to select data from MARA, MARC and ZPERSON and populate my ITAB_FINAL
    REPORT  zinternal_table.
    TABLES:
      mara,
      marc,
      zperson.
    TYPES:
    BEGIN OF str_table1,
      v_name LIKE zperson-zname,
      v_matnr LIKE marc-matnr,
      v_emarc LIKE marc-emarc,
      v_werks_d LIKE marc-werks_d,
      v_dstat LIKE marc-dstat,
      END OF str_table,
      i_table1 TYPE STANDARD TABLE OF str_table1.
    DATA:
    BEGIN OF str_table2,
    v_mandt LIKE mara-mandt,
    v_ernam LIKE mara-ernam,
      v_laeda LIKE mara-laeda,
    END OF str_table2,
    itab_final LIKE STANDARD TABLE OF str_table2.

    first find the link between mara , marc and zperson , if u have link to 3 tables then u can jus write a join and populate the table u want ( thats final table with all the fields).
    u defenitely have alink between mara and marc so join them and retrieve all data into one internal table.
    then for all the entries in that internal table retrieve data from zperson into another internal table.
    then loop at one internal table
    read another internal table where key equals in both the tables.
    finally assign fileds if sy-subrc = 0.
    gs_finaltable-matnr = gs_table-matnr
    etc...
    and finally append gs_finaltable to gt_finaltable.
    there u go ur final table has all the data u want.
    regards
    Edited by: BrightSide on Apr 2, 2009 3:49 PM

  • Report output into internal table and going ahead

    Hi Folks,
    We have a report MB51.It is showing some details.Now along with these details I wanna fetch some more detail and show it in the same report.
    One way is I can copy this into Z and then go ahead with the changes.But I would like to know can we SUBMIT MB51  program in my ZPROGRAM and then get the output into an internal table and then again populate this internal table with the rest of the data and again display it as final output.
    To be precise,is it possible to get the final output of MB51 into an internal table by using submit.
    K.Kiran.

    dear kian
    pls check the below code for example:
    DATA LIST_TAB TYPE TABLE OF ABAPLIST.
    DATA: BEGIN OF olist OCCURS 0,
            filler1(1500)   TYPE c,
          END OF olist.
    SUBMIT YTEST04 WITH MATNR EQ 't000001'
                     EXPORTING LIST TO MEMORY
                     AND RETURN.
    BREAK-POINT.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        LISTOBJECT = LIST_TAB
      EXCEPTIONS
        NOT_FOUND  = 1
        OTHERS     = 2.
    IF SY-SUBRC = 0.
      CALL FUNCTION 'LIST_TO_ASCI'
        EXPORTING
          LIST_INDEX         = -1
        TABLES
          LISTASCI           = oLIST
          LISTOBJECT         = LIST_TAB
        EXCEPTIONS
          EMPTY_LIST         = 1
          LIST_INDEX_INVALID = 2
          OTHERS             = 3.
      BREAK-POINT.
    ENDIF.

  • How to fill the data of two different tables into one?

    Hi Experts,
    I have two tables named CDHDR and CDSHW(structure). I have extracted the  data from these two tables through two function modules named CHANGEDDOCUMENT_HEADER and CHANGEDOCUMENT_POSITION. Now I have the data in to different tables.
    These two tables neither has relationship with each other through any field nor have any field which exist in both. Can anyone tell me in this case what should be the process to take the data of both the tables into one table. How can I match the record of one table to another?
    thanks a ton in advance.
    Edited by: Moni Bindal on Apr 28, 2008 4:16 PM
    Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:42 PM

    Hye Bindal,
      without a relation, it is not possible to club the data of 2 internal tables. More over it depends on the requirement as to y u should club to non related quantities in an internal table.
    if you wish to do so, one thing is it has internal table which includes the strucute of the 2.
    data: begin of ty_out,
              first type first_structure,
              second type second_structure,
             end of ty_out.
    data: itab type standard table of ty_out.
    data: wa type ty_out.
    loop into it1 into wa1.
    move corresponding wa to wa1.
    append wa to itab.
    endloop.
    loop into it2 into wa2.
    move corresponding wa to wa2.
    append wa to itab.
    endloop.
    now the internal table itab will have all the contents of it1 and it2.
    <REMOVED BY MODERATOR>
    Thanks,
    Imran.
    Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:43 PM

  • Sending different table id's into user table using a form

    hello, this is a lead up to another discussion that has not been resolved. i am getting pretty desperate now. i am sure it cant be that hard and really need help i am using MySQL php
    i have created a input form that when submitted sends the data to 3 different tables
    i have a tenant table. guarantor table and landlord table all in the database. i also have a property table that is already populated by another form on the website. on the input form though the property table is a dynamic drop down menu that when selected populates fields on the top of the input form
    i have the understanding that because the guarantorID, landlordID and propertyID are all inputting new data these will be input commands, however the property is already in the table so this will be an update command?
    what i need to do is when the form is submitted the guarantorID, landlordID and propertyID all are sent to columns in the tenant table. this is called join i believe?
    i have provided the unformatted code below that all works, but what i need to know how to do is the above. Link them all togeather and send all the id from the  guarantorID, landlordID and propertyID to the tenant table so they can all be reference when i create new pages
    can this be done?
    <?php require_once('Connections/nameprop.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 name_tenant (Title, `First Names`, Surname, DOB, DOBMonth, DOBYear, Nationality, Marital_Status, DayNumber, EvenNumber, MobNumber, Smoker, CurrentAdd, Status, PreviousAdd, Student, FinancialCCj, FinancialArrears, FinancialBankR, FinancialNone, BankName, AccountNum, SortCode, BankDuration, DebitCCCard, Electoral, `next of kin`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['Title'], "text"),
                           GetSQLValueString($_POST['First_Names'], "text"),
                           GetSQLValueString($_POST['Surname'], "text"),
                           GetSQLValueString($_POST['DOB'], "text"),
                           GetSQLValueString($_POST['DOBMonth'], "text"),
                           GetSQLValueString($_POST['DOBYear'], "text"),
                           GetSQLValueString($_POST['Nationality'], "text"),
                           GetSQLValueString($_POST['Marital_Status'], "text"),
                           GetSQLValueString($_POST['DayNumber'], "double"),
                           GetSQLValueString($_POST['EvenNumber'], "double"),
                           GetSQLValueString($_POST['MobNumber'], "double"),
                           GetSQLValueString($_POST['Smoker'], "text"),
                           GetSQLValueString($_POST['CurrentAdd'], "text"),
                           GetSQLValueString($_POST['Status'], "text"),
                           GetSQLValueString($_POST['PreviousAdd'], "text"),
                           GetSQLValueString($_POST['Student'], "text"),
                           GetSQLValueString($_POST['FinancialCCj'], "text"),
                           GetSQLValueString($_POST['FinancialArrears'], "text"),
                           GetSQLValueString($_POST['FinancialBankR'], "text"),
                           GetSQLValueString($_POST['FinancialNone'], "text"),
                           GetSQLValueString($_POST['BankName'], "text"),
                           GetSQLValueString($_POST['AccountNum'], "double"),
                           GetSQLValueString($_POST['SortCode'], "double"),
                           GetSQLValueString($_POST['BankDuration'], "text"),
                           GetSQLValueString($_POST['DebitCCCard'], "text"),
                           GetSQLValueString($_POST['Electoral'], "text"),
                           GetSQLValueString($_POST['next_of_kin'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO name_guarantor (FullName, Title, DOBday, DOBMonth, DOBYear, Sex, MaritalStatus, DaytimeNumber, EveningNumber, MobileNumber, Email, CurrentAddress, PreviousAddress, BankName, AccountNum, SortCode, BankDuration, CCDebitCard, ElectoralRoll, Profession, AnnualWages, PayrollNum, EmpName, EmpAddress, EmpContName, EmpContNumber, EmpEmail, EmpFinaHist, EmpDate, EmpDisclaimer) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['FullName'], "text"),
                           GetSQLValueString($_POST['Title'], "text"),
                           GetSQLValueString($_POST['DOBday'], "double"),
                           GetSQLValueString($_POST['DOBMonth'], "text"),
                           GetSQLValueString($_POST['DOBYear'], "text"),
                           GetSQLValueString($_POST['Sex'], "text"),
                           GetSQLValueString($_POST['MaritalStatus'], "text"),
                           GetSQLValueString($_POST['DaytimeNumber'], "double"),
                           GetSQLValueString($_POST['EveningNumber'], "double"),
                           GetSQLValueString($_POST['MobileNumber'], "double"),
                           GetSQLValueString($_POST['Email'], "text"),
                           GetSQLValueString($_POST['CurrentAddress'], "text"),
                           GetSQLValueString($_POST['PreviousAddress'], "text"),
                           GetSQLValueString($_POST['BankName'], "text"),
                           GetSQLValueString($_POST['AccountNum'], "double"),
                           GetSQLValueString($_POST['SortCode'], "double"),
                           GetSQLValueString($_POST['BankDuration'], "text"),
                           GetSQLValueString($_POST['CCDebitCard'], "text"),
                           GetSQLValueString($_POST['ElectoralRoll'], "text"),
                           GetSQLValueString($_POST['Profession'], "text"),
                           GetSQLValueString($_POST['AnnualWages'], "text"),
                           GetSQLValueString($_POST['PayrollNum'], "double"),
                           GetSQLValueString($_POST['EmpName'], "text"),
                           GetSQLValueString($_POST['EmpAddress'], "text"),
                           GetSQLValueString($_POST['EmpContName'], "text"),
                           GetSQLValueString($_POST['EmpContNumber'], "double"),
                           GetSQLValueString($_POST['EmpEmail'], "text"),
                           GetSQLValueString($_POST['EmpFinaHist'], "text"),
                           GetSQLValueString($_POST['EmpDate'], "double"),
                           GetSQLValueString($_POST['EmpDisclaimer'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
      header(sprintf("Location: %s", $insertGoTo));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO name_landlord (name, `telephone number`, mobileNumber, email, address, dateday, datemonth, dateyear, terms) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['name'], "text"),
                           GetSQLValueString($_POST['telephone_number'], "text"),
                           GetSQLValueString($_POST['mobileNumber'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['address'], "text"),
                           GetSQLValueString($_POST['dateday'], "text"),
                           GetSQLValueString($_POST['datemonth'], "text"),
                           GetSQLValueString($_POST['dateyear'], "text"),
                           GetSQLValueString($_POST['terms'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
      $insertGoTo = "pay-online.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_nameprop, $nameprop);
    $query_rsApplyNow = "SELECT * FROM name_editprop";
    $rsApplyNow = mysql_query($query_rsApplyNow, $nameprop) or die(mysql_error());
    $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    $totalRows_rsApplyNow = mysql_num_rows($rsApplyNow);
    ?>
    <!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>Untitled Document</title>
    <script type="text/javascript">
    function loadFields(theValue) {
             var props = theValue.split("|");
              var prop_id = props[0];
              var propAdd = props[1] ;
              var propPrice = props[2];
                          var town = props[3]
                          var postcode = props[4]
              document.getElementById('prop_id').value=prop_id;
              document.getElementById('Add1').value=propAdd;
                          document.getElementById('town').value=town;
                          document.getElementById('postcode').value=postcode;
              document.getElementById('RentalPrice').value='£' + propPrice +'/ per month';
    </script>
    </head>
    <body>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <input type="hidden" name="MM_insert" value="form1" />
    <!-- Place the following code where you want to show the result of the property selection --><table width="100%" border="0" cellpadding="0">
      <tr>
        <td width="23%"><!-- the following code is just copied from your code -->
          <select name="Select Property" id="Select Property" onchange="loadFields(this.value)">
            <option value="select your property">select your property</option>
            <?php
    do {
    ?>
            <option value="<?php echo $row_rsApplyNow['prop_id'] . '|' . $row_rsApplyNow['prop_add1'] . '|' . $row_rsApplyNow['rental_price'] . '|' . $row_rsApplyNow['town'] . '|' . $row_rsApplyNow['postcode'];?>"><?php echo $row_rsApplyNow['prop_id'] . " , " . $row_rsApplyNow['prop_add1']; ?></option>
            <?php
    } while ($row_rsApplyNow = mysql_fetch_assoc($rsApplyNow));
      $rows = mysql_num_rows($rsApplyNow);
      if($rows > 0) {
          mysql_data_seek($rsApplyNow, 0);
                $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    ?>
          </select></td>
        <td width="77%"> </td>
      </tr>
      <tr>
        <td>Property ID:</td>
        <td><input type="text" name="prop_id" id="prop_id" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Address</td>
        <td><input type="text" name="Add1" id="Add1" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Town</td>
        <td><input type="text" name="town" id="town" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Postcode</td>
        <td><label for="postcode"></label>
          <input type="text" name="postcode" id="postcode" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Rent</td>
        <td><input type="text" name="RentalPrice" id="RentalPrice" readonly="readonly" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="0">
          <tr>
            <td>tenant</td>
            <td>gaurantor</td>
            <td>landlord</td>
          </tr>
          <tr>
            <td><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Title:</td>
                <td><input type="text" name="Title" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">First Names:</td>
                <td><input type="text" name="First_Names" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Surname:</td>
                <td><input type="text" name="Surname" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOB:</td>
                <td><input type="text" name="DOB" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBMonth:</td>
                <td><input type="text" name="DOBMonth" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBYear:</td>
                <td><input type="text" name="DOBYear" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Nationality:</td>
                <td><input type="text" name="Nationality" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Marital_Status:</td>
                <td><input type="text" name="Marital_Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DayNumber:</td>
                <td><input type="text" name="DayNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EvenNumber:</td>
                <td><input type="text" name="EvenNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobNumber:</td>
                <td><input type="text" name="MobNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Smoker:</td>
                <td><input type="text" name="Smoker" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CurrentAdd:</td>
                <td><input type="text" name="CurrentAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Status:</td>
                <td><input type="text" name="Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PreviousAdd:</td>
                <td><input type="text" name="PreviousAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Student:</td>
                <td><input type="text" name="Student" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialCCj:</td>
                <td><input type="text" name="FinancialCCj" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialArrears:</td>
                <td><input type="text" name="FinancialArrears" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialBankR:</td>
                <td><input type="text" name="FinancialBankR" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialNone:</td>
                <td><input type="text" name="FinancialNone" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankName:</td>
                <td><input type="text" name="BankName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AccountNum:</td>
                <td><input type="text" name="AccountNum" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">SortCode:</td>
                <td><input type="text" name="SortCode" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankDuration:</td>
                <td><input type="text" name="BankDuration" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DebitCCCard:</td>
                <td><input type="text" name="DebitCCCard" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Electoral:</td>
                <td><input type="text" name="Electoral" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Next of kin:</td>
                <td><input type="text" name="next_of_kin" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td> </td>
              </tr>
            </table></td>
            <td><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FullName:</td>
                <td><input type="text" name="FullName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Title:</td>
                <td><input type="text" name="Title2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBday:</td>
                <td><input type="text" name="DOBday" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBMonth:</td>
                <td><input type="text" name="DOBMonth2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBYear:</td>
                <td><input type="text" name="DOBYear2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Sex:</td>
                <td><input type="text" name="Sex" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MaritalStatus:</td>
                <td><input type="text" name="MaritalStatus" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DaytimeNumber:</td>
                <td><input type="text" name="DaytimeNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EveningNumber:</td>
                <td><input type="text" name="EveningNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobileNumber:</td>
                <td><input type="text" name="MobileNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Email:</td>
                <td><input type="text" name="Email" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CurrentAddress:</td>
                <td><input type="text" name="CurrentAddress" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PreviousAddress:</td>
                <td><input type="text" name="PreviousAddress" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankName:</td>
                <td><input type="text" name="BankName2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AccountNum:</td>
                <td><input type="text" name="AccountNum2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">SortCode:</td>
                <td><input type="text" name="SortCode2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankDuration:</td>
                <td><input type="text" name="BankDuration2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CCDebitCard:</td>
                <td><input type="text" name="CCDebitCard" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">ElectoralRoll:</td>
                <td><input type="text" name="ElectoralRoll" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Profession:</td>
                <td><input type="text" name="Profession" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AnnualWages:</td>
                <td><input type="text" name="AnnualWages" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PayrollNum:</td>
                <td><input type="text" name="PayrollNum" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpName:</td>
                <td><input type="text" name="EmpName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpAddress:</td>
                <td><input type="text" name="EmpAddress" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpContName:</td>
                <td><input type="text" name="EmpContName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpContNumber:</td>
                <td><input type="text" name="EmpContNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpEmail:</td>
                <td><input type="text" name="EmpEmail" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpFinaHist:</td>
                <td><input type="text" name="EmpFinaHist" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpDate:</td>
                <td><input type="text" name="EmpDate" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpDisclaimer:</td>
                <td><input type="text" name="EmpDisclaimer" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td> </td>
              </tr>
            </table></td>
            <td><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Name:</td>
                <td><input type="text" name="name" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Telephone number:</td>
                <td><input type="text" name="telephone_number" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobileNumber:</td>
                <td><input type="text" name="mobileNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Email:</td>
                <td><input type="text" name="email" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Address:</td>
                <td><input type="text" name="address" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Dateday:</td>
                <td><input type="text" name="dateday" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Datemonth:</td>
                <td><input type="text" name="datemonth" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Dateyear:</td>
                <td><input type="text" name="dateyear" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Terms:</td>
                <td><input type="text" name="terms" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td><input type="submit" value="Insert record" /></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        </tr>
    </table>
    </form>
    <p> </p>
    <p> </p>
    </form>
    <p> </p>
    </body>
    </html>
    <?php
    mysql_free_result($rsApplyNow);
    ?>

    basically it isnt coming up with an error code just not sending the information across and not redirecting to the next page
    here is the full code for the temp for i am working on.
    <?php require_once('Connections/nameprop.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 name_tenant (Title, `First Names`, Surname, DOB, DOBMonth, DOBYear, Nationality, Marital_Status, DayNumber, EvenNumber, MobNumber, Smoker, CurrentAdd, Status, PreviousAdd, Student, FinancialCCj, FinancialArrears, FinancialBankR, FinancialNone, BankName, AccountNum, SortCode, BankDuration, DebitCCCard, Electoral, `next of kin`, prop_id) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['Title'], "text"),
                           GetSQLValueString($_POST['First_Names'], "text"),
                           GetSQLValueString($_POST['Surname'], "text"),
                           GetSQLValueString($_POST['DOB'], "text"),
                           GetSQLValueString($_POST['DOBMonth'], "text"),
                           GetSQLValueString($_POST['DOBYear'], "text"),
                           GetSQLValueString($_POST['Nationality'], "text"),
                           GetSQLValueString($_POST['Marital_Status'], "text"),
                           GetSQLValueString($_POST['DayNumber'], "double"),
                           GetSQLValueString($_POST['EvenNumber'], "double"),
                           GetSQLValueString($_POST['MobNumber'], "double"),
                           GetSQLValueString($_POST['Smoker'], "text"),
                           GetSQLValueString($_POST['CurrentAdd'], "text"),
                           GetSQLValueString($_POST['Status'], "text"),
                           GetSQLValueString($_POST['PreviousAdd'], "text"),
                           GetSQLValueString($_POST['Student'], "text"),
                           GetSQLValueString($_POST['FinancialCCj'], "text"),
                           GetSQLValueString($_POST['FinancialArrears'], "text"),
                           GetSQLValueString($_POST['FinancialBankR'], "text"),
                           GetSQLValueString($_POST['FinancialNone'], "text"),
                           GetSQLValueString($_POST['BankName'], "text"),
                           GetSQLValueString($_POST['AccountNum'], "double"),
                           GetSQLValueString($_POST['SortCode'], "double"),
                           GetSQLValueString($_POST['BankDuration'], "text"),
                           GetSQLValueString($_POST['DebitCCCard'], "text"),
                           GetSQLValueString($_POST['Electoral'], "text"),
                           GetSQLValueString($_POST['next_of_kin'], "text"),
                           GetSQLValueString($_POST['prop_id'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
    mysql_select_db($database_nameprop, $nameprop);
    $query_rsApplyNow = "SELECT * FROM name_editprop";
    $rsApplyNow = mysql_query($query_rsApplyNow, $nameprop) or die(mysql_error());
    $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    $totalRows_rsApplyNow = mysql_num_rows($rsApplyNow);
    ?>
    <!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>Untitled Document</title>
    <script type="text/javascript">
    function loadFields(theValue) {
             var props = theValue.split("|");
              var prop_id = props[0];
              var propAdd = props[1] ;
              var propPrice = props[2];
                          var town = props[3]
                          var postcode = props[4]
              document.getElementById('prop_id').value=prop_id;
              document.getElementById('Add1').value=propAdd;
                          document.getElementById('town').value=town;
                          document.getElementById('postcode').value=postcode;
              document.getElementById('RentalPrice').value='£' + propPrice +'/ per month';
    </script>
    </head>
    <body>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
    <!-- Place the following code where you want to show the result of the property selection --><table width="100%" border="0" cellpadding="0">
      <tr>
        <td width="23%"><!-- the following code is just copied from your code -->
          <select name="Select Property" id="Select Property" onchange="loadFields(this.value)">
            <option value="select your property">select your property</option>
            <?php
    do {
    ?>
            <option value="<?php echo $row_rsApplyNow['prop_id'] . '|' . $row_rsApplyNow['prop_add1'] . '|' . $row_rsApplyNow['rental_price'] . '|' . $row_rsApplyNow['town'] . '|' . $row_rsApplyNow['postcode'];?>"><?php echo $row_rsApplyNow['prop_id'] . " , " . $row_rsApplyNow['prop_add1']; ?></option>
            <?php
    } while ($row_rsApplyNow = mysql_fetch_assoc($rsApplyNow));
      $rows = mysql_num_rows($rsApplyNow);
      if($rows > 0) {
          mysql_data_seek($rsApplyNow, 0);
                $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    ?>
          </select></td>
        <td width="77%"> </td>
      </tr>
      <tr>
        <td>Property ID:</td>
        <td><input type="text" name="prop_id" id="prop_id" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Address</td>
        <td><input type="text" name="Add1" id="Add1" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Town</td>
        <td><input type="text" name="town" id="town" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Postcode</td>
        <td><label for="postcode"></label>
          <input type="text" name="postcode" id="postcode" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Rent</td>
        <td><input type="text" name="RentalPrice" id="RentalPrice" readonly="readonly" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="0">
          <tr>
            <td width="29%"><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Title:</td>
                <td><input type="text" name="Title" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">First Names:</td>
                <td><input type="text" name="First_Names" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Surname:</td>
                <td><input type="text" name="Surname" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOB:</td>
                <td><input type="text" name="DOB" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBMonth:</td>
                <td><input type="text" name="DOBMonth" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBYear:</td>
                <td><input type="text" name="DOBYear" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Nationality:</td>
                <td><input type="text" name="Nationality" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Marital_Status:</td>
                <td><input type="text" name="Marital_Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DayNumber:</td>
                <td><input type="text" name="DayNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EvenNumber:</td>
                <td><input type="text" name="EvenNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobNumber:</td>
                <td><input type="text" name="MobNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Smoker:</td>
                <td><input type="text" name="Smoker" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CurrentAdd:</td>
                <td><input type="text" name="CurrentAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Status:</td>
                <td><input type="text" name="Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PreviousAdd:</td>
                <td><input type="text" name="PreviousAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Student:</td>
                <td><input type="text" name="Student" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialCCj:</td>
                <td><input type="text" name="FinancialCCj" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialArrears:</td>
                <td><input type="text" name="FinancialArrears" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialBankR:</td>
                <td><input type="text" name="FinancialBankR" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialNone:</td>
                <td><input type="text" name="FinancialNone" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankName:</td>
                <td><input type="text" name="BankName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AccountNum:</td>
                <td><input type="text" name="AccountNum" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">SortCode:</td>
                <td><input type="text" name="SortCode" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankDuration:</td>
                <td><input type="text" name="BankDuration" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DebitCCCard:</td>
                <td><input type="text" name="DebitCCCard" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Electoral:</td>
                <td><input type="text" name="Electoral" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Next of kin:</td>
                <td><input type="text" name="next_of_kin" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td><input type="submit" value="Insert record" /></td>
              </tr>
            </table></td>
            <td width="68%"> </td>
            <td width="3%"> </td>
          </tr>
          <tr>
            <td> </td>
            <td> </td>
            <td> </td>
          </tr>
        </table></td>
        </tr>
    </table>
    </form>
    <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    </body>
    </html>
    <?php
    mysql_free_result($rsApplyNow);
    ?>

  • How do I copy content from an entire row into a different table?

    How do I copy content from an entire row of one table into a different table?  When I try to copy/paste the selected row into a row of the same size  and configuration in another table in the same document, the cells change width, the formatting and border thicknesses change, and the text gets squeezed.  When I was working with tables in Microsoft Word, there was no problem selecting text from a row in one table and placing it into a similar row and configuration in another table.

    Hi Christopher Morgan
    And welcome to apple discussions. With regard to your main question ....
    Q: Can this be done?
    A: It can but not easily (in that you may take a hit in quality). Apps like MpegStream Clip or DVDXDV may help:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.products.htm
    It converts it back to a QT file for use with iDvd (or iMovie).
    Hope this helps but if not just come on back.
    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software / products that may be mentioned in this topic. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information above at your own discretion.

  • Stage tab delimited CSV file and load the data into a different table

    Hi,
    I pretty new to writing PL/SQL packages.
    We are using Application express for our development. We get CSV files which is stored as a BLOB content in a table. I need to write a trigger that would get executed once the user the uploads the file and parse thru the Blob content and upload or stage the data in a different table.
    I would like to see if there is any tutorial or article that could explain the above process with the example or sample code to do the same. Any help in this regard will be highly appreciated.

    Hi,
    This is slightly unusual but at the same time easy to solve. You can read through a blob using the dbms_lob package, which is one of the Oracle supplied packages. This is presumably the bit you are missing, as once you know how you read a lob the rest is programming 101.
    Alternatively, you could write the lob out to a file on the server using another built in package called utl_file. This file can be parsed using an appropriately defined external table. External tables are the easiest way of reading data from flat files, including csv.
    I say unusual because why are you loading a csv file into a blob? A clob is almost understandable but if you can load into a column in a table why not skip this bit and just load the data as it comes in straight into the right table?
    All of what I have described is documented functionality, assuming you are on 9i or greater. But you didn't provide a version so I can't provide a link to the documentation ;)
    HTH
    Chris

  • SUBMIT and RETUTN with ALV output into a interanl table.

    Hello Friends,
    I have one z program which returns ALV output.
    I have to create a one new Z program and in that I want to call this program and want the final output into an internal table into my Zreport.
    I used SUBMIT statement with RETURN but not working.
    can anybody tell me what I missed?
    or
    How can we do this.
    Thanks in advance.
    Suhas

    Hi Suhas,
    In Zreport1.
    Just open the first report program and assign internal table to some memory id like...
    EXPORT it_tab1 to MEMORY ID 'ZNITS'.
    In Zreport2.
    Now create an internal table with the same structure of it_tab1 and write the following in your program...
    SUBMIT Zreport1 WITH SELECTION-TABLE it_input
                                    AND RETURN.
    Note: it_input is of type rsparams and contains all selection parameters for *Zreport1*
    *   Import internal table content from memory id
        IMPORT it_tab1 TO it_tab2 FROM MEMORY ID 'ZNITS'.
        FREE MEMORY ID  'ZNITS'.
    Thanks
    Nitesh

  • How to caputre report output into an internal table?

    Hi,
    Is there a way to capture report output into one internal table?
    Regards,
    Amruth

    Hi Amruth,
    Use SUBMIT.. EXPORTING LIST TO MEMORY.
    It saves  the output of a report into memory. Use the function modules LIST_FROM_MEMORY. WRITE_LIST & DISPLAY_LIST to retrieve the data.
    All these function modules belongs to function group 'SLST'.
    However the submit does not display hte output list of the called report, but saves it in ABAP memory & leaves the called report immediately. Since the calling program can read the list from memory & process it furthe, you need to use the addition ..AND RETURN.
    Regards,
    Chandru

  • Rejected records into different Table.

    Hi ,
    I have a .ctl file and .txt file. for the normal scenario, I use SQLLDR to load data into my table using ctl file and all rejected records will be sent to bad files. But I wanted all the unloaded or Bad records into different table.
    do we have any attributes in sqlldr to accomplish this?
    Regards
    Bala.

    Bala,
    You can load bad file (rejected records) in different table with all the column defined as varchar2 using sqlldr or external table. But you have to defined another table with all the columns as varchar2 and load it up using a different sqlldr control file, you can also consider using external table to load bad file (bad records).
    Regards

Maybe you are looking for