SAP LAW_ADD_COMPONENT_SYSTEM Function Module for









LAW_ADD_COMPONENT_SYSTEM is a standard law add component system 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 law add component system FM, simply by entering the name LAW_ADD_COMPONENT_SYSTEM into the relevant SAP transaction such as SE37 or SE38.

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



Function LAW_ADD_COMPONENT_SYSTEM 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 'LAW_ADD_COMPONENT_SYSTEM'"
EXPORTING
* I_NAME = "
* I_ROLE = "
* I_DEST = "
* I_DESCRIPTION = "
* I_LAW_HOSTNAME = "
* I_LAW_SYSNO = "
* I_LAW_CLIENT = "
* I_LAW_USER = "
* I_LAW_PASSWORD = "
* I_LAW_DEST = "
* I_UPDATE = ' ' "
I_SYSID = "
* I_ROLE_LAW = "
* I_TMP_USER = "
* I_TMP_PASSWORD = "
* I_HOSTNAME = "
* I_SYSNO = "
* I_MSHOST = "
* I_LBGROUP = "
* I_CLIENT = "
* I_USER = "
* I_PASSWORD = "

TABLES
* ET_RETURN = "

EXCEPTIONS
NO_CONNECTION_TO_COMP = 1 USERID_LOCKED = 10 DESTINATION_LOCKED = 11 LAW_USER_EXISTS_ALREADY = 12 LOGON_TO_COMP_FAILED = 2 INTERNAL_ERROR_ON_LAW_SIDE = 3 INTERNAL_ERROR_ON_COMP_SIDE = 4 AUTH_ERROR_ON_LAW_SIDE = 5 AUTH_ERROR_ON_COMP_SIDE = 6 PARAMETER_MISSING = 7 LAW_DESTINATION_EXISTS_ALREADY = 8 COM_DESTINATION_EXISTS_ALREADY = 9
.



IMPORTING Parameters details for LAW_ADD_COMPONENT_SYSTEM

I_NAME -

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

I_ROLE -

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

I_DEST -

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

I_DESCRIPTION -

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

I_LAW_HOSTNAME -

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

I_LAW_SYSNO -

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

I_LAW_CLIENT -

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

I_LAW_USER -

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

I_LAW_PASSWORD -

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

I_LAW_DEST -

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

I_UPDATE -

Data type: AS4FLAG
Default: ' '
Optional: No
Call by Reference: Yes

I_SYSID -

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

I_ROLE_LAW -

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

I_TMP_USER -

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

I_TMP_PASSWORD -

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

I_HOSTNAME -

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

I_SYSNO -

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

I_MSHOST -

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

I_LBGROUP -

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

I_CLIENT -

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

I_USER -

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

I_PASSWORD -

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

TABLES Parameters details for LAW_ADD_COMPONENT_SYSTEM

ET_RETURN -

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

EXCEPTIONS details

NO_CONNECTION_TO_COMP -

Data type:
Optional: No
Call by Reference: Yes

USERID_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

DESTINATION_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

LAW_USER_EXISTS_ALREADY -

Data type:
Optional: No
Call by Reference: Yes

LOGON_TO_COMP_FAILED -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR_ON_LAW_SIDE -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR_ON_COMP_SIDE -

Data type:
Optional: No
Call by Reference: Yes

AUTH_ERROR_ON_LAW_SIDE -

Data type:
Optional: No
Call by Reference: Yes

AUTH_ERROR_ON_COMP_SIDE -

Data type:
Optional: No
Call by Reference: Yes

PARAMETER_MISSING -

Data type:
Optional: No
Call by Reference: Yes

LAW_DESTINATION_EXISTS_ALREADY -

Data type:
Optional: No
Call by Reference: Yes

COM_DESTINATION_EXISTS_ALREADY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LAW_ADD_COMPONENT_SYSTEM 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_i_name  TYPE C, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_no_connection_to_comp  TYPE BAPIRET2, "   
lv_i_role  TYPE AGR_NAME, "   
lv_userid_locked  TYPE AGR_NAME, "   
lv_i_dest  TYPE RFCDEST, "   
lv_destination_locked  TYPE RFCDEST, "   
lv_i_description  TYPE RFCDOC_D, "   
lv_law_user_exists_already  TYPE RFCDOC_D, "   
lv_i_law_hostname  TYPE RFCHOST, "   
lv_i_law_sysno  TYPE RFCSERVICE, "   
lv_i_law_client  TYPE RFCCLIENT, "   
lv_i_law_user  TYPE RFCUSER, "   
lv_i_law_password  TYPE RFCAUTH, "   
lv_i_law_dest  TYPE RFCDEST, "   
lv_i_update  TYPE AS4FLAG, "   ' '
lv_i_sysid  TYPE RFCSYSID, "   
lv_logon_to_comp_failed  TYPE RFCSYSID, "   
lv_i_role_law  TYPE AGR_NAME, "   
lv_i_tmp_user  TYPE RFCUSER, "   
lv_i_tmp_password  TYPE RFCAUTH, "   
lv_i_hostname  TYPE RFCHOST_EXT, "   
lv_internal_error_on_law_side  TYPE RFCHOST_EXT, "   
lv_i_sysno  TYPE RFCSERVICE, "   
lv_internal_error_on_comp_side  TYPE RFCSERVICE, "   
lv_i_mshost  TYPE RFCHOST_EXT, "   
lv_auth_error_on_law_side  TYPE RFCHOST_EXT, "   
lv_i_lbgroup  TYPE RFCLOAD, "   
lv_auth_error_on_comp_side  TYPE RFCLOAD, "   
lv_i_client  TYPE RFCCLIENT, "   
lv_parameter_missing  TYPE RFCCLIENT, "   
lv_i_user  TYPE RFCUSER, "   
lv_law_destination_exists_already  TYPE RFCUSER, "   
lv_i_password  TYPE RFCAUTH, "   
lv_com_destination_exists_already  TYPE RFCAUTH. "   

  CALL FUNCTION 'LAW_ADD_COMPONENT_SYSTEM'  "
    EXPORTING
         I_NAME = lv_i_name
         I_ROLE = lv_i_role
         I_DEST = lv_i_dest
         I_DESCRIPTION = lv_i_description
         I_LAW_HOSTNAME = lv_i_law_hostname
         I_LAW_SYSNO = lv_i_law_sysno
         I_LAW_CLIENT = lv_i_law_client
         I_LAW_USER = lv_i_law_user
         I_LAW_PASSWORD = lv_i_law_password
         I_LAW_DEST = lv_i_law_dest
         I_UPDATE = lv_i_update
         I_SYSID = lv_i_sysid
         I_ROLE_LAW = lv_i_role_law
         I_TMP_USER = lv_i_tmp_user
         I_TMP_PASSWORD = lv_i_tmp_password
         I_HOSTNAME = lv_i_hostname
         I_SYSNO = lv_i_sysno
         I_MSHOST = lv_i_mshost
         I_LBGROUP = lv_i_lbgroup
         I_CLIENT = lv_i_client
         I_USER = lv_i_user
         I_PASSWORD = lv_i_password
    TABLES
         ET_RETURN = lt_et_return
    EXCEPTIONS
        NO_CONNECTION_TO_COMP = 1
        USERID_LOCKED = 10
        DESTINATION_LOCKED = 11
        LAW_USER_EXISTS_ALREADY = 12
        LOGON_TO_COMP_FAILED = 2
        INTERNAL_ERROR_ON_LAW_SIDE = 3
        INTERNAL_ERROR_ON_COMP_SIDE = 4
        AUTH_ERROR_ON_LAW_SIDE = 5
        AUTH_ERROR_ON_COMP_SIDE = 6
        PARAMETER_MISSING = 7
        LAW_DESTINATION_EXISTS_ALREADY = 8
        COM_DESTINATION_EXISTS_ALREADY = 9
. " LAW_ADD_COMPONENT_SYSTEM




ABAP code using 7.40 inline data declarations to call FM LAW_ADD_COMPONENT_SYSTEM

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_i_update) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!