SAP DMS_VEG_CREATE_TEMPLATE Function Module for Generic FM to convert buisness data into XML









DMS_VEG_CREATE_TEMPLATE is a standard dms veg create 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 Generic FM to convert buisness data into XML 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 dms veg create template FM, simply by entering the name DMS_VEG_CREATE_TEMPLATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: DMS_VEG_TEMPLATE
Program Name: SAPLDMS_VEG_TEMPLATE
Main Program: SAPLDMS_VEG_TEMPLATE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DMS_VEG_CREATE_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 'DMS_VEG_CREATE_TEMPLATE'"Generic FM to convert buisness data into XML
EXPORTING
IT_SCENE_DATA = "Scene data for PDF Conversion
IT_FORM_DATA = "Form Data for PDF Conversion
IV_WORKFLOW_NAME = "Configuration ID
IS_DOCUMENT = "VEG Conversion for DMS

IMPORTING
EV_JOB_ID = "BAdI output for batch jop
ET_MESSAGES = "Message Table
.



IMPORTING Parameters details for DMS_VEG_CREATE_TEMPLATE

IT_SCENE_DATA - Scene data for PDF Conversion

Data type: DMS_TBL_SCENE_DATA
Optional: No
Call by Reference: Yes

IT_FORM_DATA - Form Data for PDF Conversion

Data type: DMS_TBL_FORMDATA
Optional: No
Call by Reference: Yes

IV_WORKFLOW_NAME - Configuration ID

Data type: DMS_CONFIG_ID
Optional: No
Call by Reference: Yes

IS_DOCUMENT - VEG Conversion for DMS

Data type: DMS_S_VEG_CNV
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for DMS_VEG_CREATE_TEMPLATE

EV_JOB_ID - BAdI output for batch jop

Data type: VEG_S_JOBID
Optional: No
Call by Reference: Yes

ET_MESSAGES - Message Table

Data type: DMS_TBL_MSG
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DMS_VEG_CREATE_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_ev_job_id  TYPE VEG_S_JOBID, "   
lv_it_scene_data  TYPE DMS_TBL_SCENE_DATA, "   
lv_et_messages  TYPE DMS_TBL_MSG, "   
lv_it_form_data  TYPE DMS_TBL_FORMDATA, "   
lv_iv_workflow_name  TYPE DMS_CONFIG_ID, "   
lv_is_document  TYPE DMS_S_VEG_CNV. "   

  CALL FUNCTION 'DMS_VEG_CREATE_TEMPLATE'  "Generic FM to convert buisness data into XML
    EXPORTING
         IT_SCENE_DATA = lv_it_scene_data
         IT_FORM_DATA = lv_it_form_data
         IV_WORKFLOW_NAME = lv_iv_workflow_name
         IS_DOCUMENT = lv_is_document
    IMPORTING
         EV_JOB_ID = lv_ev_job_id
         ET_MESSAGES = lv_et_messages
. " DMS_VEG_CREATE_TEMPLATE




ABAP code using 7.40 inline data declarations to call FM DMS_VEG_CREATE_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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!