Modifying a custom table

i have added three new fields to a custom table. A lot of programs are using that table. Does it affect any of those or while transporting it to PROD it activates all those programs and displays the error if any such process

Hi Deepthi,
This can be an issue if the fields have been added in the middle of the structure in the table. Since if you are using commands like INTO TABLE (which does a field to field mapping) the program(s) would start dumping.
I would suggest before you release the transport with the changes you test (by executing) programs which are using this table. Just a syntax check might not suffice.
Aditya

Similar Messages

  • "CX_SY_OPEN_SQL_DB" ERROR  when modifying a custom table

    Dear friends,
    I get this runtime error "DBIF_RSQL_SQL_ERROR"
    "CX_SY_OPEN_SQL_DB" excpetion raised while am trying to modify a custome table . says deadlock detected while waiting for resourcebelow is the code snippet please suggest solution on how to avoid the error. thanks for the help in advance.
    kathy
    *Get all packspec levels
      lt_levels                            =  iv_packspec_content-levels.
      loop at lt_levels into ls_levels.
        if ls_levels-hutyp is not initial.
          ls_zpackspec-guid                =  ls_levels-guid.
          ls_zpackspec-aennr               =  ls_levels-aennr.
          ls_zpackspec-total_quan          =  ls_levels-total_quan.
          ls_zpackspec-level_type          =  ls_levels-level_type.
          ls_zpackspec-/cfscmx/nest_fc     =  ls_levels-/cfscmx/nest_fc.
          ls_zpackspec-maxstack            =  ls_levels-maxstack.
          ls_zpackspec-unit_tw             =  ls_levels-unit_tw.
          ls_zpackspec-g_weight            =  ls_levels-g_weight.
          ls_zpackspec-unit_tv             =  ls_levels-unit_tv.
          ls_zpackspec-g_volume            =  ls_levels-g_volume.
          ls_zpackspec-trgqty              =  ls_levels-trgqty.
          ls_zpackspec-flg_minimum_ps      =  ls_levels-flg_minimum_ps.
          ls_zpackspec-creadat             =  sy-datum.
          ls_zpackspec-matid               =  iv_packspec_content-content-matid.
          ls_zpackspec-hu_create           =  ls_levels-hu_create.
          ls_zpackspec-unit_gw             =  ls_levels-unit_gw.
          ls_zpackspec-g_capa              =  ls_levels-g_capa.
          ls_zpackspec-unit_gv             =  ls_levels-unit_gv.
          ls_zpackspec-hutyp               =  ls_levels-hutyp.
          ls_zpackspec-block               =  ls_levels-block.
          ls_zpackspec-length              =  ls_levels-length.
          ls_zpackspec-width               =  ls_levels-width.
          ls_zpackspec-height              =  ls_levels-height.
          ls_zpackspec-unit_lwh            =  ls_levels-unit_lwh.
          ls_zpackspec-nest_ftr            =  ls_levels-nest_ftr.
          if not ls_elementgroup is initial.
            sort ls_elementgroup by guid.
            read table ls_elementgroup assigning <ps_el_group>
                                        with key guid = ls_levels-elementgroup
                                   binary search.
            if <ps_el_group> is assigned.
              ls_elemgroup = <ps_el_group>-elements.
            endif.
            sort ls_elemgroup by hurelevant.
            read table ls_elemgroup assigning <ps_elem>
                                     with key hurelevant = 1
                                binary search.
            if sy-subrc eq 0.
              ls_zpackspec-hurelevant      =  <ps_elem>-hurelevant.
            endif.
          endif.
          append ls_zpackspec  to  lt_zpackspec.
          clear  ls_zpackspec.
        endif.
      endloop.
    **Update Packspec data for each level in the table ZPACKSPEC.*
      *if not lt_zpackspec is initial.*
        *modify zpackspec from table lt_zpackspec.*
        *ev_zpackspec  =   lt_zpackspec.*
      *endif.*

    Kathy - do you have duplicate entries for the same key fields in the internal table you are using for the update?
    Rob

  • How to MODIFY A CUSTOM TABLE  FROM A FLAT FILE

    Dear Friends,
                     I have a requirement where i have to upload data from excel file to my custom table  so i have used a FM
    'TEXT_CONVERT_XLS_TO_SAP' and i have collected data into a internal table , till here i am able to get data correctly , now i hae to upload this data into a custom table .
    the flat file is having  6 fields and the custom table is having
    8 fields , for uploading the data into this custom table from the internal table where i have collected above iam getting problem . Actually iam using a modify statement to update the custom table .
    the flat file which i have collected into the internal table is as below :
      IDNo.     Name     Date      Location   Designation  Dept
      101       Raja      4/12/2007  Delhi      Manager      HR
      102       James    4/12/2007  Delhi      Clerk          HR
    Custom table  is having the below fields
    IDNO.  Name  Date  Location Designation  Dept   Manager
    101                                                                   Raja
    now when i run the program iam getting the problem   while usign the modify statment is the ID no which is already having
    a record as  IDno = 101  and manger = Raja.......with the other fields   name , date, location,designation and dept as blank.
    if i want to fill this fields from my flat file the modify statment
    just filling all the fields  for the ID no = 101  and manager field which already having Raja as being overwritten by space .....
    becasue this field is not being there in the flat file.
    the code iam using as follows.
    The flat file is having with the below structure
    TYPES: BEGIN OF t_emp_data,
              IDNO(11) TYPE c,
             Name(13) TYPE c,
             Date(20) TYPE c,
              Location (40) TYPE c,
             Designation(40) TYPE c,
             Dept(40) TYPE c,
             end of t_emp_data.
    The Custom Table(ZEMP_DATA) is having with the below structure
    TYPES: BEGIN OF t_emp_data_table,
              IDNO(11) TYPE c,
             Name(13) TYPE c,
             Date(20) TYPE c,
              Location (40) TYPE c,
             Designation(40) TYPE c,
             Dept(40) TYPE c,
             Manager(20) type c,  -- this is the extra field in table
             end of t_emp_data_table.
    data :
    it_empdata TYPE STANDARD TABLE OF t_emp_data,
    it_empdata_tmp TYPE STANDARD TABLE OF t_empdata_tmp,
    wa_empdata_tmp  type t_empdata_tmp,
    wa_empdata type t_emp_data.
    loop at it_empdata into  wa_empdata.
      move-corresponding  wa_empdata to   wa_empdata_tmp.
      modify ZEMP_DATA  from  wa_empdata_tmp .
    endloop.
    could any one please let me know what i have to do inorder to not get the manager field data not being overwritten with the modify statment , for the IDNo. 101  . I want the data which is already ( manager = Raja) shouldnt not be get overwritten with Space.
    please help me in this regard
    Regards
    Madhuri.

    Hi,
    use a slect statement before
    "move-corresponding wa_empdata to wa_empdata_tmp."
    select manager
    from ztable
    into wa_empdata_tmp-manager
    where id = 100.
    regards,
    lavanya

  • Including transport request while modifying the custom table

    Hello Experts,
    I have a scnerio like, I have to insert/modify some records in my custom table. Now we want that these records should come under a transport request, so that we can track which records are for which user.
    I am developing a report and including a parameter for transport request in the selection screen. So the report will take TR number directly from selection screen, but how to include it for the records inserted.
    Regards,
    Harjeet

    Hello Altaf,
    I think you did'nt understood my issue. I am not using and transaction. I am creating a report program which inserts new entries into my custom table based on the flat file on my presentation server.
    Now I want these entries to be inside a transport request which is there in the selection screen.
    Hope this gives the clear idea of my specification.
    Regards,
    Harjeet

  • Prompt for transport request if records are added/modified for custom table

    Hello Experts,
    A couple of questions,
    1. How do we prompt user to create a TR whenever he changes a record in my custom table
    via SM30? my custom table has a maintenance type of 'C' - customizing already.
    2. How do we transport the custom table contents to another client?
    Thank you guys and take care!

    Hello
    Regarding (1) just have a look at a standard maintenance view like V_T001W (SE11 -> menu Utilities -> Table Maintenance Generator ):
    Here you can see that the option Standard Recording Routine is chosen which is responsible for prompting for a transport request as soon as records of the table/view are changed.
    Regards
      Uwe

  • Modifying the custom tables TBZ* generated by EEWB for BUPA?? Advisable?

    Hi,
    We have added new fields in BUPA using EEWB. The new fields are automatically added in the new section created on screen. Now our requirement is to move these fields to one of the existing sections and delete the new section. Is it advisable?
    I assume that in the EEWB extension wizard, we do not have any option of generating the new fields in existing custom sections. Please correct me if I am wrong.
    As per our current plan, To accomplish this change we are planning to modify the tables TBZ3H, TBZ3I, TBZ3C and TBZ3D for the view--> section --> screen mapping. Will that be enough or some more changes will be required?
    Also, a new BDT application is created for the new section and there are corresponding entries in TBZ0A, TBZ0B, TBZ0C and TBZ1F. Now we are not sure that if we modify/delete these entries, how the system would behave. Any pointers are welcome!!
    Specially for TBZ1F entries, should the new events function modules created for the new application be assigned to the already existing application.
    Please advise.

    http://scn.sap.com/people/rakesh.chugh/blog/2009/12/28/deletion-of-eewb-extensionproject-in-sap-crm-for-bupa
    Just in case you are looking for this info

  • Custom table entry if transaction fails

    hey ppl,
    One doubt. I am using a exit in sales order and the requirement is that once the exit is triggered,few values must be updated on the custom table that i have created. My question s that, i am able to modify my custom table but if for some reason ,after my exit if the transaction fails :
    1. would the custom table entry be reversed back automatically?
    2. Else, is it our responsibility to reverse the entry in the custom table?If yes, can you please guide me how to do it?
    Thanks in advance.

    1. would the custom table entry be reversed back automatically? Can't be sure on this. the entry will be updated to table once the Current LUW is updated.
    2. Else, is it our responsibility to reverse the entry in the custom table?If yes, can you please guide me how to do it?
    Yes. If entry is there you wll require to DELETE it otherwise you can just to ROLLBACK WORK.

  • Issue in Modifying custom table

    Hi Experts
    Program Y00_MM modifying custom table Y00_IFS074 using internal table.
    we have a sales company code field in table.
    Internal table company code value is 00021345 .
    But in custom table it updated as 21345. It should be 00021345.
    few days back no problem with table updation. Now only i'am getting this issue. There is no changes in Report.
    Kindly help me.

    Hi,
    Please use the below FM for the field BUKRS.
    FM : CONVERSION_EXIT_ALPHA_OUTPUT.
    This FM will add the leading zeros according to the field length.
    Hope this will resolve your problem...

  • Inserting/modifying into custom Z table

    Hi Gurus,
    I am trying to extract a set of data from cdhdr and cdpos into a custom table.
    Basically, what I did is the transform/aggregate data from cdpos and cdhdr is stored in an internal tables and later the data is inserted into a custom table. The purpose of doing so is to enable fast retrieval of records when the user view the report.
    The program works fine in Development and QAS box. Records were inserted. But in Production, no record was inserted.
    Any idea on why this happen? Is is due to the size of the records fetched into internal table? Something to do with buffers and memory?

    Oh.. it is because of the lots of the data and you are trying to manipulate and insert the data in Z table.
    So, try to schedule the job in the Background.
    Like: Run the report .. on the selection screen press F9 to execute the program in background. This will schedule a job in SM37. The TIME_OUT problem doesn't occur in the background job.
    Regards,
    Naimesh Patel

  • Creating Customized Table and Modify Table Maintenance Screen

    Hi,
    I have already created customized table and generate the table maintenance screen, however i encountered 1 problem which is i cannot add new PAI and PBO module in the flow logic. Every time i wanna add new module, i will be getting error message saying that my user currently editing the screen. Any suggestion ?
    Thanks.
    Jon

    Hi <b>Jonathan</b>,
    Please close all the windows and relogin
    For making PAI and PBO modules, Please activate all the Table and its maintainence view.
    Now first make emptu file with <main filename>_PAI and <main filename>_PBO save and activate them.
    Now put the logic in them and then activate now call these in the main prog.. it should work...
    While activation all the sub program modules should be activated already... i suggest select all the prog and sub progs and activate them all at once...so the system automatically takes care of inner activations first...
    If u have some more quereies... please feel free to contact me...
    Regards,,
    <b>Abhishek</b>

  • Reg:Modify the screens of the custom table

    Hi all,
    I Have a requirement in which user want to have the screens for a custom table.
    In the first screen there should be fields to be displayed and there should be buttons to add,change,delete the data from the table.
    And in the next screen the data should be displayed.
    For this how should i go..any hints please.do i need to change the table manitanence program or should i create a module pool program..

    It is better to go for a table Maintenance generator.
    Srach the forum with the search string as Table Maintenance Generator.
    YOu will find a lot of threads.
    Check this :
    http://sapstore.blogspot.com/2006/11/table-maintenance-generator.html
    Regards,
    Ravi

  • "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB" while updating the custom table

    hi friends...
    i am posting fico document using bapi BAPI_ACC_GL_POSTING_POST.
    after that i am updating the document number to my custom table.
    but in some cases while updating the document in my custom table i am getting the fallowing dump..
    in ST22
    How to correct the error:
    Database error text........: "[1205] Transaction (Process ID 66) was deadlocked
    on lock resources with another process and has been chosen as the deadlock
    victim. Rerun the transaction."
    Internal call code.........: "[RSQL/UPDT/ZIF004_PKT ]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "ZFI_01_MONTHLY_RESULT_FRM_PKT" or "ZFI_01_MONTHLY_RESULT_FRM_PKT"
    "UPLOAD_SAP"
    Source Code Extract
    LOOP AT i_zif004_pkt_sum .
    UPDATE zif004_pkt SET xblnr = i_zif004_pkt_sum-xblnr ---> i am getting DUMP here
                              gjahr = i_zif004_pkt_sum-gjahr
                              sap_flag_posting = i_zif004_pkt_sum-sap_flag_posting
                          WHERE compcode = i_zif004_pkt_sum-compcode
                         AND ccode = i_zif004_pkt_sum-ccode
                          AND wbselement = i_zif004_pkt_sum-wbselement
                          AND kostl = i_zif004_pkt_sum-kostl
                          AND code = i_zif004_pkt_sum-code
                          AND month1 = l_ltx
                          AND year1 = p_year.
        IF sy-subrc = 0.
          WRITE :/ 'Document ', i_zif004_pkt_sum-xblnr, 'is posted for ', i_zif004_pkt_sum-code.
        ENDIF.
      ENDLOOP.
    kindly give some inputs..
    regards
    Selva

    Hi,
    You will face this issue if your oracle data base is lack of work processes. try to check the work processes and increase them if possible with the helps basis guys.
    check the below thread.
    DI job failed ORA-12537: TNS:connection closed.
    Regards,
    Venkatesh

  • How to find out which program fill a custom table ?

    Dear All,
    I am trying to find out which program fill custom table, I tried se11, which programs used this custom table via where used list but could not find. Is there any different way ?
    Regards

    Hi Sappcon,
    yes, it is as Brad said, but you should extend the approach regarding this tables content: If it is related to an existing business object (i.e. order, delivery or the like), you may have a look at user exits/Badis in that field.
    Also, the dynamic approach is possible. First use report RPR_ABAP_SOURCE_SCAN to find the name of the table in all programs in customer name space - it may be defined as a constant in program/function group/class.
    If the dynamic approach is used, the name of the table may be determined by reading another (custom) table or even in a programs text pool. You may find this by searching a pattern UPDATE() - or MODIFY/INSERT in customer programs.
    If the table has update date/time fields, check what jobs or online activities can be responsible.
    If, after all, you still do not know, then I'd say this is a consulting issue
    Regards,
    Clemens

  • Update real time account general data into a custom table

    Hi,
    I have created a z table for storing account general data for some business requirement. I have created a program and executing batch job to update this z table on periodic basis. Can anyone suggest some other alternative solution to update this z table whenever an account gets created/modified in CRM system? Instead of running a batch job periodically, I need a real time replication of the account data in this custom table.
    Thanks and Regards,
    Sneha.

    Hi,
    Thanks for your reply.
    But, Can you elaborate the solution, Can we use Business Transaction Events(BTEs) for updating Partner data? Will these be triggered for Account Creation/Modification. If so, Can u suggest any BTE which can be used for my requirement?
    Thanks and Regards,
    Sneha.

  • OAF Update of Custom Table causing ORA-600 with database block corruption?

    Using OA Framework 12.1.3, running under EBusiness Suite 12.1.3
    Created Custom Web page operating against Custom Tables
    ISSUE
    On about 2% of new records, when OAF is UPDATING a record in a certain table, it  is failing with
    java.sql.SQLException: ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [kddummy_blkchk], [815], [26412], [6110], [], [], [], []
    ORA-06512: at line 1
    Before the DBA turned on 10.2.0.4.0 DB_BLOCK_CHECKING parameter, this actually
    resulted in corrupted data blocks in the database and corrupted indexes that
    eventually crashed the database and we had to do a full recovery with 2 days downtime.
    Now that we have turned on DB_BLOCK_CHECKING, it simply errors out and puts things
    in the alert log, but the records still fail to update as the writes are blocked.
    Then oddly, a few days later.. the records become editable.  And others fail.
    This is ONLY happening on the one particular table being updated by OAF.  Other custom pages
    posting to other custom tables are having no problems.   We've CTAS'd the table back and
    forth and recreated the indexes, and that did not help.
    Support says to post to the Forum  ( So I am! ) or hire Oracle consulting.. which doesn't make
    much sense given the error.  The Recovery Team that helped us in a separate SR ( we had
    to do db_repairs not just recovery ) felt it was an important problem the OAF team needed to
    strongly review.
    Anyone else encounter this already and know of a solution?
    TIA
    Karl

    After MANY hours of trial and error and research, we've identified ONE use case that seems to apply to 90% of the issue we have encountered.
    YMMV.
    The BC4J generated SQL which is generating the ORA-600 is
    BEGIN UPDATE XXRETURNHEADER ReturnHeaderEO SET INTERNAL_TEXT=?,LAST_MOD_USERNAME=?,OBJECT_VERSION_NUMBER=?,LAST_UPDATE_DATE=?,LAST_UPDATED_BY=?,LAST_UPDATE_LOGIN=? WHERE RMA_NUMBER=? AND ORGANIZATION_ID=? RETURNING TROUBLESHOOT_DATE, FAA_TAG_DATE, FAILURE_ANALYSIS_DATE, LAST_MOD_DATE, FAA_REVISED_DATE, TTE_TECH_SEND_DATE, TTE_REP_RESPONSE_DATE, TTE_REP_APPROVED, TTE_RMA_RANDOM_KEY, OBJECT_VERSION_NUMBER, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN INTO ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?; END;".
    We determined that if TTE_RMA_RANDOM_KEY was not a null value, we would get an ORA-600 error whenever we did an APPLY from the OAF Page to update the record.
    If we set that table attribute to NULL for the record using SQL.. then used the  OAF Page to APPLY.. it worked fine and the record saved without error.
    We then modified the EO to NOT   "Refresh After Update"  ( thus removing it from the RETURNING clause generated )... and even if the TTE_RMA_RANDOM_KEY
    had a value... the OAF Page APPLY worked and the record saved without error.
    I cannot identify anything from the User programming side that is wrong ( and neither could Oracle ), and it REALLY should be in the RETURNING clause list of
    attributes.. but this is the only workaround I've found that doesn't crash the Page and irritate the user to no end.
    I have reported my findings via the SR back to Oracle to do with it what they may... but it looks strongly ,to me, to be an error in the BC4J/JDBC/Database
    coordination and passing data between those black boxes.

Maybe you are looking for

  • I can't type anything.  Typewriter comes up for a second and phone shuts what I was on and goes to main desktop page.

    Today, I cannot type anything.  In notes, reminders, email, safari, facebook, every time I go to put the curser on a spot to type, or try to add another note, the phone jumps out of the file I am in and goes to the main desktop page.  It worked aroun

  • Display a blob column in a classic report

    We are using Apex 4.0, and trying to display a blob on the report using: decode(nvl(dbms_lob.getlength(ci.photo),0),0,null,'<img src="'||apex_util.get_blob_file_src('P2_PHOTO',ci.ci_nbr)||'" height="75" width="75" />') img. What appears on the report

  • Parametering a graph in a web report

    I am using a graph in a web report. I used the graph wizard from Reports to implement the XML code in a JSP file . I would like to send a parameter to this graph. The graph is based upon a querry I want to parameter ( the where instruction ). The pro

  • Colour shift - how to fix?

    I'm working with an old video clip which features bold yellow text. However, the chroma has shifted slightly to the left giving it a blurred look, with the yellow appearing slightly outside of the text itself. Is there a way to fix this?

  • LRT224 Load Balancing Servers

    I get the process of load balancing outbound traffic, and even protocol binding so that servers send out traffic only on a specific WAN port. What I do not get is how to load balance INBOUND traffic also to those servers and ensure that the servers r