Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Short dump in method NEW_QUANTITY

Former Member
0 Likes
1,289

Hi ,

I  want to fetch ‘CKMLQS’ data through Z-program , but while fetching I Get a short dump .

CALL METHOD lt_inputs-qsnode->expand_inputs.

I am getting a runtime error : CONVT_OVERFLOW.

The error analysis shown is : “The exception, which is assigned to class 'CX_SY_CONVERSION_OVERFLOW', was not caught in procedure "NEW_QUANTITY" "(METHOD)", nor was it propagated by a RAISING clause.”

Please help me in this issue.

Thanks,

Kunal

Hi ,

I  want to fetch ‘CKMLQS’ data through Z-program , but while fetching I Get a short dump .

CALL METHOD lt_inputs-qsnode->expand_inputs.

I am getting a runtime error : CONVT_OVERFLOW.

The error analysis shown is : “The exception, which is assigned to class 'CX_SY_CONVERSION_OVERFLOW', was not caught in procedure "NEW_QUANTITY" "(METHOD)", nor was it propagated by a RAISING clause.”

Please help me in this issue.

Thanks,

Kunal

7 REPLIES 7
Read only

Former Member
0 Likes
1,182

Hi Kunal,

This is the short dump due to overflow. Lets say your Quantity variables  is of 13 decimals 3. Now at runtime if the value of quanitity is more than 13 places before decimals, then it would give a dump of overflow.

Whenever you are using  the quantity calculation, use this :

TRY.

Place your code for Quanitty calculation.

CATCH.

CX_SY_ARITHMATIC_ERROR.  "Outside Value Range

ENDTRY.

Thanks,

Sumit

Read only

0 Likes
1,182

Hi Sumit,

Thanks for your reply .

in my Z-program i am using

   CALL METHOD lt_inputs-qsnode->expand_inputs.

so the error is occuring in standard Method and I am not able to change it or write any code into it.

Is there any note or any other way to fetch data same as CKMLQS transaction ?

Thanks,

Kunal

Read only

0 Likes
1,182

Hi Kunal,

its due to miss matching of data type also, can u pls check data type.?

Regards,

Hiriyappa

Read only

0 Likes
1,182

Hi

Probably your report is managing amount or total having a value too large

Max

Read only

0 Likes
1,182

Hi Max,

Yes i know that value is too large .... but how to handle it as the code is writeen in standard method.

Thanks,

Kunal

Read only

0 Likes
1,182

Can you post the code where the method is called?

Max

Read only

0 Likes
1,182

     CALL METHOD cl_qstree_ckml=>create_docking_tree
          EXPORTING
            is_mlkey                   = ls_mlkey
          IMPORTING
            er_qstree                  = qstree
          EXCEPTIONS
            container_already_exists   = 1
            treecontrol_already_exists = 2
            object_create_error        = 3
            container_create_error     = 4
            kalnr_notfound             = 5
            treecontrol_create_error   = 6
            OTHERS                     = 7.

        CHECK sy-subrc EQ 0.
        lcl_node = qstree->mr_rootnode.

        READ TABLE lcl_node->t_inputs INTO lcl_node1 INDEX 1.
        ADD 1 TO lv_seqnr.
        lt_inputs-seqnr  = lv_seqnr.
        lt_inputs-qsnode = lcl_node.
        APPEND lt_inputs.

        LOOP AT lt_inputs.
          CALL METHOD lt_inputs-qsnode->expand_inputs.
          lcl_node1 = lt_inputs-qsnode.
          LOOP AT lcl_node1->t_inputs INTO lcl_node2.
            IF sy-tabix = 1.
              ADD 1 TO lv_seqnr.
              lt_inputs-seqnr = lv_seqnr.
            ENDIF.
            lt_inputs-qsnode = lcl_node2.
            APPEND lt_inputs.
          ENDLOOP.
        ENDLOOP.
        CLEAR lv_seqnr.