SAP ATRA_CREATE_CONTAINER Function Module for









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

Function Group: S_ABAP_TRACE_DATA
Program Name: SAPLS_ABAP_TRACE_DATA
Main Program: SAPLS_ABAP_TRACE_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ATRA_CREATE_CONTAINER 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 'ATRA_CREATE_CONTAINER'"
EXPORTING
P_FNAME = "
* P_CREATE_NO_CONTAINER = ' ' "
* P_DELETE_FILE = ' ' "
* P_NO_RAISING = "
* P_WITH_TABNAMES = "
* P_FLG_FULLNAME = 'X' "

IMPORTING
E_KEY = "
E_EXCEPTION = "
E_HEADER = "
E_CANCELLED = "

EXCEPTIONS
ERROR_NUMERIC_OVERFLOW = 1 DATA_CONVERSION_ERROR = 2 TRACE_FILE_ERROR = 3
.



IMPORTING Parameters details for ATRA_CREATE_CONTAINER

P_FNAME -

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

P_CREATE_NO_CONTAINER -

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

P_DELETE_FILE -

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

P_NO_RAISING -

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

P_WITH_TABNAMES -

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

P_FLG_FULLNAME -

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

EXPORTING Parameters details for ATRA_CREATE_CONTAINER

E_KEY -

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

E_EXCEPTION -

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

E_HEADER -

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

E_CANCELLED -

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

EXCEPTIONS details

ERROR_NUMERIC_OVERFLOW -

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

DATA_CONVERSION_ERROR -

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

TRACE_FILE_ERROR -

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

Copy and paste ABAP code example for ATRA_CREATE_CONTAINER 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_e_key  TYPE SATR_TAB_KEY, "   
lv_p_fname  TYPE SE30FNAME, "   
lv_error_numeric_overflow  TYPE SE30FNAME, "   
lv_e_exception  TYPE STRING, "   
lv_data_conversion_error  TYPE STRING, "   
lv_p_create_no_container  TYPE SYCHAR01, "   SPACE
lv_e_header  TYPE SATR_HEADER, "   
lv_p_delete_file  TYPE SYCHAR01, "   SPACE
lv_trace_file_error  TYPE SYCHAR01, "   
lv_e_cancelled  TYPE XFLAG, "   
lv_p_no_raising  TYPE XFLAG, "   
lv_p_with_tabnames  TYPE XFLAG, "   
lv_p_flg_fullname  TYPE XFLAG. "   'X'

  CALL FUNCTION 'ATRA_CREATE_CONTAINER'  "
    EXPORTING
         P_FNAME = lv_p_fname
         P_CREATE_NO_CONTAINER = lv_p_create_no_container
         P_DELETE_FILE = lv_p_delete_file
         P_NO_RAISING = lv_p_no_raising
         P_WITH_TABNAMES = lv_p_with_tabnames
         P_FLG_FULLNAME = lv_p_flg_fullname
    IMPORTING
         E_KEY = lv_e_key
         E_EXCEPTION = lv_e_exception
         E_HEADER = lv_e_header
         E_CANCELLED = lv_e_cancelled
    EXCEPTIONS
        ERROR_NUMERIC_OVERFLOW = 1
        DATA_CONVERSION_ERROR = 2
        TRACE_FILE_ERROR = 3
. " ATRA_CREATE_CONTAINER




ABAP code using 7.40 inline data declarations to call FM ATRA_CREATE_CONTAINER

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_p_create_no_container) = ' '.
 
 
DATA(ld_p_delete_file) = ' '.
 
 
 
 
 
DATA(ld_p_flg_fullname) = 'X'.
 


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!