SAP Function Modules

INST_CLIENT_SETTINGS SAP Function module







INST_CLIENT_SETTINGS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name INST_CLIENT_SETTINGS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: INST_CUST_CHECK
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM INST_CLIENT_SETTINGS - INST CLIENT SETTINGS





CALL FUNCTION 'INST_CLIENT_SETTINGS' "
* EXPORTING
*   clnt1 =                     " t000-mandt    Client
*   clntatt1 =                  " t000-cccategory  Client control: Role of client (production, test,...)
*   clnttxt1 =                  " t000-mtext    Client name
*   clnt2 =                     " t000-mandt    Client
*   clntatt2 =                  " t000-cccategory  Client control: Role of client (production, test,...)
*   clnttxt2 =                  " t000-mtext    Client name
*   clnt3 =                     " t000-mandt    Client
*   clntatt3 =                  " t000-cccategory  Client control: Role of client (production, test,...)
*   clnttxt3 =                  " t000-mtext    Client name
*   clnt4 =                     " t000-mandt    Client
*   clntatt4 =                  " t000-cccategory  Client control: Role of client (production, test,...)
*   clnttxt4 =                  " t000-mtext    Client name
*   clnt5 =                     " t000-mandt    Client
*   clntatt5 =                  " t000-cccategory  Client control: Role of client (production, test,...)
*   clnttxt5 =                  " t000-mtext    Client name
*   clnt6 =                     " t000-mandt    Client
*   clntatt6 =                  " t000-cccategory  Client control: Role of client (production, test,...)
*   clnttxt6 =                  " t000-mtext    Client name
*   landscap =                  " char1         System Landscape
*   role =                      " char1         Role of system
* TABLES
*   clntdsc =                   " t000          Clients
    .  "  INST_CLIENT_SETTINGS

ABAP code example for Function Module INST_CLIENT_SETTINGS





The ABAP code below is a full code listing to execute function module INST_CLIENT_SETTINGS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_clntdsc  TYPE STANDARD TABLE OF T000,"TABLES PARAM
wa_clntdsc  LIKE LINE OF it_clntdsc .


SELECT single MANDT
FROM T000
INTO @DATA(ld_clnt1).


SELECT single CCCATEGORY
FROM T000
INTO @DATA(ld_clntatt1).


SELECT single MTEXT
FROM T000
INTO @DATA(ld_clnttxt1).


SELECT single MANDT
FROM T000
INTO @DATA(ld_clnt2).


SELECT single CCCATEGORY
FROM T000
INTO @DATA(ld_clntatt2).


SELECT single MTEXT
FROM T000
INTO @DATA(ld_clnttxt2).


SELECT single MANDT
FROM T000
INTO @DATA(ld_clnt3).


SELECT single CCCATEGORY
FROM T000
INTO @DATA(ld_clntatt3).


SELECT single MTEXT
FROM T000
INTO @DATA(ld_clnttxt3).


SELECT single MANDT
FROM T000
INTO @DATA(ld_clnt4).


SELECT single CCCATEGORY
FROM T000
INTO @DATA(ld_clntatt4).


SELECT single MTEXT
FROM T000
INTO @DATA(ld_clnttxt4).


SELECT single MANDT
FROM T000
INTO @DATA(ld_clnt5).


SELECT single CCCATEGORY
FROM T000
INTO @DATA(ld_clntatt5).


SELECT single MTEXT
FROM T000
INTO @DATA(ld_clnttxt5).


SELECT single MANDT
FROM T000
INTO @DATA(ld_clnt6).


SELECT single CCCATEGORY
FROM T000
INTO @DATA(ld_clntatt6).


SELECT single MTEXT
FROM T000
INTO @DATA(ld_clnttxt6).

DATA(ld_landscap) = 'Check type of data required'.
DATA(ld_role) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_clntdsc to it_clntdsc. . CALL FUNCTION 'INST_CLIENT_SETTINGS' * EXPORTING * clnt1 = ld_clnt1 * clntatt1 = ld_clntatt1 * clnttxt1 = ld_clnttxt1 * clnt2 = ld_clnt2 * clntatt2 = ld_clntatt2 * clnttxt2 = ld_clnttxt2 * clnt3 = ld_clnt3 * clntatt3 = ld_clntatt3 * clnttxt3 = ld_clnttxt3 * clnt4 = ld_clnt4 * clntatt4 = ld_clntatt4 * clnttxt4 = ld_clnttxt4 * clnt5 = ld_clnt5 * clntatt5 = ld_clntatt5 * clnttxt5 = ld_clnttxt5 * clnt6 = ld_clnt6 * clntatt6 = ld_clntatt6 * clnttxt6 = ld_clnttxt6 * landscap = ld_landscap * role = ld_role * TABLES * clntdsc = it_clntdsc . " INST_CLIENT_SETTINGS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_clnt1  TYPE T000-MANDT ,
it_clntdsc  TYPE STANDARD TABLE OF T000 ,
wa_clntdsc  LIKE LINE OF it_clntdsc,
ld_clntatt1  TYPE T000-CCCATEGORY ,
ld_clnttxt1  TYPE T000-MTEXT ,
ld_clnt2  TYPE T000-MANDT ,
ld_clntatt2  TYPE T000-CCCATEGORY ,
ld_clnttxt2  TYPE T000-MTEXT ,
ld_clnt3  TYPE T000-MANDT ,
ld_clntatt3  TYPE T000-CCCATEGORY ,
ld_clnttxt3  TYPE T000-MTEXT ,
ld_clnt4  TYPE T000-MANDT ,
ld_clntatt4  TYPE T000-CCCATEGORY ,
ld_clnttxt4  TYPE T000-MTEXT ,
ld_clnt5  TYPE T000-MANDT ,
ld_clntatt5  TYPE T000-CCCATEGORY ,
ld_clnttxt5  TYPE T000-MTEXT ,
ld_clnt6  TYPE T000-MANDT ,
ld_clntatt6  TYPE T000-CCCATEGORY ,
ld_clnttxt6  TYPE T000-MTEXT ,
ld_landscap  TYPE CHAR1 ,
ld_role  TYPE CHAR1 .


SELECT single MANDT
FROM T000
INTO ld_clnt1.


"populate fields of struture and append to itab
append wa_clntdsc to it_clntdsc.

SELECT single CCCATEGORY
FROM T000
INTO ld_clntatt1.


SELECT single MTEXT
FROM T000
INTO ld_clnttxt1.


SELECT single MANDT
FROM T000
INTO ld_clnt2.


SELECT single CCCATEGORY
FROM T000
INTO ld_clntatt2.


SELECT single MTEXT
FROM T000
INTO ld_clnttxt2.


SELECT single MANDT
FROM T000
INTO ld_clnt3.


SELECT single CCCATEGORY
FROM T000
INTO ld_clntatt3.


SELECT single MTEXT
FROM T000
INTO ld_clnttxt3.


SELECT single MANDT
FROM T000
INTO ld_clnt4.


SELECT single CCCATEGORY
FROM T000
INTO ld_clntatt4.


SELECT single MTEXT
FROM T000
INTO ld_clnttxt4.


SELECT single MANDT
FROM T000
INTO ld_clnt5.


SELECT single CCCATEGORY
FROM T000
INTO ld_clntatt5.


SELECT single MTEXT
FROM T000
INTO ld_clnttxt5.


SELECT single MANDT
FROM T000
INTO ld_clnt6.


SELECT single CCCATEGORY
FROM T000
INTO ld_clntatt6.


SELECT single MTEXT
FROM T000
INTO ld_clnttxt6.

ld_landscap = 'Check type of data required'.
ld_role = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name INST_CLIENT_SETTINGS or its description.