RETRIEVE_CODE_DESCRIPTIONS SAP Method of class /BOFU/IF_CODE_LIST_PROVIDER









Below is documentation, parameters and attributes of ABAP Method RETRIEVE_CODE_DESCRIPTIONS within SAP class /BOFU/IF_CODE_LIST_PROVIDER. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /BOFU/IF_CODE_LIST_PROVIDER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method RETRIEVE_CODE_DESCRIPTIONS can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method RETRIEVE_CODE_DESCRIPTIONS

.

NameTypeData TypeDescriptionDefault Value
IN_CODE_VALUESImportingTYPE
TT_CODE_VALUES
IN_LANGUAGE_CODEImportingTYPE
LANG
IN_CTXT_KEY_FIELD_DDICImportingTYPE
/BOFU/IF_CODE_LIST_PROVIDER=>TT_CTXT_KEYFIELD
IN_CTXT_KEY_FIELD_VALSImportingTYPE
TT_CTXT_KEY_FIELD_VAL
OUT_CODE_DESCRIPTIONSReturningTYPE
TT_CODE_VALUES_W_DESCRIPTIONS



Exceptions of Method RETRIEVE_CODE_DESCRIPTIONS

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /BOFU/IF_CODE_LIST_PROVIDER.
DATA: lv_IN_CODE_VALUES TYPE TT_CODE_VALUES,
lv_IN_LANGUAGE_CODE TYPE LANG,
lv_OUT_CODE_DESCRIPTIONS TYPE TT_CODE_VALUES_W_DESCRIPTIONS,
lv_IN_CTXT_KEY_FIELD_DDIC TYPE /BOFU/IF_CODE_LIST_PROVIDER=>TT_CTXT_KEYFIELD,
lv_IN_CTXT_KEY_FIELD_VALS TYPE TT_CTXT_KEY_FIELD_VAL,
lv_other TYPE c.

CALL METHOD lo_class=>RETRIEVE_CODE_DESCRIPTIONS(
EXPORTING
IN_CODE_VALUES = lv_IN_CODE_VALUES
IN_LANGUAGE_CODE = lv_IN_LANGUAGE_CODE
IN_CTXT_KEY_FIELD_DDIC = lv_IN_CTXT_KEY_FIELD_DDIC
IN_CTXT_KEY_FIELD_VALS = lv_IN_CTXT_KEY_FIELD_VALS
RECEIVING
OUT_CODE_DESCRIPTIONS = lv_OUT_CODE_DESCRIPTIONS )



"Alternate coding for Method Call with returning parameter
lv_OUT_CODE_DESCRIPTIONS = lo_class=>RETRIEVE_CODE_DESCRIPTIONS(
EXPORTING
IN_CODE_VALUES = lv_IN_CODE_VALUES
IN_LANGUAGE_CODE = lv_IN_LANGUAGE_CODE
IN_CTXT_KEY_FIELD_DDIC = lv_IN_CTXT_KEY_FIELD_DDIC
IN_CTXT_KEY_FIELD_VALS = lv_IN_CTXT_KEY_FIELD_VALS ).

Links to Related Class(s)

/BOFU/IF...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!