SAP Function Modules

FB_ICRC_ASSIGN_DATA_001 SAP Function module - Process 001: Assign Data







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

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


Pattern for FM FB_ICRC_ASSIGN_DATA_001 - FB ICRC ASSIGN DATA 001





CALL FUNCTION 'FB_ICRC_ASSIGN_DATA_001' "Process 001: Assign Data
  EXPORTING
    ed_rcomp =                  " rcomp_d       Company
    ed_rassc =                  " rassc         Partner
    et_company_data =           " fbicrc_t_rproc_001_data  Company Data
    et_partner_data =           " fbicrc_t_rproc_001_data  Partner Data
    ed_poper =                  " poper         Posting Period
    ed_test =                   " fb_icrc_flag  'X' = Testrun
    et_ra_rule =                " rseloption    Rules to be Used
  IMPORTING
    eth_msg =                   " fbicrc_th_msg  Table of Messages per Company
    et_log =                    " bal_t_msg     Application Log: Table with Messages
    et_company_unassigned =     " fbicrc_t_rproc_001_data  Unassigned Company Data Records
    et_partner_unassigned =     " fbicrc_t_rproc_001_data  Unassigned Partner Data Records
    et_assigned_diff =          " fbicrc_t_rproc_001_data  Assigned Data Records With Differences
    et_assigned_no_diff =       " fbicrc_t_rproc_001_data  Assigned Data Records Without Differences
  EXCEPTIONS
    EXC_NO_RULES = 1            "               No Rules Found in Customizing
    .  "  FB_ICRC_ASSIGN_DATA_001

ABAP code example for Function Module FB_ICRC_ASSIGN_DATA_001





The ABAP code below is a full code listing to execute function module FB_ICRC_ASSIGN_DATA_001 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_eth_msg  TYPE FBICRC_TH_MSG ,
ld_et_log  TYPE BAL_T_MSG ,
ld_et_company_unassigned  TYPE FBICRC_T_RPROC_001_DATA ,
ld_et_partner_unassigned  TYPE FBICRC_T_RPROC_001_DATA ,
ld_et_assigned_diff  TYPE FBICRC_T_RPROC_001_DATA ,
ld_et_assigned_no_diff  TYPE FBICRC_T_RPROC_001_DATA .

DATA(ld_ed_rcomp) = 'Check type of data required'.
DATA(ld_ed_rassc) = 'Check type of data required'.
DATA(ld_et_company_data) = 'Check type of data required'.
DATA(ld_et_partner_data) = 'Check type of data required'.
DATA(ld_ed_poper) = 'Check type of data required'.
DATA(ld_ed_test) = 'Check type of data required'.
DATA(ld_et_ra_rule) = 'Check type of data required'. . CALL FUNCTION 'FB_ICRC_ASSIGN_DATA_001' EXPORTING ed_rcomp = ld_ed_rcomp ed_rassc = ld_ed_rassc et_company_data = ld_et_company_data et_partner_data = ld_et_partner_data ed_poper = ld_ed_poper ed_test = ld_ed_test et_ra_rule = ld_et_ra_rule IMPORTING eth_msg = ld_eth_msg et_log = ld_et_log et_company_unassigned = ld_et_company_unassigned et_partner_unassigned = ld_et_partner_unassigned et_assigned_diff = ld_et_assigned_diff et_assigned_no_diff = ld_et_assigned_no_diff EXCEPTIONS EXC_NO_RULES = 1 . " FB_ICRC_ASSIGN_DATA_001
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_eth_msg  TYPE FBICRC_TH_MSG ,
ld_ed_rcomp  TYPE RCOMP_D ,
ld_et_log  TYPE BAL_T_MSG ,
ld_ed_rassc  TYPE RASSC ,
ld_et_company_unassigned  TYPE FBICRC_T_RPROC_001_DATA ,
ld_et_company_data  TYPE FBICRC_T_RPROC_001_DATA ,
ld_et_partner_unassigned  TYPE FBICRC_T_RPROC_001_DATA ,
ld_et_partner_data  TYPE FBICRC_T_RPROC_001_DATA ,
ld_et_assigned_diff  TYPE FBICRC_T_RPROC_001_DATA ,
ld_ed_poper  TYPE POPER ,
ld_et_assigned_no_diff  TYPE FBICRC_T_RPROC_001_DATA ,
ld_ed_test  TYPE FB_ICRC_FLAG ,
ld_et_ra_rule  TYPE RSELOPTION .

ld_ed_rcomp = 'Check type of data required'.
ld_ed_rassc = 'Check type of data required'.
ld_et_company_data = 'Check type of data required'.
ld_et_partner_data = 'Check type of data required'.
ld_ed_poper = 'Check type of data required'.
ld_ed_test = 'Check type of data required'.
ld_et_ra_rule = '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_ASSIGN_DATA_001 or its description.