Itab declaration include structure error

hi ,
types : begin of it_address_info_type,
       include structure zadrc,
end of it_address_info_type.
here zadrc is a structure.
why its giving error.
shall i need to change this structure to table?
if yes how i will do that?

Hi ,
Please make it as,
types : begin of type.
include type zadrc.
types : end of type. 
or
TYPES: iref TYPE REF TO ZADRC.
or
TYPES: iref type table of mara.
or
TYPES: iref type standard table of mara.
Else.
data : begin of it_address_info_type.
include structure zadrc.
data : end of it_address_info_type.
If you use types it is used to create user defined data type.
But you are refrerring a data object as zadrc. Thats why it shows error.
Regards,
Sankar.
Edited by: sankar on Mar 23, 2008 8:31 AM

Similar Messages

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

  • Syntax error on INCLUDE STRUCTURE.

    Hi Experts,
    It is abit hard to explain what I need here.
    But I try to explain as much as I can.
    I am writing this code in order to update the customer material numbers into internal table tvbdpa. As you can see in my code, getting the customer material numbers require mapping the position number.
    I am stuck at the LOOP below with ***.
    Also getting the syntax error
    _The declaration for the key field "KDMAT" is imcomplete.
    However "KDMAT" is is contained in the key of table "TVBDPA" and must be filled._
    TABLES: vbco3.
    DATA: da_mess LIKE vbfs OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF tvbdpa OCCURS 0,        "Internal table for items
            kdmat LIKE LIPS-KDMAT.
            INCLUDE STRUCTURE vbdpa.
    DATA: END OF tvbdpa.
    DATA: itab_vbak TYPE SORTED TABLE OF vbak
             WITH UNIQUE KEY vbeln,
          wa_vbak  LIKE LINE OF itab_vbak,
          itab_lips TYPE SORTED TABLE OF lips
             WITH UNIQUE KEY vbeln,
          wa_lips   LIKE LINE OF itab_lips,
          wa_tvbdpa LIKE LINE OF tvbdpa,
          lv_zuonr  TYPE vbak-zuonr.
      vbco3-mandt = sy-mandt.
      vbco3-spras = nast-spras.
      vbco3-vbeln = nast-objky.
      vbco3-kunde = nast-parnr.
      vbco3-parvw = nast-parvw.
    CALL FUNCTION 'RV_DOCUMENT_PRINT_VIEW'
      EXPORTING
        comwa                       = vbco3
      IMPORTING
        kopf                        = vbdka
      TABLES
        pos                         = tvbdpa
        mess                        = da_mess
      EXCEPTIONS
        fehler_bei_datenbeschaffung = 1.
    IF NOT tvbdpa[] IS INITIAL.
      SELECT SINGLE zuonr FROM vbak
        INTO lv_zuonr
        WHERE vbeln = vbdka-vbeln.
        IF sy-subrc = 0 AND lv_zuonr <> ''.
          SELECT vbeln posnr kdmat FROM lips
            INTO CORRESPONDING FIELDS OF TABLE itab_lips
            WHERE vbeln = lv_zuonr.
    ***I am stuck at here.
          LOOP AT itab_lips INTO wa_lips.
            READ TABLE tvbdpa INTO wa_tvbdpa
              WITH TABLE KEY posnr = wa_lips-posnr.
            wa_tvbdpa-kdmat = wa_lips-kdmat.
            MODIFY TABLE tvbdpa FROM wa_tvbdpa
                   TRANSPORTING kdmat.
          ENDLOOP.
    ***end I am stuck at here.
        ENDIF.
    ENDIF.
    All advise are welcome and greatly appreciated.
    Thanks in advance.

    Hi Subramanian,
    Does this more make sense for you?
    Can I read the table like :-
            READ TABLE itab_lips INTO wa_lips
              WITH TABLE KEY VBELN = wa_tvbdpa-matnr." AND POSNR = wa_tvbdpa-posnr.
    TABLES: vbco3.
    DATA: da_mess LIKE vbfs OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF tvbdpa OCCURS 0,        "Internal table for items
            kdmat LIKE LIPS-KDMAT.
            INCLUDE STRUCTURE vbdpa.
    DATA: END OF tvbdpa.
    DATA: itab_vbak TYPE SORTED TABLE OF vbak
             WITH UNIQUE KEY vbeln,
          wa_vbak  LIKE LINE OF itab_vbak,
          itab_lips TYPE SORTED TABLE OF lips
             WITH UNIQUE KEY vbeln,
          wa_lips   LIKE LINE OF itab_lips,
          wa_tvbdpa LIKE LINE OF tvbdpa,
          lv_zuonr  TYPE vbak-zuonr.
      vbco3-mandt = sy-mandt.
      vbco3-spras = nast-spras.
      vbco3-vbeln = nast-objky.
      vbco3-kunde = nast-parnr.
      vbco3-parvw = nast-parvw.
    CALL FUNCTION 'RV_DOCUMENT_PRINT_VIEW'
      EXPORTING
        comwa                       = vbco3
      IMPORTING
        kopf                        = vbdka
      TABLES
        pos                         = tvbdpa
        mess                        = da_mess
      EXCEPTIONS
        fehler_bei_datenbeschaffung = 1.
    IF NOT tvbdpa[] IS INITIAL.
      SELECT SINGLE zuonr FROM vbak
        INTO lv_zuonr
        WHERE vbeln = vbdka-vbeln.
        IF sy-subrc = 0 AND lv_zuonr <> ''.
          SELECT vbeln posnr kdmat FROM lips
            INTO CORRESPONDING FIELDS OF TABLE itab_lips
            WHERE vbeln = lv_zuonr.
          LOOP AT tvbdpa INTO wa_tvbdpa.
            READ TABLE itab_lips INTO wa_lips
              WITH TABLE KEY VBELN = wa_tvbdpa-matnr." AND POSNR = wa_tvbdpa-posnr.
            wa_tvbdpa-kdmat = wa_lips-kdmat.
            MODIFY TABLE tvbdpa FROM wa_tvbdpa
                   TRANSPORTING kdmat.
          ENDLOOP.
        ENDIF.
    ENDIF.

  • Include structure in TYPES declaration

    Hello All:
    Many forum posts have discussed similar topics, but I couldn't exactly find one answering my requirement. Apologies if I have missed out reading some.
    Instead of creating a type as below (as suggested in few forum posts)
    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.

    Hello Fred
    If you are using the extended syntax you should not encounter any problems:
    TYPES: begin of types ty_itab.
    TYPES:                     <fld1> type <ty1>.
    TYPES:                     <fld2> type <ty2>.
                         include type <struc>.
    TYPES: End of types ty_itab
    Regards
      Uwe

  • Itab declaration

    Hi,
    Iam trying to declare two strucures into one itab like this.
    data: begin of t_qmel occurs 0.
    <b>     include structure qmel.
            include structure qmih.</b>
    data:   fegrp like qmfe-fegrp,
            fecod like qmfe-fecod,
    data: end of t_qmel.
    Since common fields(MANDT & QMNUM) are existing in QMIH it is throwing the error.How can i avoid that? I dont want to declare field by field using QMIH.
    cheers
    kaki

    *& Report  YCHATEST                                                    *
    REPORT  YCHATEST                                .
    TYPES: BEGIN OF rec1,
             f1(1) TYPE C,
             f2    TYPE I,
           END OF rec1.
    TYPES: BEGIN OF rec2.
             INCLUDE TYPE rec1 AS g RENAMING WITH SUFFIX _g.
             INCLUDE TYPE rec1 AS h RENAMING WITH SUFFIX _h.
    TYPES: END OF rec2.
    DATA: str TYPE rec2.
    The structure str consists of four components str-f1_g, str-f2_g, str-f1_h and str-f2_h. Using the group component str-g you can address the first two components; you can then address the latter two using str-h These substructures are of the type rec1.

  • Extended syntax check for include structure

    Hello Everyone,
    While declaring the internal table as:
    TYPES: BEGIN OF t_data.
            INCLUDE STRUCTURE mara.
    TYPES: END   OF t_data.
    DATA: it_data TYPE table of t_data.
    When performing extended check, i get following error:
    The current ABAP command is obsolete and problematic, especially so in ABAP
    Objects
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    I am using 4.7 version.
    Any clue how to avoid this error during extended check.
    Regards,
    Tarun

    Tarun,
    With WAS 6.20 you should not declare internal tables with header line or using the old syntax as they are not compatible with OO ABAP.
    So, you either declare a TYPE the way you have done, in case you want additional fields apart from the INCLUDE structure, or declare the table directly like the way I have shown.
    Good thing, you can even specify the type of internal table that you want to create using this - STANDARD, SORTED, HASH. These tables will help you with the performance issues.
    regards,
    Ravi
    Note : Please mark the helpful answers

  • How to include structure in Types Definition ???

    Hello All,
          I want a declaration like this in BSP :-
    DATA : BEGIN OF imkop OCCURS 100.
                   INCLUDE STRUCTURE mkop.
    DATA :   waers LIKE mepro-waers.      
    DATA : END OF imkop.
    <b>In BSP: Type Definitions</b>
    I wrote like this :-
    Types : BEGIN OF imkop.
                    INCLUDE STRUCTURE mkop.
    Types :   waers type mepro-waers.      
    Types : END OF imkop. 
                   I'm getting an error saying that I can't use structures in this .
    Now what should I do ?
    Can anyone help me out ?
    Regards,
    Deepu.K

    deepu,
    we can declare structures as below.
    DATA:  event_data      TYPE REF TO cl_htmlb_event.
    TYPES: BEGIN OF row_iid_type,
           row_iid  TYPE hap_row_iid,
           END OF row_iid_type.
    DATA:
           t_row             TYPE STANDARD TABLE OF row_iid_type,
           t_row_wa          TYPE row_iid_type,
           t_message  TYPE STANDARD TABLE OF bal_s_msg .
    DATA:
           lw_body_element   TYPE hap_s_body_elements,
           lw_body_column    TYPE hap_s_body_columns,
           lw_body_cell      TYPE hap_s_body_cells,
           lw_return         TYPE bal_s_msg,
           warning TYPE i.
    regards,
    manasa

  • Declare flat structure as a internal table

    hi,
    i wrote the following code to declare structure as a internal table ....
    TYPES: BEGIN OF internalltdoclinks.
    include structure CRMT_DOC_FLOW_DB_WRKT.
    types: END OF internalltdoclinks.
    DATA: it_table TYPE STANDARD TABLE OF internalltdoclinks,
    wa_bkpf TYPE internalltdoclinks.
    it give me error as CRMT_DOC_FLOW_DB_WRKT
    "CRMT_DOC_FLOW_DB_WRKT" must be a flat structure. You cannot use   internal tables,strings ,references ,or structure as a component.
    THANKS.

    Hi,
    You can declare as below if you want to declare a internal table
    DATA: LT_DATA TYPE TABLE OF CRMT_DOC_FLOW_DB_WRKT.
    So that there would be any error.

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

  • In a server proxy how can I use a INCLUDE STRUCTURE?

    Hi people!!, how can I put an internal table with an INCLUDE statement in a server proxy in abap. If I put the next code the system present me this error: Within classes and interfaces, you can only use "TYPE" to refer to ABAP     , Dictionary types, not "LIKE" or "STRUCTURE".
    The problem is that I need the STRUCTURE to make a APPEND.
    Thanks for the help.
    DATA: BEGIN OF bdc_tab .
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.

    Hi Carlos,
    Yes. It mainly accepts TYPE statements.
    You can use this as:
    DATA: BDC_LINE type bdcdata.
    DATA: BDC_TAB type table of bdcdata.
    When you want to use,
    Fill the BDC_LINE.
    Then:
    Append BDC_LINE to BDC_TAB.
    Or:
    Loop at BDC_TAB into BDC_LINE.
    Cheers,
    Bhanu

  • Include structure and extra fields in the same Internal Table

    Hi developers,
    im trying to declare an internal table with include structure and extra fields,
    something like this:
    data: BEGIN OF it_loans occurs 0,
          include structure zthrca006,   
          status(10),
          pernr   like pa0001-pernr,
          sname   like pa0001-pernr,
          tipomov(20),
          monto   like zthrca006-monto,
    data: END of it_loans.
    zthrca006 is huge so i dont want to type everithing.

    What is the issue?
    data: BEGIN OF it_loans occurs 0.
                 include structure zthrca006.
    data :     status(10),
    data :     pernr like pa0001-pernr.
    data :     sname like pa0001-pernr.
    data :     tipomov(20).
    data :     monto like zthrca006-monto,.
    data:  END of it_loans.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • Include structure problem

    Hi,
    I'm trying to compile simple construction in ECC 60:
    types: begin of t_bbseg.
             include structure bbseg.
    types: end of t_bbseg.
    I have compilation error:
    "The type "SI_BBSEG" is unknown"
    Is anyone had something like this before?
    We are NetWeaver 2004S Unicode enabled.
    Thank you,
    Ihar

    If you are trying to include BSEG as a structure in the TYPE, use the TYPE keyword instead
    types: begin of t_bbseg.
    include type bseg.
    types: end of t_bbseg.
    REgards,
    Rich Heilman

  • Include structure in smartform

    I am trying to define types in smartform Global->Types.
    1---types: BEGIN OF tvbdpr1.
            INCLUDE STRUCURE vbdpr.----
    vbdpr is view
          types: END OF tvbdpr1.
    it gives error:
    "." or "IF FOUND." expected after "STRUCURE".
    BUT when i define below there is no error
    types: BEGIN OF tkomv1.
            INCLUDE STRUCTURE komv.-------it is table
    types: END OF tkomv1.
    any help thanks
    ismail

    It was spelling error, thanks

  • Table type with include structure

    Hi All,
    How to declare a table type with include structure
    i am declaraing it in the following way its giving epc check of obselete statement,
    could any one tell me how to declare a table type and internal table for the following code.
    DATA:BEGIN OF TY_OUTPUT OCCURS 0.
    DATA:PS_PSP_PNR TYPE EKKN-PS_PSP_PNR.
    INCLUDE STRUCTURE ST_ZCDTT0005.
    DATA:END OF TY_OUTPUT.
    Thanks in advance.

    Hi
    TYPES: BEGIN OF TY_OUTPUT,
             PS_PSP_PNR TYPE EKKN-PS_PSP_PNR.
             INCLUDE STRUCTURE ST_ZCDTT0005.
    TYPES: END OF TY_OUTPUT.
    TYPES: TY_T_OUTPUT TYPE TABLE OF TY_OUTPUT.
    Max

  • Upgrade issue in ECC6.0 for include structure

    Hi All,
    I have the following issue while upgrading to ecc6.0.
    data:begin of it_cats,
            include structure cosp,
          end of it_cats.
    I am geeting syntax error as include structure is not allowed in ecc6.0.What is the replacement for this?
    Thanks.
    Ramya.

    Hallo There,
    I read some of the already available posts on this topic but did not find any relevant answers so please excuse of the information already exists out there.
    Here is the question:
    Please consider the code (from above posts):
    data:begin of it_cats.
           include structure cosp.
    data: end of it_cats.
    I read some where that this can  be replaced by  :
    DATA it_cats type cosp.
    Is this correct ?
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/includ02.htm
    Regards
    SG

Maybe you are looking for

  • The duplex issue in the Crystal report

    I am developing Purchase Order print document.  <p class="MsoNormal">I have a Crystal Reports 9 for Visual Studio .NET.</p>  <p class="MsoNormal">My program prints set of the P/Os and each of metioned P/O has its own Terms and Condition Information.(

  • How can i transfer files from adobe reader to my kobo e-book

    how can i transfer files from adobe reader to my kobo e-book??

  • Reference Table

    Hi,   I am creating a purchase header and item table(With same fields as in the standard table) in SE11. But when iam creating the Purchase item, it is giving error that ZPURI-MENGE (specify reference table AND reference field) ZPURI-NETPR (specify r

  • Purchase Order Request: (Third party -- XI-- SRM)

    Hi, We have the following scenario: Purchase order is send from our application to XI and then from XI to SRM. This purchase order will have a unique ID (our application assigns the ID). We would like SRM to send back Purchase Order Confirmation, and

  • Error 150:30 OSX 10.8.5 CS4

    Hi! I have an error 150:30 comming up since I unfortunately upgraded to Maverick and made a roll back to a 10.8.5 using a time mashine back-up. I have a MBP. Any fast advises? Nothing works: CS4, ID, Ai, Acrobat Pro... Thanks