Add entries to standard table

Hey guys,
how can i add entries to a standard table (generic table)?
I have a function modul which has an export table of standard table and i'd to add some entries to this table. How can i do that? i don't know the table line type.
    thx,
       Wei-Ming

Hi Wei-Ming,
I was not sure what you were asking at the very first question, but it was clear for me at your 2nd post (but it seems it was not obvious for the other persons).
You must use field symbols or data references to manipulate the generic complex data objects (structure or internal table).
For example:
FIELD-SYMBOLS <ls_line> TYPE ANY.
FIELD-SYMBOLS <l_field> TYPE ANY.
APPEND INITIAL LINE TO et_test ASSIGNING <ls_line>.
ASSIGN COMPONENT 1 OF STRUCTURE <ls_line> TO <l_field>.
or
DATA dref TYPE REF TO DATA.
CREATE DATA dref LIKE LINE OF et_test.
ASSIGN dref->* TO <ls_line>. "dereferencing data reference
I let you search the forum and the ABAP documentation for more information.
BR
Sandra

Similar Messages

  • Short dumop in J2I5 (provide duplicate entry in Standard table)

    Hello Expert ,
                              We have a problem in  T.Code J2I5  ( Excise Register Extraction) input entry is lelect Excise group 20 . and a date   from 04.08.09 onwards. and select the register RG23D . it shows the run time error  ( Eg The ABAP/4 Open SQL array insert results in duplicate database record ) .  but in the standard Tcode is there possible to provide duplicate entry in Standard table
    Thaks & regards
    Aditya Kr Tripathi

    Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC
    Except.                CX_SY_OPEN_SQL_DB
    Date and Time          29.01.2010 10:57:09
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    problem occurs in this code :
       assign I_RG23D_TAB-I_RG23D_TYP to <x_rg23dtyp> casting.
       <x_extrctdata> = <x_rg23dtyp>.
        class CL_ABAP_CONTAINER_UTILITIES definition load.
        call method CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C
          EXPORTING
            IM_VALUE               = i_rg23d_tab-i_rg23d_typ
          IMPORTING
            EX_CONTAINER           = i_report_tab-extrctdata
          EXCEPTIONS
            ILLEGAL_PARAMETER_TYPE = 1
            others                 = 2.
       I_REPORT_TAB-EXTRCTDATA = I_RG23D_TAB-I_RG23D_TYP.
        COMPUTE I_REPORT_TAB-EXTRCTLNGT = STRLEN( I_REPORT_TAB-EXTRCTDATA ).
        APPEND I_REPORT_TAB.
      ENDLOOP.
      IF M_EXTRACTED = 'X'.
        LOOP AT I_RG23D_KEY.
          DELETE
          FROM  J_2IEXTRCT
          WHERE BUDAT    = I_RG23D_KEY-BUDAT
          AND   SERIALNO = I_RG23D_KEY-SERIALNO
          AND   REGISTER = I_RG23D_KEY-REGISTER
          AND   EXGRP    = I_RG23D_KEY-EXGRP.
        ENDLOOP.
      ENDIF.
    Control table check here for data Extraction
      INSERT J_2IEXTRCT FROM TABLE I_REPORT_TAB.
    If the insertion of the extract table is successfull then the table
    for Extraction is Inserted
      IF SY-SUBRC EQ 0.
        PERFORM FILL_EXTDT USING C_RG23D M_EXTRACTED.
      ENDIF.
    ENDFORM.                                                    " RG23D
    *&      Form  RG23CPART1
    Purpose : RG23C Part I extraction logic
    FORM RG23CPART1.
      DATA: $PART1      TYPE PART1_TYP,
            $LINCNT     LIKE SY-LINCT,
            M_EXTRACTED VALUE '',
            $RC         LIKE SY-SUBRC.
    *********************************************************************************************8

  • How to add value in standard table

    Hi
    i need to add one field in standard table VBAK  so i have added one field ( for eg i have added  status as field in VBAK ) in that standard table through append structure
    than i used one user exit USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ
    in this i get values in the structure XVBAK
    than i moved the 'X'  in that status field shown below
    XVBAK-STATUS = 'X' .
    after that sales order get generated
    but when i open table VBAK and enter that VBELN or sales order no. i dont find any value in that status
    so pls tell how can i find value  of that field in table VBAK .
    Thanks
    Taran

    after moving the value did u append the table.
    Check it.

  • CEWB - add Columns to standard Table control using enhancement

    hi,
    there is a table control in CEWB where i want to add a field from table STPO. Is this possible to add fields to standard tble control. If yes, what is the method? Enhncement or i read somewhere GUIXT. Whats that?
    Any help will be really appreciated.
    I hv got some list of BADIs, but none of them re triggering in the "Component assignment" screen:
    EWB_SELECTION
    CEWB_TSK_MENU_INTERN
    CEWB_TSK_MENU_EXTERN
    CEWB_OPR_MENU_INTERN
    CEWB_OPR_MENU_EXTERN
    CEWB_COM_MENU_INTERN
    CEWB_COM_MENU_EXTERN
    CEWB_CHA_MENU_INTERN
    CEWB_CHA_MENU_EXTERN
    CEWB_MST_MENU_INTERN
    CEWB_MST_MENU_EXTERN
    CEWB_GEN_MENU_INTERN
    CEWB_TSK_UPDATE
    CEWB_TSK_SCREENS
    ags.
    Edited by: ags on Jan 20, 2012 7:11 PM

    hi,
    I am able to do this using SAP GUIXT scripts. But since I am new to this Script would like to get some advice on it like is it best practice to use this technique in such situations? Also how do i make this change universl, like how should i deliver this develoipment to the customer nd other users? what kind of settings need to be done.
    Any hint will be really helpul.
    Thanks in advance.
    Ags.

  • Want to add field in standard table control - me21n , me22n , me23n

    Dear All ,
    I have come across a situation where I want to add a field in a standard table control .
    But how to proceed for tht I am not getting .
    In the standad transation me22n in the ITEM  OVERVIEW table control I want to add Curreny field in the table control structure
    i.e MEPO1211 I have append the field in MEPO1211_DATA it is even visible in run time in the structure but not visible in table control and in table control settings also.
    How can I add one more column or some standard procedure to do that. Please suggest .
    Thanks & Regards
    Aryan

    hi,
    If you don't want to access key...then only option is ,you have to search USER Exit or BADi (Try using BADI ME_GUI_PO_CUST) for me22n transaction......to adding the field.
    Regards
    Gaurav

  • OIM: Getting an error when trying to add entry into child table

    Hi OIM Guru,
    I have a process form and child table I am using for provisionng. Everthing was working so far, but suddenly I am getting the following error whenever I try to add an entry into the child table. I
    Can someone tell me what might be going on here?
    Thanks a lot
    tcFormInstanceOperationsBean/addProcessFormChildData encounter some problems: maoErrors:Cannot schedule a task for child table change, schedule item save failed
    tcFormInstanceOperationsBean/addProcessFormChildData encounter some problems: Cannot schedule a task for child table change, schedule item save failed
    Thor.API.Exceptions.tcAPIException: Cannot schedule a task for child table change, schedule item save failed
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.addProcessFormChildData(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.addProcessFormChildData(Unknown Source)
    at com.thortech.xl.ejb.beans.tcFormInstanceOperationsSession.addProcessFormChildData(Unknown Source)
    at com.thortech.xl.ejb.beans.tcFormInstanceOperations_2j82mm_EOImpl.addProcessFormChildData(tcFormInstanceOperations_2j82mm_EOImpl.java:1298)
    at com.thortech.xl.ejb.beans.tcFormInstanceOperations_2j82mm_EOImpl_CBV.addProcessFormChildData(Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsClient.addProcessFormChildData(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)

    Never mind. I got it figured out.
    What happened is I changed my adapter that is being called and because of this change the task mappings in Process Definition got wiped out and I had to remap all the attributes again. It now works.
    Whew!! It took me a while to figure this out.
    Thanks

  • How to read specific entry in standard table view :

    Hi Friends,
    Can anybody please give me code on how to read a record in table view having 5 records.
    I have a requirement on how to read the specific address out of 5.
    I tried doing in ON_NEW_FOCUS method.
    Thanks,
    Chitrakant

    Hello,
    Try to do it in the DO_PREPARE_OUTPUT mathod before calling super->do_prepare_output( ). What we need to do is,
    1. get the collection from context node ( get_collection_wrapper )..
    2. filter the entity based on the value ( using iterator !!! )
    3. set back to context node
    4. call super->do_prepare_output.
    Hope it helps.
    Regards,
    Sandeep Kumar B

  • Add entries to database tables using update function module

    Hi All,
    I have a small requirement, in which I need to update Z-tables usimg update function module in update task. In the calling program, I have gathered the data in a field symbol value of type any. I need to pass the same to that function module to update the data which is in the field symbol.
    Please guide me how to achieve this technically.
    Thanks in advance,
    Pradipta .

    Hi,
    I believe you already have evrything with you.....Start Coding the same and come back with any Coding issue.
    I believe you will not be able to pass the Field Symbol in FM Interface.....You need to pass the Variable which Field Symbol is referring....

  • How to add entry to MEMSD_DEP (Packagesize for T51) second ;-)

    Hi,
    ok I posted the thread "How to add entry to MEMSD_DEP (Packagesize for T51)?" before and now I have created the view and I am able to add entries to the table....
    BUT:
    If I try to add the entry like they are described in the help.sap.com - search for "T51 MEMSD_DEP" - I get the following error:
    "Entry T51SYNCBOCONFIG does not exsist in MEMSD - check your entry."
    And it is right in the MEMSD there are all my applications and patches I have uploaded in the webconsole, but no T51SYNCBOCONFIG....
    Can you help me out?
    Greetings,
    Kai

    Hi Kai Meyer-Spradow,
    <<<<
    one main thing ..
    <b>In that documentation , they have specified that there is one MCD named T51SYNCBOCONFIG .. I think in that sense ,
    it written there as ,,</b>
    1. Start the transaction mi_mcd.
    2. Enter the application name and choose Display MCD.
    3. Choose Display <-> Change.
    4. Choose the SyncBO tab page.
    5. Enter the following settings for each SyncBO of type Back-End-Driven:
      The object ID in the SyncBO-ObjectID column.
    The delay with which the job is to be scheduled in the Interval column.
    6. Choose Save.
    just look at that ...
    >>>>>>>
    just do one think ..
    If that T51SYNCBOCONFIG is not there in ur MI server , create a new MCD with this name and include ur Back - end driven syncBo to this MCD. then proceed.
    These are the primary keys of the table MEMSD_DEP.
    Fields           Check Table
    NAMESPACE               TRNSPACET
    NAME               MEMSD
    VERSION               MEMSD
    TYPE               MEMSD_DEPTYPE
    TYPE_INDEX
    DEPENDENCY_NAME
    MEMSD
    This table is the Mobile Component Descriptor master table.
    This will contain the details of the created MCDs.
    Inorder to insert values in the fields on which we have assigned the check table,
    values must be present in this check table.
    That means , to insert a new value in the NAME field of the MEMSD_DEP table , that entered value must be present in the MEMSD table .
    If T51SYNCBOCONFIG is not in the MEMSD tabel , u cannot insert this value in the table MEMSD_DEP.
    Regards
    Kishor Gopinathan

  • Triggering event when entries inserted in standard table

    Hi Experts,
    I've a requirement to trigger an custom event when entries created in table TOA01 table. We can do this for Z-tables by through options available in table maintenance generator screen. But, in my case its standard table, so i cant change the table. And I dont want to use change document objects. Can you please let me know is there any other method to achieve this.
    Thanks in Advance,
    Siva Sankar.

    Have you checked that if there is a standard event triggered when an entry is done to this table? I think that there might be. If an event is triggered, you can for example create a check function module, and trigger your own event from there.
    Regards,
    Karri

  • How can we add customize seardh help in standard tables?

    Hi,
    Gurus,
    How can we add / assign customize Search Help to standard tables
    as my knowledge this is working fine in SAP 4.60. Where as i was not
    allowing us to add a search help to its data element is there any alternate way to add if give me your support.
    thank you
    shabeer ahmed

    hi shabeer ahmed
    This one is already posted one, chk it
    First in the MARA table the Search Help(MAT1) for matnr is selected and viewed.
    In the included search helps tab of MAT1 there is another search help MAT1_A.
    For that search help in the included u201Csearch helpu201D tab view is selected .
    Inside that there is a search help called MAT1_A_APPEND.
    Then in the included search help tab of MAT1_A_APPEND, the customized search helps can be attached.
    Regards,
    Deva

  • Lock entries standard table

    Hi Experts,
    Please help in finding which SAP Standard table can we find the lock entries(SM12 transaction).
    Thanks!

    Prerequisites
    You have generated the demo data for the SQL Tutorial.
    Log on to the database instance DEMODB as user MONA.
    Examples
    You can use the system table LOCKS to determine the following database information, among other things:
    &#9679;     All locks that are currently held on table ROOM
    SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
      FROM DOMAIN.LOCKS
        WHERE tablename = 'ROOM'
    &#9679;     All locks that the current user holds in that database session on table ROOM
    SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
      FROM DOMAIN.LOCKS, SYSINFO.SESSIONS
        WHERE tablename = 'ROOM'
          AND locks.session = sessions.sessionid
    &#9679;     All locks that are currently held on the table with the hexadecimal internal identification 000000000000035D
    SELECT lockmode, lockstate, rowidlength, rowidhex, rowid
      FROM DOMAIN.LOCKS
        WHERE tableid = X'000000000000035D'
    If the current user is the database administrator (DBA user) or the database system administrator (SYSDBA user), then all currently held locks are shown.
    Users that belong to other user classes only see the locks held by that one user.
    Definition
    The system table LOCKS describes the current lock entries and entries for lock requests.
    Structure
    LOCKS
    SESSION
    FIXED(10)
    ID of the database session
    TRANSCOUNT
    CHAR(20)
    Transaction identification in the database session
    PROCESS
    FIXED(10)
    Process identification in the database instance
    USERNAME
    CHAR(32)
    Name of the user
    DATE
    DATE(10)
    Creation date of the lock
    TIME
    TIME(8)
    Creation time of the lock
    TERMID
    CHAR(18)
    User terminal identification
    LASTWRITE
    CHAR(10)
    Elapsed time since the last SQL statement for data manipulation
    LOCKMODE
    CHAR(14)
    Type of lock (NULL value | SHARE | EXCLUSIVE)
    LOCKSTATE
    CHAR(10)
    Status of lock
    APPLPROCESS
    FIXED(10)
    Process identification on the client hardware
    APPLNODE
    CHAR(64)
    Client hardware identification
    SCHEMANAME
    CHAR(32)
    Name of the schema of the table
    OWNER
    CHAR(32)
    Name of the owner of the table
    TABLENAME
    CHAR(32)
    Name of the table
    TABLEID
    CHAR(8) BYTE
    ID of the table
    ROWIDLENGTH
    FIXED(4)
    Length of the key of the locked row
    ROWIDHEX
    CHAR(64) BYTE
    Start of the key of the locked row in hexadecimal notation
    ROWID
    CHAR(128)
    Start of the key of the locked row
    http://dev.mysql.com/doc/maxdb/en/c4/812640632cec01e10000000a155106/content.htm

  • How to add field value to the standard table

    Hi,
    How to add field value to the standard table?
    for example:
    when we go to TCODE SE16-> VBAK table -> on the selection screen if we press F4 against VBTYP we get all the available values for that field. How to add a new document Category value to this field so that it shows up in F4 help for that field.

    Hi Asif,
    I don't think it is possible and feasible for adding new field value to the field VBTYP because it is not possible through SPRO.
    If u see the domain of this field VBTYP we have fixed values provided by SAP. There is no value table for this. If u have value table then it will be updated through SPRO. But still if u really want to add some value u can do that by getting access key and add the value in the fixed values of the domain. But of no use other than simply displaying in F4. Because for what ever value u created here there will be no documents in VBAK or any table using this domain.
    Hope this is clear for u.
    Thanks,
    Vinod.

  • How to transport standard table entries

    Hi All,
    I want to transport SAP standard tables records from one server to another server in append mode. It is actually required for upgradation purpose.
    Can anybody please guide me in this regards ?
    Thanks in advance!!

    Hi Reddy,
    Thanks for your suggestion! but one problem I don't have the Transport Entries submenu enabled for all the SAP standard tables. Is it table specific ?. Please let me know how to enable this sub menu or is there any other generic method to attach the records of any SAP standard table in a TR.
    Thanks!

  • Is it possible to add standard tables to a trial version of sap netweaver

    Hi,
    I have installed SAP NetWeaver 7.01 ABAP Trial Version successfully but i can't find any standard
    tables in it.
    Is it possible to add standard tables in a trial version, if yes then how.
    Please can u explain in detail how to get the standard data, i am new to sap.
    Please help.
    2)
    Is it possible to install SAP NetWeaver 7.01 ABAP Trial Version  and SAP Netweaver sp16 Java trial edition in windows on one single system side by side, if yes then how.
    Thanks

    Thanks for your reply sir.
    By standard tables i mean tables such as MSEG,BSEG etc.
    I Can't find them in the trial version.
    Is it possible to add such tables to a trial version of sap netweaver, if yes then what i have to do.
    I am new to sap.
    Thanks

Maybe you are looking for

  • MacBook Pro takes a long time to start up or hangs at gray apple logo after minor fall

    I upgraded to Mavericks a few days ago. Everything was working fine until yesterday, when my MacBook Pro started taking a really long time to start up or restart. Before upgrading I had some directory problems which I fixed with DiskWarrior. I then u

  • How do I create a graph in numbers?

    So here is what I have created: http://i1135.photobucket.com/albums/m638/moore778899/Screenshot2011-01-06at21522 8.png All are drop down lists. You will see that it LOOKS correct in terms of Q1. But when I change one of the responses to male and sele

  • Unable to start soa server with anonymous attempt to JNDI resource error

    I created a new outbound connection in my JMS Adapter deployment then I also created a new Foreign Server in my JMS Module that is deployed on my SOA server. Now when i try to restart my SOA server it is failing with the below exception. <Jul 1, 2011

  • Query Designer 3.5 does not respond when trying to restrict a charact

    Hello experts! I'm trying to restrict characteristic 0BPARTNER in query designer 3.5 but when I try to open the restrict context menu it tries to bring all the business partners to display them from master data and it freezes. We have over 2 millon b

  • How to remove unneeded contact lists?

    1 and a half year ago my dad got me an iPad. I added facebook on to my iPad. It started to add random contacts on to my contact list and then in 2013 my dad got me an iPhone for my birthday. My contacts linked to each other. No matter how hard I try