CREATE_NEW_VISIT SAP Method Create a New Visit
Below is documentation, parameters and attributes of ABAP Method CREATE_NEW_VISIT within SAP class /DSD/SL_CL_TA_VISIT. 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 /DSD/SL_CL_TA_VISIT 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 CREATE_NEW_VISIT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_NEW_VISIT
.| Name | Type | Data Type | Description | Default Value |
| IS_KEY_TOUR | Importing | TYPE /DSD/HH_RAHD_KEY | Key for Tour Header | |
| ES_KEY_VISIT | Exporting | TYPE /DSD/HH_RACVHD_KEY | Key for Customer Visit | |
| ES_SLD_ID | Exporting | TYPE /DSD/SL_SLD_ID | DSD: Settlement Document Number |
Exceptions of Method CREATE_NEW_VISIT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /DSD/SL_CL_TA_VISIT.
DATA: lv_ES_KEY_VISIT TYPE /DSD/HH_RACVHD_KEY,
lv_ES_SLD_ID TYPE /DSD/SL_SLD_ID,
lv_IS_KEY_TOUR TYPE /DSD/HH_RAHD_KEY,
lv_other TYPE c.
CALL METHOD lo_class=>CREATE_NEW_VISIT(
EXPORTING
IS_KEY_TOUR = lv_IS_KEY_TOUR
IMPORTING
ES_KEY_VISIT = lv_ES_KEY_VISIT
ES_SLD_ID = lv_ES_SLD_ID ).
Links to Related Class(s)
/DSD/SL_...Full list of available SAP object classes
Search for further information about these or an SAP related objects