‎2007 Jun 07 4:27 AM
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
‎2007 Jun 07 4:43 AM
Hi
Can you try changing it this way:
MAXPREIS LIKE EKPO-NETPR VALUE '999999999.99'.
Kind Regards
Eswar
‎2007 Jun 07 4:42 AM
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
‎2007 Jun 07 5:19 AM
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.
‎2007 Jun 07 4:43 AM
Hi
Can you try changing it this way:
MAXPREIS LIKE EKPO-NETPR VALUE '999999999.99'.
Kind Regards
Eswar
‎2007 Jun 07 4:45 AM
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^
‎2007 Jun 07 4:49 AM
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.