2018 Oct 09 4:41 PM
Hi Team,
I have a dump in Function module(Custom) which is used in Workflow, where the variable with
Data: lv_price(16) type p decimal 2
is passed to wa_ekko-netpr = lv_price.
And Dump occur stating "A calculation field defined is too small."
I have checked SDN completely but unable to get the answer.
the value in "lv_price" has more than 10 digit.
I tried using converstion_exit_alpha_input.(But Unsuccessful)
2018 Oct 10 5:50 AM
If the value in LV_PRICE is really bigger than what NETPR can hold, I can't imagine a solution.
Otherwise; if your system level is high enough, you can simply use the CONV command:
wa_ekko-netpr = conv #( lv_price ).
2018 Oct 09 6:29 PM
Handle the exceptions, with this handling you can avoid the dump.
Try.
wa_ekko-netpr = lv_price.
catch cx_sy_conversion_overflow into data(lw_overflow).
endtry.
2018 Oct 10 5:50 AM
If the value in LV_PRICE is really bigger than what NETPR can hold, I can't imagine a solution.
Otherwise; if your system level is high enough, you can simply use the CONV command:
wa_ekko-netpr = conv #( lv_price ).