SAP Function Modules

RCP990_CONVERT_GR_BAPI_TO_API SAP Function module







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

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


Pattern for FM RCP990_CONVERT_GR_BAPI_TO_API - RCP990 CONVERT GR BAPI TO API





CALL FUNCTION 'RCP990_CONVERT_GR_BAPI_TO_API' "
  EXPORTING
    it_rcp =                    " rcpty_bapi_rcp  BAPI - Table Type for Recipe Data
    it_pro =                    " rcpty_bapi_pro  BAPI - Table Type for Process
    it_pst =                    " rcpty_bapi_pst  BAPI - Table Type for Process Stage
    it_pop =                    " rcpty_bapi_pop  BAPI - Table Type for Process Operation
    it_pac =                    " rcpty_bapi_pac  BAPI - Table Type for Process Action
    it_eqr =                    " rcpty_bapi_eqr  BAPI - Table Type for Equipment Requirement
    it_stx =                    " rcpty_bapi_stx  BAPI - Table Type for Short Texts
    it_stx_tx =                 " rcpty_bapi_stx_tx  RMS-RCP: API - Table Type for Text Attributes
    it_rctx =                   " rcpty_bapi_rctx  BAPI - Table Type for Creation Reason Texts
    it_rctx_tx =                " rcpty_bapi_rctx_tx  RMS-RCP: API - Table Type for Text Attributes
    it_ltx =                    " rcpty_bapi_ltx  BAPI - Table Type for Long Texts
    it_ltx_tline =              " rcpty_bapi_ltx_tline  BAPI: Text Lines
    it_doc =                    " rcpty_bapi_doc  BAPI - Table Type for Document Links
    it_cla =                    " rcpty_bapi_cla  BAPI - Table Type for Classification
    it_cla_val =                " rcpty_bapi_val  BAPI - Table Type : Characteristic Value Classification
    it_ident =                  " rcpty_bapi_ident  BAPI - Table Type for Identifiers
    it_ident_txt =              " rcpty_bapi_ident_txt  BAPI - Table Type for Identifier Texts
    it_ident_txt_tline =        " rcpty_bapi_tline  BAPI: Text Lines
    it_ascope =                 " rcpty_bapi_ascope  BAPI - Table Type: Scope of Application
    it_ascope_ehs_ascope =      " rcpty_bapi_appl_scope  BAPI - Table Type: Scope of Application Details
    it_replace =                " rcpty_bapi_replace  BAPI - Table Type for Replacement Recipes
    it_replace_repl =           " rcpty_bapi_repl  BAPI - Table Type for Replaced Recipes
    it_replace_replby =         " rcpty_bapi_replby  BAPI - Table Type for "Recipe Replaced By"
    it_op_suc =                 " rcpty_bapi_op_suc  BAPI - Table Type for Process Operation - Successors
    it_pp =                     " rcpty_bapi_pp  BAPI - Table Type for Process Parameters
    it_pp_vh =                  " rcpty_bapi_pp_vh  BAPI - Table Type for Process Param. Value Assignment Header
    it_pp_va =                  " rcpty_bapi_pp_va  BAPI - Table Type for Process Parameter Value Assignments
    it_pp_prop =                " rcpty_bapi_pp_prop
    it_pp_df =                  " rcpty_bapi_pp_df  BAPI - Table Type for Process Parameter Value Assgnmnt Texts
    it_pp_fl =                  " rcpty_bapi_pp_fl  BAPI: API - Table Type: Process Parameters Val.Ass.U.D.Texts
    it_pvs_struct =             " rcpty_bapi_pvs_struct  Structure Information
  IMPORTING
    et_rcp =                    " rcpty_api_rcp  RMS-RCP: API - Table Type for Recipe Data
    et_pro =                    " rcpty_api_pro  RMS-RCP: API - Table Type for Process
    et_pst =                    " rcpty_api_pst  RMS-RCP: API - Table Type for Process Stage
    et_pop =                    " rcpty_api_pop  RMS-RCP: API - Table Type for Process Operation
    et_pac =                    " rcpty_api_pac  RMS-RCP: API - Table Type for Process Action
    et_eqr =                    " rcpty_api_eqr
    et_stx =                    " rcpty_api_stx  RMS-RCP: API - Table Type for Short Texts
    et_rctx =                   " rcpty_api_rctx  RMS-RCP: API - Table Type for Creation Reason Texts
    et_ltx =                    " rcpty_api_ltx  RMS-RCP: API - Table Type for Long Texts
    et_doc =                    " rcpty_api_doc  RMS-RCP: API - Table Type for Document Links
    et_cla =                    " rcpty_api_cla  BAPI - Table Type for Classification
    et_ident =                  " rcpty_api_ident  RMS-RCP: API - Table Type for Identifiers
    et_ascope =                 " rcpty_api_ascope  RMS-RCP: API - Table Type for Scope of Application
    et_replace =                " rcpty_api_replace  RMS-RCP: API - Table Type for Recipe Replacement
    et_op_suc =                 " rcpty_api_op_suc  RMS-RCP: API - Table Type f. Process Operation - Successor
    et_pp =                     " rcpty_api_pp  RMS-RCP: API - Table Type for Process Parameters
    et_pvs_struct =             " rcpty_pvs_struct  Structure Information
    .  "  RCP990_CONVERT_GR_BAPI_TO_API

ABAP code example for Function Module RCP990_CONVERT_GR_BAPI_TO_API





The ABAP code below is a full code listing to execute function module RCP990_CONVERT_GR_BAPI_TO_API 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_et_rcp  TYPE RCPTY_API_RCP ,
ld_et_pro  TYPE RCPTY_API_PRO ,
ld_et_pst  TYPE RCPTY_API_PST ,
ld_et_pop  TYPE RCPTY_API_POP ,
ld_et_pac  TYPE RCPTY_API_PAC ,
ld_et_eqr  TYPE RCPTY_API_EQR ,
ld_et_stx  TYPE RCPTY_API_STX ,
ld_et_rctx  TYPE RCPTY_API_RCTX ,
ld_et_ltx  TYPE RCPTY_API_LTX ,
ld_et_doc  TYPE RCPTY_API_DOC ,
ld_et_cla  TYPE RCPTY_API_CLA ,
ld_et_ident  TYPE RCPTY_API_IDENT ,
ld_et_ascope  TYPE RCPTY_API_ASCOPE ,
ld_et_replace  TYPE RCPTY_API_REPLACE ,
ld_et_op_suc  TYPE RCPTY_API_OP_SUC ,
ld_et_pp  TYPE RCPTY_API_PP ,
ld_et_pvs_struct  TYPE RCPTY_PVS_STRUCT .

DATA(ld_it_rcp) = 'Check type of data required'.
DATA(ld_it_pro) = 'Check type of data required'.
DATA(ld_it_pst) = 'Check type of data required'.
DATA(ld_it_pop) = 'Check type of data required'.
DATA(ld_it_pac) = 'Check type of data required'.
DATA(ld_it_eqr) = 'Check type of data required'.
DATA(ld_it_stx) = 'Check type of data required'.
DATA(ld_it_stx_tx) = 'Check type of data required'.
DATA(ld_it_rctx) = 'Check type of data required'.
DATA(ld_it_rctx_tx) = 'Check type of data required'.
DATA(ld_it_ltx) = 'Check type of data required'.
DATA(ld_it_ltx_tline) = 'Check type of data required'.
DATA(ld_it_doc) = 'Check type of data required'.
DATA(ld_it_cla) = 'Check type of data required'.
DATA(ld_it_cla_val) = 'Check type of data required'.
DATA(ld_it_ident) = 'Check type of data required'.
DATA(ld_it_ident_txt) = 'Check type of data required'.
DATA(ld_it_ident_txt_tline) = 'Check type of data required'.
DATA(ld_it_ascope) = 'Check type of data required'.
DATA(ld_it_ascope_ehs_ascope) = 'Check type of data required'.
DATA(ld_it_replace) = 'Check type of data required'.
DATA(ld_it_replace_repl) = 'Check type of data required'.
DATA(ld_it_replace_replby) = 'Check type of data required'.
DATA(ld_it_op_suc) = 'Check type of data required'.
DATA(ld_it_pp) = 'Check type of data required'.
DATA(ld_it_pp_vh) = 'Check type of data required'.
DATA(ld_it_pp_va) = 'Check type of data required'.
DATA(ld_it_pp_prop) = 'Check type of data required'.
DATA(ld_it_pp_df) = 'Check type of data required'.
DATA(ld_it_pp_fl) = 'Check type of data required'.
DATA(ld_it_pvs_struct) = 'Check type of data required'. . CALL FUNCTION 'RCP990_CONVERT_GR_BAPI_TO_API' EXPORTING it_rcp = ld_it_rcp it_pro = ld_it_pro it_pst = ld_it_pst it_pop = ld_it_pop it_pac = ld_it_pac it_eqr = ld_it_eqr it_stx = ld_it_stx it_stx_tx = ld_it_stx_tx it_rctx = ld_it_rctx it_rctx_tx = ld_it_rctx_tx it_ltx = ld_it_ltx it_ltx_tline = ld_it_ltx_tline it_doc = ld_it_doc it_cla = ld_it_cla it_cla_val = ld_it_cla_val it_ident = ld_it_ident it_ident_txt = ld_it_ident_txt it_ident_txt_tline = ld_it_ident_txt_tline it_ascope = ld_it_ascope it_ascope_ehs_ascope = ld_it_ascope_ehs_ascope it_replace = ld_it_replace it_replace_repl = ld_it_replace_repl it_replace_replby = ld_it_replace_replby it_op_suc = ld_it_op_suc it_pp = ld_it_pp it_pp_vh = ld_it_pp_vh it_pp_va = ld_it_pp_va it_pp_prop = ld_it_pp_prop it_pp_df = ld_it_pp_df it_pp_fl = ld_it_pp_fl it_pvs_struct = ld_it_pvs_struct IMPORTING et_rcp = ld_et_rcp et_pro = ld_et_pro et_pst = ld_et_pst et_pop = ld_et_pop et_pac = ld_et_pac et_eqr = ld_et_eqr et_stx = ld_et_stx et_rctx = ld_et_rctx et_ltx = ld_et_ltx et_doc = ld_et_doc et_cla = ld_et_cla et_ident = ld_et_ident et_ascope = ld_et_ascope et_replace = ld_et_replace et_op_suc = ld_et_op_suc et_pp = ld_et_pp et_pvs_struct = ld_et_pvs_struct . " RCP990_CONVERT_GR_BAPI_TO_API
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_et_rcp  TYPE RCPTY_API_RCP ,
ld_it_rcp  TYPE RCPTY_BAPI_RCP ,
ld_et_pro  TYPE RCPTY_API_PRO ,
ld_it_pro  TYPE RCPTY_BAPI_PRO ,
ld_et_pst  TYPE RCPTY_API_PST ,
ld_it_pst  TYPE RCPTY_BAPI_PST ,
ld_et_pop  TYPE RCPTY_API_POP ,
ld_it_pop  TYPE RCPTY_BAPI_POP ,
ld_et_pac  TYPE RCPTY_API_PAC ,
ld_it_pac  TYPE RCPTY_BAPI_PAC ,
ld_et_eqr  TYPE RCPTY_API_EQR ,
ld_it_eqr  TYPE RCPTY_BAPI_EQR ,
ld_it_stx  TYPE RCPTY_BAPI_STX ,
ld_et_stx  TYPE RCPTY_API_STX ,
ld_et_rctx  TYPE RCPTY_API_RCTX ,
ld_it_stx_tx  TYPE RCPTY_BAPI_STX_TX ,
ld_et_ltx  TYPE RCPTY_API_LTX ,
ld_it_rctx  TYPE RCPTY_BAPI_RCTX ,
ld_et_doc  TYPE RCPTY_API_DOC ,
ld_it_rctx_tx  TYPE RCPTY_BAPI_RCTX_TX ,
ld_it_ltx  TYPE RCPTY_BAPI_LTX ,
ld_et_cla  TYPE RCPTY_API_CLA ,
ld_it_ltx_tline  TYPE RCPTY_BAPI_LTX_TLINE ,
ld_et_ident  TYPE RCPTY_API_IDENT ,
ld_it_doc  TYPE RCPTY_BAPI_DOC ,
ld_et_ascope  TYPE RCPTY_API_ASCOPE ,
ld_it_cla  TYPE RCPTY_BAPI_CLA ,
ld_et_replace  TYPE RCPTY_API_REPLACE ,
ld_et_op_suc  TYPE RCPTY_API_OP_SUC ,
ld_it_cla_val  TYPE RCPTY_BAPI_VAL ,
ld_et_pp  TYPE RCPTY_API_PP ,
ld_it_ident  TYPE RCPTY_BAPI_IDENT ,
ld_et_pvs_struct  TYPE RCPTY_PVS_STRUCT ,
ld_it_ident_txt  TYPE RCPTY_BAPI_IDENT_TXT ,
ld_it_ident_txt_tline  TYPE RCPTY_BAPI_TLINE ,
ld_it_ascope  TYPE RCPTY_BAPI_ASCOPE ,
ld_it_ascope_ehs_ascope  TYPE RCPTY_BAPI_APPL_SCOPE ,
ld_it_replace  TYPE RCPTY_BAPI_REPLACE ,
ld_it_replace_repl  TYPE RCPTY_BAPI_REPL ,
ld_it_replace_replby  TYPE RCPTY_BAPI_REPLBY ,
ld_it_op_suc  TYPE RCPTY_BAPI_OP_SUC ,
ld_it_pp  TYPE RCPTY_BAPI_PP ,
ld_it_pp_vh  TYPE RCPTY_BAPI_PP_VH ,
ld_it_pp_va  TYPE RCPTY_BAPI_PP_VA ,
ld_it_pp_prop  TYPE RCPTY_BAPI_PP_PROP ,
ld_it_pp_df  TYPE RCPTY_BAPI_PP_DF ,
ld_it_pp_fl  TYPE RCPTY_BAPI_PP_FL ,
ld_it_pvs_struct  TYPE RCPTY_BAPI_PVS_STRUCT .

ld_it_rcp = 'Check type of data required'.
ld_it_pro = 'Check type of data required'.
ld_it_pst = 'Check type of data required'.
ld_it_pop = 'Check type of data required'.
ld_it_pac = 'Check type of data required'.
ld_it_eqr = 'Check type of data required'.
ld_it_stx = 'Check type of data required'.
ld_it_stx_tx = 'Check type of data required'.
ld_it_rctx = 'Check type of data required'.
ld_it_rctx_tx = 'Check type of data required'.
ld_it_ltx = 'Check type of data required'.
ld_it_ltx_tline = 'Check type of data required'.
ld_it_doc = 'Check type of data required'.
ld_it_cla = 'Check type of data required'.
ld_it_cla_val = 'Check type of data required'.
ld_it_ident = 'Check type of data required'.
ld_it_ident_txt = 'Check type of data required'.
ld_it_ident_txt_tline = 'Check type of data required'.
ld_it_ascope = 'Check type of data required'.
ld_it_ascope_ehs_ascope = 'Check type of data required'.
ld_it_replace = 'Check type of data required'.
ld_it_replace_repl = 'Check type of data required'.
ld_it_replace_replby = 'Check type of data required'.
ld_it_op_suc = 'Check type of data required'.
ld_it_pp = 'Check type of data required'.
ld_it_pp_vh = 'Check type of data required'.
ld_it_pp_va = 'Check type of data required'.
ld_it_pp_prop = 'Check type of data required'.
ld_it_pp_df = 'Check type of data required'.
ld_it_pp_fl = 'Check type of data required'.
ld_it_pvs_struct = '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 RCP990_CONVERT_GR_BAPI_TO_API or its description.