SAP CRM_KW_CREATE_XML_TEMPLATE Function Module for Erzeugen einer XML-Vorlage
CRM_KW_CREATE_XML_TEMPLATE is a standard crm kw create xml template SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Erzeugen einer XML-Vorlage processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for crm kw create xml template FM, simply by entering the name CRM_KW_CREATE_XML_TEMPLATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_KW_DOCUMENTS
Program Name: SAPLCRM_KW_DOCUMENTS
Main Program: SAPLCRM_KW_DOCUMENTS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CRM_KW_CREATE_XML_TEMPLATE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CRM_KW_CREATE_XML_TEMPLATE'"Erzeugen einer XML-Vorlage.
EXPORTING
* IV_APPLICATION = 'EXCEL' "Applikation zur Anlage einer XML-Vorlage
IV_PACKAGE_ID = "KW Framework: Package-Kennung
IS_PARENTPOS = "KW Framework: Parent-Position des IO
IV_PHIO_CLASS = "Dokumentenklasse
IV_TERMINOLOGY = "Gui Texte, Icons, Nachrichten, Popups usw.
IMPORTING
ES_NEW_PHIO = "KW Framework: Objektschlüssel
ES_NEW_LOIO = "KW Framework: Objektschlüssel
IMPORTING Parameters details for CRM_KW_CREATE_XML_TEMPLATE
IV_APPLICATION - Applikation zur Anlage einer XML-Vorlage
Data type: CRMT_XML_TEMPLATE_TYPEDefault: 'EXCEL'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_PACKAGE_ID - KW Framework: Package-Kennung
Data type: SKWF_PKGIDOptional: No
Call by Reference: Yes
IS_PARENTPOS - KW Framework: Parent-Position des IO
Data type: SKWF_PAPOSOptional: No
Call by Reference: Yes
IV_PHIO_CLASS - Dokumentenklasse
Data type: SKWF_IO-CLASSOptional: No
Call by Reference: Yes
IV_TERMINOLOGY - Gui Texte, Icons, Nachrichten, Popups usw.
Data type: CL_KWUI_TERMINOLOGYOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CRM_KW_CREATE_XML_TEMPLATE
ES_NEW_PHIO - KW Framework: Objektschlüssel
Data type: SKWF_IOOptional: No
Call by Reference: Yes
ES_NEW_LOIO - KW Framework: Objektschlüssel
Data type: SKWF_IOOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CRM_KW_CREATE_XML_TEMPLATE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_es_new_phio | TYPE SKWF_IO, " | |||
| lv_iv_application | TYPE CRMT_XML_TEMPLATE_TYPE, " 'EXCEL' | |||
| lv_es_new_loio | TYPE SKWF_IO, " | |||
| lv_iv_package_id | TYPE SKWF_PKGID, " | |||
| lv_is_parentpos | TYPE SKWF_PAPOS, " | |||
| lv_iv_phio_class | TYPE SKWF_IO-CLASS, " | |||
| lv_iv_terminology | TYPE CL_KWUI_TERMINOLOGY. " |
|   CALL FUNCTION 'CRM_KW_CREATE_XML_TEMPLATE' "Erzeugen einer XML-Vorlage |
| EXPORTING | ||
| IV_APPLICATION | = lv_iv_application | |
| IV_PACKAGE_ID | = lv_iv_package_id | |
| IS_PARENTPOS | = lv_is_parentpos | |
| IV_PHIO_CLASS | = lv_iv_phio_class | |
| IV_TERMINOLOGY | = lv_iv_terminology | |
| IMPORTING | ||
| ES_NEW_PHIO | = lv_es_new_phio | |
| ES_NEW_LOIO | = lv_es_new_loio | |
| . " CRM_KW_CREATE_XML_TEMPLATE | ||
ABAP code using 7.40 inline data declarations to call FM CRM_KW_CREATE_XML_TEMPLATE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_iv_application) | = 'EXCEL'. | |||
| "SELECT single CLASS FROM SKWF_IO INTO @DATA(ld_iv_phio_class). | ||||
Search for further information about these or an SAP related objects