SAP UPLOAD_SCE_DB_FLAT_FILES Function Module for NOTRANSL: Upload, mit SCE-Tabellen
UPLOAD_SCE_DB_FLAT_FILES is a standard upload sce db flat files 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: Upload, mit SCE-Tabellen 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 upload sce db flat files FM, simply by entering the name UPLOAD_SCE_DB_FLAT_FILES into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCE_UPLOAD
Program Name: SAPLSCE_UPLOAD
Main Program: SAPLSCE_UPLOAD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function UPLOAD_SCE_DB_FLAT_FILES 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 'UPLOAD_SCE_DB_FLAT_FILES'"NOTRANSL: Upload, mit SCE-Tabellen.
EXPORTING
* MAINTAIN_MODUS = 'CREATE' "Character Field of Length 6
* PREFIX = "DE-EN-LANG-SWITCH-NO-TRANSLATION
FOLDER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PLANT = '0001' "Sequence table for MRP units - scope of planning
* SALES_ORG = '0001' "Sales Organization
* DISTRIB_CHANNEL = '01' "Distribution Channel
IMPORTING Parameters details for UPLOAD_SCE_DB_FLAT_FILES
MAINTAIN_MODUS - Character Field of Length 6
Data type: CHAR6Default: 'CREATE'
Optional: No
Call by Reference: Yes
PREFIX - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CHAR4Optional: Yes
Call by Reference: Yes
FOLDER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CHAR255Optional: No
Call by Reference: Yes
PLANT - Sequence table for MRP units - scope of planning
Data type: MAST-WERKSDefault: '0001'
Optional: No
Call by Reference: Yes
SALES_ORG - Sales Organization
Data type: VKORGDefault: '0001'
Optional: No
Call by Reference: Yes
DISTRIB_CHANNEL - Distribution Channel
Data type: VTWEGDefault: '01'
Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for UPLOAD_SCE_DB_FLAT_FILES 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_maintain_modus | TYPE CHAR6, " 'CREATE' | |||
| lv_prefix | TYPE CHAR4, " | |||
| lv_folder | TYPE CHAR255, " | |||
| lv_plant | TYPE MAST-WERKS, " '0001' | |||
| lv_sales_org | TYPE VKORG, " '0001' | |||
| lv_distrib_channel | TYPE VTWEG. " '01' |
|   CALL FUNCTION 'UPLOAD_SCE_DB_FLAT_FILES' "NOTRANSL: Upload, mit SCE-Tabellen |
| EXPORTING | ||
| MAINTAIN_MODUS | = lv_maintain_modus | |
| PREFIX | = lv_prefix | |
| FOLDER | = lv_folder | |
| PLANT | = lv_plant | |
| SALES_ORG | = lv_sales_org | |
| DISTRIB_CHANNEL | = lv_distrib_channel | |
| . " UPLOAD_SCE_DB_FLAT_FILES | ||
ABAP code using 7.40 inline data declarations to call FM UPLOAD_SCE_DB_FLAT_FILES
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_maintain_modus) | = 'CREATE'. | |||
| "SELECT single WERKS FROM MAST INTO @DATA(ld_plant). | ||||
| DATA(ld_plant) | = '0001'. | |||
| DATA(ld_sales_org) | = '0001'. | |||
| DATA(ld_distrib_channel) | = '01'. | |||
Search for further information about these or an SAP related objects