SAP SDIXML_BOR_TO_TEMPLATE Function Module for
SDIXML_BOR_TO_TEMPLATE is a standard sdixml bor to template SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sdixml bor to template FM, simply by entering the name SDIXML_BOR_TO_TEMPLATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDIXML
Program Name: SAPLSDIXML
Main Program: SAPLSDIXML
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SDIXML_BOR_TO_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 'SDIXML_BOR_TO_TEMPLATE'".
EXPORTING
OBJECTNAME = "
NAME = "Method Name
* CONTROL = "
* RETURN = "
IMPORTING
ELEMENT = "
CHANGING
* BAPI = "
* TYPEDESCR = "Type Descriptions for Conversion to XML
* TYPETEXTS = "
* DOCUMENT = "IF_IXML_DOCUMENT
EXCEPTIONS
ILLEGAL_NAME = 1 BAPI_NOT_EXISTS = 2
IMPORTING Parameters details for SDIXML_BOR_TO_TEMPLATE
OBJECTNAME -
Data type: SWC_OBJEDEOptional: No
Call by Reference: Yes
NAME - Method Name
Data type: SWC_ELEMOptional: No
Call by Reference: Yes
CONTROL -
Data type: DCXMLBATCLOptional: Yes
Call by Reference: Yes
RETURN -
Data type: DDBOOL_DOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SDIXML_BOR_TO_TEMPLATE
ELEMENT -
Data type: IF_IXML_ELEMENTOptional: No
Call by Reference: Yes
CHANGING Parameters details for SDIXML_BOR_TO_TEMPLATE
BAPI -
Data type: DCXMLBAPIDOptional: Yes
Call by Reference: Yes
TYPEDESCR - Type Descriptions for Conversion to XML
Data type: DCXMLTYPEDOptional: Yes
Call by Reference: Yes
TYPETEXTS -
Data type: DCXMLTTXTSOptional: Yes
Call by Reference: Yes
DOCUMENT - IF_IXML_DOCUMENT
Data type: IF_IXML_DOCUMENTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ILLEGAL_NAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAPI_NOT_EXISTS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SDIXML_BOR_TO_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_bapi | TYPE DCXMLBAPID, " | |||
| lv_element | TYPE IF_IXML_ELEMENT, " | |||
| lv_objectname | TYPE SWC_OBJEDE, " | |||
| lv_illegal_name | TYPE SWC_OBJEDE, " | |||
| lv_name | TYPE SWC_ELEM, " | |||
| lv_typedescr | TYPE DCXMLTYPED, " | |||
| lv_bapi_not_exists | TYPE DCXMLTYPED, " | |||
| lv_control | TYPE DCXMLBATCL, " | |||
| lv_typetexts | TYPE DCXMLTTXTS, " | |||
| lv_return | TYPE DDBOOL_D, " | |||
| lv_document | TYPE IF_IXML_DOCUMENT. " |
|   CALL FUNCTION 'SDIXML_BOR_TO_TEMPLATE' " |
| EXPORTING | ||
| OBJECTNAME | = lv_objectname | |
| NAME | = lv_name | |
| CONTROL | = lv_control | |
| RETURN | = lv_return | |
| IMPORTING | ||
| ELEMENT | = lv_element | |
| CHANGING | ||
| BAPI | = lv_bapi | |
| TYPEDESCR | = lv_typedescr | |
| TYPETEXTS | = lv_typetexts | |
| DOCUMENT | = lv_document | |
| EXCEPTIONS | ||
| ILLEGAL_NAME = 1 | ||
| BAPI_NOT_EXISTS = 2 | ||
| . " SDIXML_BOR_TO_TEMPLATE | ||
ABAP code using 7.40 inline data declarations to call FM SDIXML_BOR_TO_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.Search for further information about these or an SAP related objects