Skip to Content
author's profile photo Former Member
Former Member

Check folder size limit from ABAP

Hi,

Just wondering if there is any way to check folder size limit from ABAP before writing data to a file on application server.This way we can avoid short dump

Regards

Nilesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2005 at 03:59 AM

    Hi Nileah,

    I'm not sure that you mean by <i>folder size limit</i>. Are you guessing that there might be a short dump ? Or have you encountered one and want to avoid it ?

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2005 at 05:29 AM

    Hi,

    Check these two links, where in an example is given to find the size of a file in Unix.

    http://www.sapdevelopment.co.uk/file/file_browsefile.htm

    http://sap.ittoolbox.com/code/d.asp?i=10&d=2296&a=s

    Hope that helps you.

    Regards,

    Anjali

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2005 at 05:32 AM

    try the following code , it will give the size of the specified folder and its subfolders.

    data: g_command(240) .
    data: data:  begin of itab_result occurs 0,
            one(1),
            line(239),
            line1(240),
            line2(240),
            line3(240),
            line4(63),
           end of itab_result.
    
    move: 'ls -la <folder name>' into g_command
    
      call 'SYSTEM' id 'COMMAND' field g_command             
                    id 'TAB'     field itab_result-*sys*.    
    

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2005 at 06:25 AM

    Hi,

    i think you'll avoid dump: "no space left on device"?

    -> try fm GET_FSYS_SINGLE

    regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.