Include a structure in a TYPES declaration

Hii
I have a structure BISEG
i need to declare an internal tabel with that structure BISEG + some additional fields
i did like below please advise if this correct
TYPES begin of types ty_itab
                     include type BISEG
                     xxxx type xxx
                     xxxx type xxx
            End of types ty_itab
DATA:
   itat TYPE standard tabel of ty_itab
note i don't want to use header line

Hello All:
Can I reopen this q, I searched but couldn't find a confirmative answer.
Instead of creating a type as below
TYPES begin of types ty_itab
                     include type BISEG
                     xxxx type xxx
                     xxxx type xxx
            End of types ty_itab
I need to create the type with include structure after the additonal fields.
TYPES begin of types ty_itab
                     <fld1> type <ty1>
                     <fld2> type <ty2>
                     include type <struc>
            End of types ty_itab
Can someone give the right syntax?
Please help,
Fred.

Similar Messages

  • Define structure with table type fields using keyword "TYPES"

    Hi Gurus,
    Using keyword "TYPES", I want to define a structure in which there is a field must be table type. It seems not allowed. For example:
        TYPES tt_items TYPE TABLE OF sflight.
        TYPES: BEGIN OF str,
          field1 TYPE i,
          field_tabl TYPE tt_items.
        TYPES:  END OF str.
    Then I got a syntax error:
    "TT_ITEMS" is a generic type. Use of this type is only possible for     typing field symbols and formal parameters. -     
    What should I do if I want to have a table type field in it?
    Thanks a lot.

    include type EKKO includes the whole strucutre of EKKO.
    if you see the structure in debug mode, it_ekko contains the fields of EKKO as well as the field CHK of type C.
    In your case you can do this
    TYPES: BEGIN OF str.
    INCLUDE TYPE sflight.  " includes whole structure of SFLIGHT
    TYPES : field1 TYPE i. " include the field1 of type I
    TYPES: END OF str.
    DATA : it_str TYPE TABLE OF str, " internal table
           is_str TYPE str.          " work area
    Regards
    Gopi

  • Types Declarations

    Hi all,
    What is the exact syntactical declaration for the types with Include structure ?
    I have the below existing types as
    TYPES: BEGIN OF exceplist_inv.
            INCLUDE STRUCTURE erdod.
    TYPES: END OF exceplist_inv
    I need to add a new field to this TYPE, the field being         username like CDHDR-USERNAME. 
    The below change to the declaration gives error.
    TYPES: BEGIN OF exceplist_inv.
            INCLUDE STRUCTURE erdod,
            username like CDHDR-USERNAME,
    TYPES: END OF exceplist_inv
    Moreover I have tried  placing the commas and the fullstops at many places but the syntax error still appears.
    Need help for the exact syntax for the above.
    Regards,
    Stock

    Hi,
    If 'erdod' is a standard structure, please try the below given code:
    TYPES BEGIN OF exceplist_inv.
    TYPES: username LIKE cdhdr-username.
            INCLUDE STRUCTURE erdod.
    TYPES END OF exceplist_inv.
    (OR)
    If 'erdod' is a structure defined by you, then try the following code:
    data: t_erdod type erdod.
    TYPES BEGIN OF exceplist_inv.
    TYPES: username LIKE cdhdr-username.
            INCLUDE STRUCTURE t_erdod.
    TYPES END OF exceplist_inv.
    Please award points if it is helpful.
    Regards,
    Renjith Michael.

  • How to use the types declarations in smartforms

    hai
      already i declared the types in smartfomr global defination, how to call the types to the internal table and workarea, in which please i declare the internal table and work area by using the types structures
    for example
    types: begin of ty_kna1,
              kunnr type kunnr,
              name1 type name1,
              land1 type land1,
             end of ty_kna1.
    how to call the above types to internal table and work area in simartforms , in which place i declare the above types to the internal table and workarea

    Hi,
    Please see below
    **In Types tab
    types: begin of ty_kna1,
    kunnr type kunnr,
    name1 type name1,
    land1 type land1,
    end of ty_kna1.
    Types:ty_t_kna1 type standard table of ty_kna1.
    In Global data tab
    ***Internal table declaration
    data:i_kna1 type ty_t_kna1.
    ***Work area declaration
    data:wa_kna1 type ty_kna1.
    Regards
    Jana

  • How to include a structure in a method

    Hi All,
    when i executed this statement in a method
    types : BEGIN OF TY_ITAB2.
              INCLUDE STRUCTURE LTAP_VB.
    types :  END OF TY_ITAB2.
    Syntax Message:
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary types, not "LIKE" or "STRUCTURE".          
    how to create such structure

    Here it is,
      DATA: w_ltap_vb TYPE ltap_vb.
      TYPES : BEGIN OF ty_itab2.
      TYPES: kunnr TYPE kunnr,
             name1 TYPE name1_gp,
             adrnr TYPE adrnr.
              INCLUDE STRUCTURE w_ltap_vb.
      TYPES : END OF ty_itab2.
    Regards
    Kathirvel

  • 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.

  • HOW TO INCLUDE A STRUCTURE  ELIMINATING MANDT FIELD.

    HI GURUS,
                      I AM INCLUDING A STRUCTURE ZFT057_MSC_SRVHD. BUT IT IS GIVING AN ERROR THAT
    IT_MANDT HAS ALREADY BEEN DECLARED. IS THERE ANY ALTERNATE OPTION TO INCLUDE THE STRUCTURE ELIMINATING MANDT FIELD FROM IT.

    Hi Patil,
    i just tried it.
    do this.
    go to se11 --> create a structure --> from main menu go to Edit > include> copy components then u'll get all the fields in the structure . here delete the fields which u don;t want to get repeated.
    now again try edit --> include --> insert the new structure or table and execute.
    thanks & regards,
    kat.

  • Document type declaration for root element type "web-app" must end with ' '

    I am attempting to deploy an application (.war file) using the Sun Access Manager Agent installed, (Reference http://docs.sun.com/app/docs/doc/819-3201/6n5eht3k4?a=view -near the bottom) and I get this error:
    Error loading deployment descriptors for ajacs Line 3 Column 19 -- The document type declaration for root element type "web-app" must end with '>'.
    Here is the relavent code:
    <!DOCTYPE web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <web-app>
    <filter>
    <filter-name>Agent</filter-name>
    <filter-class> com.sun.identity.agents.filter.AmAgentFilter </filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Agent</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <display-name>AJACS</display-name>
    <welcome-file-list>
    <welcome-file>frameSet.jsp</welcome-file>
    </welcome-file-list>
    etc...
    Now, when I remove the parts that http://docs.sun.com/app/docs/doc/819-3201/6n5eht3k4?a=view said to add, it deploys just like it used to deploy- just fine with no errors. However, I add that code and it breaks.
    Note: The code was a straight copy/paste, so if there is any error in the code, it is because it's written incorrectly on the Sun doc website.
    Any help would be MUCH appreciated. Thanks!

    Well, if that was pasted on one line, it would be:
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    So it's supposed to be that way. I just tried it with the extra quotes, and no dice...

  • How to use %Type declaration with table residing in a different database

    How can I use the %TYPE declaration if the table is from a different database.
    E.g
    v_business_unit ps_jrnl.header.business_unit%TYPE;
    In the above declaration statement,the table 'ps_jrnl_header' resides in a different database(Database A) from the one I am currently in( Database B).(This is because data needs to be extracted from Database A into Database B).

    1. Create a database link to the other database (this probably already exists since your proc is interacting with that database)
    2. Create a synonym for the table in the other database
    create synonym foo for ps_jrnl.header@database_a;3. Reference the synonym in your variable declaration:
    v_business_unit  foo.business_unit%TYPE;

  • What is the best way of insertion using structured or binary type in oracle

    what is the best way of insertion using structured or binary type in oracle xml db 11g database

    SQL*Loader.

  • SAXParser type declaration not found - PLEASE HELP!!

    I am using XML to parse an incoming string of XML. I want to use an SAXParser to do this, but I cannot create an object of this type. I have the jar file jaxp.jar, xalan.jar, and crimson.jar in my classpath.
    Is there anything else that I need to do in order to get the parser to work.
    This is a very urgent need so any help is appreciated. Here is the error:
    Class SAXParser not found in type declaration;

    I have figured out the issue. Thanks for the help. I do have one more issue though. I am trying to parse a string of xml data and I need to pass my parse() method an InputSource object that I guess I will make from my incoming String.
    Any thoughts on how to do this?

  • Wildcards in type declarations or only methods?

    Can you declare wildcards in type declarations such as:
    public class ListManager<List<?>> {
    }When I try this, I get the following compiler errror:
    C:\dev\hcj\tiger\src>c:\j2sdk1.5.0\bin\javac -source 1.5 oreilly/hcj/tiger/*.java
    oreilly/hcj/tiger/ListManager.java:21: > expected
    public class ListManager<List<?>> {
                                 ^
    oreilly/hcj/tiger/ListManager.java:31: '{' expected
    ^
    2 errorsWhat am I doing wrong [if anything]?
    TIA
    -- Kraythe

    public class ListManager<List<?>> {
    }When I try this, I get the following compiler errror:Hmm .. I was thinking about this. .. What i was trying to declare was a class that would use as a parameter any declaration of a List. So what I want is a class that will take List<Integer> and List<String> and so on. So the result would be to use it like this:
    public void someMehtod() {
        ListManager<List<String>> strListMger = ...
        ListManager<List<Integer>> strListMger = ...
    }So if not with the wildcard, how is this accoplished (if it can be accomplished at all).
    I would also like to do something like:
    public class ListManager<Type extends List<?>> {
    }In this manner I would at least have access to the type. Except the extends is a misnomer since i want type to be any List<> type.

  • In query, how many objects can include in structure

    Hi expert,
    In BEX query coloum, How many objects can include in structure.

    Hi Sunil,
    We can include maximum of 999 fields in one structure.
    http://help.sap.com/saphelp_nw04/helpdata/en/4d/e2bebb41da1d42917100471b364efa/frameset.htm
    Regards,
    Venkatesh

  • "Global Type declaration duplicated", cached xsd conflicting in jdeveloper?

    We're having problems recompiling a project after changing a schema in a second project on which it depends:
    Our HR composite app imports a schema from our FaultHandler app. I added 2 new elements to the FaultHandler schema and redeployed to the server - now our HR composite app won't recompile. It errors saying:
    [scac] error: in EmpTransformSynch.bpel(87): query "/ns9:HandleFaultRequest/ns9:TimestampeInit" is invalid, because Global Type declaration/definition of name '{http://mydomain.com/SOA/FaultHandler}HandleFaultRequestType' are duplicated at the following locations:
    [scac] http://mydomain.com:8001/soa-infra/services/default/FaultHandlerProject/xsd/FaultHandler.xsd [line#: 4]
    [scac] http://mydomaincom:8001/soa-infra/services/default/FaultHandlerProject/FaultHandler?XSD=xsd/FaultHandler.xsd [line#: 7]
    [scac] There are at least two of them looking different:
    [scac] http://mydomain.com:8001/soa-infra/services/default/FaultHandlerProject/xsd/FaultHandler.xsd [difference starting at line#:16]
    [scac] http://mydomain.com:8001/soa-infra/services/default/FaultHandlerProject/FaultHandler?XSD=xsd/FaultHandler.xsd [difference starting at line#:19]
    I can view the 2 URIs in my browser, and while they differ slightly in how they reference another schema, the schemas (and imported schema) are semantically equivalent.
    We've taken the following steps to try to resolve it:
    Undeploy the previous revision of Fault handler
    Restart soa server
    Redepoy Fault Handler
    Clean HR app
    Make HR app
    We have the issue in both jdeveloper 11.1.1.3.0 and 11.1.1.4.0
    This is surely something very simple, but it's blockiing us at the moment.
    Any help much appreciated.
    ..Garret
    Edited by: user10714498 on 09-Mar-2011 02:27

    If your schema contains any characters which will be escaped when parsed by a browser, then version present in the actual .xsd and the version referenced via HTTP server will be different causing the issue.
    If you can post the content of your actual schema (as you see it in jDev and not the one opened in the browser) here it will help identifying the issue if any.

  • Structure of basic type

    Hi Friends,
    How i can know the Structure of basic type  of the following idocs: DEBMAS05, CREMAS05, MATMAS05, ARTMAS and  INVOIC02. Any documents or link would be more helpful.
    Any help will be appreciated. Thank you all.

    This you can find the IDOC Interfaces (Debmas, Cremas, etc) for Business Partner:
    http://help.sap.com/saphelp_mdm300/helpdata/en/06/c5567cff4370448bc381ab39739199/frameset.htm

Maybe you are looking for