Include Structure to Database table like ci_aufk

Hi All
I want to create a database table with an include structure.But i don´t want to create the structure for now.
I want to create it the same way as SAP did it with Table AUFK
there is an include structure CI_AUFK which does not really exist.
If i try this, i get an activation error. Does anybody know how to create something like that??
thanks for your Help and
Kind regards

Hi thesaint,
I created a table with some fields and activated it. Later on, i added the structure 'CI_AUFK' in the same way as it is present in table AUFK. The include structure got added successfully and i was able to activate the same.
Note that structure 'CI_AUFK' is standard SAP structure which can be activated as and when required. It will not be possible to include our own Z structures and activate them as and when required.*
However, we can create structures that start with SAP naming convention for ex: CI_BOFA  and then include them in our custom tables, we need not add any fields to those structures(during creation) and activate them as and when required in the future.
Regards,
Rajesh

Similar Messages

  • Assignment between include/Append structures and Database Tables

    Hi All,
    I need to find the list of all Append/Include Structures in my system and Their assignment to Tables.
    (For Each Append/Include structure, to which table it was assigned)
    Is there any way to find it?
    Thanks,
    Krishna.

    Hi,
    Go to se11 - data type - give Z* and press F4.
    Pop-up will come  - click on search for structures - u will get standard structures.
    Then take any structure name and check for where used list ( cont + shift + F3) .
    U will get all the DB tables where and all they have used that include / append structure.
    Regards,
    Kusuma.

  • Change of structure of database table

    A custom database table has been created and is already in use by 10 programs. Now a new requirement has come to add a field i.e. a check box to the database table to be used by one of the 10 programs. Can we change the structure of the database table after activating it and when the table is in use? Please provide me inputs on this.
    Thanks and regards
    Radhika

    Yes. U can change it. But I suggest u to do it through the process of 'Append Structure'.
    If u have any probelm after changing follow this process.
    Goto Utilities > Database Utilities> Activate and Adjust Database
    Awrd Points if useful
    Bhupal

  • Problem in activating include structure for VBAP

    hi ,
      i have to add 3 fields in an include structure  of vbap table.
    when i added and activated it ,it is showing 'partly active'.even the vbap table is becoming 'partly active'.
    zvxxvbap_include1 is the include strcuture .it is present in vbap table .
    plz tell me why it is showing as 'partly active'??
    regards
    pavan

    Hi Friend,
    Please do not use long name for include, make it short up to 6 chars. Check all data element had been activated of your Z include.
    Then try to activate again, read logs what taht is saying actually.
    Try in Extra -> Database Utility -> Adjust database and activate it.
    Hope it will help you.
    Regards
    Krishnendu

  • How do I Make Include Structures Expand Automatically?

    As usual some of the simplest things take the longest time.
    I've created a custom structure in the dictionary.  I've also created a custom table in which I include the structure. I expected that after I added the include structure to the custom table, that it would be expanded and display in se11, and behave just as SAP-delivered tables do.  For example, look at table PA0001. There are include lines followed by the contents of the include.
    In my custom table though, I only see the include line itself.  To see the structure I must expand it by pressing the expand button.  Each and every time I display the custom table I must manually expand it.  I want the behavior I see on every other SAP table.
    Any ideas?
    Thank you.
    Tom

    Hi,
    if You have include structure in Your table, all fields are displayed only in display mode.
    That is the way You see the PA0001 table.
    If You create your own table and include structure, in edit mode You can change fields of the include structure,
    that is why it is not expanded. But if You change from edit to display mode, SAP does not expand it automatically.
    You should display in SE11 this table - all fields will be visible.
    Regards,
    Przemysław

  • Easy way to write out internal table to database table ?

    hi friends,
    i have a special requirement:
    as i do not want to change the profile settings on an r/3 4.6c machine, i want to modify my program so it can handle even large amount of data. the plan is to fill internal table and for say every 100000 rows write those out to a table on database. how could i do this most performant ?
    thanks,
    clemens

    Hi Clemens,
    This solution worked for me, which was suggested by Seshu. May be you can try this,
    Modify ZPPPRICE(your database table name) from table t_final(internal table name).
    In my case I updated Custom table.
    The internal table is of same structure as database table.
    Modify command will insert the record the record if it is new, if the record is existing then it will update the record with the internal table values.
    I got data from Excel file in to my internal table.
    Regards,
    Neelu.

  • **urgent*** -two  combo boxes  -one  database table - ***urgent**

    1. i have one html page - in that two combo boxes are there
    2. first one called--> Bank Name and second one called-->Main Branch
    3. i have a database table like BANK_MASTER(MAIN_BRANCH,BANK_NAME)
    i am giving here some data for the above table:
    (sbi-kurnool, sbi),(sbi-cadapah,sbi),(sbi-chittor,sbi),(ab-rangareddy,ab),(ab-varangal,ab) ..like that every bank has its own main branch in different location.
    MY PROBLEM:
    In HTML page, in the first combo box ie., Bank Name will display all the bank name using the table BANK_MASTER ie.,sbi,ab,cb,sbh ...... (its ok - i too get )
    main Problem: Whenever i select a particular bank name in the first combo box, the second combo box ie.,Main Branch has to display the main branches using the table Bank_Master depending on the Selected bank name from the Bank Name Combo box ( ie., if we select the sbi, it has to display all main branches of sbi's only, but not other bank's main branches)

    Hi friend,
    I had a similar situation and i tried to solve it by using XmlHttpRequest Object(used in AJAX).
    U can checkout the below example just for further reference delete
    UserForm.jsp:
    ==========
    <head>
    <script>
    var xmlHttp
    function showState(str)
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    alert ("Browser does not support HTTP Request")
    return
    var url="getState.jsp"
    url=url+"?count="+str
    url=url+"&sid="+Math.random()
    xmlHttp.onreadystatechange=stateChange
    xmlHttp.open("GET",url,true)
    xmlHttp.send(null)
    function stateChange()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
    document.getElementById("state").innerHTML=xmlHttp.responseText
    </head>
    <body>
    <select name='country' onchange="showState(this.value)">
    <option value='india>india</option>
    </select>
    <br>
    <div id='state'>
    <select name='state' >
    <option value='-1'>pickone</option>
    </select>
    </div>
    </body>       
    getState.jsp
    ============
    <%@page language="java" import ="java.util.Hashtable" import ="java.util.Set" %>
    <%
    String country=request.getParameter("count");
    response.setContentType("text/html");
    response.setHeader("Cache-Control","no-cache");
    try{
    Hashtable ht = (Hashtable)session.getAttribute("<ATTRIBUTE_NAME>");
    String buffer="<select name='state'><option value='-1'>Pick One</option>";
    Set s=ht.keySet();
    Object keys[]=s.toArray();
    int size=keys.length;
    for(int i=0; i < size;i++){
    buffer=buffer+"<option value='"+ht.get(keys).toString()+"'>"+ht.get(keys).toString()+"</option>";
    buffer=buffer+"</select>";
    response.getWriter().println(buffer);
    catch(Exception exp){
    response.getWriter().println(exp);
    %> I think u may go upon replacing country with your Main Branch and vice versa

  • Need Information on database tables in OIM Schema

    Hi All,
    Is there any document/link where can I get all the information on all OIM Schema database tables like obj, orf and so forth information?
    Regards,
    Sunny

    Hi,
    Also, you can perform the queries below to get the table names and the name of each field when using the OIM's api. Change the OIMDBUSER value for your OIM's schema name. You'll notice some tables do not have comments, for example, the resource and process form tables (starts with UD). For the ""UD_*" tables, you can get the SDK_DESCRIPTION
    <h3>Getting the table names WITHOUT UD_ descriptions</h3>
    *SELECT* t.owner, t.table_name, tc.comments <br>
    *FROM* all_tables t, all_tab_comments tc <br>
    *WHERE* t.owner = 'OIMDBUSER' *AND* tc.table_name = t.table_name
    *ORDER BY* t.table_name
    <h3>Getting the table names WITH UD_ descriptions</h3>
    *SELECT* t.owner, t.table_name, NVL(tc.comments, NVL(sdk.sdk_form_description, 'No Comments')) comments <br>
    *FROM* <br>
       all_tables t<br>
        *LEFT OUTER JOIN* sdk *ON* t.table_name = sdk.sdk_name, <br>
       all_tab_comments tc <br>
    *WHERE* t.owner = 'OIMDBUSER' *AND* tc.table_name = t.table_name
    *ORDER BY* t.table_name
    <h3>Getting the column names for OIM API</h3>
    *SELECT* lku_field, lku_type_string_key <br>
    *FROM* lku <br>
    *WHERE* lku_type = 'f' <br>
    *ORDER BY* lku_field
    Renato

  • How to access the database tables from application

    Hii all,
    The information in webcenter content, such as meta data fields, users, security groups etc are stored in
    database tables like-      Revisions, SecurityGroups, Users, DocType etc..
    Can we access this tables from an adf application or any webcenter application..
    If yes, then what can be the approach for that..??
    Another things, how can we create custom tables just like the predefined tables...??
    Any information regarding this.??
    Thanks

    Can we access this tables from an adf application or any webcenter application.Yes, you can - like to any other existing database. But I would strongly discourage you from any, but read-only access, or you can easily end up with inconsistent data.
    If yes, then what can be the approach for that..??Just create a database connection and define in your model what tables you want to access.
    Another things, how can we create custom tables just like the predefined tables...
    Actually, WebCenter Content provides functionality of creation of custom tables (see http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/c04_metadata.htm#autoId2 ) and these are probably the only good candidates for read-write access. See further in the manual what use cases are supported. Of course, you could do this even externally, but rather than Data Definition Language, I'd use services (if there are some).

  • Query in abap database tables

    hello Experts,
       Is there any System table to get the Year.For Example to get the Month we can use T247 database table like this any system table to get year.
    thanks
    regards,
    Ashok.

    Sorry can you explain what do you mean to get year ??
    The below would give you the year.
    Year = Sy-datum(4).
    If you wish to convert it into words you can use SPELL_WORD and make sure to use currency with zero decimails..in that case it would return two thousand six in words.

  • Including structure in TYPES-- urgent

    hi
    this is an itab with header line
    data: begin of xdb_mchb occurs 0.
            include structure mchb.
    data:   vrfmg      like v01fdk-vrfmg.
    data:   cuobj      like inob-cuobj.
    data:   lifnr      like mkol-lifnr.
    data:   sobkz      like mkol-sobkz.
    data:   lobm_bprio like bfstock-lobm_bprio.
    data: end of xdb_mchb.
    and i want to define an explicit work area  so i have done it like this :
    types :       BEGIN OF ts_xdb_mchb ,
           <b>include structure mchb,</b>
            vrfmg      TYPE v01fdk-vrfmg,
            cuobj      TYPE inob-cuobj,
            lifnr      TYPE mkol-lifnr,
            sobkz      TYPE mkol-sobkz,
            lobm_bprio TYPE bfstock-lobm_bprio,
           END OF ts_xdb_mchb.
    but i m getting error. as ""," expected after "INCLUDE"."
    can we include structure in TYPES please let me know..
    thnx<b></b><b></b><b></b><b></b>

    Hi neha,
    After INCLUDE don't put " , " instead put " . "
    So that you can errors.
    It will work try.OK
    types : BEGIN OF ts_xdb_mchb ,
                 vrfmg TYPE v01fdk-vrfmg,
                 cuobj TYPE inob-cuobj,
                 lifnr TYPE mkol-lifnr,
                 sobkz TYPE mkol-sobkz,
                 lobm_bprio TYPE bfstock-lobm_bprio,
                 <b>include structure mchb.</b>
    END OF ts_xdb_mchb.
    If helps, reward.
    regards,
    V.Raghavender.

  • Deleting and updating database table

    hi all,
    i have to update the database table based on my internal table(both having same structure).
    my database has 2 records having a key field 1 and 2 respectively.(2 records)
    and my internal table has records with key fields 3, 4 and 5 respectively(3 records) .
    i want to delete all data from database table first..
    then i want to insert all the three records in the database table..
    finally i want my database to have 3 records with key fields 3, 4 and 5 respectively that are in the internal table
    what should be the correct way?

    Hi ,
    to delete all the records from dbtab
    DELETE dbtab.
    to update the database by using internal table
    -MODIFY dbtab       FROM TABLE itab.
    but as per my knowledge structures of internal table and database table should be same
    if the database table is a Ztable please change the structure of database table as you said
    Put fields 3,4and 5 as key fields
    Thanks & Regards,
    Sateesh.

  • Can I restore the deleted statistical data from the database tables?

    Hi all,
       I have deleted the statistical data from the database tables like(Ex: RSDDSTAT, RSDDSTATWHM,..) by mistake through RSA1> Tools> BW Statistics for Infoproviders--> Delete.
    Is there any way to restore the deleted data back? Thanks in advance.

    Now I'm really confused-
    Your first post said
    "<b>I have deleted the statistical data from the database tables like(Ex: RSDDSTAT, RSDDSTATWHM</b>,..) by mistake through RSA1> Tools> BW Statistics for Infoproviders--> Delete."
    but your last respsonse said
    "I have deleted the BW Statistics data, <b>not the actual data in RSDDSTAT tables</b> through
    RSA1 -> Tools -> BW Statistics for InfoProviders -> clicked 'Delete' bin to delete data."
    If you used the RSA1 -> Tools -> BW Statistics for InfoProviders -> clicked 'Delete' - <b>then you deleted the data from the RSDDSTAT tables</b>. This assumes you accepted the default date range that would have popped up after the clicking on the Delete button which specified to delete thru the current date.  If this is what you did, the data is gone.  Your only hope is be to recover from a DB backup.  
    The data in the RSDDSTAT tables is what is used to feed the BW Statistics cubes, generally on a daily basis.

  • Can we express batch relationship structure in XML in the database table

    Hi
    please help me ..
    i have a batch XML batch structure ...can we express batch relationship structure in XML in tha database table?
    yes..then how?
    Thanks
    Amu
    Edited by: amu_2007 on Mar 25, 2010 6:57 PM
    Edited by: amu_2007 on Mar 25, 2010 7:03 PM

    But what is the problem with the initial solution given that split the XML into the data?
    I mean you could do something like this?
    SQL> create table batch (customer    VARCHAR2(10)
      2                     ,cust_name   VARCHAR2(10)
      3                     ,cust_type   VARCHAR2(10)
      4                     )
      5  /
    Table created.
    SQL>
    SQL> create table section (customer    VARCHAR2(10)
      2                       ,sect_name   VARCHAR2(10)
      3                       ,sect_depend VARCHAR2(10)
      4                       )
      5  /
    Table created.
    SQL> create table job_sections (customer        VARCHAR2(10)
      2                            ,sect_name       VARCHAR2(10)
      3                            ,job_sect_name   VARCHAR2(10)
      4                            ,job_sect_depend VARCHAR2(10)
      5                            )
      6  /
    Table created.
    SQL> create table job (customer        VARCHAR2(10)
      2                   ,sect_name       VARCHAR2(10)
      3                   ,job_sect_name   VARCHAR2(10)
      4                   ,job_type        VARCHAR2(10)
      5                   ,job_sub_type    VARCHAR2(10)
      6                   ,job_depend      VARCHAR2(10)
      7                   )
      8  /
    Table created.
    SQL>
    SQL>
    SQL> insert all
      2    when batch_rn = 1 then
      3      into batch (customer, cust_name, cust_type) values (customer, cust_name, cust_type)
      4    when section_rn = 1 then
      5      into section (customer, sect_name, sect_depend) values (customer, sect_name, sect_dependency)
      6    when job_sections_rn = 1 then
      7      into job_sections (customer, sect_name, job_sect_name, job_sect_depend) values (customer, sect_name, job_sect_name, job_sect_dependency)
      8    when 1=1 then
      9      into job (customer, sect_name, job_sect_name, job_type, job_sub_type, job_depend) values (customer, sect_name, job_sect_name, job_type, jo
    10  --
    11  WITH t as (select XMLTYPE('
    12  <BATCH customer="ABC" name="ABC1" type="ABC_TYPE">
    13    <BATCH_SECTIONS>
    14      <SECTION name="X" dependency="NULL">
    15        <JOB_SECTIONS name="JOB1" dependency="NULL" >
    16          <JOBS>
    17            <JOB type="X" sub_type="xx" dependency="NULL" />
    18            <JOB type="X" sub_type="yy" dependency="NULL" />
    19            <JOB type="X" sub_type="zz" dependency="NULL" />
    20          </JOBS>
    21        </JOB_SECTIONS>
    22      </SECTION>
    23      <SECTION name="Y" dependency="X">
    24        <JOB_SECTIONS name="JOB2" dependency="X" >
    25          <JOBS>
    26            <JOB type="Y" sub_type="xx" dependency="X" />
    27            <JOB type="Y" sub_type="yy" dependency="X" />
    28            <JOB type="Y" sub_type="zz" dependency="X" />
    29          </JOBS>
    30        </JOB_SECTIONS>
    31      </SECTION>
    32      <SECTION name="Z" dependency="Y">
    33        <JOB_SECTIONS name="JOB3" dependency="NULL" >
    34          <JOBS>
    35            <JOB type="....." sub_type="...." dependency="NULL" />
    36          </JOBS>
    37        </JOB_SECTIONS>
    38        <JOB_SECTIONS name="JOB4" dependency="NULL">
    39          <JOBS>
    40            <JOB type="...." sub_type="...." dependency="NULL" />
    41          </JOBS>
    42        </JOB_SECTIONS>
    43      </SECTION>
    44    </BATCH_SECTIONS>
    45  </BATCH>
    46  ') as xml from dual)
    47  --
    48  -- END OF TEST DATA
    49  --
    50  ,flat as (select a.customer, a.cust_name, a.cust_type
    51                  ,b.sect_name, NULLIF(b.sect_dependency,'NULL') as sect_dependency
    52                  ,c.job_sect_name, NULLIF(c.job_sect_dependency,'NULL') as job_sect_dependency
    53                  ,d.job_type, d.job_sub_type, NULLIF(d.job_dependency,'NULL') as job_dependency
    54            from t
    55                ,XMLTABLE('/BATCH'
    56                          PASSING t.xml
    57                          COLUMNS customer     VARCHAR2(10) PATH '/BATCH/@customer'
    58                                 ,cust_name    VARCHAR2(10) PATH '/BATCH/@name'
    59                                 ,cust_type    VARCHAR2(10) PATH '/BATCH/@type'
    60                                 ,bat_sections XMLTYPE PATH '/BATCH/BATCH_SECTIONS'
    61                         ) a
    62                ,XMLTABLE('/BATCH_SECTIONS/SECTION'
    63                          PASSING a.bat_sections
    64                          COLUMNS sect_name        VARCHAR2(10) PATH '/SECTION/@name'
    65                                 ,sect_dependency  VARCHAR2(10) PATH '/SECTION/@dependency'
    66                                 ,section         XMLTYPE      PATH '/SECTION'
    67                         ) b
    68                ,XMLTABLE('/SECTION/JOB_SECTIONS'
    69                          PASSING b.section
    70                          COLUMNS job_sect_name        VARCHAR2(10) PATH '/JOB_SECTIONS/@name'
    71                                 ,job_sect_dependency  VARCHAR2(10) PATH '/JOB_SECTIONS/@dependency'
    72                                 ,job_sections         XMLTYPE      PATH '/JOB_SECTIONS'
    73                         ) c
    74                ,XMLTABLE('/JOB_SECTIONS/JOBS/JOB'
    75                          PASSING c.job_sections
    76                          COLUMNS job_type        VARCHAR2(10) PATH '/JOB/@type'
    77                                 ,job_sub_type    VARCHAR2(10) PATH '/JOB/@sub_type'
    78                                 ,job_dependency  VARCHAR2(10) PATH '/JOB/@dependency'
    79                         ) d
    80            )
    81  --
    82  select customer, cust_name, cust_type, sect_name, sect_dependency, job_sect_name, job_sect_dependency, job_type, job_sub_type, job_dependency
    83        ,row_number() over (partition by customer order by 1) as batch_rn
    84        ,row_number() over (partition by customer, sect_name order by 1) as section_rn
    85        ,row_number() over (partition by customer, sect_name, job_sect_name order by 1) as job_sections_rn
    86  from flat
    87  /
    16 rows created.
    SQL> select * from batch;
    CUSTOMER   CUST_NAME  CUST_TYPE
    ABC        ABC1       ABC_TYPE
    SQL> select * from section;
    CUSTOMER   SECT_NAME  SECT_DEPEN
    ABC        X
    ABC        Y          X
    ABC        Z          Y
    SQL> select * from job_sections;
    CUSTOMER   SECT_NAME  JOB_SECT_N JOB_SECT_D
    ABC        X          JOB1
    ABC        Y          JOB2       X
    ABC        Z          JOB3
    ABC        Z          JOB4
    SQL> select * from job;
    CUSTOMER   SECT_NAME  JOB_SECT_N JOB_TYPE   JOB_SUB_TY JOB_DEPEND
    ABC        X          JOB1       X          xx
    ABC        X          JOB1       X          yy
    ABC        X          JOB1       X          zz
    ABC        Y          JOB2       Y          xx         X
    ABC        Y          JOB2       Y          yy         X
    ABC        Y          JOB2       Y          zz         X
    ABC        Z          JOB3       .....      ....
    ABC        Z          JOB4       ....       ....
    8 rows selected.
    SQL>But it would depend what you are actually after in terms of primary keys, and table relationships etc.
    Let me put this simply for you...
    h1. IF YOU DON'T DEMONSTRATE TO US WHAT OUTPUT YOU REQUIRE, WE CAN'T GIVE YOU AN ANSWER

  • How to trace the database table for a structure

    hi
    am trying to find the database table for a structure unfortunately am failing to use the sql tracer any one know howelse i can do that the structure name is 'busbankcheck' and 'bus000flds'.
    thanx in advance

    Hi florence,
      1)      U can go to tcode sldb and give ur structure name or if u can find which logical database it is from u can get the tables of the structure....
    Suppose it is of HR it may be like pnp logical database and then to sldb and give pnp and u can get all the table of that....
    2)If u know which fields u want from the stucture....then go to table DD03L and give ur fields name and it iwll bring where all tables this field is avaialble and u can find them......
    3) the st05 sql trace can help u.....
    I hope any one of the three will definetely help uuu
    Regards
    vamsi
    Edited by: vamsi talluri on Jan 22, 2009 1:24 PM

Maybe you are looking for

  • Buy apps again?

    I recently had my primary hard drive crash out. I purchased a new hard drive with the latest os. None of my purchased apps (iWork, iLife, Quicken Essentials, etc) show up in my purchases list. Do I have to re-purchase EVERYTHING?

  • Hardware Error Reporting Via Email

    Hello All I have a question i hope someone can help me out with. what i want to know is if there is a oem and or third part software that would send you server errors (mainly looking at windows) via emails. For example: if a hardware issue was to ari

  • Users and Groups displayed twice in OAM

    We have configured OID in OAM as identity server. Seems successful but I am able to see twice all the users , groups in OAM. Please give some ideas how to trouble shoot the same.

  • JAI export of images on laptop have wrong colors

    Has anyone come across a problem where the exportation of image formats (jpeg, png) from JAI end up with almost negated colors that the original? I have an application that draws to the Graphics of an Image object, and I successfully export that AWTI

  • Silver light continues to crash! How can I fix it?

    I have tried un installing, and re installing silver light. I also have reported the crash many many times. I have also tried to get help from Netflix, as well as microsoft. Silverlight keeps on crashing continiously, and I cannot view netflix at all