SAP Function Modules

FB_ICRC_REPLACE_PLACEHOLDERS SAP Function module - Replace Placeholders in Template Text







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

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


Pattern for FM FB_ICRC_REPLACE_PLACEHOLDERS - FB ICRC REPLACE PLACEHOLDERS





CALL FUNCTION 'FB_ICRC_REPLACE_PLACEHOLDERS' "Replace Placeholders in Template Text
* EXPORTING
*   id_company =                " rcomp_d
*   id_partner =                " rassc
*   ir_orgunit_data =           " data          OrgUnit Data
*   ir_partner_data =           " data          Partner Data
*   ir_assigned_data =          " data
*   id_language_key =           " langu         Language Key
*   id_rproc =                  " fb_rc_rproc   Reconciliation Process
*   it_recipients =             " standard table  Table type to hold contact person data.
*   id_key_date_char =          " char10        Formatted Key Date
*   it_plhid_value =            " fbicrc_t_value  Placeholder Values
*   ib_layout_get = 'X'         " fb_icrc_flag  'X' = Have User Select Layout
*   it_data =                   " fbicc_t_data  Data Container
  CHANGING
    cd_title =                  " char50        Comment
    ct_template_text =          " standard table  Template Text Table
*   cd_exit =                   " fb_icrc_flag  User Cancelled
    .  "  FB_ICRC_REPLACE_PLACEHOLDERS

ABAP code example for Function Module FB_ICRC_REPLACE_PLACEHOLDERS





The ABAP code below is a full code listing to execute function module FB_ICRC_REPLACE_PLACEHOLDERS 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_cd_title) = 'Check type of data required'.
DATA(ld_ct_template_text) = 'Check type of data required'.
DATA(ld_cd_exit) = 'Check type of data required'.
DATA(ld_id_company) = 'Check type of data required'.
DATA(ld_id_partner) = 'Check type of data required'.
DATA(ld_ir_orgunit_data) = 'Check type of data required'.
DATA(ld_ir_partner_data) = 'Check type of data required'.
DATA(ld_ir_assigned_data) = 'Check type of data required'.
DATA(ld_id_language_key) = 'Check type of data required'.
DATA(ld_id_rproc) = 'Check type of data required'.
DATA(ld_it_recipients) = 'Check type of data required'.
DATA(ld_id_key_date_char) = 'Check type of data required'.
DATA(ld_it_plhid_value) = 'Check type of data required'.
DATA(ld_ib_layout_get) = 'Check type of data required'.
DATA(ld_it_data) = 'Check type of data required'. . CALL FUNCTION 'FB_ICRC_REPLACE_PLACEHOLDERS' * EXPORTING * id_company = ld_id_company * id_partner = ld_id_partner * ir_orgunit_data = ld_ir_orgunit_data * ir_partner_data = ld_ir_partner_data * ir_assigned_data = ld_ir_assigned_data * id_language_key = ld_id_language_key * id_rproc = ld_id_rproc * it_recipients = ld_it_recipients * id_key_date_char = ld_id_key_date_char * it_plhid_value = ld_it_plhid_value * ib_layout_get = ld_ib_layout_get * it_data = ld_it_data CHANGING cd_title = ld_cd_title ct_template_text = ld_ct_template_text * cd_exit = ld_cd_exit . " FB_ICRC_REPLACE_PLACEHOLDERS
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_cd_title  TYPE CHAR50 ,
ld_id_company  TYPE RCOMP_D ,
ld_ct_template_text  TYPE STANDARD TABLE ,
ld_id_partner  TYPE RASSC ,
ld_cd_exit  TYPE FB_ICRC_FLAG ,
ld_ir_orgunit_data  TYPE DATA ,
ld_ir_partner_data  TYPE DATA ,
ld_ir_assigned_data  TYPE DATA ,
ld_id_language_key  TYPE LANGU ,
ld_id_rproc  TYPE FB_RC_RPROC ,
ld_it_recipients  TYPE STANDARD TABLE ,
ld_id_key_date_char  TYPE CHAR10 ,
ld_it_plhid_value  TYPE FBICRC_T_VALUE ,
ld_ib_layout_get  TYPE FB_ICRC_FLAG ,
ld_it_data  TYPE FBICC_T_DATA .

ld_cd_title = 'Check type of data required'.
ld_id_company = 'Check type of data required'.
ld_ct_template_text = 'Check type of data required'.
ld_id_partner = 'Check type of data required'.
ld_cd_exit = 'Check type of data required'.
ld_ir_orgunit_data = 'Check type of data required'.
ld_ir_partner_data = 'Check type of data required'.
ld_ir_assigned_data = 'Check type of data required'.
ld_id_language_key = 'Check type of data required'.
ld_id_rproc = 'Check type of data required'.
ld_it_recipients = 'Check type of data required'.
ld_id_key_date_char = 'Check type of data required'.
ld_it_plhid_value = 'Check type of data required'.
ld_ib_layout_get = 'Check type of data required'.
ld_it_data = '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 FB_ICRC_REPLACE_PLACEHOLDERS or its description.