on 12-08-2013 7:31 AM
Hola expertos,
I want to get the Object ID like '0099293888A9499040C4549' of any BRF Plus object using Object Name.
I hope there should be some API to pass the Object Name like the expression or function name and get the Object ID for the same.
I tried to look out for sample code in SCN but could not figure out any so far.
Thanks.
Hi
Try this:
DATA lo_brf_query TYPE REF TO if_fdt_query.
DATA lt_brf_object_ids TYPE if_fdt_types=>ts_object_id.
lo_brf_query = cl_fdt_factory=>get_instance( )->get_query( ).
lo_brf_query->get_ids(
EXPORTING iv_name = 'BRFPLUS_OBJECT_NAME_HERE'
IMPORTING ets_object_id = lt_brf_object_ids ).
This will return a list of all objects that have the name specified in parameter IV_NAME. These objects could be of any type - application, function, expression, etc. If you only want a specific type of object then you can use the optional parameter IV_OBJECT_TYPE to restrict the objects returned from the GET_IDS method. For example, this will only return applications.
lo_brf_query->get_ids(
EXPORTING iv_name = 'BRFPLUS_OBJECT_NAME_HERE'
iv_object_type = if_fdt_constants=>gc_object_type_application
IMPORTING ets_object_id = lt_brf_object_ids ).
Regards
Glen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.