Skip to Content
0
Former Member
Aug 01, 2012 at 06:00 AM

BRF Function Parameters

50 Views

Hi,

I was creating a BRF Application and a couple of functions in it via a program.I have some parameters at the application level and i want to pass them to the function.With the code i use, i see that there is an extra object being created when i do this.However in BRFPLUS transaction when i use add exixting object

i see no extra object being created.

TRY .

lref_factory = cl_fdt_factory=>if_fdt_factory~get_instance( iv_application_id = lv_id ).

lref_function ?= lref_factory->get_function( ).

lref_function->if_fdt_transaction~enqueue( ).

lref_function->if_fdt_admin_data~set_name( iv_name = ls_brffnh-fname ).

lref_function->if_fdt_admin_data~set_texts( iv_text = ls_brffnh-text iv_short_text = ls_brffnh-short_text ).

lref_function->set_function_mode(

if_fdt_function=>gc_mode_event ).

IF lt_context_id IS NOT INITIAL.

lref_function->set_context_data_objects( lt_context_id ).

ENDIF.

In the above code lt_context_id consists of parameter ids defined at the application level.

Is the code to be modified so that extra data objects are not created when function context is added from the application context?

Regards,

Dushyanth.