SAP EFG_CREATE_INCLUDE Function Module for









EFG_CREATE_INCLUDE is a standard efg create include 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 efg create include FM, simply by entering the name EFG_CREATE_INCLUDE into the relevant SAP transaction such as SE37 or SE38.

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



Function EFG_CREATE_INCLUDE 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 'EFG_CREATE_INCLUDE'"
EXPORTING
X_NAME = "
X_TEMPLATE = "Template Name
* X_OVERWRITE = "General Checkbox: X or ' '
* X_DIALOG = 'X' "General Checkbox: X or ' '
X_TEXT = "
X_REF_COMPOSER = "
* X_AREA = 'FRAME' "

CHANGING
* XY_CORRNO = "Correction Number
* XY_DEVCLASS = "Development Class

EXCEPTIONS
NOT_QUALIFIED = 1 FAILED = 2 FOREIGN_LOCK = 3 EXISTING = 4 CANCELLED = 5
.



IMPORTING Parameters details for EFG_CREATE_INCLUDE

X_NAME -

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

X_TEMPLATE - Template Name

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

X_OVERWRITE - General Checkbox: X or SPACE

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

X_DIALOG - General Checkbox: X or SPACE

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_TEXT -

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

X_REF_COMPOSER -

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

X_AREA -

Data type: CSEQUENCE
Default: 'FRAME'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for EFG_CREATE_INCLUDE

XY_CORRNO - Correction Number

Data type: E070-TRKORR
Optional: Yes
Call by Reference: No ( called with pass by value option)

XY_DEVCLASS - Development Class

Data type: TADIR-DEVCLASS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NOT_QUALIFIED - An Input Parameter was not Specified

Data type:
Optional: No
Call by Reference: Yes

FAILED - The process could not be executed

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

FOREIGN_LOCK -

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

EXISTING - Object Already Exists

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

CANCELLED -

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

Copy and paste ABAP code example for EFG_CREATE_INCLUDE 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_x_name  TYPE CSEQUENCE, "   
lv_xy_corrno  TYPE E070-TRKORR, "   
lv_not_qualified  TYPE E070, "   
lv_failed  TYPE E070, "   
lv_x_template  TYPE CSEQUENCE, "   
lv_xy_devclass  TYPE TADIR-DEVCLASS, "   
lv_x_overwrite  TYPE C, "   
lv_foreign_lock  TYPE C, "   
lv_existing  TYPE C, "   
lv_x_dialog  TYPE C, "   'X'
lv_x_text  TYPE CSEQUENCE, "   
lv_cancelled  TYPE CSEQUENCE, "   
lv_x_ref_composer  TYPE CL_CMP_COMPOSER, "   
lv_x_area  TYPE CSEQUENCE. "   'FRAME'

  CALL FUNCTION 'EFG_CREATE_INCLUDE'  "
    EXPORTING
         X_NAME = lv_x_name
         X_TEMPLATE = lv_x_template
         X_OVERWRITE = lv_x_overwrite
         X_DIALOG = lv_x_dialog
         X_TEXT = lv_x_text
         X_REF_COMPOSER = lv_x_ref_composer
         X_AREA = lv_x_area
    CHANGING
         XY_CORRNO = lv_xy_corrno
         XY_DEVCLASS = lv_xy_devclass
    EXCEPTIONS
        NOT_QUALIFIED = 1
        FAILED = 2
        FOREIGN_LOCK = 3
        EXISTING = 4
        CANCELLED = 5
. " EFG_CREATE_INCLUDE




ABAP code using 7.40 inline data declarations to call FM EFG_CREATE_INCLUDE

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 TRKORR FROM E070 INTO @DATA(ld_xy_corrno).
 
 
 
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_xy_devclass).
 
 
 
 
DATA(ld_x_dialog) = 'X'.
 
 
 
 
DATA(ld_x_area) = 'FRAME'.
 


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!