CHECK_AND_UPDATE_HD SAP Method Check and Update Header Data
Below is documentation, parameters and attributes of ABAP Method CHECK_AND_UPDATE_HD within SAP class /DSD/SL_CL_MO_VISIT_HD_ADDR. 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_MO_VISIT_HD_ADDR 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 CHECK_AND_UPDATE_HD can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CHECK_AND_UPDATE_HD
.| Name | Type | Data Type | Description | Default Value |
| I_CUSTNR | Importing | TYPE SDYDO_VALUE | Customer number | |
| I_SPART | Importing | TYPE SDYDO_VALUE | Division | |
| I_VISCOD | Importing | TYPE SDYDO_VALUE | Visit Code | |
| I_VKORG | Importing | TYPE SDYDO_VALUE | Sales Organization | |
| I_VTWEG | Importing | TYPE SDYDO_VALUE | Distribution Channel | |
| ES_DATA_ADDR | Exporting | TYPE /DSD/HH_RACAD_S | Visit Address Data | |
| ES_DATA_HD | Exporting | TYPE /DSD/HH_RACVHD_S | Visit Header Data | |
| ET_MSG | Exporting | TYPE BAPIRET2_T | Error messages |
Exceptions of Method CHECK_AND_UPDATE_HD
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /DSD/SL_CL_MO_VISIT_HD_ADDR.
DATA: lv_ES_DATA_ADDR TYPE /DSD/HH_RACAD_S,
lv_ES_DATA_HD TYPE /DSD/HH_RACVHD_S,
lv_ET_MSG TYPE BAPIRET2_T,
lv_I_CUSTNR TYPE SDYDO_VALUE,
lv_I_SPART TYPE SDYDO_VALUE,
lv_I_VISCOD TYPE SDYDO_VALUE,
lv_I_VKORG TYPE SDYDO_VALUE,
lv_I_VTWEG TYPE SDYDO_VALUE,
lv_other TYPE c.
CALL METHOD lo_class=>CHECK_AND_UPDATE_HD(
EXPORTING
I_CUSTNR = lv_I_CUSTNR
I_SPART = lv_I_SPART
I_VISCOD = lv_I_VISCOD
I_VKORG = lv_I_VKORG
I_VTWEG = lv_I_VTWEG
IMPORTING
ES_DATA_ADDR = lv_ES_DATA_ADDR
ES_DATA_HD = lv_ES_DATA_HD
ET_MSG = lv_ET_MSG ).
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