SAP Function Modules

RKE_TRANSFORM_STRUC_BAPI_CE0 SAP Function module







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

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


Pattern for FM RKE_TRANSFORM_STRUC_BAPI_CE0 - RKE TRANSFORM STRUC BAPI CE0





CALL FUNCTION 'RKE_TRANSFORM_STRUC_BAPI_CE0' "
  EXPORTING
    i_erkrs =                   " erkrs
    i_pa_type =                 " rke_auspr
    i_t_fieldlist =             " rkea1_fieldtab
*   i_plan_act_indicator = '1'  " plikz
  IMPORTING
    e_t_ce0 =                   " index table
  TABLES
    i_t_bapi_data =             " bapi_copa_data
*   c_t_return =                " bapiret2
    .  "  RKE_TRANSFORM_STRUC_BAPI_CE0

ABAP code example for Function Module RKE_TRANSFORM_STRUC_BAPI_CE0





The ABAP code below is a full code listing to execute function module RKE_TRANSFORM_STRUC_BAPI_CE0 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_t_ce0  TYPE INDEX TABLE ,
it_i_t_bapi_data  TYPE STANDARD TABLE OF BAPI_COPA_DATA,"TABLES PARAM
wa_i_t_bapi_data  LIKE LINE OF it_i_t_bapi_data ,
it_c_t_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_c_t_return  LIKE LINE OF it_c_t_return .

DATA(ld_i_erkrs) = 'Check type of data required'.
DATA(ld_i_pa_type) = 'Check type of data required'.
DATA(ld_i_t_fieldlist) = 'Check type of data required'.
DATA(ld_i_plan_act_indicator) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_bapi_data to it_i_t_bapi_data.

"populate fields of struture and append to itab
append wa_c_t_return to it_c_t_return. . CALL FUNCTION 'RKE_TRANSFORM_STRUC_BAPI_CE0' EXPORTING i_erkrs = ld_i_erkrs i_pa_type = ld_i_pa_type i_t_fieldlist = ld_i_t_fieldlist * i_plan_act_indicator = ld_i_plan_act_indicator IMPORTING e_t_ce0 = ld_e_t_ce0 TABLES i_t_bapi_data = it_i_t_bapi_data * c_t_return = it_c_t_return . " RKE_TRANSFORM_STRUC_BAPI_CE0
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_e_t_ce0  TYPE INDEX TABLE ,
ld_i_erkrs  TYPE ERKRS ,
it_i_t_bapi_data  TYPE STANDARD TABLE OF BAPI_COPA_DATA ,
wa_i_t_bapi_data  LIKE LINE OF it_i_t_bapi_data,
ld_i_pa_type  TYPE RKE_AUSPR ,
it_c_t_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_c_t_return  LIKE LINE OF it_c_t_return,
ld_i_t_fieldlist  TYPE RKEA1_FIELDTAB ,
ld_i_plan_act_indicator  TYPE PLIKZ .

ld_i_erkrs = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_bapi_data to it_i_t_bapi_data.
ld_i_pa_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_return to it_c_t_return.
ld_i_t_fieldlist = 'Check type of data required'.
ld_i_plan_act_indicator = '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_TRANSFORM_STRUC_BAPI_CE0 or its description.