Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: How to read the description of a BRF+ domain value stored in a value list of an element?

$
0
0

Hi Gretchen,

 

when interacting with BRFplus on code level you should not query the tables directly but instead use the BRFplus API.

 

For your scenario the following steps should do the job (assumption: you know the UUID of your BRFplus data object):

 

  • Get a reference to the BRFplus factory 
    data(lo_factory) = cl_fdt_factory=>if_fdt_factory~get_instance( ).
  • Get an instance of your data elemt using the BRFplus factory method GET_DATA_OBJECT
  • Cast the instance to the class CL_FDT_ELEMENT (cast errors have to be caught in case the UUID does not belong to a real element)
  • Call the GET_VALUES method (public) of the class. This will return you a table with the values of the data object and the corresponding texts (language depending on the language you hand over to the method, default is sy-langu)

 

Hope that helps

 

BR

Christian

 

P.S. The method you reference is public, so you would be able to call it, but it would only return the UUIDs but not the texts


Viewing all articles
Browse latest Browse all 3273

Trending Articles