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

ABAP runtime errors COMPUTE_BCD_OVERFLOW

Former Member
0 Likes
1,714

Hi All,

I am getting the below dump:

>> Short dump has not been completely stored. It is too big.


Overflow for arithmetical operation (type P) in program "SAPLCSS7 "

"COMPUTE_BCD_OVERFLOW"

"BCD_FIELD_OVERFLOW" (By release 4.0A, this error has been remedied at this

point)

"SAPLCSS7 " or "LCSS7FS1 "

"STUFE_02"

Information on where termination occurred

The termination occurred in the ABAP/4 program "SAPLCSS7 " in

"STUFE_02".

The main program was "Z_S1_DOCS ".

The termination occurred in line 242

of the source code of program "LCSS7FS1 " (when calling the editor 2420).

Source code extract

FORM STUFE_01.
   AST_STUFE = 0.
ENDFORM.


FORM STUFE_02.
----->  APS_STUFE = AST_STUFE + 1 .
ENDFORM.


FORM STUFE_03.
   CHECK NOT LTB-XTLNR IS INITIAL.

   AST_STUFE = LTB-STUFE.
ENDFORM.

How to solve this problem. Please help.

Thanks,

Venkata

6 REPLIES 6
Read only

Former Member
0 Likes
1,335

Hi,

Increase the size of the field(APS_STUFE).

Regards

Sajid

Read only

former_member201275
Active Contributor
0 Likes
1,335

Hi,

The problem is coming from your main program Z_S1_DOCS, and how you are accessing this subroutine. There isn't any information on this in your post though which might help a bit i think.

This field cannot accept a value greater than 999.

You should therefore call this include differently, maybe do a search to see how other programs access this?

Hope that helps.

PS: I don't think you should increase the size of the field in the SAP standard program.

Read only

0 Likes
1,335

Hi Glen,

In  my zprogram I have used the func.module CS_BOM_EXPL_DOC_V1.

EXPORTING

datuv = p-datuv

    docnr =      docnr

    docar =    docar

    doctl =     doctl

    docvr =     docvr

mehrs = 'X'

   mmory = '1'

   postp = 'D'

   sanko = sanko

   sanin = sanin

   emeng = '0.000'

  IMPORTING

    topdoc = t_topdoc

  TABLES

    stb = t_stb  

    doccat =   t_doccat                

  EXCEPTIONS

    CALL_INVALID = 1

    DOCUMENT_NOT_FOUND = 2

    MISSING_AUTHORIZATION = 3

    NO_BOM_FOUND = 4           

    NO_SUITABLE_BOM_FOUND = 5 

    BOM_NOT_ACTIVE = 6         

    BOM_WITHOUT_POSITIONS = 8

In the exporting parameters for MEHRS the value 'X' is passed. In program SAPLCSS7 source code LCSS7U02 I have the below code:

if not pm_mehrs is initial.

perform pfad_pruefen.

endif.

So in the above subroutine the field value of aps_stufe is incrementing each time to 999 and going to dump.  In debugging when I changed the value of PM_MEHRS from X to space I am getting the output.

Please advice.

Thanks,

Venkata

Read only

0 Likes
1,335

Have a look at note 78437, this has the answer.

Read only

0 Likes
1,335

Hi Glen,

The sap note says to insert

CHECK LTB-KZKUP IS INITAIL.

If     Not Ltb-Xtlnr Is Initial

   And     Ltb-Afflg Is Initial.

.......

.......

but in debugging I checked the value ltb-kzkup is space.

Will this sap note solve my problem. Please advice.

Thanks,

Venkata

Read only

Former Member
0 Likes
1,335

Hi,

Please check the value getting passed in your BDC fields as the field is exceeding its size limit and so 

the dump.

Thanks

Asha