BDC for updating table like zstudent

Hi Every One ,
             How i write the BDC for updating table.
  I'm explaining my scenario , there is a table zstudent - it contains few fields like sno , sname , address. Previously student no.(sno's) like 1,2,3,4,5,6,7,8.... now i'want 1hyd,2hyd,3hyd,4hyd,5hyd,6hyd,.......... like this , and sno is not a primary key remaining all fields are same .
let me inform me , which transaction i use in call transaction.
Please revert me.
Regards,
Krishna

Hello,
Since you have a custom table, you can use all the Open SQL statements available in ABAP
[Open SQL |http://help.sap.com/saphelp_470/helpdata/en/fc/eb3969358411d1829f0000e829fbfe/content.htm]
BDC's are generally used when you wanna update SAP Tables, as we do not know, which all tables will be updated in SAP.
You may use the SHDB tcode, to record a BDC for an tcode: standard or custom
Regards,
Abhishek

Similar Messages

  • BDC for VRTCPR table

    Hi all,
       I need to do BDC for SM30 t.code for table VRTCPR. i am getting an error message after 15th record because the table control scroll bar is not scrolling. can any one give a sample coding how to make table control scroll down.
    Thanks,
    Gobi.

    Record the BDC as follows and create a program based on your Recording.
    1. Go to SM30.
    2. Click on maintain.
    3. click on Insert New Entry
    4. Click on Save.
    5. Click on Back.
    This will bring each record you are processing to Index 1. you won;t need scrolling of Table control in it at all.
    hope this helps.
    Amandeep

  • Is there any better way for updating table other than this?

    Hi all, I need to update a row in the table that require me to search for it first (the table will have more than hundred thousands of row). Now, I am using a LOV that will return the primary key of the row and put that primary key to DEFAULT_WHERE property in the block and execute query command to fetch the row that need updating. This works fine except that it require 2-query-trip per update (the lov and the execute_query). Is there any better way to doing this? This update is the main objective for my application and I need to use the most effective way to do it since we need to update many records per hour.

    Thanks Rama, I will try your method. Others, how to query row instead of primary key? I thought that querying primary key is faster due to the index?
    BTW, what people do if you need to update a table using Form? I have been using the LOV then execute query since I first developing form. But I am building a bigger database recently that I start worrying about multiple query trip to dbms.
    FYI my table will have up to million rows on it. Each row will be very active (updated) within 1-2 weeks after it creation. After that it will exist for records purposes only (select only). The active rows are probably less than 1% of all the rows.

  • Need to find appropriate User Exit for VL04 for updating table LIKP

    Hi Gurus,
    I need to create split Deliveries using Transaction VL04. I have a custom field ZZINCOLOC (location) in table VBAP.
    The requirement is that when ever a sales order Line Item values for ZZINCOLOC differs, that is if Item 10 has value 1234 for ZZINCOLOC and then if Item 20 has value '4567' in ZZINCOLOC then 2 deliveries should be created through transaction VL04. I also need to add this custom field ZZINCOLOC in LIKP table (delivery Header). Now when the 2 deliveries are created , in the 1st delivery LIKP-ZZINCOLOC should be updated with VBAP-ZZINCOLOC where Item is 10 and when 2nd delivery is getting created, LIKP-ZZINCOLOC should be updated with VBAP-ZZINCOLOC where Item is 20.
    Can anyone tell me how to do this. Where to write the code.
    Thanks and Regards,
    Nabanita.

    hi
    Check this BADI - BADI_CUST_HIER
    Hope this helps

  • Explicit Lock on for Update Table

    If I want to perform explicit lock acquiring on updating all records in “customer” table with “state” equals to “CA”. What command should I run?

    Hi,
    Refer to following ppt.
    http://www.indiana.edu/~dbateam/Documents/oracle_locking.ppt#260,5,Oracle Isolation Levels
    You can get to know the things.
    - Pavan Kumar N

  • Any JPA features for updating table metadata without loosing existing data?

    Hi there,
    I'm having a database with live data in it.
    Now i have to change some tables (add columns, etc.). How can i do this without using drop-create-schema mechanics?
    Do i really have to change my entity classes first, change schema creation to just create-schema so that only new tables are created automatically and finally have to put all the "alter table" stuff manually?
    Is there any better solution?
    Thanx in advance

    no need, you can add columns using alter table command.
    The table schema change will not affect your entities.
    stop the application.
    change the table columns.
    start application having new entities.
    let me know

  • BDC For MM02 & MASS - BUS1001

    HI,
    I am trying to make BDC for updating Table - MARD, Feild - LGPBE using MM02.
    The problem I facing is the selection of view (General Plant Data/ Storage 1).
    For VERP Materials, it comes to 12th Position, while for HALB Materials is on 15th Position.
    The reason for the same is that for VERP Materials, the Sales Views are not maintained.
    I am facing the similar kind of problem while creating the BDC for MASS (Using Mass Maintenance - BUS1001).
    I need to update the Storage Bin of all Materials.
    What is the correct way to upload the same?
    Thanks & Regards,
    P K Karn

    hi PK you have to program your BDC according to material type..
    eg if material type = HALB
    BDC1
    else if material type = VERP
    BDC2..
    end if
    regards..

  • BDC for quality info

    Hello.
    Appreciate your help on this...
    I am using the BDC for updating the quality info record in transaction QI01.
    under quality agreement tab.i have a multiple linked document.against the material and vendor.
    So in this case how to handle the multiple item record .
    Please reply back ASAP..
    Thanks
    Manoj

    Hello,
    This is quite simple. This can be achieved by a easy recording step in the following way:
    1. Navigate to the "Quality agreement" tab in Change mode.
    2. Place the cursor in the first line of the table control. Push "Insert Line" button which will create a blank line in first line.
    3. Fill the data and push "Save" button.
    You can repeat this step for every document addition in QINF.
    Hope this helps,
    Best Regards, Murugesh AS

  • Updating table equi

    Hi Experts,
    I have a concern regarding updating the field in EQUI.
    I need to update table IHPA parnr and table EQUI-kunde. I used PM_PARTNER_UPDATE for updating table ihpa, but how can i update the kunde in table EQUI?

    Hi Raymond,
    Thank you for the response.
    BAPI_EQUI_CHANGE does not have a field named kunde for CurCustomer that is why i didn't used it, then i search in the net and saw a code and tried it. But in my program it returns me a "Not Successful" output.
       SELECT objnr
         INTO gt_fxihpa-objnr
         FROM equi
         WHERE equnr EQ p_equnr.
       ENDSELECT.
       SELECT parvw
         INTO gt_fxihpa-parvw
         FROM ihpa
         WHERE objnr EQ gt_fxihpa-objnr.
       ENDSELECT.
       IF r_emp EQ 'X'.
         gt_fxihpa-parvw_ext = 'VW'. "'Assigned to Employee'.
       ELSEIF r_third EQ 'X'.
         gt_fxihpa-parvw_ext = 'VN'. " 'Assigned to Vendor'.
       ENDIF.
       gt_fxihpa-mandt  = sy-mandt.
       gt_fxihpa-erdat  = sy-datum.
       gt_fxihpa-erzeit = sy-uzeit.
       gt_fxihpa-ernam  = sy-uname.
       gt_fxihpa-aedat = sy-datum.
       gt_fxihpa-aezeit = sy-uzeit.
       gt_fxihpa-aenam = sy-uname.
       gt_fxihpa-obtyp  = 'IEQ'.
       gt_fxihpa-parnr = p_kunnr.
       gt_fxihpa-updkz = 'U'.
       APPEND gt_fxihpa.
       IF NOT gt_fxihpa IS INITIAL.
       CALL FUNCTION 'PM_PARTNER_UPDATE'
         TABLES
           fxihpa = gt_fxihpa.
         IF sy-subrc = 0.
             COMMIT WORK.
         ENDIF.
       ENDIF.
    DATA: l_valid_equi LIKE itob,
           l_itob_old LIKE itob,
           l_itob_new  LIKE itob,
           l_valid_equi_new LIKE itob,
           l_itob_rec LIKE itob,
           gt_equipment LIKE bapi_itob_parms-equipment.
           gt_equipment = p_equnr.
           CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
               input = p_equnr
             IMPORTING
               output = gt_equipment.
      CALL FUNCTION 'ITOB_EQUIPMENT_READ_SINGLE'
         exporting
           i_lock         = 'X'
           i_objnr        = gt_equipment
         importing
           e_object_rec   = l_valid_equi
         exceptions
           not_successful = 1
           others         = 2.
       IF sy-subrc = 0.
         l_valid_equi_new        = l_valid_equi.
         l_valid_equi_new-kunde  = p_kunnr.
         move: l_valid_equi       to l_itob_old,
               l_valid_equi_new   to l_itob_new.
         CLEAR l_itob_rec.
    *   Function module to udate equipment data
         call function 'ITOB_EQUIPMENT_MODIFY_SINGLE'
           exporting
    *        i_auth_tcode     = 'IE02'
             i_filter_data    = space
             i_write_buffer   = 'X'
             i_post_buffer    = 'X'
             i_commit_work    = 'X'
             i_object_rec     = l_itob_new
             i_object_rec_old = l_itob_old
           importing
             e_object_rec     = l_itob_rec
           exceptions
             not_successful   = 1
             others           = 2.
         IF sy-subrc = 0.
           ENDIF.
       ENDIF.

  • How to create UI for detail table in BP-form

    Hi!
    It is necessary to store some data in the detail table for OCRD. How I can create the UI for such table (like Contact Person in BPMD form)? I can create matrix, but how to force SBO to process my table just as OCPR.
    SBO2004
    Sry for english
    Thanks

    Have a look at all the e-learning material
    e-learning material

  • How to change tablespace for a table in 10g?

    Does anyone know how to change tablespace for a table (like changing tablespace for an index [alter index ... rebuild tablespace ... ])? Many thanks in advance.

    alter table tablename move tablespace newtsname;
    You need to rebuild the indexes after the move.

  • Can anyone tell me the naming conventions for PSa tables

    hi all,
    After the data is loaded into the psa. how to look at the records that are there in psa. And can anyone tell me the naming conventions for psa tables.
    like BIC/????
    thanxs in advance
    regds
    hari

    Hi Hari,
    You want to know the naming convention of PSA table. For that there is a simple technique try this.
    Go to - T code SE11
    In the database table check box give  /BI*  and click search
    next window  in the Description Text box give the r data source name(master)  like
    YIO_ID_ATTR which is assigned to infosource. then click OK.
    then you get the psa table structure.
    You can take structure and check in the T code SE 11
    Hope this is fine.
    Regards
    Sreekanth

  • Update table from SM30 with automatic Time Stamp

    Hi,
    I have created a table maintenance generator for updating table from SM30.
    Now there are fields in my table which are CRETING TIME and CHANGING TIME. Both being TIMESTAMP field (datatype: RSDDTZNTSTMPS).
    Is it possible while user updates records/create new record in the table from SM30, these time stamp field to automatically get populated.
    Also is there any F4 help available for TIMESTAMP field?
    ags.

    Hi,
    You need to do two things inorder to get the desired results.
    1) Go to Screen Layout of the Screen created by table maintenance generator and make the date/time columns to DISPLAY ONLY. This will ensure that user is not able to modify the values at runtime
    2) Write the code in PAI of the Module pool program to populate the values at runtime using Sy-datum/sy-uzeit. (Hint : Search for INSERT/MODIFY statements which will show the location before which you need to write your logic)
    Regards,
    Kshitija

  • BDC for VAP2

    hi,
            For VAP2, i have created the BDC for updating the telephone no for the particular contact person with the sample data ie.,(Fname,Lname,phoneno,fax). But once i took and came to check for the same contact person the phoneno and fax are not yet updated with the sample data(which i used for creating BDC). Can any one plz send me the BDC code for VAP2.

    hi,
        check the fields which u r updating.
        and once run BDC in  A(all scrren ) mode so that u will be able to see wat is actully happening.
    reply back for further queries.
    Thanks.

  • Tables like BDF,BP

    Hi,
    I am trying to find the explanation for some tables like BDF,BP and their relations with RC catalog views but couldnt find any in metalink or in google.
    Can anyone throw some light on these tables and their columns and how they correspond to RC catalog views?
    thanks,
    DB

    the closest you will find is detailed info on the views and view columns in the RC. Check the reference manuals for your version on this.
    For example in 10.2:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcviews.htm#i76440

Maybe you are looking for