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

Generation errors in program - Convertion

Former Member
0 Likes
743

Hi,

I've copied SAP std module pool 'FM06ITOP', rename it to 'Z2001NMMPOWST_POWSTOP' and refer it to my program 'Z2001RMMPOWST'. BUT I get the generation errors in program during activation which refers to a line declared with value. For example :

DATA: maxpreis LIKE ekpo-netpr VALUE '99999999999'.

This line is originated from 'FM06ITOP'. And the error message

is 'Overflow when converting from 99999999999'. Please guide on how to

fix this error. TQ.

Haryati

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
596

Hi

Can you try changing it this way:

MAXPREIS LIKE EKPO-NETPR VALUE '999999999.99'.

Kind Regards

Eswar

5 REPLIES 5
Read only

Former Member
0 Likes
596

i copied it just now it was activated also...

see it by reducing the digits so that it gets actived and then replace it with orignial ..

Girish

Read only

0 Likes
596

I've tried but i doesn't work. There are 3 lines which have the same error ;

DATA : maxpreis LIKE ekpo-netpr VALUE '99999999999',

"TYPE CURR 11,2

maxwert LIKE ekpo-netwr VALUE '9999999999999',

"TYPE CURR 13,2

max_menge LIKE equp-qumng VALUE '99999999999999'.

"TYPE QUAN 15,3

To make it activated, I reduce 'n' digit(s) based on the decimal. And in this case the lines will become like this ;

DATA : maxpreis LIKE ekpo-netpr VALUE '999999999',

maxwert LIKE ekpo-netwr VALUE '99999999999',

max_menge LIKE equp-qumng VALUE '99999999999'.

This current settings will trigger a runtime error for some of the big values data.

Read only

Former Member
0 Likes
597

Hi

Can you try changing it this way:

MAXPREIS LIKE EKPO-NETPR VALUE '999999999.99'.

Kind Regards

Eswar

Read only

Former Member
0 Likes
596

hi

good

while copying the standard program into the zprogram some part of the program might not be copied properly,go to se80 open the z* program and activate all the includes present under it and check with the standard program wheather all the program has been copied properly to the z* program or not.

thanks

mrutyun^

Read only

Former Member
0 Likes
596

Hi Haryati Sulaiman ,

The data dtpe of ekpo-netpr is Decimal. This Length is 11 Decimals 2. But Your value Exceeds the limit. Thats why You got the Erroe.

Write the code like ths,

DATA: maxpreis LIKE ekpo-netpr VALUE '999999999'. -->Remove two 9's from Value

write : maxpreis.

Thanks,

Reward If Helpful.