SAP SO_FOLDER_ID_GET Function Module for









SO_FOLDER_ID_GET is a standard so folder id get 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 so folder id get FM, simply by entering the name SO_FOLDER_ID_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function SO_FOLDER_ID_GET 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 'SO_FOLDER_ID_GET'"
EXPORTING
OWNER = "SAPoffice owner of folder
* REGION = 'Q' "Part of folders for searching for folder ID

IMPORTING
OBJECT_ID = "Folder ID

TABLES
PATH_TABLE = "Path to folder in hierarchy

EXCEPTIONS
ACTIVE_USER_NOT_EXIST = 1 SUBSTITUTE_NOT_ACTIVE = 10 SUBSTITUTE_NOT_DEFINED = 11 SYSTEM_FAILURE = 12 USER_NOT_EXIST = 13 X_ERROR = 14 COMMUNICATION_FAILURE = 2 COMPONENT_NOT_AVAILABLE = 3 FOLDER_NOT_EXIST = 4 OPERATION_NO_AUTHORIZATION = 5 OWNER_NOT_EXIST = 6 PARAMETER_ERROR = 7 PATH_NOT_FOUND = 8 PATH_NOT_UNIQUE = 9
.



IMPORTING Parameters details for SO_FOLDER_ID_GET

OWNER - SAPoffice owner of folder

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

REGION - Part of folders for searching for folder ID

Data type: SOFH-FOLRG
Default: 'Q'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SO_FOLDER_ID_GET

OBJECT_ID - Folder ID

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

TABLES Parameters details for SO_FOLDER_ID_GET

PATH_TABLE - Path to folder in hierarchy

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

EXCEPTIONS details

ACTIVE_USER_NOT_EXIST - Active user does not exist

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

SUBSTITUTE_NOT_ACTIVE - The substitute is inactive

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

SUBSTITUTE_NOT_DEFINED - The substitute is not defined

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

SYSTEM_FAILURE -

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

USER_NOT_EXIST - User does not exist

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

X_ERROR - Internal error

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

COMMUNICATION_FAILURE -

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

COMPONENT_NOT_AVAILABLE - SAPoffice component not available

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

FOLDER_NOT_EXIST - Folder does not exist in SAPoffice

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

OPERATION_NO_AUTHORIZATION - No authorization to retrieve folder ID

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

OWNER_NOT_EXIST - Specified owner of folder does not exist

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

PARAMETER_ERROR - Error in program call

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

PATH_NOT_FOUND - Path was not found

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

PATH_NOT_UNIQUE - Path is not unique

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

Copy and paste ABAP code example for SO_FOLDER_ID_GET 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_owner  TYPE SOUD-USRNAM, "   
lv_object_id  TYPE SOODK, "   
lt_path_table  TYPE STANDARD TABLE OF SOOD6, "   
lv_active_user_not_exist  TYPE SOOD6, "   
lv_substitute_not_active  TYPE SOOD6, "   
lv_substitute_not_defined  TYPE SOOD6, "   
lv_system_failure  TYPE SOOD6, "   
lv_user_not_exist  TYPE SOOD6, "   
lv_x_error  TYPE SOOD6, "   
lv_region  TYPE SOFH-FOLRG, "   'Q'
lv_communication_failure  TYPE SOFH, "   
lv_component_not_available  TYPE SOFH, "   
lv_folder_not_exist  TYPE SOFH, "   
lv_operation_no_authorization  TYPE SOFH, "   
lv_owner_not_exist  TYPE SOFH, "   
lv_parameter_error  TYPE SOFH, "   
lv_path_not_found  TYPE SOFH, "   
lv_path_not_unique  TYPE SOFH. "   

  CALL FUNCTION 'SO_FOLDER_ID_GET'  "
    EXPORTING
         OWNER = lv_owner
         REGION = lv_region
    IMPORTING
         OBJECT_ID = lv_object_id
    TABLES
         PATH_TABLE = lt_path_table
    EXCEPTIONS
        ACTIVE_USER_NOT_EXIST = 1
        SUBSTITUTE_NOT_ACTIVE = 10
        SUBSTITUTE_NOT_DEFINED = 11
        SYSTEM_FAILURE = 12
        USER_NOT_EXIST = 13
        X_ERROR = 14
        COMMUNICATION_FAILURE = 2
        COMPONENT_NOT_AVAILABLE = 3
        FOLDER_NOT_EXIST = 4
        OPERATION_NO_AUTHORIZATION = 5
        OWNER_NOT_EXIST = 6
        PARAMETER_ERROR = 7
        PATH_NOT_FOUND = 8
        PATH_NOT_UNIQUE = 9
. " SO_FOLDER_ID_GET




ABAP code using 7.40 inline data declarations to call FM SO_FOLDER_ID_GET

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 USRNAM FROM SOUD INTO @DATA(ld_owner).
 
 
 
 
 
 
 
 
 
"SELECT single FOLRG FROM SOFH INTO @DATA(ld_region).
DATA(ld_region) = 'Q'.
 
 
 
 
 
 
 
 
 


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!