Skip to Content
author's profile photo Former Member
Former Member

BRF Function Parameters

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 01, 2012 at 08:06 AM

    Do you mean 'extra object'- > data objects ?

    Are you using anywhere copy method? How do you get lt_context_id? Can you paste codes of same.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.