PREPARE_GTS_COMHEAD_STRUC SAP Method Create COMHEAD Structure for GTS Communication
Below is documentation, parameters and attributes of ABAP Method PREPARE_GTS_COMHEAD_STRUC within SAP class /BEV2/CL_CS_EMCS. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /BEV2/CL_CS_EMCS 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 PREPARE_GTS_COMHEAD_STRUC can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method PREPARE_GTS_COMHEAD_STRUC
.| Name | Type | Data Type | Description | Default Value |
| IS_MKPF | Importing | TYPE MKPF | Header: Material Document | |
| IS_MSEG | Importing | TYPE MSEG | Document Segment: Material | |
| IV_EMCSNR | Importing | TYPE /BEV2/CS_EMCSNR | EMCS Sequence Number | |
| ES_COMHEAD | Exporting | TYPE /BEV2/S_CS_COMHEAD | GTS Communication: Header Data | |
| ET_COMPART | Exporting | TYPE /BEV2/T_CS_COMPART | GTS Communication: Partner Data | |
| ET_COMTEXT_HD | Exporting | TYPE /BEV2/T_CS_COMTEXT_HD | GTS Communication: Header Texts | |
| EV_TAX_WAREHOUSE | Exporting | TYPE /BEV2/EDSLAGER | Tax Warehouse Registration |
Exceptions of Method PREPARE_GTS_COMHEAD_STRUC
/BEV2/CX_CS_EMCS - Exceptions for EMCS ProcessExample ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO /BEV2/CL_CS_EMCS.
DATA: lv_ES_COMHEAD TYPE /BEV2/S_CS_COMHEAD,
lv_ET_COMPART TYPE /BEV2/T_CS_COMPART,
lv_ET_COMTEXT_HD TYPE /BEV2/T_CS_COMTEXT_HD,
lv_EV_TAX_WAREHOUSE TYPE /BEV2/EDSLAGER,
lv_IS_MKPF TYPE MKPF,
lv_IS_MSEG TYPE MSEG,
lv_IV_EMCSNR TYPE /BEV2/CS_EMCSNR,
lv_other TYPE c.
CALL METHOD lo_class=>PREPARE_GTS_COMHEAD_STRUC(
EXPORTING
IS_MKPF = lv_IS_MKPF
IS_MSEG = lv_IS_MSEG
IV_EMCSNR = lv_IV_EMCSNR
IMPORTING
ES_COMHEAD = lv_ES_COMHEAD
ET_COMPART = lv_ET_COMPART
ET_COMTEXT_HD = lv_ET_COMTEXT_HD
EV_TAX_WAREHOUSE = lv_EV_TAX_WAREHOUSE ).
Links to Related Class(s)
/BEV2/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects