CODE_TO_INT_CODE SAP Method Mapping of External Code to SAP-Internal Code









Below is documentation, parameters and attributes of ABAP Method CODE_TO_INT_CODE within SAP class /SCMB/IF_CODELIST_MAP. 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 /SCMB/IF_CODELIST_MAP 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 CODE_TO_INT_CODE can also be found below:

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


Parameters of Method CODE_TO_INT_CODE

.

NameTypeData TypeDescriptionDefault Value
IS_CLISTIDImportingTYPE
/SCMB/CDL_LIST_ID_STR
Attributes Identifying a Code List
IT_FIELD_VALUEImportingTYPE
/SCMB/T_CDL_FIELD_VALUE
Field Name - Value Combinations for BAdI Code Mapping
IV_CLISTTYPEImportingTYPE
/SCMB/CDL_CLISTTYPE
Internal Code List (Data Element)
IV_CODEImportingTYPE
/SCMB/CDL_CODE
Code
IV_PARTNERImportingTYPE
BU_PARTNER
Business Partner Number
EV_INT_CODEExportingTYPE
/SCMB/CDL_INT_CODE
Internal Code



Exceptions of Method CODE_TO_INT_CODE

EV_INT_CODEExportingTYPE
/SCMB/CDL_INT_CODEInternal CodeNOT_MAPPED -

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMB/IF_CODELIST_MAP.
DATA: lv_EV_INT_CODE TYPE /SCMB/CDL_INT_CODE,
lv_IS_CLISTID TYPE /SCMB/CDL_LIST_ID_STR,
lv_IT_FIELD_VALUE TYPE /SCMB/T_CDL_FIELD_VALUE,
lv_IV_CLISTTYPE TYPE /SCMB/CDL_CLISTTYPE,
lv_IV_CODE TYPE /SCMB/CDL_CODE,
lv_IV_PARTNER TYPE BU_PARTNER,
lv_other TYPE c.

CALL METHOD lo_class=>CODE_TO_INT_CODE(
EXPORTING
IS_CLISTID = lv_IS_CLISTID
IT_FIELD_VALUE = lv_IT_FIELD_VALUE
IV_CLISTTYPE = lv_IV_CLISTTYPE
IV_CODE = lv_IV_CODE
IV_PARTNER = lv_IV_PARTNER
IMPORTING
EV_INT_CODE = lv_EV_INT_CODE ).

Links to Related Class(s)

/SCMB/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!