SAP SD_IDOC_GEN_DATAELEM_AND_DOMAN Function Module for NOTRANSL: IDoc für die Datenelemt und Domäne generieren









SD_IDOC_GEN_DATAELEM_AND_DOMAN is a standard sd idoc gen dataelem and doman SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: IDoc für die Datenelemt und Domäne generieren 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 sd idoc gen dataelem and doman FM, simply by entering the name SD_IDOC_GEN_DATAELEM_AND_DOMAN into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_IDOC_GEN_DATAELEM_AND_DOMAN 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 'SD_IDOC_GEN_DATAELEM_AND_DOMAN'"NOTRANSL: IDoc für die Datenelemt und Domäne generieren
EXPORTING
I_MESTYP_DATENELEM = "
I_MESTYP_DOMNAME = "
I_MESTYP_DD03L = "
* I_LOGSYS = ' ' "
I_DD02L_T = "
I_T002_T = "

CHANGING
I_PROT_T = "

EXCEPTIONS
SYSTEM_ERROR = 1 NO_DATA_FOUND = 2
.



IMPORTING Parameters details for SD_IDOC_GEN_DATAELEM_AND_DOMAN

I_MESTYP_DATENELEM -

Data type: TBDME-MESTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_MESTYP_DOMNAME -

Data type: TBDME-MESTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_MESTYP_DD03L -

Data type: TBDME-MESTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_LOGSYS -

Data type: TBDLS-LOGSYS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DD02L_T -

Data type: VKCE_DD02L_T
Optional: No
Call by Reference: No ( called with pass by value option)

I_T002_T -

Data type: VKCE_T002_T
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for SD_IDOC_GEN_DATAELEM_AND_DOMAN

I_PROT_T -

Data type: VKCE_PROT
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

SYSTEM_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_DATA_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SD_IDOC_GEN_DATAELEM_AND_DOMAN 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_i_prot_t  TYPE VKCE_PROT, "   
lv_system_error  TYPE VKCE_PROT, "   
lv_i_mestyp_datenelem  TYPE TBDME-MESTYP, "   
lv_no_data_found  TYPE TBDME, "   
lv_i_mestyp_domname  TYPE TBDME-MESTYP, "   
lv_i_mestyp_dd03l  TYPE TBDME-MESTYP, "   
lv_i_logsys  TYPE TBDLS-LOGSYS, "   SPACE
lv_i_dd02l_t  TYPE VKCE_DD02L_T, "   
lv_i_t002_t  TYPE VKCE_T002_T. "   

  CALL FUNCTION 'SD_IDOC_GEN_DATAELEM_AND_DOMAN'  "NOTRANSL: IDoc für die Datenelemt und Domäne generieren
    EXPORTING
         I_MESTYP_DATENELEM = lv_i_mestyp_datenelem
         I_MESTYP_DOMNAME = lv_i_mestyp_domname
         I_MESTYP_DD03L = lv_i_mestyp_dd03l
         I_LOGSYS = lv_i_logsys
         I_DD02L_T = lv_i_dd02l_t
         I_T002_T = lv_i_t002_t
    CHANGING
         I_PROT_T = lv_i_prot_t
    EXCEPTIONS
        SYSTEM_ERROR = 1
        NO_DATA_FOUND = 2
. " SD_IDOC_GEN_DATAELEM_AND_DOMAN




ABAP code using 7.40 inline data declarations to call FM SD_IDOC_GEN_DATAELEM_AND_DOMAN

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.

 
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_i_mestyp_datenelem).
 
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_i_mestyp_domname).
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_i_mestyp_dd03l).
 
"SELECT single LOGSYS FROM TBDLS INTO @DATA(ld_i_logsys).
DATA(ld_i_logsys) = ' '.
 
 
 


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!