Quantcast
Channel: SCN : Popular Discussions - SAP Business Rules Management
Viewing all articles
Browse latest Browse all 1717

BRF+ Formula with CURR Type throws exception

$
0
0

Hey folks,

i've got a problem regarding formulas in BRF+.

For testing purposes I use an input field of Type CURR (bound to a DDIC element). My output field is bound to the same DDIC element.

I called them "Z_TEST_EINGANG" and "Z_TEST_AUSGANG".

My formula simlpy multiplies "Z_TEST_EINGANG" by 2.

So I just double my input to my output. In simulaiton mode it does what it should, but in my program it doesn't.

Here it throws a cx_sy_move_cast_error in Method "MOVE_FROM_EXT". It seems the programm wants to use the standard BRF+ type "ELEMENT_AMOUNT".

I think thats the reason why it can't cast from mz type to the BRF type.

Can you help me to get my formula working?

 

Formula:

formula.png

Binding:

binding.png

DDIC Element:

ddic.png

Variable declaration in ABAP.

declaration.png

Method Call:

 

method_call.png

Values before and after execution (no difference):

values.png

Here happens the problem:

 

process ->    

process_generation->

(generated_class)->if_fdt_gen-process->extract_context->

io_context->get_values->

move_data_to_data_object->

move_from_ext

Declaration of this method:

declaration2.png

 

Check if iv_has_DDIC_Binding fails and we get to

no_ddic.png

And here is the failure:

error.png

 

Thanks for your help.

Kind regards

Matthias


Viewing all articles
Browse latest Browse all 1717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>