Skip to Content
avatar image
Former Member

Issue with Internal Table

Hi All,

I have defined an internal table 'with occurs 0'.

While debuggining, i am observing that only 50,000 lines are getting populated in that internal table.

How to increase the capacity of the internal table, so that it can hold more number of lines?

Regards

Pavan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 07, 2008 at 10:55 AM

    hi,

    occurs 0 assigns a default size of 8k to internal table

    a record can have varying size...so no of records held by internal table can vary

    you can try higher values of n in occurs n.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 07, 2008 at 10:37 AM

    as long as your dialog work process has enough memory it will not stop at 50k records. it may just be that the debugger shows only those first 50k.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Pavan,

      I am using the function module BAPI_CATIMESHEETRECORD_GETLIST to retrive the data from the CATSDB table , i found that in the SDN you are able to successfully read this function module and retrive data , my question is the cost centre which is there for the personnel no in pa0001 ....is the same one which i have found in CAT2 Transaction . However when i am retrieving from this Function module

      i dont found cost centre as such, but i found is sender cost centre(SEND_CCTR) and receviing cost centre(REC_CCTR) which dont have any data in the internal table it_cats_rec_out. However i am able to get the personnel no , no. of hours , work data etc data has been found in the internal table it_cats_rec_out retrived from the FM .

      Hence could you please let me how can i can get the cost centre details i.e the sender cost centre or receiiving cost centre , which is the one actually i have to use ? or could you please tell me

      any configuration has to be done so that i can ask my functional in this regard so that i can retrive the cost centre .

      regards

      divya.

  • avatar image
    Former Member
    Oct 07, 2008 at 10:39 AM

    I think you have to check your program, an internal table can have more than 1.000.000 records so somehow there is no more input to populate your table.

    Regards,

    Guido

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 14, 2008 at 11:11 AM

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2009 at 12:06 PM

    Hi Pavan

    There can be 2 ways in which you can try this out.

    1) Try putting a value greater then 0 with occurs clause, something like OCCURS 100.

    2) Try defining the types. something like

    TYPES: BEGIN OF s_lips,

    vbeln TYPE vbeln,

    posnr TYPE posnr,

    matnr TYPE matnr,

    charg TYPE charg_d,

    lfimg TYPE lfimg,

    meins TYPE meins, " ++MBIN ABF4363_05 02.11.2008

    shkzg TYPE shkzg_va,

    xchpf TYPE lips-xchpf, " ++RATH FCR21221/ACRF4363_04

    brgew TYPE lips-brgew, " ++RATH FCR21221/ACRF4363_04

    END OF s_lips.

    DATA: t_lips TYPE STANDARD TABLE OF s_lips WITH HEADER LINE.

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded