ECC 6.0 internal table dump

Hi,
I am passing a database table from selection screen(Eg T001) and build dynamic internal table and get the data from table and put into dynamic internal table.
I am getting dump in below code.
LOOP AT <dyn_table> INTO <dyn_wa>.
   wa_result-line = <dyn_wa>.
   APPEND wa_result TO i_result.
   CLEAR wa_result.
ENDLOOP.
Can anybody please execute the below progra and try to help me to put data into normal internal table i_result from dynamic internal table.
Full points will be given to useful answer.
Thanks in advance for your help.
Thanks and Regards,
Suresh.
REPORT Z_dynamic_internal_table.
TYPE-POOLS : abap.
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
              <dyn_wa>,
              <dyn_field>.
DATA: dy_table TYPE REF TO data,
     dy_line  TYPE REF TO data,
     xfc TYPE lvc_s_fcat,
     ifc TYPE lvc_t_fcat.
TYPES: BEGIN OF t_result,
       line(1024) TYPE c,
      END OF t_result.
DATA: i_result TYPE TABLE OF t_result,
     wa_result TYPE t_result.
DATA: tablename(16) TYPE c.
DATA: cond(80) TYPE c.
PARAMETERS: tabnam(8) TYPE c.
tablename = tabnam.
PERFORM get_structure USING tablename.
PERFORM create_dynamic_itab USING tablename.
PERFORM get_data USING tablename cond.
PERFORM write_out USING tablename.
*&      Form  get_structure
      text
FORM get_structure USING tablename.
DATA : idetails TYPE abap_compdescr_tab,
        xdetails TYPE abap_compdescr.
DATA : ref_table_des TYPE REF TO cl_abap_structdescr.
ref_table_des ?=
     cl_abap_typedescr=>describe_by_name( tablename ).
idetails[] = ref_table_des->components[].
LOOP AT idetails INTO xdetails.
   CLEAR xfc.
   xfc-fieldname = xdetails-name .
   xfc-datatype = xdetails-type_kind.
   xfc-inttype = xdetails-type_kind.
   xfc-intlen = xdetails-length.
   xfc-decimals = xdetails-decimals.
   APPEND xfc TO ifc.
ENDLOOP.
ENDFORM.                    "get_structure
*&      Form  create_dynamic_itab
      text
FORM create_dynamic_itab USING tablename.
*----Create dynamic internal table and assign to fs
CALL METHOD cl_alv_table_create=>create_dynamic_table
   EXPORTING
     it_fieldcatalog = ifc
   IMPORTING
     ep_table        = dy_table.
CREATE DATA dy_table TYPE STANDARD TABLE OF (tablename).
ASSIGN dy_table->* TO <dyn_table>.
*----Create dynamic work area and assign to fs
CREATE DATA dy_line TYPE (tablename).
ASSIGN dy_line->* TO <dyn_wa>.
ENDFORM.                    "create_dynamic_itab
*&      Form  get_data
      text
FORM get_data USING tablename cond.
*----Select data from table.           .
SELECT * INTO CORRESPONDING FIELDS OF TABLE <dyn_table>
            FROM (tablename) WHERE (cond).
ENDFORM.                    "get_data
*&      Form  WRITE_OUT
      text
-->  p1        text
<--  p2        text
FORM write_out USING tablename .
LOOP AT <dyn_table> INTO <dyn_wa>.
   wa_result-line = <dyn_wa>.
   APPEND wa_result TO i_result.
   CLEAR wa_result.
ENDLOOP.
ENDFORM.                    " WRITE_OUT

Hi,
       Check the below code, it may be useful.
data:it_grnchk  TYPE TABLE OF ty_grnchk WITH NON-UNIQUE KEY mblnr_i bwart_i.
FIELD-SYMBOLS: <l_table> TYPE  STANDARD TABLE,
                           <l_line>  TYPE ANY,<wa_grn>  TYPE ty_grnchk, <l_field> TYPE ANY,
CALL METHOD cl_alv_table_create=>create_dynamic_table
  EXPORTING
   I_STYLE_TABLE             =
    it_fieldcatalog           = it_fcat
   I_LENGTH_IN_BYTE          =
  IMPORTING
    EP_TABLE                  = new_table
   E_STYLE_FNAME             =
EXCEPTIONS
   GENERATE_SUBPOOL_DIR_FULL = 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.
ASSIGN new_table->* TO <l_table>.
CREATE DATA new_line LIKE LINE OF <l_table>.
ASSIGN new_line->* TO <l_line>.
ASSIGN new_line->* TO <t_line>.
***********assigning dynamic Internal table  vlaues to normal internal table
LOOP AT <l_table> INTO <l_line>.
         ASSIGN COMPONENT sy-index OF STRUCTURE <l_line> TO <l_field>.
         MOVE-CORRESPONDING <l_field> TO <wa_grn>.
         APPEND <wa_grn> TO it_grnchk.
    ENDLOOP.
IF useful.......................
Regards,
S.Senthil kumar

Similar Messages

  • Short dump-internal table size issue

    Hi,
    I get the following message in the short dump analysis for a report.
    No storage space available for extending table "IT_920".
    You attempted to extend an internal table, but the required space was not available.
    Error Analysis:
    The internal table "IT_920" could not be enlarged further.             
    To extend the internal table, 9696 bytes of storage space was          
    needed, but none was available. At this point, the table "IT_920" has  
    1008240 entries.
    Its an old report and I saw the internal table declaration using the "OCCURS" clause in the internal table declaration.
    begin of itab occurs 100.
    end of itab.
    I tried the option of changing to "OCCURS 0", still issue persists.
    Any help would be highly appretiated
    CM

    Hello CMV,
    This is basic problem with SAP internal tables. For every internal table memory is alocated ( Max..256K)...once you cross the memory size/limit of the internal table it resuls in short dump.
    Only way to overcome this problem is handle limited number of records at a time.. 
    Please refer following sample code which will help you to avoid short dump while processing large number of records....
      SORT TAB_RESULT.
      DESCRIBE TABLE TAB_RESULT LINES W_RECORDS.
      W_LOW      = 1.
      W_UP       = 1000.
    *Spliting the records from tab_result1 by pakage of 1000 at a time
    *to avoid short dump in case of more records
      WHILE W_LOW <= W_RECORDS.
        R_PKUNWE-SIGN = 'I'.
        R_PKUNWE-OPTION = 'EQ'.
        R_WERKS-SIGN = 'I'.
        R_WERKS-OPTION = 'EQ'.
        LOOP AT TAB_RESULT FROM W_LOW TO W_UP.
          MOVE TAB_RESULT-PKUNWE TO R_PKUNWE-LOW.
          MOVE TAB_RESULT-WERKS  TO  R_WERKS-LOW.
          APPEND R_PKUNWE.
          APPEND R_WERKS.
        ENDLOOP.
    *fetch sold to party
         SELECT KUNNR NAME1
           FROM KNA1
           APPENDING CORRESPONDING FIELDS OF TABLE TAB_KNA1
           WHERE KUNNR IN R_PKUNWE.
    *fetch plant
      SELECT WERKS NAME1
             FROM T001W
             APPENDING CORRESPONDING FIELDS OF TABLE TAB_T001W
             WHERE WERKS IN R_WERKS.
       REFRESH: R_PKUNWE,
                R_WERKS.
        W_LOW = W_LOW + 1000.
        W_UP  = W_UP  + 1000.
      ENDWHILE.
    Hope this will help you to solve problem.
    Cheers,
    Nilesh

  • Short dump while reading a currency field from Flat file into internal tabl

    Hi,
    I am getting a short dump........saying number conversion dump (while reading a currency value into field in internal table from a fixed lenght flat file).........
    Do I need to use a string variable to get the value from flat file or how ??
    Please suggest.

    Santosh,
    Thanks for your inputs,
    But my internal table type is of DEC (5,2) , I am getting that... it needs to be of type 'C'. Can you suggest.
    Ex :
    MOVE wa_temp-infile_string+106(8)  TO wa_item-QT_PERCENT
    This didnt work
    so i tried moving into a seperate variable
    MOVE wa_temp-infile_string+106(8)  TO v_percent.
    and then write to
    WRITE v_percent to  wa_item-QT_PERCENT.

  • Short dump - No more storage space available for extending an internal tabl

    Hi All,
    I have requirement in which my program generates a text file on my presentation server. Here my problem is, this requirement can not be executed in back ground, it should be done in foreground only. When I execute in foreground, if the data records comes to some 38 lacks then I am getting a short dump saying 'No more storage space available for extending an internal table'.
    And in dump analysis under WHAT HAPPENED section it is giving as
    ' What happened?                                                                                |
    |    You attempted to extend an internal table, but the required space was                         |
    |    not available.
    Please suggest me, what I have to do in this case?
    Thanks in advance.
    Thanks,
    Sudha Mettu

    Hi SuDash,
    Allocation of the memory spaces will be done by BASIS people.
    you can contact them..
    Regards!

  • Short dump -No more storage space available for extending an internal table

    Hi All,
    While running one program I get the short dump saying
    "No more storage space available for extending an internal table "IT_862".
    Error Analysis given in the dump log :
    The internal table "IT_862" could not be enlarged further.
    To extend the internal table, 14656 bytes of storage space was
    needed, but none was available. At this point, the table "IT_862" has
    8528862 entries.
    Source Code Extract :
    003360     loop at t_line.
    003370       clear t_output.
    003380
    003390   *   Increment Line counter
    003400       add 1 to l_line_cnt.
    003410
    003420       t_output-object = t_stxh-tdobject.
    003430       t_output-id     = t_stxh-tdid.
    003440       t_output-spras  = t_stxh-tdspras.
    003450       t_output-name   = t_stxh-tdname.
    003460       t_output-line   = l_line_cnt.
    003470       t_output-format = t_line-tdformat.
    003480       t_output-text   = t_line-tdline.
         *>       append toutput.   " ERROR POINT*
    Can you please suggest what can be the possible solution for the above error.
    Thanks in advance.
    Sanjeet

    Hi
    Check out this thread:
    Re: No storage space available for extending the internal table
    Make sure you are not having an infinite loop.
    Hope this helps
    Regards,
    Jayanthi.K

  • Internal table export and import in ECC 5.0 version

    Hi friends,
    I am trying to export and import internal table from one program to other program.
    The below… export and import commands are not working when I run the program in background (using SUBMIT zxxxx via JOB name NUMBER number…..)
    EXPORT ITAB TO MEMORY id 'ZMATERIAL_CREATE'.
    IMPORT ItAB FROM MEMORY ID 'ZMATERIAL_CREATE'.
    Normally it should work. Since It’s not working I am trying with another alternative..
    i.e EXPORT (ptab) INTERNAL TABLE itab.
    My sap version is ECC 5.0….
    For your information, here I am forwarding sap help. Pls have a look and explain how to declare ptab internal table.
    +Extract from SAP help+
    In the dynamic case the parameter list is specified in an index table ptab with two columns. These columns can have any name and have to be of the type "character". In the first column of ptab, you have to specify the names of the parameters and in the second column the data objects. If the second column is initial, then the name of the parameter in the first column has to match the name of a data object. The data object is then stored under its name in the cluster. If the first column of ptab is initial, an uncatchable exception will be raised.
    Outside of classes you can also use a single-column internal table for parameter_list for the dynamic form. In doing so, all data objects are implicitly stored under their name in the data cluster.
    My internal table having around 45 columns.
    pls help me.
    Thanks in advance
    raghunath

    The export/import should work the way you are using it. Just make sure you are using same memory id and make sure its unique - meaning u are using it only for this itab purpose and not overwriting it with other values. Check itab is not initial before you export in program 1 - then import it in prog2 with same memory id...also check case, I am not sure if its case sensitive...
    Here is how you use the second variant...
    Two fields with two different identifications "P1" and "P2" with the dynamic variant of the cluster definition are written to the ABAP Memory. After execution of the statement IMPORT, the contents of the fields text1 and text2 are interchanged.
    TYPES:
      BEGIN OF tab_type,
        para TYPE string,
        dobj TYPE string,
      END OF tab_type.
    DATA:
      id    TYPE c LENGTH 10 VALUE 'TEXTS',
      text1 TYPE string VALUE `IKE`,
      text2 TYPE string VALUE `TINA`,
      line  TYPE tab_type,
      itab  TYPE STANDARD TABLE OF tab_type.
    line-para = 'P1'.
    line-dobj = 'TEXT1'.
    APPEND line TO itab.
    line-para = 'P2'.
    line-dobj = 'TEXT2'.
    APPEND line TO itab.
    EXPORT (itab)     TO MEMORY ID id.
    IMPORT p1 = text2
           p2 = text1 FROM MEMORY ID id.

  • Abap dump:  internal table too small, condense non-character like fields

    Hi there,
    I created a dynamic internal table by:
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    ASSIGN IT_EP_TABLE->* TO <IT_DBTABLE>.
        SELECT * FROM (P_TABLE_NAME)
         <b> INTO TABLE <IT_DBTABLE> </b>
    It gave the error <b> internal table too small </b> SAPSQL_SELECT_TAB_TOO_SMALL,
    so I removed the error by using "into corresponding fields of <IT_DBTABLE>.
    But now it is not creating a TXT file by function module from internal table records. As it says the CONDENSE statement cannot be executed and dump occurs: 'OBJECTS_NOT_CHARLIKE' 'The current statement only supports character-type data objects', 'In statement
    "CONDENSE" the argument "<F_SOURCE>" can only take a character-type data object'.
    It only happens for table AFPO. As I think this table has fields i.e. currency which cannot be treated as characters. Is the move corresponding approach ok. Or how can I create text file with these records.

    try creating a dynamic table in the image of the source table and then move-corresponding to the original one. Something like this:
    DATA dref TYPE REF TO data.
    DATA tabdref TYPE REF TO data.
    FIELD-SYMBOLS <dyn_struc> TYPE ANY.
    FIELD-SYMBOLS <struc> TYPE ANY.
    FIELD-SYMBOLS <tab> TYPE table.
    *create table of your choice
    CREATE DATA tabdref TYPE TABLE OF (P_TABLE_NAME).
      ASSIGN tabdref->* TO <tab>.
    create a line variable for the above table
    CREATE DATA dref like line of <tab>.
    ASSIGN dref->* TO <struc>.
    create a line variable for the dynamically created table
    CREATE DATA dref like line of <IT_DBTABLE>.
    ASSIGN dref->* TO <dyn_struc>.
    SELECT * FROM (P_TABLE_NAME)
    INTO TABLE <tab>.
    loop at <tab> assigning <struc>.
    move-corresponding <tab> to <dyn_struc>.
    append <dyn_struc> to <IT_DBTABLE>.
    endloop.

  • Internal table size - short dump

    Hi all,
    I am getting following error:
    'Following a SELECT statement, the data read could not be placed in AN
    the output area.                                                     
    A conversion may have been intended that is not supported by the     
    system, or the output area may be too small.'                      
    Actually I am extracting data into an internal table. I have implemented my own logic to fetch data in packets. And after each packet, I am freeing the internal table using FREE command. After fetching 16 data packets, it gives me this error.
    Please help me with this.
    Thanks and regards,
    Ridhima

    It gives short dump in selecting data from ETXDCJ
    *--  Local Data
      DATA:  t_etxdch  TYPE STANDARD TABLE OF tp_etxdch,
             t_etxdci  TYPE STANDARD TABLE OF tp_etxdci,
             t_etxdcj  TYPE STANDARD TABLE OF tp_etxdcj,
             t_docnr   TYPE STANDARD TABLE OF tp_docnr,
             wa_etxdch TYPE tp_etxdch,
             wa_etxdci TYPE tp_etxdci,
             wa_etxdcj TYPE tp_etxdcj,
             wa_docnr  TYPE tp_docnr,
             wa_data   TYPE zoxdev0388,
             l_lines   TYPE sy-tabix,
             l_line1   TYPE sy-tabix,
             l_times   TYPE sy-index,
             l_div     TYPE sy-index,
             l_cnt1    TYPE sy-tabix,
             l_cnt2    TYPE sy-tabix.
    *--  Clean Up
      CLEAR: t_etxdch[],
             t_etxdci[],
             t_etxdcj[],
             t_docnr[].
    *--  Get the document numbers selected in extraction
      LOOP AT c_t_data.
        CLEAR wa_docnr.
        wa_docnr = c_t_data-docnr.
        APPEND wa_docnr TO t_docnr.
      ENDLOOP.
      DATA: t_doc TYPE STANDARD TABLE OF tp_docnr,
            wa_doc TYPE tp_docnr.
      DESCRIBE TABLE t_docnr LINES l_lines.
      CHECK l_lines IS NOT INITIAL.
      WHILE l_cnt2 LE l_lines.
        l_cnt1 = l_cnt2 + 1.
        l_cnt2 = l_cnt1 + 200.
        APPEND LINES OF t_docnr FROM l_cnt1 TO l_cnt2 TO t_doc.
        SORT t_doc BY docnr.
        DELETE ADJACENT DUPLICATES FROM t_doc COMPARING docnr.
    *--  Get Header data
        SELECT    docnr
                  client
                  currency
                  gl_currency
          FROM    etxdch
          INTO    TABLE t_etxdch
          FOR     ALL ENTRIES IN t_doc
          WHERE   docnr = t_doc-docnr.
    *--  Success
        IF sy-subrc IS INITIAL.
          SORT t_etxdch BY docnr.
        ENDIF.
    *--  Get Item data
        SELECT    docnr
                  itemnr
                  quantity
                  unit
                  amount
                  gross_amount
                  freight_am
                  exempt_amt
                  taxpcov
                  taxamov
                  gl_taxpcov
                  gl_taxamov
          FROM    etxdci
          INTO    TABLE t_etxdci
          FOR     ALL ENTRIES IN t_doc
          WHERE   docnr = t_doc-docnr.
    *--  Success
        IF sy-subrc IS INITIAL.
          SORT t_etxdci BY docnr
                           itemnr.
        ENDIF.
    *--  Get Jurisdiction data
        SELECT    docnr
                  itemnr
                  txjlv
                  taxpct
                  taxamt
                  taxbas
                  examt
                  gl_taxpct
                  gl_taxamt
                  gl_taxbas
          FROM    etxdcj
          INTO    TABLE t_etxdcj
          FOR     ALL ENTRIES IN t_doc
          WHERE   docnr = t_doc-docnr.
    *--  Success
        IF sy-subrc IS INITIAL.
          SORT t_etxdcj BY docnr
                           itemnr
                           txjlv.
        ENDIF.
    *--  Populate the enhanced fields
        CLEAR wa_data.
        LOOP AT c_t_data INTO wa_data FROM l_cnt1 TO l_cnt2.
    *--  Populate Header fields
          CLEAR wa_etxdch.
          READ TABLE t_etxdch INTO wa_etxdch WITH KEY docnr = wa_data-docnr
                                             BINARY SEARCH.
          IF sy-subrc IS INITIAL.
            wa_data-yyclient      = wa_etxdch-client.
            wa_data-yycurrency    = wa_etxdch-currency.
            wa_data-yygl_currency = wa_etxdch-gl_currency.
          ENDIF.
    *--  Populate Item fields
          CLEAR wa_etxdci.
         READ TABLE t_etxdci INTO wa_etxdci WITH KEY docnr  = wa_data-docnr
                                                    itemnr = wa_data-itemnr
                                            BINARY SEARCH.
          IF sy-subrc IS INITIAL.
            wa_data-yyquantity     = wa_etxdci-quantity.
            wa_data-yyunit         = wa_etxdci-unit.
            wa_data-yyamount       = wa_etxdci-amount.
            wa_data-yygross_amount = wa_etxdci-gross_amount.
            wa_data-yyfreight_am   = wa_etxdci-freight_am.
            wa_data-yyexempt_amt   = wa_etxdci-exempt_amt.
            wa_data-yytaxpcov      = wa_etxdci-taxpcov.
            wa_data-yytaxamov      = wa_etxdci-taxamov.
            wa_data-yygl_taxpcov   = wa_etxdci-gl_taxpcov.
            wa_data-yygl_taxamov   = wa_etxdci-gl_taxamov.
          ENDIF.
    *--  Populate Jurisdiction fields
          CLEAR wa_etxdcj.
         READ TABLE t_etxdcj INTO wa_etxdcj WITH KEY docnr  = wa_data-docnr
                                                    itemnr = wa_data-itemnr
                                                     txjlv  = wa_data-txjlv
                                            BINARY SEARCH.
          IF sy-subrc IS INITIAL.
            wa_data-yytaxpct    = wa_etxdcj-taxpct.
            wa_data-yytaxamt    = wa_etxdcj-taxamt.
            wa_data-yytaxbas    = wa_etxdcj-taxbas.
            wa_data-yyexamt     = wa_etxdcj-examt.
            wa_data-yygl_taxpct = wa_etxdcj-gl_taxpct.
            wa_data-yygl_taxamt = wa_etxdcj-gl_taxamt.
            wa_data-yygl_taxbas = wa_etxdcj-gl_taxbas.
          ENDIF.
    *--  Update values in Extract structure
          MODIFY c_t_data FROM wa_data.
          CLEAR wa_data.
        ENDLOOP.
        CLEAR: t_doc[].
        FREE : t_etxdch,
        t_etxdci,
        t_etxdcj.
      ENDWHILE.

  • ABAP Internal table cannot be extended dump

    Hi,
    I am getting the error abap internal table cannot be extended dump for FI program.
    If I make use of Hashed table instead of Standard internal table,will it solve the problem.Will the hashed table able to hold more data.
    Rgds

    Hi ,
    Can you tell me which table you have used for reference  to create internal table  .
      can you show the code  for creating internal table  .
      Problem can be   if  you have used  include structure  of   any another table  and  that table  have  size category  such that it can store  only that much values  which you have set for creating that SAP table   .
    Regards
    Deepak.
    Edited by: Deepak Dhamat on Aug 8, 2011 11:18 AM

  • Getting Dump "No more storage space available for extending an internal table" ??

    Hi All,
    In Web Ui while i was click save, it taking too much of time for saving at all lost it throwing dump such as "No more storage space available for extending an internal table". Recently Basis side did some activities for storing day to day transaction in back up server, after this activities i am getting this problem. i opening that Bsp component it throwing some information message such as component not integrated, i didn't see that message properly but i clicked continue button. After that basis activity only i got that information message once.
    i dont know what is the issue. Can anyone give solution for this issue
    Thanks,
    Anbu

    Ask your basis guys to clean up the system memory. This is happening because no memory is left.
    ~Kavindra

  • Dump --  No more storage space available for extending an internal table

    In Our system we are getting this dump
    No more storage space available for extending an internal table
    and because of it no user is able to login into the system.
    We have Some classes in the system and we have defined shared memories to all classes according to regions.
    So for a particular class means users of a region are not able to logon to systems and we are getting these dumps in the system.
    So please suggest first how to clear the shared memory & how to conclude what activity in system made the shared memory full.
    Regards,
    Shivam Mittal

    My OS is HP-UNIX..
    And we do not access on OS level,So please suggest the way to clear it from SAP level.
    In dump it is also mentioned:
    The internal table "\AREA=<Name>\INSTANCE=$DEFAULT_INSTANCE$\VER
    SID=2\OBJ={O:1.2*\CLASS=<CLASS>\DATA=GT_BUFFER[1]-DATA" could
      not be further extended. To enable
    error handling, the table had to be delete before this log was written.
    As a result, the table is displayed further down or, if you branch to
    the ABAP Debugger, with 0 rows.
    At the time of the termination, the following data was determined for
    the relevant internal table:
    Memory location: "\AREA=<Name>\INST=$DEFAULT_INSTANCE$\CLNT=100"
    Row width: 156
    Number of rows: 0
    Allocated rows: 63
    Newly requested rows: 1216 (in 19 blocks)
    Please also suggest what is the internel table name that is causing the issue.
    Regards,
    Shivam Mittal

  • Short Dump to extending internal table memory

    Hi All,
    I have an internal table with 10 million records . While appending records to this internal table iam getting dump as "No storage space available for extending the internal table." .I declared internal table with "OCCURS 0 "How can i avoid this dump ?

    Hi,
    The problem seems to be related to overflow of the internal table allocation size which will be set by BASIS people. Like if the internal table size restricted to say 1024KB and if we are trying to push data more than this it will throw such error.
    Please try to split them into more smaller but several internal tables. Also try to restrict the number of records selected, if they are not really required to be selected.
    Regards,
    Ferry Lianto

  • Good practices for ECC 6.0 wr.t. internal tables..

    hi,
    i am told that when defining internal tables in ecc 6.0, we shud avoid using OCCURS and WITH HEADER LINE.  and always use work areas..
    is this right ? is this a good practice or a must ?
    i followed this and created an internal table without a header line .then i  am using a collect statement in my programn which fails and says that IT is not with header line !!
    COLLECT ITT.
    what to do ?
    thks

    Yes, that is correct.  SAP is pushing the use of ABAP Objects and you can not use OCCURS or HEADER LINEs in the ABAP OO context.  You should always defined explicitly and a work area.
    Data: itab type table of mara.
    Data: wa like line of itab.
    So then you must keep this in mind when doing any operations on internal tables, like in the case of the COLLECT statement, the syntax would be.
    wa-field1 = '1'.
    wa-field2 = '2'.
    Collect wa into itab.
    Regards,
    Rich Heilman

  • Upload data from Excel to Internal table in ECC

    Hello SDN,
    Here I am facing a problem for uploading the data from excel sheet to internal table in ECC6.0
    Main problem is we don't have any FM ALSM_EXCEL_TO_INTERNAL_TABLE.
    Please provide me the solution how to upload the data from excel to internal table through class. If possible please provide me the sample code so that it will be very helpful for me.
    Waitingfor your valuable response.
    Thanks & Regards,
    Kumar.

    Hi,
    you can use OLE to acces (not only) excel, but this will only work in dialog processing.
    regards,
    Hans

  • Append Data from Java Web Dynpro to an Internal Table in ECC

    Hi,
    Currently I am using AdaptiveRFCModels to creating/updating records from Java Web Dynbpro to FM in R/3. Users can add few records before they save the changes. The current design is Java Web Dynpro call RFC FM when user add/edit one record. The record will store in an global internal table in the Function Group. For example, I have added 3 records before I save the changes. It means that global internal table should have 3 records that I added before I save it. But in fact, the global internal table only store one record while I adding the third record. The global internal table not able to keep the previous records. The code below is how I code to execute the FM from Java Webdynpro. Is the code can work as I expected? Anything missing in the codes? Please advice. Thanks.
    wdContext.nodeZhr_abc_Input().bind((Zhr_abc_Input) model.createModelObject(Zhr_abc_Input.class));
    Zhr_abc_Input objReq = new Zhr_abc_Input();
    Zhr_Pad31 insUpdVer = new Zhr_Pad31();
    insUpdVer.setQ_Id(wdContext.currentContextElement().getQ_Id());
    insUpdVer.setZ_ce(wdContext.currentZhr_Detail_OutputElement().getZ_ce());
    objReq.addLt_Pad88(insUpdVer);
    wdContext.nodeZhr_abc_Input().bind(objReq);
    wdContext.currentZhr_abc_InputElement().modelObject().execute();

    According to your code you are setting only one record.
    You have to create 3 elements for each record and add all the three to the nodeZhr_abc_Input node.
    If I understand correctly, node currentZhr_Detail_Output is the one which is containing all the three records. Loop through this node, pick each record and set to the input node.
    wdContext.nodeZhr_abc_Input().bind((Zhr_abc_Input) model.createModelObject(Zhr_abc_Input.class));
    for(int i=0;i<wdContext.nodeZhr_Detail_Output().size();i++)
    Zhr_abc_Input objReq = new Zhr_abc_Input();
    Zhr_Pad31 insUpdVer = new Zhr_Pad31();
    insUpdVer.setQ_Id(wdContext.currentContextElement().getQ_Id());
    insUpdVer.setZ_ce(wdContext.nodeZhr_Detail_Output().getElementAt(i).getZ_ce());
    objReq.addLt_Pad88(insUpdVer);
    wdContext.nodeZhr_abc_Input().addElement(objReq); // Changed from bind to addElement
    }//for end
    wdContext.currentZhr_abc_InputElement().modelObject().execute();
    Note: I just typed the code. Syntax might be wrong here and there. Please correct it while coding.
    Regards,
    Jaya.

Maybe you are looking for

  • MATSHITA DVD-R UJ-816 DVD burn fails if computer is doing other things too

    I can burn DVDs successfully if I leave the computer alone and don't try to do anything else with it while the burn is taking place. However, if I am printing or typing or even using the Finder at the same time, then the burned disk will not verify (

  • Not finding characteristics in another client (quality)

    Hi Gurus, I had configured operating concern in development cilent. Now I want to create new operating concern in quality client But I am not able to find the same characteristics in quality client. how to find the same characteristics in quality cli

  • Group Asset indicator for tax dep. in asset master

    Problem in group asset for tax dep While creating asset master data, indicator for Group Asset is in non - changeable mode for tax depreciation under area 15. When we assign group asset under Additional Specifications in the box Group Asset, system i

  • Timed digital IO in PXI-6602

    Dear All,         I have PXI-6602 timer card. In which i have 8 timer IO and 32 Digital IO. In my application i need timer tick or counter on which i have to change my 32 digital IO state.         I mean to say that if timer tick is 100, i have to ma

  • I want to be able to print using windows remote desktop services what printers can i use?

    Hi I want to use Windows Remote Desktop Services on my iMAC. I understand some printers work but some dont  when printing from the VDI client. Can anyone give me a list of printers that will work with the VDI client or some work arounds so that I can