Internal table maximum records when occurs 0

hi experts,
i am using the internal table upload data,
at a time it can hold only 10000 recods only ?
how can i capture more than this.
thanks&regards,
srinivas

Try this way.
Create a structure with TYPES statement,
Create internal Table & work area with DATA statement.
Eg:-
TYPES : BEGIN OF ty_itab,
                field1 TYPE mara-matnr,
                field2 TYPE mara-mtart,
              END OF ty_itab.
DATA : it_itab TYPE TABLE OF ty_itab,
            wa_itab TYPE ty_itab.
Now fill the records into that internal table.
When you want to read use
LOOP AT it_ita INTO wa_itab.
ENDLOOP.
Regards
Bala Krishna

Similar Messages

  • SQL Loader-704: Internal error: Maximum record length must be = [10000000]

    Hi,
    running SQL*Loader (Release 8.1.7.2.1) causes an error "SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]". This error occurs when SQLLoader is trying to load several thousand records into a database table. Each record is less than 250 bytes in length.
    Any idea what could cause the problem?
    Thanks in advance!
    Ingo
    And here's an extract from the log file generated by SQLLoader :
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 1360 rows, maximum of 10485760 bytes
    Continuation: none specified
    Path used: Conventional
    Table "SYSTEM"."BASICPROFILE$1", loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    UUID FIRST * O(X07) CHARACTER
    DOMAINID NEXT * O(X07) CHARACTER
    LASTMODIFIED NEXT * O(X07) DATE DD/MM/YYYY HH24:MI:SS
    ANNIVERSARY NEXT * O(X07) CHARACTER
    BIRTHDAY NEXT * O(X07) CHARACTER
    COMPANYNAME NEXT * O(X07) CHARACTER
    DESCRIPTION NEXT * O(X07) CHARACTER
    FIRSTNAME NEXT * O(X07) CHARACTER
    COMPANYNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    FIRSTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    GENDER NEXT * O(X07) CHARACTER
    HOBBIES NEXT * O(X07) CHARACTER
    HONORIFIC NEXT * O(X07) CHARACTER
    JOBTITLE NEXT * O(X07) CHARACTER
    KEYWORDS NEXT * O(X07) CHARACTER
    LASTNAME NEXT * O(X07) CHARACTER
    LASTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    NICKNAME NEXT * O(X07) CHARACTER
    PREFERREDLOCALE NEXT * O(X07) CHARACTER
    PREFERREDCURRENCY NEXT * O(X07) CHARACTER
    PROFESSION NEXT * O(X07) CHARACTER
    SECONDLASTNAME NEXT * O(X07) CHARACTER
    SECONDNAME NEXT * O(X07) CHARACTER
    SUFFIX NEXT * O(X07) CHARACTER
    TITLE NEXT * O(X07) CHARACTER
    CONFIRMATION NEXT * O(X07) CHARACTER
    DEFAULTADDRESSID NEXT * O(X07) CHARACTER
    BUSINESSPARTNERNO NEXT * O(X07) CHARACTER
    TYPECODE NEXT * O(X07) CHARACTER
    OCA NEXT * O(X07) CHARACTER
    SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]

    As a second guess, the terminator changes or goes missing at some point in the data file. If you are running on *NIX, try wc -l data_file_name.  This will give a count of the number of lines (delimited by CHR(10) ) that are in the file.  If this is not close to the number you expected, then that is your problem.
    You could also try gradually working through the data file loading 100 records, then 200, then 300 etc. to see where it starts to fail.
    HTH
    John

  • Internal table max records

    Dear all,
    a very simple question. What is the maximum of records during runtime in an internal table.
    kind regards
    Wolfgang

    An internal table can contain max of 2GB data with it.
    But by applying some patches this limit can increase upto 4 GBs.
    You can get information about it on https://service.sap.com
    Regards,
    Roshani

  • Internal table - move record to first record in table

    How can a move a record already in an internal table to the first record in the table? There is no appropriate sort that would make it the first record.

    Assuming the record is in the header:
    delete itab.
    insert itab index 1.
    That should be - assuming sy-index already points to the record you want to move.
    Rob
    Message was edited by: Rob Burbank

  • TSV_TNEW_PAGE_ALLOC_FAILED  with internal table declared with occurs 0

    HI guys,
    when the internal table is declared as occurs 0, the dump TSV_TNEW_PAGE_ALLOC_FAILED is encountered, when changing the declaration into standard table, th dump disappears. Why is this so?
    Thanks!

    There are three type of tables: Standard, sorted and hashed tables (see [here|http://help.sap.com/abapdocu_70/en/ABAPDATA_ITAB.htm]). When you define a table using the keyword OCCURS you're still defining a standard table.
    Your exception indicates that you're running out of memory. The difference in the declarations that you mention shouldn't cause that. Main difference between the two declaration versions is probably that your table defined via OCCURS has a header line, whereas your other table doesn't (unless you declared it explicitly as WITH HEADER LINE).
    I don't think though that with that little information anybody could explain the short dump. Actually it sounds rather odd that the change you mention should cause the dump (or make it go away). So I suspect you probably have to post further details. You might want to check the shortdump yourself and place a breakpoint at this place and run it for each version. Maybe you can see some difference...

  • How to update Records from Internal table to u2018Zu2019 table?

    Hi Friends,
    How to update Records from Internal table to u2018Zu2019 table.
    I have records in Internal table , that records want to update on u2018Zmarau2019 Table.
    ( my internal table & u2018 Zu2019 table structures are same.)
    Thanking you.
    Regards,
    Subash

    Hi,
    loop at internal table.
    modify <Z- table > from values < internal table Workarea>.
    if sy-subrc = 0.
      COMMIT work.
    else.
      ROLLBACK waork.
    endif.
    endloop.
    or
    UPDATE <Z- table > from table < internal table Workarea>.
    if sy-subrc = 0.
      COMMIT work.
    else.
      ROLLBACK waork.
    endif.
    Prabhudas

  • Store the vital info from the absence quota record in an internal table

    Hi experts,
    I want to detrmine if the Absence record’s (PA2001 rec) deduction from date (PA2001-BEGDA) and absence to date (PA2001-ENDDA) are permissible for the validity period of the Absence Quota record (the PA2006 rec).  If the quota’s deduction from date, PA2006-DESTA, is greater than the PA2001-BEGDA, we then need to identify this absence quota record for change and change the deduction from date, PA2006-DESTA, to be the same as PA2001-BEGDA.  Store the vital info from the absence quota record in an internal table and record the new date that the deduction from date that needs to be changed to.  The changes will be made via a BDC session.
    Please help me out...
    Thanks,
    Vicky

    This looks possible if we code it in 'dynamic action' table, but the BDC may not read it during run time.
    Do you still have this issue?
    Thanks
    Narasimha

  • Internal table record checking (Urgent)

    Hi Experts,
    I have an internal table having records. I want to check each record of the table with every other record to find out if there exist same record for more then one key field.
    Can anybody help me to place the logic for how i can check the records with each record? Like
    lifnr     banks
    1         12
    2         34
    3         12
    4         12
    5          76
    I want to find out 1,3 and 4.
    Thanks a ton in advance

    Hi Moni,
    IF in my First Reply the Second technique was working then this should solve your Problem:
    DATA:
      w_index TYPE i,
      w_lines TYPE i,
      w_duplicate(10) TYPE c.
    DESCRIBE itab LINES w_lines.
    LOOP AT itab INTO wa.
      w_index = sy-tabix + 1.
      DO. 
      READ TABLE itab INTO wa1 INDEX w_index.
        IF w_index <= w_lines.
          IF wa-banks EQ wa1-banks.
            CONCATENATE w_duplicate wa1-lifnr INTO w_duplicate SEPARATED BY SPACE.
            wa-duplicate = w_duplicate.
            MODIFY itab FROM wa.
          ENDIF.
        ELSE.
          EXIT.
        ENDIF.
       ADD 1 TO w_index.
      ENDDO.
    ENDLOOP.
    LOOP AT itab INTO wa.
      write:
        / wa-lifnr,
          wa-banks,
          wa-duplicates.
    ENDLOOP.
    ELSE try the below code it is same as above except one more Internal Table is used:
    DATA:
      w_index        TYPE i,
      w_lines        TYPE i,
      jtab            LIKE itab,
      w_duplicate(10) TYPE c.
    DESCRIBE itab LINES w_lines.
    LOOP AT itab INTO wa.
      w_index = sy-tabix + 1.
      DO. 
      READ TABLE jtab INTO wa1 INDEX w_index.
        IF w_index <= w_lines.
          IF wa-banks EQ wa1-banks.
            CONCATENATE w_duplicate wa1-lifnr INTO w_duplicate SEPARATED BY SPACE.
            wa-duplicate = w_duplicate.
            MODIFY itab FROM wa.
          ENDIF.
        ELSE.
          EXIT.
        ENDIF.
       ADD 1 TO w_index.
      ENDDO.
    ENDLOOP.
    LOOP AT itab INTO wa.
      write:
        / wa-lifnr,
          wa-banks,
          wa-duplicates.
    ENDLOOP.
    Regards,
    Sunil.

  • Division of internal table records

    Dear all
    How can I observe that how many record my internal table got record and how can I divide into by lines
    for ex.
              SELECT SINGLE pvprs FROM ckmlcr INTO sum_pvprs-pvprs
                WHERE poper EQ s_poper AND
                   kalnr = itab2-kalnr AND
                   bdatj = itab2-bdatj AND
                   curtp = itab2-curtp.
              IF sy-subrc = 0.
                APPEND sum_pvprs.
    I want to get arithmetic range of this sum_pvprs-pvprs
    Actually I want to get number of lines and their summations
    pvprs1= 10 pvprs=20 pvprs=30 and then
    after I got this results 102030 = 60 /3 =20 I need this operation.
    All the best
    Message was edited by: yusuf tunay çilesiz

    I am not sure what do you mean by arithmetic range...if you mean min and max numbers you can use the below logic.
    SELECT SINGLE pvprs FROM ckmlcr INTO sum_pvprs-pvprs
    WHERE poper EQ s_poper AND
    kalnr = itab2-kalnr AND
    bdatj = itab2-bdatj AND
    curtp = itab2-curtp.
    IF sy-subrc = 0.
    APPEND sum_pvprs.
    1. you can simply sort the sum_pvprs internal table...on pvprs first ascending and than descending to get the min and max numbers by reading the first record of the internal table.
    REad table sum_pvprs index 1.
    2. you can have two variables lmin and lmax and initialise the same before you append statement.
    if sum_pvprs-pvprs > lmax.
      lmax  = sum_pvprs-pvprs.
    endif.
    if sum_pvprs-pvprs < lmin.
      lmin  = sum_pvprs-pvprs.
    endif.
    <u><b>Sum and Average.</b></u>
    SELECT SINGLE pvprs FROM ckmlcr INTO sum_pvprs-pvprs
    WHERE poper EQ s_poper AND
    kalnr = itab2-kalnr AND
    bdatj = itab2-bdatj AND
    curtp = itab2-curtp.
    IF sy-subrc = 0.
    <b>l_sum = sum_pvprs-pvprs + l_sum.</b>
    APPEND sum_pvprs.
    ENDSELECT.
    <b>DESCRIBE TABLE sum_pvprs LINES lrec.
    lavg = l_sum / lrec.</b>
    Message was edited by: Anurag Bankley

  • How to know the internal table's last record

    Dear friends,
    Just I want to know my internal table last records, Ex:
    I am having the records in my internal table like this:
    Itab-col1
    1
    2
    3
    4
    5
    6
    7
    8
    9
    I want to know and print the last record, it maybe n number of records in my itab.
    If I used at last within a loop but it dosn't work its taking the all *** in header.
    How to know which is the last record in my internal table.
    Thanks,
    Sridhar.

    hi,
    sridher reddy
    1st describe ur table i.e read the number of entries in the table .....
    data : count type i.
    DESCRIBE TABLE <table name > LINES count.
    READ TABLE <table name > INDEX count.
    write : <table name>-<fieldname>.......... .
    by this way u can print the last record of your table

  • How to prepare excels  based on records of internal table.

    Hi abapers,
    I have a scenario as follows:
    In my internal table the records are as follows.
    col1   col2        col3
    1        a1          b1
    2        a2          b1
    3        a3          b2
    4        a4          b3.
    Now want i need is i have to break the records on the basis of  col3 . All b1 rows  are to be taken and dumped in a excel. b2 rows are to be taken and dumped in an excel and similarly for b3. And the name of excel will should be b1, b2 , b3 respectively.
    How do i go for the case?
    Help would be appreciated..
    Regards,
    Navin C
    Edited by: navin.c on Jun 12, 2009 7:41 AM

    put col3 as the first field in your itab.
    TYPES:BEGIN OF ty3,
    col3(3) TYPE c,
    col2(3) TYPE c,
    col1(3) TYPE c,
    END OF ty3.
    DATA:itab3 TYPE TABLE OF ty3.
    DATA:it_xl TYPE TABLE OF ty3.
    DATA:wa3 TYPE ty3.
    DATA:file_name TYPE string.
    SORT itab3 BY col3.
    LOOP AT itab3 INTO wa3.
      APPEND wa3 TO it_xl.
      AT END OF col3.
        READ TABLE itab3 INTO wa3 INDEX sy-tabix.
        CHECK sy-subrc = 0.
        file_name  = wa3-col3.
        PERFORM download_xl USING file_name.
        REFRESH it_xl.
      ENDAT.
    ENDLOOP.
    *&      Form  download_xl
    *       text
    *      -->P_FILE     text
    FORM download_xl USING p_file type any.
      DATA:lv_path TYPE string VALUE 'c:\'.
      CONCATENATE lv_path  p_file '.xls' INTO p_file.
      CONDENSE p_file NO-GAPS.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename              = p_file
          filetype              = 'DAT'
          write_field_separator = '#'
        TABLES
          data_tab              = it_xl.
    ENDFORM.                    "download_xl

  • FROM EXCEL FILE TO INTERNAL TABLE

    HI GURU'S,
    i'm using the following code to conver the excel file into internal table.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
         I_FIELD_SEPERATOR          = 'X'
        I_LINE_HEADER              =
          I_TAB_RAW_DATA             = IT_TAB_RAW_DATA
          I_FILENAME                 = P_FILE
        TABLES
          I_TAB_CONVERTED_DATA       = IT_MM01
       EXCEPTIONS
         CONVERSION_FAILED          = 1
         OTHERS                     = 2
    What is the exact format for the to send the Excel File.
    My requirement is the Excel file contains the several fields , that should be stored as a records in the internal table
    My problem is when i send the data in the excel file as one column, i'm getting all the data in the first column of the Internal Table.
    If i send the data in the excel file as a record it is not filling the internal table.
    what is the problem??/
    if the Excel files contain multiple records is it able to convert the data into internal table records.
    Regards,
    Adi.

    **Internal Table to hold the records in the text file
    Hello Adi,
    Put the fields in excel in the same format in which u want in ur internal table(here record)
    U can refer the following code.
    data: begin of record occurs 0,
          General Data
    data element: BUKRS
            bukrs_001(004), " Company Code
    data element: EKORG
            ekorg_002(004), " Purchase Orgn
    data element: KTOKK
            ktokk_003(004), " Account Group
        end of record.
    Internal Table
    data:it_excel like table of alsmex_tabline with header line.
    **SELECTION-SCREEN**
    selection-screen begin of  block blk.
    parameters: p_file like rlgrap-filename default 'c:\vendor_creation.xls'
    selection-screen end of block blk.
    A T   S E L E C T I O N - S C R E E N   O U T P U T
    ***************START*********************** F4 Help for field p_file
    at selection-screen on value-request for p_file.
    call function 'KD_GET_FILENAME_ON_F4'
    exporting
       program_name        = syst-repid
       dynpro_number       = syst-dynnr
      FIELD_NAME          = ' '
      STATIC              = ' '
      MASK                = ' '
      changing
        file_name           = p_file
    EXCEPTIONS
      MASK_TOO_LONG       = 1
      OTHERS              = 2
    if sy-subrc <>  0.
    message e006(zhnc).
    endif.
    S T A R T - O F - S E L E C T I O N
    start-of-selection.
    data : vf_index type i.
    data : vf_start_col type i value '1',      "start column
             vf_start_row type i value '4',    "start row
             vf_end_col   type i value '200',  "maximum column
             vf_end_row   type i value '2500', "maximum row
             p_text(20).                       "stores error messages
    */ Work Area
    data: wa_intern like it_excel.
    */ Field symbol
    field-symbols : <fs>.
    *********Fn Module to convert the excel file data into internal table
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                      =  'c:\vendor_creation.xls'
        i_begin_col                   =  vf_start_col
        i_begin_row                   =  vf_start_row
        i_end_col                     =  vf_end_col
        i_end_row                     =  vf_end_row
      tables
        intern                        = it_excel
    exceptions
       inconsistent_parameters       = 1
       upload_ole                    = 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.
      if it_excel[] is initial.
        p_text = 'No Data Uploaded'.
      else.
      sort it_excel by row col.
          loop at it_excel.
          move : it_excel-col to vf_index.
          assign component vf_index of structure record to <fs>.
          move : it_excel-value to <fs>.
          at end of row.
            append record.
            clear record.
          endat.
          endloop.
      endif.
    In case of any problem u  can revert back.
    Aastha

  • Export to internal table

    Hi experts:
        I got problems when I'm using 'export/import to internal table'.When 'import to internal table' exected, an ABAP occured, text 'Format error with IMPORT: No further container found.'
        Part of my codes is below:
        Export:
        data: gi_info type standard table of ZBPS_PASSINFO,
                   itab type standard table of ZBPS_PASSINFO,
                   gs_info type ZBPS_PASSINFO.
        loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_ZNU'.
                  gs_info-num = <ld_cell>-value.
                endloop.
                loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_ZNAM'.
                  v_xmmc = <ld_cell>-value.
                endloop.
                loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_ZTZ'.      "
                  v_ZTZ = <ld_cell>-value.
                endloop.
                loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_DEP'.      "
                  v_DEP = <ld_cell>-value.
                endloop.
                loop at layout->mt_html_cell assigning <ld_cell> where row = row_id and chanm = 'ZBPS_SHRY'.      "
                  v_SHRY = <ld_cell>-value.
                endloop.
                gs_info-xmmc = v_xmmc.
                gs_info-ZTZ = v_ZTZ.
                gs_info-DEP = v_DEP.
                gs_info-SHRY = v_SHRY.
                append gs_info to gi_info.
        EXPORT ZPASSINFO FROM gi_info TO INTERNAL TABLE itab.
        Import:
        data: GI_PASSINFO type standard table of ZBPS_PASSINFO,
          itab type standard table of ZBPS_PASSINFO,
          GS_PASSINFO type ZBPS_PASSINFO.
    import ZPASSINFO to GI_PASSINFO from INTERNAL TABLE itab.

    EXPORT - Export data
    Variants
    1. EXPORT obj1 ... objn TO MEMORY.
    2. EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
    3. EXPORT obj1 ... objn TO DATASET dsn(ar) ID key.
    Variant 1
    EXPORT obj1 ... objn TO MEMORY.
    Additions
    1. ... FROM g (for each field to be exported)
    2. ... ID key
    Effect
    Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to ABAP/4 memory .
    If you call a transaction, report or dialog module (with CALL TRANSACTION , SUBMIT or CALL DIALOG ), the contents of ABAP/4 memory are retained, even across several levels. The called transaction can then retrieve the data from there using IMPORT ... FROM MEMORY . Each new EXPORT ... TO MEMORY statement overwrites any old data, so no data is appended.
    If the processing leaves the deepest level of the call chain, the ABAP/4 memory is released.
    Note
    The header lines of internal tables cannot be exported, because specifying the name of an internal table with a header line always exports the actual table data.
    Addition 1
    ... FROM g (for each object to be exported)
    Effect
    Exports the contents of the data object g and stores them under the name specified before FROM .
    Addition 2
    ... ID key
    Effect
    Stores the exported data under the ID key in ABAP/4 memory . You can then use the ID to read it in again (with IMPORT ). The ID can be up to 32 characters long.
    Note
    If you store data both with and without an ID , the data stored without an ID remains separate and you can re-import it (using IMPORT without ID ).
    Note
    Runtime errors
    EXPORT_NO_CONTAINER : SAP paging exhausted
    Variant 2
    EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
    Additions
    1. ... FROM g (for each field to be exported)
    2. ... CLIENT h (after dbtab(ar) )
    3. ... USING form
    Effect
    Exports the objects obj1 ... objn (fields, structures or tables) as a data cluster to the database table dbtab .
    The database table dbtab must have a standardized structure .
    The database table dbtab is divided into different logically related areas ( ar , 2-character name).
    You can export collections of data objects (known as data clusters ) under a freely definable key (field key ) to an area of this database.
    IMPORT allows you to import individual data objects from this cluster.
    Notes
    The table dbtab specified after DATABASE must be declared under TABLES .
    The header lines of internal tables cannot be exported because specifying the name of an internal table with a header line always exports the actual table data.
    Example
    Export two fields and an internal table to the database table INDX :
    TABLES INDX.
    DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',
          F1(4), F2 TYPE P,
          BEGIN OF ITAB3 OCCURS 2,
            CONT(4),
          END OF ITAB3.
    Before the export, the data fields in
    front of CLUSTR are filled.
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    Export der Daten.
    EXPORT F1 F2 ITAB3 TO
           DATABASE INDX(ST) ID INDXKEY.
    Addition 1
    ... FROM g (for each object to be exported)
    Effect
    Exports the contents of the field g and stores them under the specified name in the database.
    Addition 2
    ... CLIENT h (after dbtab(ar) )
    Effect
    Stores the data objects in the client h (if the import/export database table dbtab is client-specific).
    Addition 3
    ... USING form
    Effect
    Does not export the data to the database table. Instead, calls the FORM routine form for every record written to the database without this addition. This routine can take the data from the database table work area and therefore has no parameters.
    Note
    Runtime errors
    Errors in the structure of the EXPORT / IMPORT database can cause runtime errors .
    Variant 3
    EXPORT obj1 ... objn TO DATASET dsn(ar) ID key.
    Note
    This variant is not to be used at present.

  • 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

  • How can i pass calculated value to internal table

    Hi
    i have to pass calculated value into internal table
    below field are coming from database view and i' m passing view data into iznew1
    fields of iznew1
                 LIFNR  LIKE EKKO-LIFNR,
                 EBELN  LIKE EKKO-EBELN,
                 VGABE  LIKE EKBE-VGABE,
                 EBELP  LIKE EKBE-EBELP,
                 BELNR  LIKE EKBE-BELNR,
                 MATNR  LIKE EKPO-MATNR,
                 TXZ01  LIKE EKPO-TXZ01,
            PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
                 KOSTL  LIKE EKKN-KOSTL,
                 NAME1  LIKE LFA1-NAME1,
                 NAME2  LIKE LFA1-NAME2,
                 WERKS  LIKE EKPO-WERKS,
                 NETWR  LIKE EKPO-NETWR,
                 KNUMV  LIKE EKKO-KNUMV,
                 GJAHR  LIKE EKBE-GJAHR,
    and now i want to pass
    one field ED1  which i has calculated separatly and i want to pass this value into iznew1
    but error is coming that iznew1 is a table with out header line  has no component like ED1.
    so how can i pass calculated value to internal table iznew1,

    When you declare your internal table , make an addtion occurs 0
    eg . data : begin of iznew occurs 0 ,
                    fields ...
       add the field here ed1.
               end of iznew.
    now when you are calculating the value of ed1,
    you can pass the corresponding value of  ed1 and modify table iznew.
    eg
    loop at iznew.
    iznew-ed1 = ed1.
    modify iznew.
    endloop.

Maybe you are looking for

  • Another bug in processSockets?

    I am running Weblogic Server 7.0 on Red Hat Linux and unfortunately cannot use the JCOM feature due to an uncaught exception in processSockets. The client is a Windows 2000 machine and when a call is made (from my own example, or the shipped zero cli

  • HT4623 how to update my i phone4

    How can i update my iphone4

  • Getting error in gather schema status

    Hi All, i am using oracle 10g database. when i am trying to gather stats i am gettin the below error. do we need to give all the options other than ownname ? can anyone help me with the right command? SQL> exec DBMS_STATS.GATHER_SCHEMA_STATS(ownname=

  • ESS/MSS Component in CE 7.1

    Hi, We are trying to deploy the below Components. But We are facing issues Deployment. SAPESS13_0-20000512.SCA SAPMSS13_0-20000503.SCA SAPPSS13_0-20001217.SCA SAPPCUIGP13_0-20001215.SCA SAPASR13_0-20001216.SCA ISHERCSS13_0-20001218.SCA Is it possible

  • What's the point of including "You might contact your administrator if you think this is a mistake" when a post is pulled?

    I understand that the mods here can't possibly reply to everyone who has a post pulled for ToU. One can vaguely try to contact an administrator indirectly, perhaps, by posting here. (When this takes the form of a "why was my post pulled" post, this u