SAP Function Modules

WAF_DEVICECONFIG_GET SAP Function module







WAF_DEVICECONFIG_GET 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 WAF_DEVICECONFIG_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BWAF_INSTALLATION
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM WAF_DEVICECONFIG_GET - WAF DEVICECONFIG GET





CALL FUNCTION 'WAF_DEVICECONFIG_GET' "
* EXPORTING
*   deplid =                    " bwafdepl-deplid
*   username =                  " bwafdepl-username  User Name in User Master Record
*   applname =                  " bwafdepl-applname  MiniApp Name
*   state =                     " bwafdepl-state
*   i_role =                    " memgmt_deploymnt-map_value
*   i_device_template_name =    " memgmt_dev_templ-device_templ_id
*   i_device_name =             " memgmt_devid_txt
*   i_appl_version =            " bwafdepl-version
* TABLES
*   deviceconfig =              " bwafdepl
*   e_assign_overview =         " memgmt_assignment_overview
    .  "  WAF_DEVICECONFIG_GET

ABAP code example for Function Module WAF_DEVICECONFIG_GET





The ABAP code below is a full code listing to execute function module WAF_DEVICECONFIG_GET 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_deviceconfig  TYPE STANDARD TABLE OF BWAFDEPL,"TABLES PARAM
wa_deviceconfig  LIKE LINE OF it_deviceconfig ,
it_e_assign_overview  TYPE STANDARD TABLE OF MEMGMT_ASSIGNMENT_OVERVIEW,"TABLES PARAM
wa_e_assign_overview  LIKE LINE OF it_e_assign_overview .


SELECT single DEPLID
FROM BWAFDEPL
INTO @DATA(ld_deplid).


SELECT single USERNAME
FROM BWAFDEPL
INTO @DATA(ld_username).


SELECT single APPLNAME
FROM BWAFDEPL
INTO @DATA(ld_applname).


SELECT single STATE
FROM BWAFDEPL
INTO @DATA(ld_state).


SELECT single MAP_VALUE
FROM MEMGMT_DEPLOYMNT
INTO @DATA(ld_i_role).


SELECT single DEVICE_TEMPL_ID
FROM MEMGMT_DEV_TEMPL
INTO @DATA(ld_i_device_template_name).

DATA(ld_i_device_name) = 'Check type of data required'.

SELECT single VERSION
FROM BWAFDEPL
INTO @DATA(ld_i_appl_version).


"populate fields of struture and append to itab
append wa_deviceconfig to it_deviceconfig.

"populate fields of struture and append to itab
append wa_e_assign_overview to it_e_assign_overview. . CALL FUNCTION 'WAF_DEVICECONFIG_GET' * EXPORTING * deplid = ld_deplid * username = ld_username * applname = ld_applname * state = ld_state * i_role = ld_i_role * i_device_template_name = ld_i_device_template_name * i_device_name = ld_i_device_name * i_appl_version = ld_i_appl_version * TABLES * deviceconfig = it_deviceconfig * e_assign_overview = it_e_assign_overview . " WAF_DEVICECONFIG_GET
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_deplid  TYPE BWAFDEPL-DEPLID ,
it_deviceconfig  TYPE STANDARD TABLE OF BWAFDEPL ,
wa_deviceconfig  LIKE LINE OF it_deviceconfig,
ld_username  TYPE BWAFDEPL-USERNAME ,
it_e_assign_overview  TYPE STANDARD TABLE OF MEMGMT_ASSIGNMENT_OVERVIEW ,
wa_e_assign_overview  LIKE LINE OF it_e_assign_overview,
ld_applname  TYPE BWAFDEPL-APPLNAME ,
ld_state  TYPE BWAFDEPL-STATE ,
ld_i_role  TYPE MEMGMT_DEPLOYMNT-MAP_VALUE ,
ld_i_device_template_name  TYPE MEMGMT_DEV_TEMPL-DEVICE_TEMPL_ID ,
ld_i_device_name  TYPE MEMGMT_DEVID_TXT ,
ld_i_appl_version  TYPE BWAFDEPL-VERSION .


SELECT single DEPLID
FROM BWAFDEPL
INTO ld_deplid.


"populate fields of struture and append to itab
append wa_deviceconfig to it_deviceconfig.

SELECT single USERNAME
FROM BWAFDEPL
INTO ld_username.


"populate fields of struture and append to itab
append wa_e_assign_overview to it_e_assign_overview.

SELECT single APPLNAME
FROM BWAFDEPL
INTO ld_applname.


SELECT single STATE
FROM BWAFDEPL
INTO ld_state.


SELECT single MAP_VALUE
FROM MEMGMT_DEPLOYMNT
INTO ld_i_role.


SELECT single DEVICE_TEMPL_ID
FROM MEMGMT_DEV_TEMPL
INTO ld_i_device_template_name.

ld_i_device_name = 'Check type of data required'.

SELECT single VERSION
FROM BWAFDEPL
INTO ld_i_appl_version.

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 WAF_DEVICECONFIG_GET or its description.