Maxim number of fields in a structure

Hi,
I need to create a flat structure with 4000 fields by SE11. Is that possible? Is there any limit on how many fields can be created for a structure?
Thanks,
Karen

i think we can create it.but i am not very sure about that.
however,why do you need that BIG structure ?
Regards
srikanth
Message was edited by: Srikanth Kidambi

Similar Messages

  • Max Number of Fields in a Structure?

    I have been requested to write an RFC that outputs a table with 505 columns ... which would require a structure defined with 505 fields... 
    Before I start typing in 505 of these, i was hoping to find what SAP's maximum number is.
    Does anyone know this?  Thank you in advance!
    Margo Kidd

    I don't know if there is a limit or not.  Are all of the fields the same?  If so you can create a dynamic internal table instead of defining 505 separate fields.
    In this sample program, it does allow for 505 fields in a dynamically created internal table.
    report zrich_0003
           no standard page heading.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>.
    data: alv_fldcat type slis_t_fieldcat_alv,
          it_fldcat type lvc_t_fcat.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_check type c.
    selection-screen end of block b1.
    start-of-selection.
      perform build_dyn_itab.
      perform build_report.
      loop at <dyn_table> into <dyn_wa>.
        write:/ <dyn_wa>.
      endloop.
    *  Build_dyn_itab
    form build_dyn_itab.
      data: index(3) type c.
      data: new_table type ref to data,
            new_line  type ref to data,
            wa_it_fldcat type lvc_s_fcat.
    * Create fields
      clear index.
      do 505 times.
        index = sy-index.
        clear wa_it_fldcat.
        concatenate 'Field' index into
                 wa_it_fldcat-fieldname .
        condense  wa_it_fldcat-fieldname no-gaps.
        wa_it_fldcat-datatype = 'CHAR'.
        wa_it_fldcat-intlen = 5.
        append wa_it_fldcat to it_fldcat .
      enddo.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    endform.
    *      Form  build_report
    form build_report.
      data: fieldname(20) type c.
      data: fieldvalue(5) type c.
      data: index(3) type c.
      field-symbols: <fs1>.
      do 505 times.
        index = sy-index.
    * Set up fieldname
        concatenate 'FIELD' index into
                 fieldname .
        condense   fieldname  no-gaps.
    * Set up fieldvalue
        concatenate 'FLD' index into
                 fieldvalue.
        condense   fieldvalue no-gaps.
        assign component  fieldname  of structure <dyn_wa> to <fs1>.
        <fs1> =  fieldvalue.
      enddo.
    * Append to the dynamic internal table
      append <dyn_wa> to <dyn_table>.
    endform.
    BTW, Welcome to SDN. Please remember to award points for helpful answers and mark you posts as solved when solved completely.  Thanks.
    Regards,
    Rich Heilman

  • Different number of fields in extract structure and Datasource

    Hi All,
    There is a data source 0FUNCT_LOC_ATTR, which are showing 16 fields in the datasource. But when i went into the extract structure, it shows 25 fields. Is it any kind of bug?
    thanks
    Annie

    Hi MTi,
    Thanks for your reply. I checked in ROOSOURCE and ROOSFIELD table and found that we activated the datasource somewhere in 14.08.2008 and the delivered version is in 18.11.2008. Now i reactivated the datasource in RSA5 and could see all the fields in RSA6.
    Actaully we posted the issue to SAP and they have come back with the same reply what you have mentioned.
    Cheers
    Annie

  • How to find out the number of fields in generated proxy structure?

    Hi All,
    Can anybody help me to find out the number of fields in generated proxy structure in back end system along with controller fields.
    i know how to get number of fields in XI system but i want the number of fields in back end system when we generate proxy including automatically generated controller fields.
    Thanks in advance.
    Regards,
    Ujwalkumar

    U mean u want to know at runtime?
    Get the output from ur proxy as a string, count the number of "<" characters and divide it by 2. :-P
    Of course, you'll have to treat the header fields separately.
    Regards,
    Henrique.

  • The source and target structure have a different number of fields

    Hi,
    I am new to workflow and I am trying to create an attachment in Workflow (SAP ECC 6.0) and pass it through to a User Decision (User Decision works fine) however the workflow is failing on the attachment step with u2018The source and target structure have a different number of fieldsu2019. The bindings check ok. Please see details below.
    I have used document u2018Creating Attachments to Work Items or to User Decisions in Workflowsu2019 by Ramakanth Reddy for guidance. Thanks in advance.
    1) Workflow containers (SWDD)
    WORKITEMID (import)
    ZSWR_ATT_ID (export)
    SOFM (export)
    2) Task Container (PFTC)
    1 Import parameter defined u2013 WORKITEMID (swr_struct-workitemid)
    2 Export parameters defined
    - SOFM (Ref. obj. type SOFM)
    - ZSWR_ATT_ID  (swr_att_id-doc_id)
    Binding task -> Method
    Binding for 1 parameter (import) defined
    Task <- Method
    Binding for 2 parameters (export) defined
    3) Z  BOR object created with a Method, Method Parameters and Event (SWO1)
    1 import parameter defined
    2 export parameters defined
    Method calls FM SSF_FUNCTION_MODULE_NAME, CONVERT_OTF, SCMS_XSTRING_TO_BINARY and SAP_WAPI_ATTACHMENT_ADD
    Workflow is triggered by FM SAP_WAPI_CREATE_EVENT, Return_code = 0
    Event_id = 00000000000000000001
    Test results
    A) Triggered by ABAP/ FM SAP_WAPI_CREATE_EVENT - SWI2_DIAG results
    Work item  14791: object <z bor object name> method <method name> cannot be executed. The source and target structure have a different number of fields (this message is repeated 3 times). Error handling for work item 14791. No errors occurred -> details in long text (message is repeated 3 times).
    Message no. WL821, OL383, WL050 in long text
    B) Z BOR Test method <execute>
    Enter workitem id.
    Runtime error - Data objects in Unicode programs cannot be converted. The statement "MOVE src TO dst" requires that the operands "dst" and "src" are convertible. Since this statement is in a Unicode program, the special conversion rules for Unicode programs apply.                                        
    In this case, these rules were violated.   
    Program                             SAPLSWCD                
    Include                                LSWCDF00                
    Row                                    475                     
    Module type                        (FORM)                  
    Module Name                      MOVE_CONTAINER_TO_VALUE           
    C) Z BOR Test method <debugging>
    Enter workitem id.
    SAP_WAPI_ATTACHMENT_ADD, return_code = 0, message_lines  = Attachment created            
    both  swc_set_element container work ok
    Runtime error occurs after end_method executed. Data objects in Unicode programs cannot be converted.
    D) Workflow test
    Enter workitem id <execute>
    Task started> Workflow log> Status = Error
    Workflow errors in Attachment step (however Office document can be viewed in details for step).

    Problem has now been resolved. Problem was related to use of swr_att_id structure and swc_set_element statement in BOR program - problem resolved by only setting w/f container to swr_att_id-doc_id.

  • How can I determine the number of field in the FIELD-SYMBOLS

    Hi, in the following code example I have structure u201Czfsl_sd_credit_balu2019 I define a workarea like that structure and assign that wa to FIELD-SYBOLS. Now can I calculate the number of filed in that FIELD-SYBOLS for further processing on that FIELD-SYBOLS.
    DATA: wa_credit_bal LIKE zfsl_sd_credit_bal.
    "wa_credit_bal-audat = '20081210'.
    wa_credit_bal-vehno = '0as10'.
    wa_credit_bal-VBELN = 'aaad'.
    wa_credit_bal-MOVMT = 'asdfa'.
    wa_credit_bal-quantity = 10.
    wa_credit_bal-recc = 10.
    wa_credit_bal-recb = 10.
    wa_credit_bal-issc = 10.
    wa_credit_bal-issb = 10.
    wa_credit_bal-balc = 10.
    wa_credit_bal-balb = 10.
    wa_credit_bal-cbalc = 10.
    wa_credit_bal-cbalb = 10.
    wa_credit_bal-last_line = 2.
    FIELD-SYMBOLS: <f1>, <f2>, <f3>.
    ASSIGN wa_credit_bal TO <f1>.
    In the bellow u2018FORMu2019
    FORM getsum USING in CHANGING out etext.
      FIELD-SYMBOLS: <f1>, <f2>.
      ASSIGN in TO <f1>.
      out = 0.
      DATA: cin(50),
            iin TYPE i.
      DO 14 TIMES.
        CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.
          ASSIGN COMPONENT sy-index OF STRUCTURE <f1> TO <f2>.
          iin = <f2>.
        ENDCATCH.
        IF sy-subrc = 1.
        ELSE.
          ADD: <f2> TO out.
        ENDIF.
      ENDDO.
    I did u201CDO 14 TIMESu201D because I know that there are 14 field in that structure but it will be problem when user will give a different structure like more then 14 fields in it. So I want to get the no of fields and store it to a variable and replace u201814u2019 with that variable
    Kind regards,
    Faisal

    Thanks, Tahir
    my problem has solved
    Kind Regards,
    Faisal

  • Number of fields in the table

    Hi experts,
    How do you obtain the number of fields of a particular table ?
    I want the count of the fields of a table.
    Thanks in advance,
    Chithra.

    Check the code below:
    DATA: d_ref TYPE REF TO data,
    i_alv_cat TYPE TABLE OF lvc_s_fcat,
    ls_alv_cat LIKE LINE OF i_alv_cat,
    fname TYPE fieldname,
    ncomp(9) TYPE n,
    rcount(9) TYPE n,
    fcount(3) TYPE n.
    TYPES: BEGIN OF itab1,
    message(50) TYPE c,
    END OF itab1.
    DATA: g_itab1 TYPE STANDARD TABLE OF itab1.
    DATA: wa_itab1 TYPE itab1.
    ncomp = 1.
    rcount = 0.
    TYPES: tabname LIKE dcobjdef-name,
    fieldname LIKE dcobjdef-name.
    PARAMETER: p_tablen TYPE tabname. "Input table field
    DATA: BEGIN OF itab OCCURS 0.
    INCLUDE STRUCTURE dntab.
    DATA: END OF itab.
    FIELD-SYMBOLS : <f_fs> TYPE table,
    <f_fs2> TYPE ANY,
    <f_fs3> TYPE ANY,
    <f_fs4> TYPE ANY.
    REFRESH itab.
    CALL FUNCTION 'NAMETAB_GET' "Fetches the fields
    EXPORTING
    langu = sy-langu
    tabname = p_tablen
    TABLES
    nametab = itab
    EXCEPTIONS
    no_texts_found = 1.
    LOOP AT itab .
    ls_alv_cat-fieldname = itab-fieldname.
    ls_alv_cat-ref_table = p_tablen.
    ls_alv_cat-ref_field = itab-fieldname.
    ls_alv_cat-seltext = itab-fieldtext.
    ls_alv_cat-reptext = itab-fieldtext.
    APPEND ls_alv_cat TO i_alv_cat.
    fcount = fcount + 1.
    ENDLOOP.
    WRITE:/ fcount.
    WRITE: ' number of column'.
    internal table build
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = i_alv_cat
    IMPORTING
    ep_table = d_ref.
    ASSIGN d_ref->* TO <f_fs>. " Dynamic table creation with fields of the
    *table
    DATA: l_field TYPE fieldname,
    l_field1 TYPE fieldname.
    SELECT * FROM (p_tablen) INTO CORRESPONDING FIELDS OF TABLE <f_fs>.
    "Fetching of the data from the table
    rcount = 0.
    LOOP AT <f_fs> ASSIGNING <f_fs2>.
    rcount = rcount + 1.
    DO fcount TIMES.
    "Here u can check the validations and process
    ASSIGN COMPONENT ncomp OF STRUCTURE <f_fs2> TO <f_fs4>.
    IF NOT <f_fs4> IS INITIAL.
    MOVE <f_fs4> TO l_field1.
    ncomp = ncomp + 1.
    ELSE.
    CONCATENATE 'IN ROW' rcount 'COLUMN' ncomp 'IS BLANK' INTO wa_itab1.
    APPEND wa_itab1 TO g_itab1.
    ncomp = ncomp + 1.
    ENDIF.
    ENDDO.
    CLEAR:ncomp.
    ENDLOOP.
    LOOP AT g_itab1 INTO wa_itab1.
    WRITE:/ wa_itab1 'is blank'.
    ENDLOOP.
    regards
    Kannaiah

  • How to read fields of a structure or Table.

    Hi,
      I had a requirement where i will send a structure/table name into a Form(Subroutine). This form fills an internal table with all the fields in that structure/table .
          Does any one could suggest any programming method to access the field names of structure/table.
          Please don't suggest any database tables, as the structures iam going to send need not exist in database.
         A quick reply is appreciated.
    Thanks in Advance,
    Anvitha.

    HI Anvitha,
    You can use function REUSE_ALV_FIELDCATALOG_MERGE to get the field names and attributes.
    REPORT test.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab1,
           f1     LIKE vbak-vbeln,
           f2     LIKE vbap-posnr,
           f3     LIKE vbak-netwr,
           END OF itab1.
    DATA : rep TYPE sy-repid      .
    DATA : fcat TYPE  slis_t_fieldcat_alv.
    rep = sy-repid.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       i_program_name               = rep
       i_internal_tabname           = 'ITAB1'
      I_STRUCTURE_NAME             = 'ITAB1'
       i_client_never_display       = 'X'
       i_inclname                   = rep
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
      CHANGING
        ct_fieldcat                  = fcat
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    the internal table fcat will have field names and attributes of internal table.
    Reagrds,
    Gagan

  • Can we modify the attributes(structure-fields) of NUMKR structure

    can we modify the attributes(structure-fields) of NUMKR structure?

    NUMKRS Infotype 0000
    Country grouping
    comapny code
    Personal area
    personla subarea
    employee group
    employee subgroup
    so did u assigned number ranges for employee subgroups
    Internal number ranges will be given by the system
    and external by the consultants
    check and let me know if there is any issues
    have u done in this manner

  • XSU - Maximal number of cursor in a query -(Typelength exceeds max value)

    Hi,
    Is there a way to increase the maximal number of cursors in a OracleXMLQuery object in XSU?
    I have an object splitted in more than 50 tables and I need more than 50 cursors in order to get the whole object as XML.
    XSU is giving me an error each time I try to get more than 50 cursors in a query:
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Typlaenge groesser als Hoechstwert</ERROR>
    (sorry it is german, it means something like Typelength exceeds the maximal value)
    It would be great if someone knows, I tried everything.
    Cheers,
    Diego

    Hi,
    Go to context related method of Search view
        - redifine method DO_INIT_CONTEXT, before redifine copy the existing code.
        - Add the same code to your redfined method and specify the no of max hits required.
        - if this is a custom application you can find the code in Standard Search applications like Quotation/Sale Order etc
    Sample code :
    method DO_INIT_CONTEXT.
      data:
       lv_cnode type ref to cl_bsp_wd_context_node_asp,
       lr_qs    type ref to cl_crm_bol_dquery_service.
      field-symbols: <qs_name> type crmt_ext_obj_name.
    set flag for later intialization in DO_PREPARE_OUTPUT
      me->set_init_qs( abap_true ).
    check if QS already exist
      lv_cnode = get_dquery_cnode( ).
      lr_qs ?= lv_cnode->collection_wrapper->get_first( ).
      if lr_qs is not bound.
      add empty QS in order to allow application to prefill values
        assign lv_cnode->('BASE_ENTITY_NAME') to <qs_name>.
        lr_qs = cl_crm_bol_dquery_service=>get_instance( <qs_name> ).
        lv_cnode->collection_wrapper->add( lr_qs ).
      endif.
    Initialize maximum hits parameter if not yet set
      data: data_ref type ref to data.
      field-symbols: <max_hits> type i.
      data_ref = lr_qs->get_property( iv_attr_name = 'MAX_HITS' )."#EC NOTEXT
      assign data_ref->* to <max_hits>.
      if data_ref is not bound or <max_hits> = 0.
        data: max_hits_default type i.
        max_hits_default = 20000. "cl_crm_ui_parameter_util=>get_search_max_hits( ).
        lr_qs->set_property( iv_attr_name = 'MAX_HITS'
                                iv_value = max_hits_default ).  "#EC NOTEXT
      endif.
    Comment out this code as you might get error for this.
    register for change of dquery service
    set handler on_dquery_changed for lv_cnode->collection_wrapper.
    set handler on_config_data_changed.
    endmethod.
    Thanks,
    Aniket
    Edited by: Aaniket Korde on Dec 14, 2009 11:54 PM

  • Length of a field in a structure

    Hi,
    Is there any restriction on the length of the field in a structure which is CHAR type ??
    Thanks.

    Sample
    report zrich_0001
           line-size 1023.
    data: begin of s,
          a(65510) type c,
          b(25) type c,
          end of s.
          s-a = 'This is field 1 asdfkljas;dfkja;sldkjf;aslkdjf;alskdjfa' &
                'asdfkajsd;kfjas;dlkfj;aslkdjf;alksjdf;lkasjdf;lasdfasdf' &
                'asdfkljas;dlkfj;askdjf;askjdf;lkasdjf;lkasj  thd end'.
          s-b = 'This is field 2'.
          Write:/ s-a.
          write:/ s-b.
    Regards,
    Rich Heilman

  • Problem in Add/Delete fields in Extract Structure.

    Hi All,
    When I want to delete some fields from the extract structure it gives me " " error.
    Steps:
    1. In R/3, T-Code LBWE -> Browse till DS ( ex: 2LIS_02_ITM)
    2. Inactive the DS by clicking on 'Active' under Update column
    3. Click on 'Maintenance' link under Structure column.
    4. Remove a field MCEKKO-KUNNR from left side to right side of the window.
    5. Click on continue button.
    It gives the below error while generating the extract structure.
    "MC03BF0" must be a flat structure. You can not use internal tables, strings,references, or structures as components.-
    Plz help how to handle this error ? The same error msg is displayed if I want to add few fields to the structure.
    Thanks in Adv

    refer steps here:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46

  • How to Identify a table name of a field in the structure

    Hi Guys,
    I have to identify a application table name of a field , the  field is directly mapped with the structure.
    please guide me where the physical data is stored.
    regards
    Vasanth

    HI Vasanth,
    You can select Data Type radio button in SE11 and click on search help F4) ..and provide field name or structure name and then select where Used list option .and select table check box..so that you can find multiple tables wherever this structure is used..
    U can get multiple tables here if this structures is used for multiple tables.So data related to your field will be storing in multiple tables.
    This information may be usefull..
    --Manohar

  • SIgnificance of Bank Number(BNKLZ) field in Master data

    Hi,
    I am working on Bank Master data setup in ECC6 and have a question regarding the significance of Bank Number(BNKLZ) field.
    In IMG settings -> General Settings->Set Countries->Set country specific checks, if Bank Key = 1 i,e Bank Number then in T-code FI01 for Bank Master, the Bank Number field is display only and is automatically copied from Bank Key value.
    However if Bank Key = 4 in config, the Bank Number field becomes open for input in FI01.
    My question is, what is the significance of Bank Number visa viz Bank Key, in Master data - Bank, Vendor (payment transactions) and Customer etc.
    If in the second option ie, Bank Key = 4, I leave the Bank Number blank while creating Bank Master data, will it affect any other processes related to Payment Process etc?
    SAP allows me to leave all of the control data Blank while creating the Bank Key. Will this not create problems for Vendor or Customer Payment processing etc?
    What is the significance of the Control Data section on FI01 while creating a Bank Key?

    Hi,
    bank key (BANKL) is an identification of the bank defined by the user, bank number (BNKLZ) is used to dientify the bank in payment order file, so this should be oficial code of the bank.
    Example: Each bank in Germany is identified by BLZ - that's the bank number. Deutsche Bank in Berlin has BLZ 10070000.
    So, I can use key 1 in country specific checks customizing and have bank key same as bank number, i.e. 10070000. This helps me to enter bank data into master records, because BLZ is always stated next to bank account number on the invoice.
    Or I can use key 4, create the bank with bank key DEUT_BERLIN and enter bank number 10070000. My payment order will be correct, but in vendor master date in the bank key column will be DEUT_BERLIN.
    My recommendation is to use key 1 and keep bank key same as bank number.
    Regards,
    Michal

  • Need to add one field in standard structure???

    Hi Experts,
    I wanted to add one Z-field in standard structure. Anybody will suggest me how to do that step by step??

    open the table in se11 and press append structure in application tool bar
    press create button on pop up window.
    give the append name and include the fields u required.
    Yes, you can add the extra fields to the standard table.
    Create Z-Structure with the fields needed and append the structure to the standard table by using the option append structure within table display
    we can enhance the standard tables by using Append structures and customizing includes.
    Append structures allow you to attach fields to a table without actually having to modify the table itself. Table enhancements using append structures therefore do not have to be planned by SAP developers. An append structure can only belong to exactly one table.
    In contrast, CI_includes allow you to use the same structure in multiple tables. The include statement must already exist in the SAP table or structure. Table enhancements using CI_includes do, however, have to be planned by SAP developers
    regards.
    Rahul
    reward if useful

Maybe you are looking for