SAP Function Modules

RKE_PLA_CORE_WF_EXECUTE SAP Function module







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

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


Pattern for FM RKE_PLA_CORE_WF_EXECUTE - RKE PLA CORE WF EXECUTE





CALL FUNCTION 'RKE_PLA_CORE_WF_EXECUTE' "
  EXPORTING
    i_applclass =               " tkeppllev-applclass
    i_subclass =                " tkeppllev-subclass
    i_tabname =                 " tkeppllev-tabname
    i_pllev =                   " tkeppllev-pllev
    i_plpck =                   " rke_plpck
    i_id =                      " tkepplmethh-id
    i_param =                   " tkepplmepah-param
*   is_options =                " rkeplscma
  IMPORTING
    e_applog =                  " balloghndl
  EXCEPTIONS
    INVALID_PLLEV = 1           "
    INVALID_PLPCK = 2           "
    INVALID_ID_OR_PARAM = 3     "
    GENERAL_ERROR = 4           "
    .  "  RKE_PLA_CORE_WF_EXECUTE

ABAP code example for Function Module RKE_PLA_CORE_WF_EXECUTE





The ABAP code below is a full code listing to execute function module RKE_PLA_CORE_WF_EXECUTE 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:
ld_e_applog  TYPE BALLOGHNDL .


SELECT single APPLCLASS
FROM TKEPPLLEV
INTO @DATA(ld_i_applclass).


SELECT single SUBCLASS
FROM TKEPPLLEV
INTO @DATA(ld_i_subclass).


SELECT single TABNAME
FROM TKEPPLLEV
INTO @DATA(ld_i_tabname).


SELECT single PLLEV
FROM TKEPPLLEV
INTO @DATA(ld_i_pllev).

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

SELECT single ID
FROM TKEPPLMETHH
INTO @DATA(ld_i_id).


SELECT single PARAM
FROM TKEPPLMEPAH
INTO @DATA(ld_i_param).

DATA(ld_is_options) = 'Check type of data required'. . CALL FUNCTION 'RKE_PLA_CORE_WF_EXECUTE' EXPORTING i_applclass = ld_i_applclass i_subclass = ld_i_subclass i_tabname = ld_i_tabname i_pllev = ld_i_pllev i_plpck = ld_i_plpck i_id = ld_i_id i_param = ld_i_param * is_options = ld_is_options IMPORTING e_applog = ld_e_applog EXCEPTIONS INVALID_PLLEV = 1 INVALID_PLPCK = 2 INVALID_ID_OR_PARAM = 3 GENERAL_ERROR = 4 . " RKE_PLA_CORE_WF_EXECUTE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here 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_e_applog  TYPE BALLOGHNDL ,
ld_i_applclass  TYPE TKEPPLLEV-APPLCLASS ,
ld_i_subclass  TYPE TKEPPLLEV-SUBCLASS ,
ld_i_tabname  TYPE TKEPPLLEV-TABNAME ,
ld_i_pllev  TYPE TKEPPLLEV-PLLEV ,
ld_i_plpck  TYPE RKE_PLPCK ,
ld_i_id  TYPE TKEPPLMETHH-ID ,
ld_i_param  TYPE TKEPPLMEPAH-PARAM ,
ld_is_options  TYPE RKEPLSCMA .


SELECT single APPLCLASS
FROM TKEPPLLEV
INTO ld_i_applclass.


SELECT single SUBCLASS
FROM TKEPPLLEV
INTO ld_i_subclass.


SELECT single TABNAME
FROM TKEPPLLEV
INTO ld_i_tabname.


SELECT single PLLEV
FROM TKEPPLLEV
INTO ld_i_pllev.

ld_i_plpck = 'Check type of data required'.

SELECT single ID
FROM TKEPPLMETHH
INTO ld_i_id.


SELECT single PARAM
FROM TKEPPLMEPAH
INTO ld_i_param.

ld_is_options = '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 RKE_PLA_CORE_WF_EXECUTE or its description.