SAP BM_CREATE_FOLDERS Function Module for Check or generate client-specific or cross-client BusNav folders
BM_CREATE_FOLDERS is a standard bm create folders SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check or generate client-specific or cross-client BusNav folders 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 bm create folders FM, simply by entering the name BM_CREATE_FOLDERS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SF13
Program Name: SAPLSF13
Main Program: SAPLSF13
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BM_CREATE_FOLDERS 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 'BM_CREATE_FOLDERS'"Check or generate client-specific or cross-client BusNav folders.
EXPORTING
VARIANT_ID = "
IMPORTING
FLG_GLOBAL_FIELDS = "
FLG_IMG_CREATION = "
EXCEPTIONS
NO_IMG_CREATION = 1
IMPORTING Parameters details for BM_CREATE_FOLDERS
VARIANT_ID -
Data type: DF50L-VARIANT_IDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BM_CREATE_FOLDERS
FLG_GLOBAL_FIELDS -
Data type: SDFMSCR-FLG_GLOBALOptional: No
Call by Reference: No ( called with pass by value option)
FLG_IMG_CREATION -
Data type: SDFMSCR-FLG_IMGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_IMG_CREATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BM_CREATE_FOLDERS 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_variant_id | TYPE DF50L-VARIANT_ID, " | |||
| lv_no_img_creation | TYPE DF50L, " | |||
| lv_flg_global_fields | TYPE SDFMSCR-FLG_GLOBAL, " | |||
| lv_flg_img_creation | TYPE SDFMSCR-FLG_IMG. " |
|   CALL FUNCTION 'BM_CREATE_FOLDERS' "Check or generate client-specific or cross-client BusNav folders |
| EXPORTING | ||
| VARIANT_ID | = lv_variant_id | |
| IMPORTING | ||
| FLG_GLOBAL_FIELDS | = lv_flg_global_fields | |
| FLG_IMG_CREATION | = lv_flg_img_creation | |
| EXCEPTIONS | ||
| NO_IMG_CREATION = 1 | ||
| . " BM_CREATE_FOLDERS | ||
ABAP code using 7.40 inline data declarations to call FM BM_CREATE_FOLDERS
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 VARIANT_ID FROM DF50L INTO @DATA(ld_variant_id). | ||||
| "SELECT single FLG_GLOBAL FROM SDFMSCR INTO @DATA(ld_flg_global_fields). | ||||
| "SELECT single FLG_IMG FROM SDFMSCR INTO @DATA(ld_flg_img_creation). | ||||
Search for further information about these or an SAP related objects