MAP_FIELD SAP Method CPE - Map single Document Field









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

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


Parameters of Method MAP_FIELD

.

NameTypeData TypeDescriptionDefault Value
IS_SOURCE_MAPPINGImportingTYPE
CPEC_MAPPING
CPE Caller - Mapping of Business Data
IT_NAMEVALUEPAIRS_10ImportingTYPE
CPET_NAMEVALUEPAIRS_10_TAB
CPE Caller - Table Type for Name Value Pairs (L=10)
IT_NAMEVALUEPAIRS_255ImportingTYPE
CPET_NAMEVALUEPAIRS_255_TAB
CPE Caller - Table Type for Name Value Pairs (L=255)
IT_NAMEVALUEPAIRS_50ImportingTYPE
CPET_NAMEVALUEPAIRS_50_TAB
CPE Caller - Table Type for Name Value Pairs (L=50)
IV_SOURCE_LENGTHImportingTYPE
INTEGER1
Integer 1
IV_SOURCE_LOGSYSImportingTYPE
LOGSYS
Logical system
IV_SOURCE_TYPEImportingTYPE
DATATYPE_D
Data Type in ABAP Dictionary
IV_SOURCE_VALUEImportingTYPE
ANY
ET_NAMEVALUEPAIRS_10ExportingTYPE
CPET_NAMEVALUEPAIRS_10_TAB
CPE Caller - Table Type for Name Value Pairs (L=10)
ET_NAMEVALUEPAIRS_255ExportingTYPE
CPET_NAMEVALUEPAIRS_255_TAB
CPE Caller - Table Type for Name Value Pairs (L=255)
ET_NAMEVALUEPAIRS_50ExportingTYPE
CPET_NAMEVALUEPAIRS_50_TAB
CPE Caller - Table Type for Name Value Pairs (L=50)



Exceptions of Method MAP_FIELD

CONVERSION_ERROR -

Example ABAP coding


DATA: lo_class TYPE REF TO IF_EX_BADI_CPE_MAPPING.
DATA: lv_ET_NAMEVALUEPAIRS_10 TYPE CPET_NAMEVALUEPAIRS_10_TAB,
lv_ET_NAMEVALUEPAIRS_255 TYPE CPET_NAMEVALUEPAIRS_255_TAB,
lv_ET_NAMEVALUEPAIRS_50 TYPE CPET_NAMEVALUEPAIRS_50_TAB,
lv_IS_SOURCE_MAPPING TYPE CPEC_MAPPING,
lv_IT_NAMEVALUEPAIRS_10 TYPE CPET_NAMEVALUEPAIRS_10_TAB,
lv_IT_NAMEVALUEPAIRS_255 TYPE CPET_NAMEVALUEPAIRS_255_TAB,
lv_IT_NAMEVALUEPAIRS_50 TYPE CPET_NAMEVALUEPAIRS_50_TAB,
lv_IV_SOURCE_LENGTH TYPE INTEGER1,
lv_IV_SOURCE_LOGSYS TYPE LOGSYS,
lv_IV_SOURCE_TYPE TYPE DATATYPE_D,
lv_IV_SOURCE_VALUE TYPE ANY,
lv_other TYPE c.

CALL METHOD lo_class=>MAP_FIELD(
EXPORTING
IS_SOURCE_MAPPING = lv_IS_SOURCE_MAPPING
IT_NAMEVALUEPAIRS_10 = lv_IT_NAMEVALUEPAIRS_10
IT_NAMEVALUEPAIRS_255 = lv_IT_NAMEVALUEPAIRS_255
IT_NAMEVALUEPAIRS_50 = lv_IT_NAMEVALUEPAIRS_50
IV_SOURCE_LENGTH = lv_IV_SOURCE_LENGTH
IV_SOURCE_LOGSYS = lv_IV_SOURCE_LOGSYS
IV_SOURCE_TYPE = lv_IV_SOURCE_TYPE
IV_SOURCE_VALUE = lv_IV_SOURCE_VALUE
IMPORTING
ET_NAMEVALUEPAIRS_10 = lv_ET_NAMEVALUEPAIRS_10
ET_NAMEVALUEPAIRS_255 = lv_ET_NAMEVALUEPAIRS_255
ET_NAMEVALUEPAIRS_50 = lv_ET_NAMEVALUEPAIRS_50 ).

Links to Related Class(s)

IF_EX_BA...
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!