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

Similar Messages

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

  • 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

  • How can I modify the "Type definition​s" of "Function Prototype" if I want build a DLL in Labview 8.5.1.?

    Hello,
    We have a library with several VIs (API - Interfaces to our Real Time Target). This VIs we provide to our customer to generate own VIs to control the Real Time Target.
    Now we want to provide the functionality of this VI-library as DLL to our customer. The problem is, that labview use self definite name of type definitions. Also if I use "strict Type definition".
    Example:
    void GetOutputValues(VARIANT *Scale_In, int32_t ModelNr, uint16_t SignalID[], TD1 *errorIn, VARIANT *Scale_Out, TD2 *Data, TD1 *errorOut, int32_t len)
    It is possible to modify "TD1" and "TD2"? I want to give useful names.
    Greetings
    Steffen

    Hi Steffen,
          Try editing the .h file as follows:
    CHANGE FROM:
    typedef struct {
     LVBoolean status;
     long code;
     LStrHandle source;
     } TD1;
    CHANGE TO:
    typedef struct {
     LVBoolean status;
     long code;
     LStrHandle source;
     } TD1;
    typedef struct {
     LVBoolean status;
     long code;
     LStrHandle source;
     } LVErrorCluster;
    then your GetOutputValues prototype becomes:
    void GetOutputValues(VARIANT *Scale_In, int32_t ModelNr, uint16_t SignalID[], LVErrorCluster *errorIn, VARIANT *Scale_Out, TD2 *Data, LVErrorCluster *errorOut, int32_t len)
    If your source-code doesn't refer to "TD1", then you probably won't need to keep the TD1 prototype!
    Cheers.
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • How to include structure

    HI,
    I Create table in se11 and i want to include in the second field structure
    How i can do that ?
    Regards
    Joy

    Hi, Joy
    Please Search Before Posting many thread available related to your Query
    Regards,
    Faisal

  • How to include a slug-type area on PDF export

    Does anyone know how I can include a slug area (or something similar) on an AI file when I save as PDF?  I need to include a part number, revision number and date of the file for reference purposes.  I've tried searching and can't seem to find a solution.  Thanks in advance!
    Mel

    To elaborate make your document artboard the correct size you need it so you can work properly.
    Then place your slug as close as you feel you can then make another artboard encompassing the origina atboard plus the area the slug has been position.
    That way you have the sim0ple choice of making the pdf of the larger one and then when you do not need the slug just select the document artboard.
    Or if you include a bleed with trim marks then you can save with the bleed and trim mark settings and layout yur slug to fit in the area encomassed by the trim marks.
    You can also use trim marks without a bleed so if you do not have bleeds you can still accomplish what you want.

  • How to include atribute xsi:type in the xml generated through java

    Hi,
    i am generating an xml using java and castor.
    I want to include this attribute in my xml:
    xsi:type="abc"
    for example:
    My snippet is:
    Underwriting_detail[] underwritingDetail = new Underwriting_detail[1];
    underwritingDetail[0] = new Underwriting_detail();
    underwritingDetail[0].setContent(fulfillmentPreResponseTO.getUnderwritingDetailsMainAnswer1());
    underwritingDetail[0].setQuestion_code(fulfillmentPreResponseTO.getUnderwritingDetailsMainQuestionCode1());
    underwritingDetail[0].setAnswer_format(AnswerFormatType.YESNO);
    underwritingDetail[0].setSequence_number(fulfillmentPreResponseTO.getUnderwritingDetailsSequenceNumber());
    Result is:
    <underwriting_detail answer_format="YesNo" sequence_number="1" question_code="JVL1Q1">NO</underwriting_detail>
    The requirement is:
    <underwriting_detail xsi:type="NonStdUWQuestion" answer_format="YesNo" sequence_number="1" question_code="JVL1Q1">No</underwriting_detail>
    There is no method defined in the underwriting_detail class to add this attribute. Is there any way to add this xsi:type="NonStdUWQuestion" in this tag?

    yes, is a question of JSF
    Component dataTable

  • 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

  • How to create a generic TYPES?

    hello!
    what i try to do is following
    eg:
    when i call my function the user has the possibility to check the flag "show_button = 'X', and exports a table
    when this flag is checked i want to display an icon in the first row of this table, so i need to extend the table structure which i import and add another attribute.
    what i actually tried to achieve is this (but this is not working of course)
    function
    import:
          i_outtab type standard table.
    field-symbols:
          <itab> type standard table.
    assign i_outtab to <itab>.
    TYPES: begin of mytyp.
       types: i_bt type iconname.
      INCLUDE STRUCTURE <itab>
    TYPES: end of mytyp.
    and then i create a table with the type mytyp (which is not working, but i shows what i try to do)
    so is there a way to do this genericly?

    You can do that using the ABAP Run Time Type Services.
    Example:
    I have a function module Y_TEST with one Importing Parameter:
    *"  IMPORTING
    *"     REFERENCE(IP_IT_DATA) TYPE  ANY TABLE
    I have no idea about the table-structure and I want to add a field X_SELECTED of type XFELD to the end of the table to display it using CL_SALV_TABLE or something - this is how I do it:
    FUNCTION y_test.
    *"  IMPORTING
    *"     REFERENCE(IP_IT_DATA) TYPE  ANY TABLE
      DATA:
        gr_tabtype TYPE REF TO cl_abap_tabledescr,
        gr_struc   TYPE REF TO cl_abap_structdescr,
        lr_itab    TYPE REF TO data,
        it_component TYPE cl_abap_structdescr=>component_table,
        wa_component LIKE LINE OF it_component.
      FIELD-SYMBOLS:
        <wa> TYPE ANY.
    * Reading 1st line of itab and getting structure ->
      LOOP AT ip_it_data ASSIGNING <wa>.
        gr_struc ?= cl_abap_typedescr=>describe_by_data( <wa> ).
        EXIT.
      ENDLOOP. "ip_it_data
    * Getting all components ->
      CHECK gr_struc IS BOUND.
      it_component = gr_struc->get_components( ).
    * Adding new field (X_SELECTED) to Component-Table ->
      wa_component-name = 'X_SELECTED'.
      wa_component-type ?= cl_abap_typedescr=>describe_by_name( 'XFELD ').
      INSERT wa_component INTO TABLE it_component.
    * Creating new structure-ref ->
      CLEAR gr_struc.
          CALL METHOD cl_abap_structdescr=>create
            EXPORTING
              p_components = it_component
            RECEIVING
              p_result     = gr_struc.
    * Creating new table-ref ->
          CALL METHOD cl_abap_tabledescr=>create
            EXPORTING
              p_line_type  = gr_struc
            RECEIVING
              p_result     = gr_tabtype.
    * Creating itab with our table-ref ->
      CREATE DATA lr_itab TYPE HANDLE gr_tabtype.
    ENDFUNCTION.
    Hope that helped ...

  • Delete item type definition

    Hi,
    Can someone please tell me how to delete an item type definition from database (including the history of it)? Is there a script?
    Thanks
    CL

    Oracle Workflow provides a script to delete the item type definition including its history. It completely wipes out the workflow without even a trace of it. Please note that this script is STRICTLY NOT ALLOWED ON PRODUCTION whatsoever without approval from Oracle Support.
    Please find the script $FND_TOP/sql/wfrmitt.sql in Oracle Apps and $ORACLE_HOME/wf/admin/sql/wfrmitt.sql in Oracle Workflow Standalone.
    Once again, this script wipes off the workflow without a trace and you should not use this in PROD.
    Thanks
    Vijay

  • 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

  • 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

  • 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

  • How to include all the fields of a Table into a Structure.

    How to include a Complete Table into a Structure.
    I want to include all the fields of KNA1 into a structure say W_KNA1(A local structure declared within a program)....How this can b acheived.
    Thanks in Advance.

    if i want to use INCLUDE STRUCTURE.....how will it work.
    TYPES : begin of ty_kna1,
                      INCLUDE STRUCTURE KNA1,
                  end of ty_kna1.
    tell me this is correct stmt.

  • Control Value:Set [Variant] Method - how can i use this with strict type definitions?

    I want to pass default values to a strict type definition from a mainVI to a subVI, but I'm not allowed to use the "Control Valueet [Variant] Method" invoke node to do it.  How else can I achieve this?
    thanks,
    Z

    Hi Z,
    If you use strict type defintion references you can use Call by reference Node. Depending on the connector pane for the subvi which is referenced you just wire your data to the corresponding terminals. I attach an easy example which dynamically opens and writes to an arbitary number of a template.
    Hope it helps
    Pelle S
    District Sales Manager
    National Instruments Sweden
    Attachments:
    Call by reference node.zip ‏20 KB

Maybe you are looking for

  • HOW TO configure oracle bi discoverer 11.1.3 32 bit window to oracle ebs 11

    Hi all , How can we configure oracle bi discoverer 11.1.3(desktop and admin) installed on windows 32 bit with oracle ebs 11i with database 10g installed on sun solaris sparc machine. Kindly send any link which can give me step by step link for this s

  • Use of TM04 in negative time Management

    Dear All, What is the use of TM04 schema in (-)ve time management. For absence and attendaces we use Factoring and the required parameters for Factoring like TKDIVI or TKSOLL is available from function PARTT (Partial period parameter). Can u please e

  • 'operator + cannot be applied to double'

    public double getTotalPrice() {         if (orderItems.size() == 0) {             return 0.0;         double total = 0.0;         for (Iterator it = orderItems.iterator(); it.hasNext();) {             OrderItem oi = (OrderItem) it.next();            

  • Safari 3.2.1 defaults to borderless printing, how do I revert to border?

    I can not figure out how to get Safari to stop using Letter-borderless as a default when I print or save to PDF. Even when I change the print dialogue to Letter-Border it remains and prints borderless. I owned a PIXMA 830 but uninstalled it to instal

  • Can I make two column in one slide?

    Hello, Everybody, I want to know about can i make two column in one slide. One column is demonstration and second column is to make the assessment that is teaching from one column. I can make one slide is demonstration and second is making assessment