Populating multiple text fields from a database table...

I have a database table with several fields e.g. drawing_no, title, date_entered etc..I have a form that has the same fields. I want to be able to input a value into drawing_no field, and have it retrieve all the other values from the database - if they exist, or return blanks/nulls if it does not exit. I know how to do this for a single field, but not for retrieving multiple fields

Hi ,
You can create a before header page process and fetch all the fields from database, or you can take a look at in-built process Automated Row Fetch.
For e.g. lets say u have field1, field2, field3, field4 and field5 based on col1, col2, col3, col4, col5 from table tab1
Now create a page process of type PL-SQL and give a meaningful name to the process and accept the default as on Load Before header. In the "Enter PL/SQL Page Process" block enter a code similar to this one
DECLARE
BEGIN
IF :drawing_no IS NOT NULL THEN
  SELECT col1, col2, col3, col4, col5 INTO :field1, :field2, :field3, :field4, :field5
  FROM tab1 WHERE drawing_no = :drawing_no ;
END IF;
EXCEPTION WHEN NO_DATA_FOUND THEN
           NULL;
END;The above block will fetch the records into input fields every time u refresh the page.
Hope this helps.
Thanks,
Manish

Similar Messages

  • Link dropdown choice to multiple text fields from access database

    Is there anyway to link the choice of a dropdown field so it populates other text fields?
    Example:
    I have created a Data Connection from a MS Access Database for a drop down list which is CompanyName.  When I choose the company name I would like it to populate First Name, Last Name, Email, Adress, etc.  Does this require a significant amount of code to do...and if so does anyone have a good book suggestion to learn the code for something like this?
    Any help in solving this problem is greatly appreciate.  I have searched everywhere and found no conclusive answer.  Or maybe I am just searching in the wrong place?  Thanks for your help.

    You will have to make another data connection and create a SQL call to the DB that will incorporate the selection made in the DDList. This will involve code. There is a sample wriiten by Stefan Cameron at this location:
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    Paul

  • Extracting Values of a Field from a Database Table in SAP ECC System

    Hi,
    I downloaded Extracting Values of a Field from a Database Table in SAP ECC System Using MII 12.0
    senario from sdn. I'm trying to do that senario in MII 12.05. But I have problem with section 6 in page 7 (you can supply senario from sdn)
    "6- Under the loop of Repeater, use action u2018Rowu2019 to append just the string part of the WA which will display only values for field u2018Batchu2019"
    I did not find WA elemen in Output element of Repeater_0
    How can I create WA element?
    Thanks.

    Cemil,
    Set up a SAP JCo Interface action block.  Use the RFC name RFC_READ_TABLE.
    In the link editor map the table to "MARA", set RowCount to something small (20 is good sample size) and create an xml transaction property named FIELDS and copy the following into it:
    <?xml version="1.0" encoding="UTF-8"?><FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
        </FIELDS>
    Then link the Transaction.FIELDS to SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}.  You may run into problems with two other fields and optionally they can be removed (set link type to remove xml).  I usually remove them initially for testing.  The two fields are:
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/NO_DATA}
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER} (or you can set this to something like a semicolon,";" or tilda,"~".  I find it easier to caclulate position by length, but that is my own idiosyncrasy.)
    Once you get this one working, we can explore how to do filtering on the dataset.  Your output should be something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <RFC_READ_TABLE>
      <INPUT>
        <DELIMITER />
        <NO_DATA />
        <QUERY_TABLE>MARA</QUERY_TABLE>
        <ROWCOUNT>20</ROWCOUNT>
        <ROWSKIPS>0</ROWSKIPS>
      </INPUT>
      <TABLES>
        <DATA>
          <item>
            <WA>000000000000000023ROH 00000000</WA>
          </item>
          <item>
            <WA>000000000000000038HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000043HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000058HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000059HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000068FHMI 00000000</WA>
          </item>
          <item>
            <WA>000000000000000078DIEN 00000000</WA>
          </item>
          <item>
            <WA>000000000000000088FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000089FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000098HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000170NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000178NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000188NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000288HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000358HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000359HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000521HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000578FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000597HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000598VERP 00000000</WA>
          </item>
        </DATA>
        <FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET>000000</OFFSET>
            <LENGTH>000018</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Number</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET>000018</OFFSET>
            <LENGTH>000004</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Type</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET>000022</OFFSET>
            <LENGTH>000003</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Purchase Order Unit of Measure</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET>000025</OFFSET>
            <LENGTH>000001</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Batch management requirement indicator</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET>000026</OFFSET>
            <LENGTH>000008</LENGTH>
            <TYPE>D</TYPE>
            <FIELDTEXT>Valid-From Date</FIELDTEXT>
          </item>
        </FIELDS>
        <OPTIONS />
      </TABLES>
    </RFC_READ_TABLE>
    Add a repeater sourced on:
    SAP_JCo_Interface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item}
    Link your repeater output to a tracer with this:
    Repeater_0.Output{/item/WA}
    What you will see in each tracer message is a single line of data with all the fields contents concatenated together.  You can look up what each field in the string represents by the length of the field as returned in the Response segment of the RFC_READ_TABLE rfc.  Then you can parse out the data you are interested in.
    Give this a try and let me know how you succeeded.
    By the way, I could not find the scenario you referred to.  Can you post a link?
    Regards,
    Mike
    Edited by: Michael Appleby on Jan 12, 2009 5:16 PM

  • Populating Multirecord text fields from Tlists value's combinations

    I have a UI wherein there are two T lists, one on the Left and other on the Right. The left one contains
    From values and the Right one contains To values. There's one Button which when Pressed should populate
    a Data Block which has multi record text fields just below the button with all the possible combinations of
    the T lists elements. The Text fields have the values From, To, Time, Unit. When populated From and Two will
    get the values from the combinations and the user will enter the values in other fields i.e. Time and Unit,
    Then the user can save the Records.
    e.g. If the Left T list contains Red, Blue and the Right T List contains Green, Black. Then on pressing
    the button below the T lists, the text fields From and Two of a data block displayed in the same window
    should get populated with all the possible combinations as:
    From || To || Unit || Time
    Red Green
    Red Black
    Blue Green
    Blue Black
    Now the user can enter the values for Unit as well as Time and when he does save the Records should be inserted
    for the Data Blocks DML Source that's some table.
    What I'm trying is:
    On pressing the Button i'm writing code that will have Two PL/SQL Tables(Index by binary_integer). One will have
    all the values of the left T List and the other with all the values of right T List.
    I do it as in the WHEN BUTTON PRESSED as:
    DECLARE
    TYPE varchar_table IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER;
    from varchar_table;
    to varchar_table;
    v_count1 NUMBER;
    v_count2 NUMBER;
    v_count3 NUMBER;
    v_count4 NUMBER;
    BEGIN
    v_count1 := Get_List_Element_Count('CONTROL.FROM_TYPE');
         FOR i IN 1..v_count1 LOOP
              from(i) := Get_List_Element_Value('CONTROL.FROM_TYPE', i);
         END LOOP;
    v_count2 := Get_List_Element_Count('CONTROL.TO_TYPE');
         FOR i IN 1..v_count2 LOOP
              to(i) := Get_List_Element_Value('CONTROL.TO_TYPE', i);
         END LOOP;
    END;
    Now how will I populate the text fields with the values in the tables that i got with the piece of code above.
    Any help would be appreciated. Any other method other than the one i'm trying is also welcome. Please note that
    i'm not using any table to store the elements in the T Lists. The lists get values at runtime by
    user's selection.
    Thanks,
    Abhishek.

    Try and stay civil in your postings. The solotion should be to simply issue a GO_BLOCK, followed by a CREATE_RECORD followed by setting the approriate values :block.value = <value from list>

  • How can I Insert a Text field in a DATABASE TABLE???

    Hello at all,
    i have a database Table ZTEST with 2 columns.
    MANDT     TYPE     CLNT
    TEXT         TYPE     char     (255)
    In my internal table tab, i have a text content. I want insert this content in my database table ZTEST.
    DATA: tab TYPE TABLE OF ZTEST,
               lin TYPE ZTEST.
    lin-text = 'HELLO WORLD'
    APPEND lin TO tab.
    INSERT INTO ZTEST VALUES tab.
    Commit Work.
    Is this correct???? BECAUSE it doesnt work.
    Edited by: ETN_58 on Mar 31, 2010 10:27 AM

    Hi All,
    Here table ZTEST has two fields kunnr and text where kunnr is the key field.
            REPORT  ZATEST                                  .
           tables ztest.
          DATA: itab TYPE TABLE OF ZTEST with header line.
            itab-kunnr = '67890'.
            itab-text = 'HELLO WORLD'.
            APPEND itab.
           if sy-subrc eq 0.
               INSERT  ZTEST from table itab.
            Commit Work.
          endif.
           Check with this, its working fine.
                 Regards,
                Md Ziauddin.

  • Delete a content of field from a database table

    Hi All,
    i want to delete a content of field mtart from mara where matnr = 0000001.
    plz help me out  ASAP plz also provide a piece of code for doing so....
    Thanks and Regards.
    Ashu Singh.

    Hi,
    You Can Do Like This,
    Parameters p_matnr type mara-matnr.
    Delete from mara where matnr eq p_matnr.
    Try This

  • Populate drop-down list from multiple text fields.

    Just to begin, I am brand new to this application and brand new to coding in general. Anyways, this is what I am trying to accomplish. I need to populate a drop-down list from multiple text fields. I am able to populate one item using this in the calculate event:
    TextField1.rawValue
    After I type text in TextField1 and hit enter, it displays the text in the drop-down list. I need to do this but with more than just one text field to populate more options for the drop-down list. I will also need to do something similar with populating a drop-down list from selections made in multiple other drop-down lists.
    Thanks for any help you can give me.

    Thank you for your suggestion Geo Kaiser. With that, I was able to populate my drop-down lists, but now when I select an option from the drop-down list, the selection dissapears. The selection will appear briefly in the box but then dissapears although my drop-down list options remain there. Here is the code I am using for my text field to drop-down list:
    DropDownList1.clearItems()
    DropDownList1.addItem(TextField1)
    DropDownList1.addItem(TextField2)
    And here is my code for my drop-down list to populate another drop-down list:
    DropDownList3.clearItems()
    DropDownList3.addItem(DropDownList1)
    DropDownList3.additem(DropDownList2)
    Thanks again for your help. By the way, I am using Adobe Designer 7.0.

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • Combining data from 2 database tables to convert numberID to text? ASP/VB

    Hi.
    I have the following two database tables:
    Orders Table
    orderID
    customerID
    collectionregion (numerical)
    deliveryregion (numerical)
    Regions Table
    regionID
    regionname
    On my ASP page I have a recordset (rsOrders) which displays
    the order
    details.
    When this is displayed, the collectionregion and
    deliveryregion fields
    display as a numerical value, as they should.
    This numerical value ties in with the regionID field from the
    regions table,
    to indicate what region the collection/delivery is in.
    I would like to be able to display the region name as opposed
    to the number.
    I created a third recordset on the page, which goes like
    this:
    SELECT * from tblRegions WHERE regionID = regionvar
    regionvar 1 rsOrders.Fields.Item("deliveryregion")
    Now, this works great when I DON'T have the rsOrders
    information in a Repeat
    Region, but when I add the repeat region, it simply displays
    the region name
    for the first record for every record. Why would it not work
    in the repeat
    region?
    What can I do to resolve this?
    Any help offered would be greatly appreciated. Thanks.
    Regards
    Nath.

    Hi,
    Ok, thinking out loud has helped a little! My Repeat Region
    is for the
    rsOrders recordset so simply dropping a value from a second
    recordset into
    this existing repeat region won't cause the second recordset
    to repeat which
    is why I'm seeing the first records values in every record!
    Still leaves me with the problem though.
    The thing that's confusing me is that both the
    collectionregion and
    deliveryregion fields in the Orders table hold an ID value
    that ties in with
    the Regions table primary key field (regionID) however
    because they are not,
    themselves, called regionID I can't seem to do an Inner Join
    in a database
    query like I normally would if there was just one field that
    tied in with
    the regionID.
    Would appreciate some guidance. Much appreciated. Thanks.
    Regards
    Nath.
    "Nathon Jones" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi.
    >
    > I have the following two database tables:
    >
    > Orders Table
    >
    > orderID
    > customerID
    > collectionregion (numerical)
    > deliveryregion (numerical)
    >
    > Regions Table
    >
    > regionID
    > regionname
    >
    > On my ASP page I have a recordset (rsOrders) which
    displays the order
    > details.
    >
    > When this is displayed, the collectionregion and
    deliveryregion fields
    > display as a numerical value, as they should.
    > This numerical value ties in with the regionID field
    from the regions
    > table, to indicate what region the collection/delivery
    is in.
    >
    > I would like to be able to display the region name as
    opposed to the
    > number.
    >
    > I created a third recordset on the page, which goes like
    this:
    > SELECT * from tblRegions WHERE regionID = regionvar
    >
    > regionvar 1 rsOrders.Fields.Item("deliveryregion")
    >
    > Now, this works great when I DON'T have the rsOrders
    information in a
    > Repeat Region, but when I add the repeat region, it
    simply displays the
    > region name for the first record for every record. Why
    would it not work
    > in the repeat region?
    >
    > What can I do to resolve this?
    > Any help offered would be greatly appreciated. Thanks.
    > Regards
    > Nath.
    >

  • Populating a html form with fields from a database

    Ok, basically ive got fields in a db, for example:
    name
    decription
    time
    weather
    mood
    Ive got a html form that also has these fields.
    When the user clicks a button the homepage of the site, it should bring up a form in a popup window that has all the fields in based on the entries in the database - lets pretend there is only 1 entry in the database, so the form will be the same for every user.
    Any ideas how i could do this?
    BTW I'm using jsp and mysql as db.
    Thx peeps

    Hi,
    Are all the fields from the same table? if so you can construct a class say Test.java with the follwing attributes.
    <code>
    public string m_strName=null;
    get and set methods
    </code>
    You can repeat for all the fields in the DB. If you have primary key for the table you can set the ID of the class as the primary key. so in your JSP you get the class with ID (whichever you wish to) and use the class in the JSP like this
    <code>
    Test test = JDBCAccess.get("ID of the table");
    <%=test.getName();%>
    </code>
    This is an example of OR(object relational mapping).
    Hope this helps.
    thanks
    shyam

  • ATWRT field is from which database table.

    Hi Gurus,
        I need to see the field name ATWRT(Manufac Method) for the particular material number.from which database table can i access both the data.Please help me .
    Thanks in advance.
    Points will be rewarded.
    Thanks & Regards,
    A.Ashok kumar.

    Hi
    these are the tables where atwrt exists:
    ABAUSP
    AFFV
    AFFVB
    AFFVD
    APICAWN
    API_CAWN
    API_CCHAR
    API_VALI
    API_VALUE
    API_VAL_IN
    CCIHS_IHPRIOT
    CCRCS_EHS_SVT_MA
    CLGO_MULTIPLE
    CLRS_OBJ_KEYS
    CLRS_OBJ_VALUES
    CLSELSTATISTICS
    CLS_CHARAC
    COFIV
    COFV
    COFVP
    COME
    COMEP
    COMER
    COMSE
    COMW
    COVLP
    CRMT_IC_SCRIPT_M
    CSIM_ST_DETAIL
    CTBW_VALUE_TEXT
    CTIH_01
    CTMSEXIT001
    CTMS_02
    CUCD_CONF
    CUD0_02
    CUGEN_SIMPLE_LIT
    CUGEN_SIMPLE_SIN
    CUGEN_VALUE
    CURTO_CU_GEN_SIMPLE_L
    CURTO_CU_GEN_SIMPLE_S
    CUSL_01
    CUSL_02
    CUSL_05
    CUSL_06
    CUSTOMER_FILTER_CHAR
    CUXREF
    CUXR_OBJ
    CUX_EXP_VALUE
    DDB_AW
    DDB_C01
    DDB_C02
    DDB_C03
    DDB_C04
    DDB_C06
    DDB_C07
    DESCR
    DIWPS_ATINN
    DIWPS_CA
    DIWPS_CONF
    DIWPS_CONF_MARK
    DIWPS_RV_ATINN
    DIWPS_RV_CA
    DIWPS_RV_CONF
    DIWPS_RV_CONF_MARK
    DIWPS_RV_NAV
    DIWPS_WA_WORKPACKAGE
    DIWPS_WPID_CONF
    DIWPS_WP_NAV
    E1AUSPM
    E1CAWNM
    E1CUV1M
    E1EDL12
    E1EDL15
    E1ISU_SDORD_POS_CONF
    E1WBB17
    DIWPS_ATINN
    DIWPS_CA
    DIWPS_CONF
    DIWPS_CONF_MARK
    DIWPS_RV_ATINN
    DIWPS_RV_CA
    DIWPS_RV_CONF
    DIWPS_RV_CONF_MARK
    DIWPS_RV_NAV
    DIWPS_WA_WORKPACKAGE
    DIWPS_WPID_CONF
    DIWPS_WP_NAV
    E1AUSPM
    E1CAWNM
    E1CUV1M
    E1EDL12
    E1EDL15
    E1ISU_SDORD_POS_CONF
    E1WBB17
    E1WTADDI12
    E2AUSPM
    E2CAWNM
    E2CUV1M
    E2EDL12
    E2EDL15
    E2WBB17
    E3AUSPM
    E3CAWNM
    E3CUV1M
    E3EDL12
    E3EDL15
    E3WBB17
    ECONF_OUT
    EHQMSAPIM1
    Regards
    Preeti
    <b>
    Reward if useful</b>

  • PHP/MySQL: 'Add New' text field from menu in form

    I am creating an events posting website. I'm having a hard time finding the right words to describe this, but: I'd like the user to select a venue from the drop menu, but then if it isn't there, to select 'add new' from the dynamic menu, and have a new text field activate where they can enter in the new venue name. My database is currently set up so the event table links to the venue table through a venueID. Is there a way to insert the name from the new text field into the venue table, and have the rest of the form still submit to the event table? Sorry this is so wordy, but I'd appreciate any help. Thank you.

    You cannot add a new value to a related table at the same time as inserting a record. So, to do this, you would need to use both JavaScript to add the new text field, and PHP conditional logic to handle the update to both tables. It's certainly doable, but not with the Dreamweaver server behaviors. You would need to do a lot of hand-coding yourself.
    The way that I approached a similar problem in my "Essential Guide to Dreamweaver CS4" was to permit NULL values in the column that holds the foreign key, and insert nothing into that field if the value hadn't already been registered in the related table. I created a static value in the dynamic menu for "Not registered".
    After inserting the new record with "not registered", the user then needs to enter the new value in the related table.
    Once that has been done, display a page that lists all records. In the SQL, I use a LEFT JOIN to ensure that "not registered" items come up as well. You can then edit the item to add the value from the dynamic menu.
    It's not the most elegant way to do it, but it works if you don't have the skill or time to hand-code all the logic yourself.

  • Reg Query For Multiple Text Fields

    Hi all
    I am New to this forum..
    I am developing an application for generating reports.
    In my application i have multiple text fields.
    The user might enter any of the textfields or even enter all the fields.
    In those cases how to use the query when some fields are empty??

    Welcome to the forum.
    It always helps to post a small, simplified example of what it is you're trying to achieve.
    (When posting examples, put the {noformat}{noformat} tag before and after the example, so it will get posted formatted on this forum.)
    In those cases how to use the query when some fields are empty??If your textfields serve as parameters/bind variables for you query, then you could use NVL.
    Something like:select ...
    from some_table
    where col1 = nvl(p_col1, col1)
    and col2 = nvl(p_col2, col2)
    And how about wildcards (the '%' or '_' sign), by the way? Are they allowed as well?
    You also might want to read about this approach:
    http://www.oracle.com/technology/oramag/oracle/09-jul/o49asktom.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • To modify a field in a database table based record identification by primar

    hi
    i want to to modify a field in a database table based record identification by primary key filed and two more fields
    ie customer (primary key
    i want to modify record from intenal table the record existing with primary key field customer
    the status field needs to be mofied as " value rolled"
    the below code is happening
    loop at it_record into wa_Record
    wa_inv-customer (primary key) = wa_Record=custome
    wa_inv-date = wa_Record-date
    ...so one
    append wa_inv to it_invest
    clear wa_inv
    endloop.
    if not it_invest  is initial
    modify TABle1 ( this table is data base table which needs to be mofified) based on the primary key field
    and also date field and status field which is not primary key.
    regards
    arora

    Hi there.
    Your requirement is to update a Z Database table from your internal table, right? You have several options:
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable
         SET date = wa_inv-date
       WHERE prim_key = wa_inv-prim_key
         AND any_field = wa_inv-any_field.
    ENDLOOP.
    or
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable FROM wa_inv. "if wa_inv of same type of dbtable
    ENDLOOP.
    In the first example, I wrote any field because you can update dbase table, filtering for fields that don't belong to the primary key. However, remember that you will change all records that respect the key you used (so, in your case, use the primary key).
    Regards.
    Valter Oliveira.

  • How to select alternate entries from the database table

    Hi Experts,
    can u help me, how to select alternate entries from the database table.
    Thanks

    As there is no concept of sequence (unless there is a field specifically included for the purpose), there is no meaning to "alternate" records.
    What table do you have in mind, what data does it hold, and why do you want alternate records?
    matt

Maybe you are looking for