CREATE_OTA_LOCATION SAP Method Create one time accountant location
Below is documentation, parameters and attributes of ABAP Method CREATE_OTA_LOCATION within SAP class /SCMTMS/CL_CMN_HELPER_SERVICE. 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 /SCMTMS/CL_CMN_HELPER_SERVICE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method CREATE_OTA_LOCATION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_OTA_LOCATION
.| Name | Type | Data Type | Description | Default Value |
| IS_ADDRESS | Importing | TYPE TY_ADDRESS | ||
| IS_ADDRESS_PROXY_NOSC | Importing | TYPE /SCMTMS/CPX_S_NOSC_ADDRESS | Proxy Structure (generated) | |
| IS_ADDRESS_PROXY_SC | Importing | TYPE /SCMTMS/CPX_S_ADDRESS | Proxy Structure (generated) | |
| IT_LOCATION_GUIDS | Importing | TYPE /SCMTMS/T_GUID | Fill OTA buffer | |
| IV_BTD_ID | Importing | TYPE /SCMTMS/BTD_ID | Bus. Trans. Document ID | |
| IV_EXECUTE_COMMIT | Importing | TYPE XFELD | Execute Commit when saving Location | |
| IV_LOC_ID_ALT | Importing | TYPE /SCMTMS/LOCATION_ID | Alternative Location ID | |
| IS_ADDRESS | Importing | TYPE /SCMTMS/S_PARTY_ADDRESS | Combined Structure for Party Address | |
| IT_LOCATION_GUIDS | Importing | TYPE /SCMTMS/T_GUID | Hashed Table of Object GUIDs | |
| IV_EXECUTE_COMMIT | Importing | TYPE XFELD | Checkbox | |
| ES_RETURN | Exporting | TYPE /SCMTMS/S_OTALM_RETURN | TM OTALM ReturnCode structure f. One-Time Address Loc. Maint | |
| EV_LOC_GUID | Exporting | TYPE /SCMTMS/UUID_ID | Internal Universally Unique Identifier | |
| EV_OTA_LOCATION_CREATED | Exporting | TYPE BOOLE_D | New OTA Location created | |
| EV_OTA_LOCATION_CREATED | Exporting | TYPE BOOLE_D | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | |
| CV_LOC_ID | Changing | TYPE /SCMTMS/LOCATION_ID | Location |
Exceptions of Method CREATE_OTA_LOCATION
This method does not have any exceptionsExample ABAP coding
DATA: lv_CV_LOC_ID TYPE /SCMTMS/LOCATION_ID,
lv_ES_RETURN TYPE /SCMTMS/S_OTALM_RETURN,
lv_EV_LOC_GUID TYPE /SCMTMS/UUID_ID,
lv_EV_OTA_LOCATION_CREATED TYPE BOOLE_D,
lv_IS_ADDRESS TYPE TY_ADDRESS,
lv_IS_ADDRESS_PROXY_NOSC TYPE /SCMTMS/CPX_S_NOSC_ADDRESS,
lv_IS_ADDRESS_PROXY_SC TYPE /SCMTMS/CPX_S_ADDRESS,
lv_IT_LOCATION_GUIDS TYPE /SCMTMS/T_GUID,
lv_IV_BTD_ID TYPE /SCMTMS/BTD_ID,
lv_IV_EXECUTE_COMMIT TYPE XFELD,
lv_IV_LOC_ID_ALT TYPE /SCMTMS/LOCATION_ID,
lv_EV_OTA_LOCATION_CREATED TYPE BOOLE_D,
lv_IS_ADDRESS TYPE /SCMTMS/S_PARTY_ADDRESS,
lv_IT_LOCATION_GUIDS TYPE /SCMTMS/T_GUID,
lv_IV_EXECUTE_COMMIT TYPE XFELD,
lv_other TYPE c.
CALL METHOD /SCMTMS/CL_CMN_HELPER_SERVICE=>CREATE_OTA_LOCATION(
EXPORTING
IS_ADDRESS = lv_IS_ADDRESS
IS_ADDRESS_PROXY_NOSC = lv_IS_ADDRESS_PROXY_NOSC
IS_ADDRESS_PROXY_SC = lv_IS_ADDRESS_PROXY_SC
IT_LOCATION_GUIDS = lv_IT_LOCATION_GUIDS
IV_BTD_ID = lv_IV_BTD_ID
IV_EXECUTE_COMMIT = lv_IV_EXECUTE_COMMIT
IV_LOC_ID_ALT = lv_IV_LOC_ID_ALT
IS_ADDRESS = lv_IS_ADDRESS
IT_LOCATION_GUIDS = lv_IT_LOCATION_GUIDS
IV_EXECUTE_COMMIT = lv_IV_EXECUTE_COMMIT
IMPORTING
ES_RETURN = lv_ES_RETURN
EV_LOC_GUID = lv_EV_LOC_GUID
EV_OTA_LOCATION_CREATED = lv_EV_OTA_LOCATION_CREATED
EV_OTA_LOCATION_CREATED = lv_EV_OTA_LOCATION_CREATED
CHANGING
CV_LOC_ID = lv_CV_LOC_ID ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects