SAP BGRFC_SET_SUPERVISOR_DEST Function Module for









BGRFC_SET_SUPERVISOR_DEST is a standard bgrfc set supervisor dest 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 bgrfc set supervisor dest FM, simply by entering the name BGRFC_SET_SUPERVISOR_DEST into the relevant SAP transaction such as SE37 or SE38.

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



Function BGRFC_SET_SUPERVISOR_DEST 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 'BGRFC_SET_SUPERVISOR_DEST'"
EXPORTING
DEST_NAME = "
* GENERATE_DESTINATION = ABAP_FALSE "
* USER_NAME = "
* GENERATE_USER = ABAP_FALSE "
* GENERATE_PASSWORD = ABAP_FALSE "
* COMMIT_CHANGES = ABAP_TRUE "
* ROLE_NAME = "
* RETURN_ERRORS_AS_TAB = ABAP_FALSE "

IMPORTING
ERROR_MESSAGE = "

CHANGING
* PASSWORD = "

EXCEPTIONS
USER_NAME_NOT_SUPPLIED = 1 NO_CLIENT = 10 NO_PASSWORD = 11 NO_REFERENCE_ALLOWED = 12 ERROR_OCCURED = 13 RESOURCE_ERROR = 14 NO_PASSWORD_PROVIDED = 15 FOREIGN_ENQUEUE = 16 ENQUEUE_NOT_AVAILABLE = 17 NO_ENQUEUE_SET = 18 USER_CREATION_FAILED = 19 PASSWORD_NOT_SUPPLIED = 2 ERROR_USER_CREATION = 20 ERROR_DESTINATION_CREATION = 21 USER_AUTHORITY_INSUFFICIENT = 22 DATABASE_ERROR = 23 PASSWORD_FORMAL_INCORRECT = 24 PASSWORD_TOO_LONG = 25 INTERNAL_ERROR_PASSWORD_CHECK = 26 PROFILE_GENERATION_FAILED = 27 NO_AUTHORIZATION = 3 DESTINATION_NOT_EXISTING = 4 DESTINATION_WRONG_TYPE = 5 NO_LOAD_BALANCING = 6 NO_SYSTEM_NUMBER = 7 NO_SERVER = 8 NO_USER = 9
.



IMPORTING Parameters details for BGRFC_SET_SUPERVISOR_DEST

DEST_NAME -

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

GENERATE_DESTINATION -

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

USER_NAME -

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

GENERATE_USER -

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

GENERATE_PASSWORD -

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

COMMIT_CHANGES -

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

ROLE_NAME -

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

RETURN_ERRORS_AS_TAB -

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

EXPORTING Parameters details for BGRFC_SET_SUPERVISOR_DEST

ERROR_MESSAGE -

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

CHANGING Parameters details for BGRFC_SET_SUPERVISOR_DEST

PASSWORD -

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

EXCEPTIONS details

USER_NAME_NOT_SUPPLIED -

Data type:
Optional: No
Call by Reference: Yes

NO_CLIENT -

Data type:
Optional: No
Call by Reference: Yes

NO_PASSWORD -

Data type:
Optional: No
Call by Reference: Yes

NO_REFERENCE_ALLOWED -

Data type:
Optional: No
Call by Reference: Yes

ERROR_OCCURED -

Data type:
Optional: No
Call by Reference: Yes

RESOURCE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_PASSWORD_PROVIDED -

Data type:
Optional: No
Call by Reference: Yes

FOREIGN_ENQUEUE -

Data type:
Optional: No
Call by Reference: Yes

ENQUEUE_NOT_AVAILABLE -

Data type:
Optional: No
Call by Reference: Yes

NO_ENQUEUE_SET -

Data type:
Optional: No
Call by Reference: Yes

USER_CREATION_FAILED -

Data type:
Optional: No
Call by Reference: Yes

PASSWORD_NOT_SUPPLIED -

Data type:
Optional: No
Call by Reference: Yes

ERROR_USER_CREATION -

Data type:
Optional: No
Call by Reference: Yes

ERROR_DESTINATION_CREATION -

Data type:
Optional: No
Call by Reference: Yes

USER_AUTHORITY_INSUFFICIENT -

Data type:
Optional: No
Call by Reference: Yes

DATABASE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

PASSWORD_FORMAL_INCORRECT -

Data type:
Optional: No
Call by Reference: Yes

PASSWORD_TOO_LONG -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR_PASSWORD_CHECK -

Data type:
Optional: No
Call by Reference: Yes

PROFILE_GENERATION_FAILED -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: Yes

DESTINATION_NOT_EXISTING -

Data type:
Optional: No
Call by Reference: Yes

DESTINATION_WRONG_TYPE -

Data type:
Optional: No
Call by Reference: Yes

NO_LOAD_BALANCING -

Data type:
Optional: No
Call by Reference: Yes

NO_SYSTEM_NUMBER -

Data type:
Optional: No
Call by Reference: Yes

NO_SERVER -

Data type:
Optional: No
Call by Reference: Yes

NO_USER -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BGRFC_SET_SUPERVISOR_DEST 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_password  TYPE STRING, "   
lv_dest_name  TYPE RFCDEST, "   
lv_error_message  TYPE BGRFC_MESSAGE_TAB, "   
lv_user_name_not_supplied  TYPE BGRFC_MESSAGE_TAB, "   
lv_no_client  TYPE BGRFC_MESSAGE_TAB, "   
lv_no_password  TYPE BGRFC_MESSAGE_TAB, "   
lv_no_reference_allowed  TYPE BGRFC_MESSAGE_TAB, "   
lv_error_occured  TYPE BGRFC_MESSAGE_TAB, "   
lv_resource_error  TYPE BGRFC_MESSAGE_TAB, "   
lv_no_password_provided  TYPE BGRFC_MESSAGE_TAB, "   
lv_foreign_enqueue  TYPE BGRFC_MESSAGE_TAB, "   
lv_enqueue_not_available  TYPE BGRFC_MESSAGE_TAB, "   
lv_no_enqueue_set  TYPE BGRFC_MESSAGE_TAB, "   
lv_user_creation_failed  TYPE BGRFC_MESSAGE_TAB, "   
lv_generate_destination  TYPE SAP_BOOL, "   ABAP_FALSE
lv_password_not_supplied  TYPE SAP_BOOL, "   
lv_error_user_creation  TYPE SAP_BOOL, "   
lv_error_destination_creation  TYPE SAP_BOOL, "   
lv_user_authority_insufficient  TYPE SAP_BOOL, "   
lv_database_error  TYPE SAP_BOOL, "   
lv_password_formal_incorrect  TYPE SAP_BOOL, "   
lv_password_too_long  TYPE SAP_BOOL, "   
lv_internal_error_password_check  TYPE SAP_BOOL, "   
lv_profile_generation_failed  TYPE SAP_BOOL, "   
lv_user_name  TYPE SYUNAME, "   
lv_no_authorization  TYPE SYUNAME, "   
lv_generate_user  TYPE SAP_BOOL, "   ABAP_FALSE
lv_destination_not_existing  TYPE SAP_BOOL, "   
lv_generate_password  TYPE SAP_BOOL, "   ABAP_FALSE
lv_destination_wrong_type  TYPE SAP_BOOL, "   
lv_commit_changes  TYPE SAP_BOOL, "   ABAP_TRUE
lv_no_load_balancing  TYPE SAP_BOOL, "   
lv_role_name  TYPE AGR_NAME, "   
lv_no_system_number  TYPE AGR_NAME, "   
lv_no_server  TYPE AGR_NAME, "   
lv_return_errors_as_tab  TYPE SAP_BOOL, "   ABAP_FALSE
lv_no_user  TYPE SAP_BOOL. "   

  CALL FUNCTION 'BGRFC_SET_SUPERVISOR_DEST'  "
    EXPORTING
         DEST_NAME = lv_dest_name
         GENERATE_DESTINATION = lv_generate_destination
         USER_NAME = lv_user_name
         GENERATE_USER = lv_generate_user
         GENERATE_PASSWORD = lv_generate_password
         COMMIT_CHANGES = lv_commit_changes
         ROLE_NAME = lv_role_name
         RETURN_ERRORS_AS_TAB = lv_return_errors_as_tab
    IMPORTING
         ERROR_MESSAGE = lv_error_message
    CHANGING
         PASSWORD = lv_password
    EXCEPTIONS
        USER_NAME_NOT_SUPPLIED = 1
        NO_CLIENT = 10
        NO_PASSWORD = 11
        NO_REFERENCE_ALLOWED = 12
        ERROR_OCCURED = 13
        RESOURCE_ERROR = 14
        NO_PASSWORD_PROVIDED = 15
        FOREIGN_ENQUEUE = 16
        ENQUEUE_NOT_AVAILABLE = 17
        NO_ENQUEUE_SET = 18
        USER_CREATION_FAILED = 19
        PASSWORD_NOT_SUPPLIED = 2
        ERROR_USER_CREATION = 20
        ERROR_DESTINATION_CREATION = 21
        USER_AUTHORITY_INSUFFICIENT = 22
        DATABASE_ERROR = 23
        PASSWORD_FORMAL_INCORRECT = 24
        PASSWORD_TOO_LONG = 25
        INTERNAL_ERROR_PASSWORD_CHECK = 26
        PROFILE_GENERATION_FAILED = 27
        NO_AUTHORIZATION = 3
        DESTINATION_NOT_EXISTING = 4
        DESTINATION_WRONG_TYPE = 5
        NO_LOAD_BALANCING = 6
        NO_SYSTEM_NUMBER = 7
        NO_SERVER = 8
        NO_USER = 9
. " BGRFC_SET_SUPERVISOR_DEST




ABAP code using 7.40 inline data declarations to call FM BGRFC_SET_SUPERVISOR_DEST

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_generate_destination) = ABAP_FALSE.
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_generate_user) = ABAP_FALSE.
 
 
DATA(ld_generate_password) = ABAP_FALSE.
 
 
DATA(ld_commit_changes) = ABAP_TRUE.
 
 
 
 
 
DATA(ld_return_errors_as_tab) = ABAP_FALSE.
 
 


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!