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

Similar Messages

  • 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

  • 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

  • MAX NUMBER OF FIELDS IN AN INFOTYPE

    Hello Partners,
    The reason of the question is that i have to create an 9xxx Inftype but it has to have more than 150 fields because it has 2 Control Tables.
    So What is the best way to do it?

    Hi,
    The sum of all the length of the field cannot be more than 4030 chars. So you need to split the infotype into two different Infotypes or try to create the Master and Dependent tables.

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

  • Max number of rows in a BEX structure

    Hi gurus,
    we need to create a structure with 164 key figures, and before starting doing it, does anybody knows which is the max number of rows that can be created on a BEX structure?
    I'm not asking about max number of rows on a query, i'm asking about the number of entries that you can manually create on a structure. Is there a maximum?
    Thanks in advance,
    regards,
    Miguel

    Hi Migual,
    You can add as per your requirement. Please refer the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/4d/e2bebb41da1d42917100471b364efa/content.htm
    Assign Points if helpful.
    Regards,
    Amit

  • Summarization  ( max number in fi reached)

    Hi Gurus,
    When i try to post goods issue in outbound delivery, it gives me an error max number in fi reached. then i customize for fi summarization. i made a customizing in OBYC work area VBRK and BSEG- MATNR.
    But it still gives me the same error. Which work area do i have to customize in obyc?
    PLease can you guide me ?

    Now i get this error
    Error in FI data compression
        Message no. F5843
    Diagnosis
        The data in the FI document should be summarized via field ''. However,
        the system could not find this field in the internal structure (see
        'LFACIGEN').
    System response
        This error stems from inconsistencies between the data base tables of
        the FI document and the internal summarization structure.
    Procedure
        Start program 'SAPFACCG', in order to reset the internal structure, and
        then check whether field '' is in 'LFACIGEN'. enthalten ist.
    I have checked and it is not empty. what can i do?

  • 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

  • Max number of orders

    Hi,
    I am working on ECC 6.0.
    I have been trying to use the Max number of orders for a Z condition type .
    The Max number of orders it is not working even after reaching the max order even after reaching the max order. If anyone has faced such an issue before kindly help.
    I had set the limits for pricing in the VK11  - additional data- Max number of order But of no use.
    Thanks
    Manoj

    hi,
    pl check if the conditin update field in the condition type definition is ticked or not at V/06.
    regards
    sadhu kishore

  • Max number of persons in contact groups - Nokia Lu...

    The max number of persons allowed in a contact group is (as far as I know) restricted to 20 persons. This seems very low and I wonder why this restriction is applied. A limitation of 20 persons in a group is not practical. Any explanation or any idea if this can be changed in the future?

    As you've discovered the maximum number of contacts you can have in a contact group is 20.  If you'd like this limit to be changed to a higher number you really should post a request or add your votes to a similar request on Microsoft's user voice fo....  This is the place that Microsoft created to field user requests for enhanced options for windows phone.
    Microsoft MVP Windows Phone

  • Max number of records in an internal table

    Hi,
    Can any one tell me what is the Max Number of records we can get into an internal table.
    if you have any link of sap help on this please FWD.
    thanks in Adv.
    Regards,
    Lakshmikanth.T.V

    Hi lakshmikanth,
    Internal Tables as Dynamic Data Objects
    Internal tables are always completely specified regarding row type, key and access type. However, the number of lines is not fixed. Thus internal tables are dynamic data objects, since they can contain any number of lines of a particular type. The only restriction on the number of lines an internal table may contain are the limits of your system installation. The maximum memory that can be occupied by an internal table (including its internal administration) is 2 gigabytes. A more realistic figure is up to 500 megabytes. An additional restriction for hashed tables is that they may not contain more than 2 million entries. The line types of internal tables can be any ABAP data types - elementary, structured, or internal tables. The individual lines of an internal table are called table lines or table entries. Each component of a structured line is called a column in the internal table.
    regards,
    keerthi.

  • Max number of file descriptors in 32 vs 64 bit compilation

    Hi,
    I compiled a simple C app (with Solaris CC compiler) that attempts to open 10000 file descriptors using fopen(). It runs just fine when compile in 64-bit mode (with previously setting �ulimit �S -n 10000�).
    However, when I compile it in 32-bit mode it fails to open more than 253 files. Call to system(�ulimit �a�) suggests that �nofiles (descriptors) 10000�.
    Did anybody ever see similar problem before?
    Thanks in advance,
    Mikhail

    On 32-bit Solaris, the stdio "FILE" struct stores the file descriptor (an integer) in an 8-bit field. WIth 3 files opened automatically at program start (stdin, stdout, stderr), that leaves 253 available file descriptors.
    This limitation stems from early versions of Unix and Solaris, and must be maintained to allow old binaries to continue to work. That is, the layout of the FILE struct is wired into old programs, and thus cannot be changed.
    When 64-bit Solaris was introduced, there was no compatibility issue, since there were no old 64-bit binaries . The limit of 256 file descriptors in stdio was removed by making the field larger. In addition, the layout of the FILE struct is hidden from user programs, so that future changes are possible, should become necessary.
    To work around the limit, you can play some games with dup() and closing the original descriptor to make it available for use with a new file, or you can arrange to have fewer than the max number of files open at one time.
    A new interface for stdio is being implemented to allow a large number of files to be open at one time. I don't know when it will be available or for which versions of Solaris.

Maybe you are looking for

  • Transferring Playlists From A Windows Computer to a Mac (with an IPod???)

    I recently switched from a Windows computer to a Mac and the folk at the Apple Store copied my documents and music files to the new Mac. All of my music that I had on ITunes on the Windows computer was transferred, including all the purchased music.

  • How to maintain video quality after resizing?

    I have a 640 x 360 px video that I want to resize to fit a 480 x 270 px flash movie. When I resize the video to fit the smaller stage the image quality suffers, it looks like low res. When I crop to fit, it looks fine. Is there a way to maintain imag

  • Photoshop CC stops working as soon as it's opened.

    Right after photoshop cc opens up, a windows dialog box pops up and says the program has stopped working. I tried restarting the computer and it sill doesn't work. It happens everytime.  How do I fix this?

  • Processing Scope Waveforms

    Hi, I want to process waveform coming from Scope. I have to calculte positive peaks and get average value for values below 0. Right Now I have done this 1- Replaced all values above 0 with 0. 2- Calculated there average values through basic DC RMS ca

  • Ssh-agent?

    Hey Guys, I notice I have ssh-agent running.  I did not install it or start it. Does it come with arch's openssh package?