SAP SLVC_EXPORT_TRACE Function Module for









SLVC_EXPORT_TRACE is a standard slvc export trace 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 slvc export trace FM, simply by entering the name SLVC_EXPORT_TRACE into the relevant SAP transaction such as SE37 or SE38.

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



Function SLVC_EXPORT_TRACE 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 'SLVC_EXPORT_TRACE'"
EXPORTING
* FILENAME = "Local file for upload/download
* NEW = "General Flag
* I_NOSAVE = "
* I_TITLE = "ALV Control: Title bar text
* REPID = "ABAP Program Name
* I_LAYOUT = "ABAP: Name of Variant (Without Program Name)
* I_TEMPLATE_FILESIZE = "
* IT_TEMPLATE = "
* IS_ALV_BDS = "Structure for BDS Template List Display

TABLES
IT_OUTTAB = "
IT_SELOPT = "ABAP: General Structure for PARAMETERS and SELECT-OPTIONS
IT_AQSELFIELDS = "SAP Query (L): Parameter / Select-Option name
IT_LISTDESC = "ABAP Query (L): Field description of lists
IT_FPAIRS = "ABAP Query (L): Amount/unit pairs
IT_AQFIELDLIST = "SAP Query (L): Functional area field list
IT_AQRQLIST = "SAP Query (L): Field list of a query (technical)
IT_CONVEXITS = "Subset of DFIES (Conversion Exits)
IT_ENVIRON = "ALV Control: Text Pool
IT_TEXTPOOL = "ALV Control: Text Pool
IT_DATA = "

EXCEPTIONS
ERROR = 1 GUI_TYPE_NOT_SUPPORTED = 2 FILE_DOWNLOAD = 3
.



IMPORTING Parameters details for SLVC_EXPORT_TRACE

FILENAME - Local file for upload/download

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

NEW - General Flag

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

I_NOSAVE -

Data type: FLAG
Optional: Yes
Call by Reference: Yes

I_TITLE - ALV Control: Title bar text

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

REPID - ABAP Program Name

Data type: REPID
Optional: Yes
Call by Reference: Yes

I_LAYOUT - ABAP: Name of Variant (Without Program Name)

Data type: CL_ALV_VARIANT
Optional: Yes
Call by Reference: Yes

I_TEMPLATE_FILESIZE -

Data type: INT4
Optional: Yes
Call by Reference: Yes

IT_TEMPLATE -

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

IS_ALV_BDS - Structure for BDS Template List Display

Data type: LVC_S_BDS
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SLVC_EXPORT_TRACE

IT_OUTTAB -

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

IT_SELOPT - ABAP: General Structure for PARAMETERS and SELECT-OPTIONS

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

IT_AQSELFIELDS - SAP Query (L): Parameter / Select-Option name

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

IT_LISTDESC - ABAP Query (L): Field description of lists

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

IT_FPAIRS - ABAP Query (L): Amount/unit pairs

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

IT_AQFIELDLIST - SAP Query (L): Functional area field list

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

IT_AQRQLIST - SAP Query (L): Field list of a query (technical)

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

IT_CONVEXITS - Subset of DFIES (Conversion Exits)

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

IT_ENVIRON - ALV Control: Text Pool

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

IT_TEXTPOOL - ALV Control: Text Pool

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

IT_DATA -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR - Error

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

GUI_TYPE_NOT_SUPPORTED - Not supported

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

FILE_DOWNLOAD -

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

Copy and paste ABAP code example for SLVC_EXPORT_TRACE 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_error  TYPE STRING, "   
lv_filename  TYPE LOCALFILE, "   
lt_it_outtab  TYPE STANDARD TABLE OF LOCALFILE, "   
lt_it_selopt  TYPE STANDARD TABLE OF RSPARAMS, "   
lt_it_aqselfields  TYPE STANDARD TABLE OF RSAQSPNAME, "   
lv_new  TYPE FLAG, "   
lt_it_listdesc  TYPE STANDARD TABLE OF RSAQLDESC, "   
lv_gui_type_not_supported  TYPE RSAQLDESC, "   
lv_i_nosave  TYPE FLAG, "   
lt_it_fpairs  TYPE STANDARD TABLE OF RSAQFPAIRS, "   
lv_file_download  TYPE RSAQFPAIRS, "   
lv_i_title  TYPE LVC_TITLE, "   
lt_it_aqfieldlist  TYPE STANDARD TABLE OF RSAQRFLIST, "   
lv_repid  TYPE REPID, "   
lt_it_aqrqlist  TYPE STANDARD TABLE OF RSAQRQLIST, "   
lv_i_layout  TYPE CL_ALV_VARIANT, "   
lt_it_convexits  TYPE STANDARD TABLE OF LVCDINCL, "   
lt_it_environ  TYPE STANDARD TABLE OF LVC_S_TXTP, "   
lv_i_template_filesize  TYPE INT4, "   
lv_it_template  TYPE SBDST_CONTENT, "   
lt_it_textpool  TYPE STANDARD TABLE OF LVC_S_TXTP, "   
lt_it_data  TYPE STANDARD TABLE OF LVC_S_TXTP, "   
lv_is_alv_bds  TYPE LVC_S_BDS. "   

  CALL FUNCTION 'SLVC_EXPORT_TRACE'  "
    EXPORTING
         FILENAME = lv_filename
         NEW = lv_new
         I_NOSAVE = lv_i_nosave
         I_TITLE = lv_i_title
         REPID = lv_repid
         I_LAYOUT = lv_i_layout
         I_TEMPLATE_FILESIZE = lv_i_template_filesize
         IT_TEMPLATE = lv_it_template
         IS_ALV_BDS = lv_is_alv_bds
    TABLES
         IT_OUTTAB = lt_it_outtab
         IT_SELOPT = lt_it_selopt
         IT_AQSELFIELDS = lt_it_aqselfields
         IT_LISTDESC = lt_it_listdesc
         IT_FPAIRS = lt_it_fpairs
         IT_AQFIELDLIST = lt_it_aqfieldlist
         IT_AQRQLIST = lt_it_aqrqlist
         IT_CONVEXITS = lt_it_convexits
         IT_ENVIRON = lt_it_environ
         IT_TEXTPOOL = lt_it_textpool
         IT_DATA = lt_it_data
    EXCEPTIONS
        ERROR = 1
        GUI_TYPE_NOT_SUPPORTED = 2
        FILE_DOWNLOAD = 3
. " SLVC_EXPORT_TRACE




ABAP code using 7.40 inline data declarations to call FM SLVC_EXPORT_TRACE

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!