Updating SAP standard table   LTAP

I want update  and insert new records into LTAP table.
I should not use MODIFY and INSERT commands to update directly as it is not prefered.
Please give me FM's  which are used to update LTAP table  if anybody knows.
Regards,
jayaram.

Hi
Use the fun module
L_TO_UPDATE_PREPARE
for LTAP table update
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • I want to update SAP standard tables

    Hi,
    I want to update SAP tables using BAPI. can you please suggest me how can i do this and which BAPI i should use for that purpose. I want to update KNVV , FKKMAKO , FKKVKP table.

    Hello Sourabh
    I am not sure if there is a BAPI around for updating KNVV customer data. The appropriate function module would be SD_CUSTOMER_MAINTAIN_ALL.
    Regards,
      Uwe

  • How to change the lenth of existing field in sap standard table

    Hi all,
    can anybody help,my requirement is, how to change the length of existing field in sap standard table....
    thanks in advance..

    Which field are you thinking of in particular?  Are you wanting to increase or decrease the length?
    Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
    Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
    Some screens could cease to work.
    If you decrease length, then you could lose data.
    matt

  • Unable to see SAP standard table in HANA Studio

    Hello Experts,
    I have  requirement to built calculation view of SAP Standard Table like BSEG, BKPF table
    but i am unable to view this table in Catalog view in HANA Studio.
    Do i require any authorization or configuration to be done to view this table in those catalog view in hana studio.
    Regards,
    Mr. Dehey

    Dehey,
    Assuming that your SAP HANA is the primary database for your backend ERP instance (Suite on HANA), you need to have minimum SELECT privilege on the SAP<SID> schema, <SID> is the system identifier of your ERP instance.
    Ask youur SAP HANA admin to grant the SELECT privilege on SAP<SID> schema to your user ID by executing the below SQL query from SQL console.
    GRANT SELECT ON SCHEMA SAP<SID> TO <YOUR_USER_ID>;
    Hope this helps.
    Regards,
    Srinivas K.

  • What are the methods to modify SAP standard tables?

    hi
    what are the methods to modify SAP standard tables?

    .APPEND structures AND CUSTOMIZING INCLUDES.
    these are the two methods.. but customizing includes we, as a developers do not use.
    generally we use .APPEND structures to modify standard tables.
    note that we need an access key to modify atandard tables.
    we can create an apend structure and add that structure to the standard table at the end.
    note that .append structures should only be added only at the end.
    that is the reason we use .append structures to modify standard tables.as we should not include a field in the middle and disturb the original order of the standard table fields as it may effect many objects depending on the standard table.
    but Some standard tables for which there is a LONG datatype field can never be modified.
    the reason is the LONG datatype field should always be there at the end and also .APPEND strutures should always be there at the end. there will be a conflict. so, some standard tables can not be appended.

  • Updating a standard table from a custom tableq

    hi to all experts,
    My requirement is to update a standard table from the maintenance screens of the custom table whatever the data the user maintains in the custom table and save should automatically saved in the standard table
    for that i decided to use the table maintenance events (event 05 ) ( while saving data) how to capture the data from the screens to the form of the table maintenance events.

    Hi gautham,
    The requirement is like that actually user want to maintain value in z table ( with one extra field ) . the table updation of table is important

  • Changing auth group of a SAP standard Table

    I was wondering if someone could advise what the implications are if I changed the auth group of a SAP standard table (PA0033). 
    Does it affect programs behind the scenes, support packs, upgrades?

    I am not aware of any reason why an authorization group on a SAP standard table should not be changed.
    I have also seen this done for specific infotypes without any problems.
    See the documentation on transaction SUCU and SE54, and SAP notes and some of the discussions here on them.
    Kind regards,
    Julius

  • Procedure for creating an Index on SAP standard table

    Hi,
    I need to create an Index on a SAP standard table. Please help me out with the process of doing so.
    Regards,
    Sharadendu

    Please search the forum. You will find lots of related threads:
    how to create an index
    how to create secondary index

  • How to update a standard table

    Hi all,
    I want to update table makt with a program from table itab.
    Loop at itab into wa.
          modify makt from wa.
    endloop.
    I even can not debug the loop...
    Is it not possible to update sap tables?
    Thanks.

    You can definitely modify Standard Database table from ABAP Program.
    1.Syntax for modifying Database table from Workarea is,
    MODIFY dbtab FROM workarea.
    Effect
    When a wa work area that is not table-type is specified, which meets the requirements for use in Open SQL statements, a line is searched for in the database table that has the same content in the primary key as the corresponding beginning part of the work area.
    If such a line is not found, a new line is inserted according to the same rules as for the INSERT statement.
    If such a line is found, this line is overwritten according to the same rules as for the UPDATE statement.
    If the change would lead to a double entry in a unique secondary index, then it is not executed and sy-subrc is set to 4.
    Notes
    The wa work area should always be declared with reference to the database table or the view in the ABAP Dictionary.
    If the the database table or view is specified statically, then you the specification of the work area using FROM wa can be ommitted outside of classes if a dbtab table work area is declared for the corresponding database table or for the view using the TABLES statement. The system enhances the MODIFY statement implicitly with the FROM dbtab addition.
    Eg. :
    DATA message_wa TYPE t100.
    message_wa-sprsl = 'EN'.
    message_wa-arbgb = 'MYMSGCLASS'.
    message_wa-msgnr =  '100'.
    message_wa-text =  'Some new message ...'.
    MODIFY t100 FROM message_wa.
    2. Syntax for changing Database table from internal table is ,
    MODIFY dbtab FROM TABLE itab.
    Effect
    If an itab internal table is specified, the system processes all lines in the internal table according to the rules for the wa work area. The line type of the internal table has to meet the requirements for use in Open SQL statements.
    If the change to a line in the internal table would lead to a double entry in a unique secondary index, the corresponding line is not inserted and sy-subrc is set to 4. If the internal table is empty, sy-subrc is set to 0. The sy-dbcnt system field is always set to the number of lines that were actually processed
    Reward if helpful.

  • Can we update oracle standard table Attributes column by custom trigger?

    Can we update the oracle Standard table's Attributes column using custom trigger? Is it allowed by oracle? Is this supported?
    Thanks

    ATTRIBUTE columns store DFF information and therefore custom code can be used to update their contents. Care must be taken that such updates do not cause "logical" corruption (an ATTRIBUTE column may be designed to store the color of a product, for example, but an incorrect SQL statement can update the value to a numeric one, thus causing corruption - Oracle does not have a means to check the validity of these update statements). Also, some localizations, such as Brazil and India, reserve some ATTRIBUTE columns for their use - updating such columns is not supported. More information may be found in the Flexfields Guide for your release at http://www.oracle.com/technology/documentation/applications.html
    HTH
    Srini

  • How to Create Authorization Group for SAP Standard Tables

    All,
    I have 10 standard tables which are required to maintain by the user in Production environment.
    Is there any way to create a custom auth group for the standard table?
    Is it possible to assign same table in two different auth groups?
    Please advice
    Thanks,
    Kotesh

    Multiple tables can be linked to an auth group, but one table can be linked to only one auth group.
    You cannot link one table to more than one auth group.
    It is always advised to try to find an existing auth group having tables of same functinality and criticality, before creating a new auth group.
    In case you don't have any such auth group, I feel you can create a Z auth group using se16->tbrg.
    You can also create auth group using tcode se54.

  • How to remove all the fields added to CI_Include in Sap Standard table

    Hi, 
    I have added a new custom field in the CI_include structure in a standard SAP table. However now I want to remove that field but it not allowing me to remove the field as there is no field left in that CI_Include.
    Has anybody tried this before?

    Hi,
    I think you have to delete the whole CI. Go to SE11 enter the name of the CI and press delete.
    Not sure, but maybe this is the solution
    Regards Rudi

  • SAP Standard Table

    Hi,
    Can any one help me what are the below mentioned table? how would be useful SAP APO system?
    since, we are having huge performance promblem and planning to archive data from the following table, request you to please let me know what impact if we are archiving these table.
    Table Name : /sapapo/sdptmsv
                        RSBATCHCTRL

    Hi,
    You can check the tables cdhdr AND cdpos tables.
    Use tcode scu3 for table logging details.
    Regards
    Bhupal Reddy

  • Updating SAP table field directly?

    Hi all,
    The client is using SAP for 2-3 years and this will be replaced by new SAP system ( same version - 4.6c) in few months.
    So as to get data from old system we are doiong conversion right now. In this client, PO creator name is very important and it drives so many things. When we will do conversion and convert old PO into the PO in the new system, the username ( created by) will be "batch user".
    Client somehow want to retain the username, the original username of old POs.
    For this, they are asking to update the EKKO-ERNAM field directly once the new POs are created ( we will have old PO - new PO mapping and user name).
    In my view, it is not advisable to update the SAP standard table directly. But i want the opinion from you guys that what are the implications of updating field directly. Is it advisable? Is there any other way to meet this requirement?
    Thanks,
    Pratik

    Hi palaniappan,
    1. Good question and good concern !
    2. Your concern is absolytely correct.
    3. Sap does not advise to
       update SAP standard tables directly
       thru any z program
      (It may stop support in future)
    4. But for your requirement,
       it the po user will be "batch user",
       then
       thru some Z program,
       u may do so.
    5. BUT
       Please take care that
       a) u have signed specifications of this logic
          and concern from the FUNCTIONAL CONSULTANT !
         (only after that one should do)
    regards,
    amit m.

  • Standard Table to be updated based on User action

    Hi Friends ,
    i have a requirement , its a report and in that based on the user action ( if the user checks a check box that is available in the output screen of the report and saves it)  the value should be updated in a standard table as 'X'. I have appended the field in the standard table and now i need to write a logic at user command to populate the zfield that i have added in the table based on the user's input. Can someone suggest me how to proceed further on this ? Kindly let me know if you have any sample piece of code related to this scenario...
    thanks in advance.

    HI,
    Usually we can udpate the tables using UPDATE statement.
    But SAP will not suggest to use these statements which will hit the table directly. We need to use the standard transactions to create or update the standard tables.
    For eg: you are using a ztable.
    then once your report is ready, then use the user_command form ( for ALV) .
    fetch the records where the user have selected the records ( check box = 'X").
    *&      Form  USER_COMMAND
    FORM user_command USING g_ucomm     TYPE sy-ucomm
    gs_selfield TYPE slis_selfield                                          .
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ls_ref1.
      CALL METHOD ls_ref1->check_changed_data .
    this will update the check box values in your internal table.
    now you can use
    loop at itab into wa where check eq 'X'.
    fill your final internal table where you need to update the table.
    endloop.
    loop at newtable.
    update ztable set value = 'X'
    where keyfield = w_keyfield.
    if sy-subrc eq 0.
    message s000.
    endif.
    endloop.
    endform.
    regards,
    Venkatesh

Maybe you are looking for