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.

Similar Messages

  • How to copy the structure of a Field Symbol?

    Hi,
              I have a requirement where in a dynamic Internal table is supposed to be created. I have created that dynamic table using the class method cl_alv_table_create=>create_dynamic_table. Here I have a structure in the field symbol. My requirement is how do I create a internal table with the structure that is there in the field symbol?...
    and i'm unable to refer to the field that is dynamically created in the field symbol.
    Like,
    <gfs_tab>-pernr = itab-pernr.
    in the above stmt the field pernr is created in the field symbol dynamically.
    Thanks,
    Deepak.

    Hi Matt,
                my objective is to create an internal table with structure that i have obtained in <gfs_tab> .
    other than the pernr, there are many fields dynamically generated.
    say if I have generated the following structure in <gfs_tab> :
    pernr            ename1            day1             day2                 day3
    then I want to create an internal table with the above structure so that my internal table will have fields:
    1) pernr
    2) ename1
    3) day1
    4) day2
    5) day3
    for each execution of the report there will be different structure generated in <gfs_tab> depending upon the inputs that I give.
    Thanks,
    Deepak.

  • 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 structure with reserved field

    hi :
        I meet  a problem .
        That when I cteate a global structure in ddic . named  zgs_outtab .
        The requirement  that let me create a  field . It's description is 'Sales office' and  reserved  this field ,and don't fill data for this filed .
        but I don't know the  data type ,so when I  check ,I report me the error .
       Which data type I should use .?
       Thank you .
    Description     Table     Fields     Remarks
    Sales office               reserved field   don't fill data
    Edited by: chao zhangchao on Feb 16, 2009 3:14 AM

    table: TVBUR Sales office
    TVKBT Sales office text

  • How to include header name for the fields in application server

    Hiiii Experts,
                          LOOP AT fp_i_wwcmp INTO fp_wa_wwcmp.
          CONCATENATE  fp_wa_wwcmp-pernr
                       fp_wa_wwcmp-etype
                       fp_wa_wwcmp-maxbt
                       fp_wa_wwcmp-epayperiod
                       fp_wa_wwcmp-currencyid
                       INTO l_v_data SEPARATED BY l_v_char_tab.
    i need to insert header names for etype,maxbt,epayperiod,currencyid which are needed to be transfer to  application server.
    regards,
    kasyap
    Edited by: Harish Kasyap on Sep 18, 2009 2:49 PM

    hiiiii clemens thanks a lot for ur reply,
                                                               this is not an alv report,the output is directly transfered into application server AL11.
    and i have used this statement
    CONCATENATE 'ID'
                    'EpayType'
                    'EpayAmount'
                    'EpayPeriod'
                    'CurrencyID'
                       INTO l_v_data SEPARATED BY l_v_char_tab.
    transfer l_V_data.
    is this the rite one
    regards,
    kasyap

  • Assigning structures with different fields to a field symbol

    Hi,
    can anybody give a example code of how to assign a structure to a field symbol in aloop if the structure is containing more than 1 type of data .
    i am giving the code please try so that it could run ina unicode environment.and doesnt give dump.
    TABLES: SNAP,
            SNAP_BEG,
            SNAPT.
    DATA: BEGIN OF I_SNAP_BEG OCCURS 0.
            INCLUDE STRUCTURE SNAP_BEG.
    DATA    TCODE LIKE SY-TCODE.
    DATA    REPID LIKE SY-REPID.
    DATA    TLINE LIKE SNAPT-TLINE.
    DATA    SIGN(1).
    DATA  END OF I_SNAP_BEG.
    DATA    DATUM LIKE SY-DATUM.
    DATA: BEGIN OF FCC,
               ID(2), LL(3), ERRID LIKE SNAPT-ERRID,
            END OF FCC.
      FIELD-SYMBOLS: <F> .
      SELECT * FROM SNAP_BEG INTO TABLE I_SNAP_BEG.
        SELECT * FROM SNAP UP TO 1 ROWS
                   WHERE DATUM = I_SNAP_BEG-DATUM.
        ENDSELECT.
        MODIFY I_SNAP_BEG.
    LOOP AT I_SNAP_BEG ASSIGNING <F>.
        MOVE-CORRESPONDING I_SNAP_BEG TO SNAP.
        FCC = I_SNAP_BEG-FLIST.
        IF FCC-LL CO '0123456789'.
         ASSIGN FCC-ERRID(FCC-LL) TO <F>.
          SNAPT-ERRID = <F>.
        ELSE.
          SNAPT-ERRID = '?????'.
        ENDIF.
    ENDLOOP.
    WRITE : <F>.

    hi it useful

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

  • HOW to include a reference currency fields in a view ?

    Hello Experts,
    <b>I am having Currency fields error in generic extraction</b>
    I have table where I am trying to extract data to BW via generic extraction. When I tried
    to extract with the TABLE its giving me an error
    <b>Invalid extract structure template RPSCO of DataSource ZBW_REP3_TEST
    You tried to generate an extract structure with the template structure RPSCO. This operation failed, because the template structure quantityfields or currency fields, for example, field WLP00 refer to a differenttable</b>.
    Now I created a view with all the fields same as my table.
    But its still giving me the same error and taking all the fields as a primary keys. I have over 12 currency fields in the table. I am confused how to fix this issue and add a currency field to my view?
    hOW to include a reference currency fields in a view ?
    All inputs are much appreciated.
    Thanks and Regards,
    Harish

    Thank you for your responce,
    Can you please check my view and let me know where I am going wrong     
    View    Table   Field  Dataele  Data
    field                    type                                            0                                                                
    WLP01     RPSCO     WLP01     BP_WPL     CURR     15     Period value in ledger currency
    WLP02     RPSCO     WLP02     BP_WPL     CURR     15     Period value in ledger currency
    WLP03     RPSCO     WLP03     BP_WPL     CURR     15     Period value in ledger currency
    WLP04     RPSCO     WLP04     BP_WPL     CURR     15     Period value in ledger currency
    WLP05     RPSCO     WLP05     BP_WPL     CURR     15     Period value in ledger currency
    WLP06     RPSCO     WLP06     BP_WPL     CURR     15     Period value in ledger currency
    WLP07     RPSCO     WLP07     BP_WPL     CURR     15     Period value in ledger currency
    WLP08     RPSCO     WLP08     BP_WPL     CURR     15     Period value in ledger currency
    WLP09     RPSCO     WLP09     BP_WPL     CURR     15     Period value in ledger currency
    If I add a
    Table TCURC against any field what would be the view field and data element
    Do I need to tick MOD?
    Please suggest.
    Kapadia,
    If I do that its still taking all the fields are a primary keys and bringing 6 lakh records to where I originally have 49 records in a table
    Thanks and Regards,
    Harish

  • How to include new fields in PRICAT

    Hi,
    My aim is to import a new field to the PRICAT price catalogue, and be able to
    maintain this field in transaction W_PRICAT_MAINTAIN.
    I have entered the new field in table PRICAT_K003 (using an append structure),
    and have used the Badi implementation WRF_PRICAT_DIALOG to include the new field in the ALV report definition for transaction W_PRICAT_MAINTAIN. For this purpose I also included the field in structure WRF_PRICAT_K003_STY.
    However, when trying to make the necessary changes to copy the field content  from PRICAT_K003 to the new screen field, I encounter a few problems.
    For this I have created a new Badi implementation for Badi definition
    WRF_PRICAT_POOL, method IF_EX_WRF_PRICAT_POOL~EXTEND_ARTICLE_MASTER.
    This method uses parameter io_inbound_item (type ref to CL_INBOUND_ITEM). The field doesn't seem to be visible in any of the available structures in this method. I have attempted to include the new field in some of the other structures (in addtion to WRF_PRICAT_K003_STY), but have been told by the system not to do this.
    Any suggestions on how to solve this problem?
    If there is anybody out there who have a description on how to import new fields
    into PRICAT and further on to the article master, I would very much appreciate if you could pass it on to me.
    Best regards,
    Per Erik Fjelde

    Hi,
    I have a similar problem with inbound pricat. I extended PRICAT_K003 with a few custom fields. These fields are filled using a BAPI table extension and implementing IF_EX_PRICAT_IN_EXTIN. The fields show up correctly in W_PRICAT_MAINTAIN and are also filled when I look in the database table. But when I create an article master from an entry in the pricate catalogue, all custom fields are cleared. I wanted to use IF_EX_WRF_BADIPRE_POST_MAT~PRICAT_PRE_POSTING_PROCESS to transfer the custom fields to MARA, but the incoming structures of the method only include blank custom fields.
    So I found IF_EX_WRF_PRICAT_POOL, but it's methods include only structures which are not extendable. So I don't see how I can preserve the data in my custom fields.
    Per Erik, have you found a solution for your problem?
    Is there anybody else out there who knows how to transfer custom fields from the price catalogue to material master data?
    Best regards,
    Holger Merk

  • 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

  • Including MANDT field in ABAP Query Report as output field

    Hi All,
    I need to display the client(MANDT) field in the ABAP Query Report as an output field.
    But in SQ01 where we select the fields to be displayed as output in query , this field is not visible.
    I later checked in the Infoset. Even in the infoset the field MANDT is greyed out and all other fields are active.
    Can someone tell me how to include the field MANDT in the output of the ABAP Query Report.

    self resolved

  • How to include field in document header

    Dear All,
    Any one please give me some input on how to include a field in document header of f-02 .
    Thanks,
    Srini.

    Hi,
    You will have to modify the screen via SE51 (program SAPMF05A, screen 100). Ask to your ABAP team to help you, though such a modification should be carefully considered.
    By the way, is it a user-defined field or field that should be there and is just missing? If the last is true, it could be a bug and solved by relevant OSS correction.
    Regards,
    Eli

  • How to include the file name as an XML field

    Hi,
    I'm using a file adapter for process a flat file and convert it into an XML. Does anybody knows how to include the file name into an XML field.
    Ex.
    I process the file named <b>XXIMN21022007.txt</b> and I need an XML like:
    <MT_FILE>
    <field1></field1>
    <field2></field2>
    <field3></field3>
    <filename><b>XXIMN21022007.txt</b></filename>
    </MT_FILE>
    Regards
    Gonzalo

    Just go for dynamic configuration.
    Check the sender file adapter to write the filename in the header (as explained in Michal's blog) and then read that header in some mapping.
    U can use that even in simple message mappings.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Your code for the filename tag would be something like:
    <i>DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    return conf.get(key);</i>
    Regards,
    Henrique.

  • How to display MANDT field in ALV Grid display?

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = LV_REPID
       I_STRUCTURE_NAME                  = 'ZSTR_TRAIL'
       I_SAVE                            = 'A'
      TABLES
        T_OUTTAB                          = it_output
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    In the above code, I m using structure ZSTR_TRAIL, having MANDT field as the first field.
    But I am not able see the MANDT field column in the ALV output, but the internal table it_output is
    is populated with the client number in  MANDT field.
    What should I do to display the MANDT field?
    All the fields in the internal table it_output are displayed properly except the MANDT field.

    Hi Mohana,
    When you directly declare your structure in teh function module it will skip the Mandt field while displaying the out put.
    So if you would like to display the mandt field too then insted of defining it in the stucture parameter, you will have to manually fill the fieldcatalog.
    Ex :
      wa_fieldcat-col_pos = 1.
      wa_fieldcat-row_pos = 1.
      wa_fieldcat-fieldname = 'MANDT'.
      wa_fieldcat-tabname = 'it_final'.
      wa_fieldcat-ref_fieldname = 'MANDT'.
      wa_fieldcat-ref_tabname = 'ZSTR_TRAIL'.
      wa_fieldcat-outputlen = '20'.
      wa_fieldcat-key = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-col_pos = 2.
      wa_fieldcat-row_pos = 2.
      wa_fieldcat-fieldname = 'ERDAT'.
      wa_fieldcat-tabname = 'it_final'.
      wa_fieldcat-ref_fieldname = 'ERDAT'.
      wa_fieldcat-ref_tabname = 'VBAK'.
      wa_fieldcat-reptext_ddic = 'X' .
      wa_fieldcat-key = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
        i_callback_program                = sy-cprog
        it_fieldcat                       = it_fieldcat
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it_final
    EXCEPTIONS
       program_error                     = 1
       OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    This will fix your issue.
    Regards,
    Kittu
    Edited by: Kittu on Nov 5, 2009 8:25 AM

  • How to find the structure fields data in database tables?

    how to find the structure fields data in database tables?

    Your question doesn't appear to be Web Dynpro ABAP related. Please only post questions in this forum if they are directly Web Dynpro ABAP related.  There are several other more general ABAP related forums.

Maybe you are looking for

  • Keyboard stops responding only with InDesign CS5.5

    Hi there. I have a problem with the keyboard - only when using InDesign CS5.5. Periodically (several times an hour) my keyboard will stop responding, that is to say that no shortcuts work at all, until I select Save (which I can't even do with Ctr+S)

  • How to display the 500-internal server error on the Exception Handler page

    Hello My situation is as follows : JDev 11.1.1.0.2, ADF fusion application, one unbounded task flow containing 2 view pages view1.jspx and error.jspx The error jspx is marked as the exception handler. When an error occurs (typically a 500-Internal Se

  • Object name completion

    In ACE documentation, it talks about one feature referred as Object name completion, does anyone know what it is?

  • MacBook Pro with Cinema HD 30"

    Does MacBook Pro 2.0 Ghz video adapter (ATI Radeon XT1600) suitable for Apple Cinema HD 30" connection?

  • CS6 crashing when doing extensive cloning - Macbook Pro Retina

    Hi, I have a trial version of C6.  When sending a file from Lightroom 4.3 beta into CS6 when I have to clone in some wood panels in a background, I'm crashing.  I just downloaded 4.3 so I'll see what happens.  I'm using latest Mac Mountain Lion on a