Skip to Content

Capture shortdump

Please help me.

My source code is bolow.

DATA: l_amt TYPE komv-kbetr,

l_amt1(16) TYPE p DECIMALS 2,

g_amt TYPE komv-kbetr,

g_amt1(16) TYPE p DECIMALS 2.

CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 5.

l_amt = l_amt1 + '123456.12' * 10.

g_amt = g_amt1 + '123456789.12' * 10.

ENDCATCH.

IF sy-subrc EQ 5.

message s000(38) 'OverFlow'.

ENDIF.

How do I know which line is shortdump? Which function module or Method to identify?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Jan 11, 2007 at 10:47 AM

    Use ST22 and analys your dump.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 10:48 AM
    Remove the quotes for the amounts and chekout if it works
    
    l_amt = l_amt1 + 123456.12 * 10.
    g_amt = g_amt1 + 123456789.12'* 10.
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 10:49 AM

    To find out the line where the dump occured try debugging each line , and you can get the line where the dump occured

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 11, 2007 at 10:50 AM

    Hi,

    The short dump you getting will tell you which line is the problem.Just go thro' the dump.It will put a arrow mark in that line.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 10:54 AM

    Hi,

    first u have an erron in the message line... u hv missed with

    message s000(38) with 'OverFlow'.

    Add a comment
    10|10000 characters needed characters exceeded

    • OK .

      Revise again

      DATA: l_amt TYPE komv-kbetr,

      l_amt1(16) TYPE p DECIMALS 2,

      g_amt TYPE komv-kbetr,

      g_amt1(16) TYPE p DECIMALS 2.

      CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 5.

      l_amt = l_amt1 + '123456.12' * 10.

      g_amt = g_amt1 + '123456789.12' * 10.

      ENDCATCH.

      IF sy-subrc EQ 5.

      message s000(38) with 'OverFlow'.

      ENDIF.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 10:57 AM

    actually the following line creates short dump.....

    g_amt = g_amt1 + '123456789.12' * 10.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 11:07 AM

    Hi,

    Go to ST22 and select your user name double click on it and press F6.

    There double click on no 7 there you will find at which line error happend

    Pls.ark if useful

    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.