cancel
Showing results for 
Search instead for 
Did you mean: 

BRF+ function call from ABAP Issue : Latest values from decision table not coming in result

shyampushpadas
Discoverer
0 Kudos

Hi All,

BRF+ function call from ABAP Issue : Latest values from decision table not coming in result.

I tried with generated code from code generation option in the function and also with old way of doing, shown below.

But the latest value from the decision table is not coming. Only if I do the manual regeneration then only latest values are captured in the ABAP side function call. Is there any way to do the generation automatically while doing the BRF call from ABAP.

lo_function TYPE REF TO if_fdt_function

lo_context_s ?= lo_function->get_process_context( ).

lo_context_s->set_value( iv_name = im_structure

ia_value = im_parameter ).

lo_function->process( EXPORTING io_context = lo_context_s IMPORTING eo_result = lo_data ).

Accepted Solutions (0)

Answers (1)

Answers (1)

pokrakam
Active Contributor
0 Kudos

1. Your decision table must be generated in order for new values to be available

2. Make sure you run your ABAP code in a completely new process, i.e. exit whatever transaction you're using. The generated code uses timestamps to retain the current rule state until the current transaction/process/whatever is complete