CHANGE SAP Method Location: Change
Below is documentation, parameters and attributes of ABAP Method CHANGE within SAP class /SCMB/CL_LDM_LOC. 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/CL_LDM_LOC 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 CHANGE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CHANGE
.| Name | Type | Data Type | Description | Default Value |
| IS_ADDRESS | Importing | TYPE /SAPAPO/BAPI_LOCAD1VAL_STR | Location: BAPI Address Structure | |
| IS_ADDRESS_X | Importing | TYPE /SAPAPO/BAPI_LOCAD1VALX_STR | Location: BAPI Address Structure: X Fields | |
| IS_LOCATION | Importing | TYPE /SAPAPO/BAPI_LOC | Inbound Structure for Locations | |
| IS_LOCATION_X | Importing | TYPE /SAPAPO/BAPI_LOCX_STR | Selection List for /SAPAPO/LOC_BAPI_STR | |
| IT_DESCRIPTION | Importing | TYPE /SAPAPO/BAPI_LOCT_TAB | Inbound Structure for Location Descriptions | |
| IT_DESCRIPTION_X | Importing | TYPE /SAPAPO/BAPI_LOCTX_TAB | Selection List for /SAPAPO/BAPI_LOCT | |
| CT_RETURN | Changing | TYPE BAPIRET2_T | Return parameter table |
Exceptions of Method CHANGE
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/CL_LDM_LOC.
DATA: lv_CT_RETURN TYPE BAPIRET2_T,
lv_IS_ADDRESS TYPE /SAPAPO/BAPI_LOCAD1VAL_STR,
lv_IS_ADDRESS_X TYPE /SAPAPO/BAPI_LOCAD1VALX_STR,
lv_IS_LOCATION TYPE /SAPAPO/BAPI_LOC,
lv_IS_LOCATION_X TYPE /SAPAPO/BAPI_LOCX_STR,
lv_IT_DESCRIPTION TYPE /SAPAPO/BAPI_LOCT_TAB,
lv_IT_DESCRIPTION_X TYPE /SAPAPO/BAPI_LOCTX_TAB,
lv_other TYPE c.
CALL METHOD lo_class=>CHANGE(
EXPORTING
IS_ADDRESS = lv_IS_ADDRESS
IS_ADDRESS_X = lv_IS_ADDRESS_X
IS_LOCATION = lv_IS_LOCATION
IS_LOCATION_X = lv_IS_LOCATION_X
IT_DESCRIPTION = lv_IT_DESCRIPTION
IT_DESCRIPTION_X = lv_IT_DESCRIPTION_X
CHANGING
CT_RETURN = lv_CT_RETURN ).
Links to Related Class(s)
/SCMB/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects