Wht r types of structures in ABAP

Hi,
     Wht r types of structures in ABAP. Answer rewarded.
Regds.
Balakri...

Hi baddala,
Structures which either directly or in substructures contain only fields of types C, N, D or T.
The main characteristics of the different kinds of structures are:
Flat structures contain only fields of the elementary types C, N, D, T, F, I, P, and X, or structures containing these types.
Deep structures contain strings, internal tables and field or object references in addition to the elementary types.
Nested structures are structures that contain substructures as components.
Non-nested structures are structures that do not contain any substructures.
\[removed by moderator\]
Edited by: Jan Stallkamp on Jun 10, 2008 2:24 PM

Similar Messages

  • Nested Abap Type 1 structure

    Could anybody provide an example of existing nested Abap Type 1 structure?
    Update: The structure should already exists and used as a parameter type for the remotely enabled function module. I could only access the function, not to write abap code.

    Sam,
    I am not sure of what TYPE 1 is, but here is a example of nested structures.
    Begin of itab1 occurs 0,
    field1 type c
    field2 type c
    end of itab1.
    Begine of itab2 occurs 0
    field3 type c
    table1 type itab1.
    end of itab2.
    ITAB2 is a nested internal table structure.
    Regards,
    Ravi
    Note : Please mark the helpful answers.

  • How to create the sub type field in hr abap infotype

    hi ,
        how to create the sub type field in hr abap infotype.
    regards,
    venkat.

    Try like this also
    creating of infotype please follow these steps ...
    Step 1: Create Infotypes
    i. Goto Transaction PM01 – To create Infotypes:
    ii. Enter the Infotype Number and say create all.
    iii. The following message would display:
    i. PSnnnn Does not exist. How do you want to proceed?
    iv. Click
    v. A maintain Structure screen appears.
    Fill in the short text description and the PS structure of the Infotype.
    Since the fields Personnel No, Employee Begin Date, End Date, Sequential Number,Date of Last Change, Name of user who changed the object are available in the PAKEY and PSHD1 structure, define the PSnnnn structure with only the fields you required.
    vi. Once the PS Structure is created, save and activate the structure.
    vii. In the initial screen of PM01, now click on .
    Create a new entry for the infotype.
    Fill in the values as mentioned below and save.
    Infotype Characteristics:
    Infotype Name of the infotype_ Short Text: __Short Description________
    *General Attributes :
    Time constraint = 1
    Check Subtype Obligatory
    Display and Selection:
    Select w/ start = 3 “Valid record for entered data
    Select w/ end = 5 “Records with valid dates within the period entered
    Select w/o date = 6 “Read all records
    Screen header = 02 “Header ID
    Create w/o end = 1 “Default value is 31.12.9999
    Technical Data:
    Single screen = 2000
    List screen = 3000; List Entry Checked.
    viii. In the initial screen of PM01, now click on .
    Choose the infotype entry in the list.
    Fill in the values as mentioned below and save.
    Technical Attributes:
    In tab section,
    The following attribute values are given:
    Applicant DB Tab = PAnnnn “Infotype Name
    Subtype field = SUBTY
    Subtype table = T591A
    Subty.text tab. = T591S
    Time cnstr.tab. = T591A
    Prim. /Sec. = I Infotype
    Period/key date = I Interval
    and .
    ix. Infotype Screen Modification:
    Edit Screen 2000 from PM01 for the Infotype.
    ABAP Editor for the Infotype Program MPnnnn00 will be displayed.
    Click . Flow Logic will be displayed. There string coding of your own logic.
    Regards
    Pavan

  • Regarding structure of abap program

    hi,
    can any one exaplain to me what is the structure of the abap program.
    thank&regards,
    ramnaresh

    Hi..
    This is the Structure of ABAP program.
    REPORT <NAME>.
    **Global Data definitions
    TYPES:
    DATA:
    **Selection Screen Definition
    SELECT-OPTIONS
    PARAMETERS
    **Event Blocks
    INITIALIZATION .
       perform X.
    START-OF-SELECTION.
       perform Y.
    ****Form routines definition
    FORM X.
    ENDFORM.
    FORM Y.
    ENDFORM.
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • Create dynamic data type in structure

    Hi Experts,
    I am new to ABAP.
    In my scenario data type is varying for the field. for that I need to create dynamic data type in structure, this structure I am using for  internal table for OVS search input.
    Please suggest the solution for this.
    Advance thanks,
    Regards,
    BBC

    Thanks for your quick reply,
    I used your logic like this.
    data:
    ls_component type abap_componentdescr,
    lt_component type abap_component_tab.
    *... (1) define structure components :
    clear ls_component.
    ls_component-name = 'NVALUE'.
    ls_component-type ?= cl_abap_typedescr=>describe_by_name( <fs_seg_v>-fieldname ).
    insert ls_component into table lt_component.
    *... (2) create structure
    data lr_strucdescr type ref to cl_abap_structdescr.
    data lr_data_struc type ref to data.
    lr_strucdescr = cl_abap_structdescr=>create( lt_component ).
    create data lr_data_struc type handle lr_strucdescr.
    field-symbols <fs> TYPE any.
    assign lr_data_struc->* to <fs>.
    your logic is working fine.
    here I am getting feild name (<fs_seg_v>-fieldname) from internal table.
    But I need to assign same field name structure to query parameter.
    FIELD-SYMBOLS: <ls_query_params> TYPE lty_stru_input.
    Please can you suggest how I can refer the field name structure?
    Regards,
    BBC

  • Error on extended check for types include structure statements

    Hi All ,
                  On Extended check im getting error :
    Program:  ZFIR_VALUATE_OBSOLETE_STOCK  Include:  ZFIR_VALUATE_OBSOLETE_STOCK_F  Row:   1205
    The current ABAP command is obsolete
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    Internal Message Code: MESSAGE G/B
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    The error is in below line :
    TYPES: BEGIN OF t_fttax.
              INCLUDE STRUCTURE fttax.
      TYPES: END OF t_fttax.
    and fttax is a dictionary strucuture . i made internal table and work area using it .
    DATA: i_fttax TYPE STANDARD TABLE OF t_fttax,
            wa_fttax TYPE t_fttax.
    Need Help ,what i should do to remove this error ?
    Regards

    declare as :
    DATA: i_fttax TYPE STANDARD TABLE OF fttax,
               wa_fttax TYPE fttax.
    No need to declare as :
    TYPES: BEGIN OF t_fttax.
              INCLUDE STRUCTURE fttax.
      TYPES: END OF t_fttax.

  • How to read Blueprint Structure using ABAP

    Hello All,
    We are creating a report for which we need to read the projects blueprint structures (from ABAP).
    Anyone any ideas what tables to read from, or what bapi calls we can make for this?
    Thanks,
    Jurjen

    Hi Jurjen
    sorry for my late response, I was two days offsite at a customer ...
    If you follow the description above you will get a list of entries of TTREE with different TTREE-TYPES. These types are giving you at least some information about their positions in the structure:
    BMBS0 is a business scenario
    BMPG1 is a business process
    BMPS1 is a business process step
    REFH0 is  the top node of your structure
    Unfortunately I didn't get the real structure hierarchy up to now to understand who is which parent or brother or child. Nevertheless you will have in the field TTREE-TEXT the description of the nodes in transaction SOLAR01.
    Best regards, Alexander

  • Line type and structure.

    What is the difference between line type and structure?
    one real time use of both.
    instead of line type we can directly use the corresponding tables.
    Points assured.
    regards,
    Prabhu.

    Hi
    <b>The line type of a table type can be defined by:</b>
    Specification of a type that already exists (data element, structure, table type, table, view) whose properties are then copied as properties of the defined table line.
    Direct type input, where data type, number of positions, and, if required, decimal places, are entered directly.
    Specification of a reference type.
    <b>structure</b>
    The table category defines how the logical table description defined in the ABAP Dictionary is represented in the database.
    There are the following table categories:
    transparent table
    structure
    append structure
    For internal purposes, such as storing control data or update texts, there are in addition the following table categories:
    pooled table
    cluster table
    generated view structure
    <b>reward if usefull</b>

  • Dynamic typeing of a type any structure at runtime.

    Hello Gurus,
    i have in my Method a TYPE ANY structure as import parameter declared, the structure has in the calling program a dictionary structure type.
    Can i change (or assign) the new dictionary structure TYPE to the import parameter like for example as below in the third line ??
      l_rcl_struc ?= cl_abap_typedescr=>describe_by_data( i_str_applparam ).
      l_var_ddic_header = l_rcl_struc->get_ddic_header( ).
    ?? data: i_str_applparam type (l_var_ddic_header-tabname). ??
    Greetings,
    Ioan Constantin.

    Hello,
    the structure has in the calling program a dictionary structure type.
    This is pretty basic then
    DATA: DREF TYPE REF TO DATA.
    FIELD-SYMBOL: <STRUC> TYPE ANY.
    CREATE DATA DREF TYPE (l_var_ddic_header-tabname).
    ASSIGN DREF->* TO <STRUC>.
    BR,
    Suhas

  • Structure of ABAP program

    hi SDNs,
               what is the typical structure of an ABAP program?
               thanks and regards,
                   aravind.

    hi
    plz check the structure of ABAP Program under..
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    below the typical structure...
    1.data declaration
    2.selection-screen declartion
    3.data validation
    4.output.
    Cheers
    Abdul Hakim

  • IN VENDER MASTER WHICH WHT TAX TYPE AND TAXCODE I WLL ASSIGN

    Please tell me  which tax type and tax code i will assign, ie; invoice or payment  wht tax type.
    Regards,
    Amit

    Hi Amit,
    Assign the tax type and the tax code to the vendor master for the Invoice category.
    For the Payment category, assign only the tax type and not the tax code.
    In this case the user have to manually put the tax codes at the time of advance payment.
    Regards
    SAP CA

  • Different types of structures

    Hi all,
    there are 2 types of structures
       1. global ( at infocube level)
       2. local (query designer )
    how to create a global structure at the infocube level. Can any one let me know the procedure to create a global structure in bw.
    thanxs in advance
    hari

    Hi Hari,
    Global(Reusable) and Local Structures:
    Structures are combinations of characteristics and key figures (of basic key figures,calculated key figures, or restricted key figures) of the InfoProvider. A structure can be used in a planned/actual comparison or in a contribution margin scheme.
    Structures can also be used in several queries for the same InfoProvider. In order for this to be possible, you need to save them as reusable(global)structures.
    In order to make a distinction, we call structures that are not stored as reusable
    structure local structures. Local structures are only used in one query
    <b>
    Creating structure:</b>
    Call up the context menu in the heading of the Rows or Columns directory.
    Choose New Structure.
    In the context menu of the new structure, choose New Selection. In the New
    Selection dialog box, use drag and drop to choose characteristics and key figures
    of the InfoProvider that you want to use in the new structure. Restrict one
    characteristic or key figure. Define a new formula for calculations.
    Select the structure that you want to reuse. Choose Save as. from the context
    menu (right mouse-click) and enter a technical name and a description.
    2. The saved structure is now available in the structure directory of the InfoProvider
    tree. You can use the structure for the definition of new queries for this
    InfoProvider.
    <b>Note:</b> Changes made later to global structures affect all queries in which they
    were used. If you only want to make local changes in a particular query, you
    can choose Remove Reference in the context menu for the structure, and
    thereby, change the reusable structure into a local structure.
    Changes made later do not affect the definition of the reusable structure, nor
    the queries that you made with this reusable(Global) structure.
    Hope this helps,
    Thanks,
    Sudhakar

  • How to Trigger  Object type Event programmatically  in ABAP ?

    Experts,
    How to Generate an Object Type Event  programmatically in ABAP ???  We know that SAP std. applications do this by default ,for eg:  Sales Order creation event generation,  similarly , i want to generate an Event  ( SAP or a Z object event ) in my Z program ,, How can i do it ???  Do we have any function module for this one ?  I can do an BDC  CALL TRANSACTION SWUE but i don't want to do that,  i want to use some other method other than BDC.
    Would appreciate your reply . Thanks
    Ashutosh

    Hi Ashutosh, if you are trying to raise a custom event you first must define the event within your business object, using TC SWO1.  If you like you can extend an existing business object or create a new one.  Once your business object is activated and your event is released you should be able to trigger it with the FM 'SWE_EVENT_CREATE'.
    P.S  If you are extending an existing business object, for example BUS2105 and your extended name is ZMBUS2105, refer to the original name, i.e. BUS2105 for the objtype field in the call to 'SWE_EVENT_CREATE'.
    Hope that helps,
    Kevin

  • Simple types and structure

    Hi
    can any one tell me Difference between simple types and structure ?
    Thanks,
    Kiran

    Hi Ravi,
            As my concern  there is difference between simple type and structure.
            1SIMPLE TYPEit behave as TYPE  proprty of value attibute .suppose you will create on value attribute as simAtt.then you can put that simple type in your attribute TYPE property .actualy it treated as data type like  string,integer........
    one more thing you want to change data type in your application then you will create SIMPLE TYPE..then put  it TYpe property of value  Attribute
    Ex--you want to change the format of double value using "," then you will change only by  using simple type.
    STRUCTURE---Basically it use for creating for context value node in any context of controller(View,component )if you creat one structure then add  number of attribute .when you create context value node then you binding the structure then automatically it will populate with value node as structure name and attribute .
    SIMPLE TYPE---only put as Data type of Attribute and simple type also use within Structure at time of creation
    STRUCTURE---you can use for DAta type of Apptibute..
    thanks
    Jati

  • Data Type structure within ABAP

    Can the structure of a message type within XI be seen using ABAP.

    Hi Martin !
    I'm afraid not. The process works the other way around. You can create/define it in ABAP and then import it in XI (as RFC).
    Or design it in XI (Integration Repository) and "export" it as an ABAP Proxy class in SAP ERP.
    Regards,
    Matias.

Maybe you are looking for