SAP Function Modules

PI_BP_MAP_COMM_DATA_RD SAP Function module







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

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


Pattern for FM PI_BP_MAP_COMM_DATA_RD - PI BP MAP COMM DATA RD





CALL FUNCTION 'PI_BP_MAP_COMM_DATA_RD' "
* EXPORTING
*   iv_clear_fields = ' '       " c
* TABLES
*   it_fax_data =               " busei_com_bupa_fax_t
*   it_phone_data =             " busei_com_bupa_telephone_t
*   it_telex_data =             " busei_com_bupa_tlx_t
*   it_teletex_data =           " busei_com_bupa_ttx_t
*   it_uri_data =               " busei_com_bupa_uri_t
*   it_smtp_data =              " busei_com_bupa_smtp_t
*   it_rml_data =               " busei_com_bupa_rml_t
*   it_x400_data =              " busei_com_bupa_x400_t
*   it_rfc_data =               " busei_com_bupa_rfc_t
*   it_prt_data =               " busei_com_bupa_prt_t
*   it_ssf_data =               " busei_com_bupa_ssf_t
*   it_pag_data =               " busei_com_bupa_pag_t
  CHANGING
    cs_e1kna1m =                " e1kna1m
  EXCEPTIONS
    STANDARD_ENTRY_NOT_EXISTING = 1  "
    .  "  PI_BP_MAP_COMM_DATA_RD

ABAP code example for Function Module PI_BP_MAP_COMM_DATA_RD





The ABAP code below is a full code listing to execute function module PI_BP_MAP_COMM_DATA_RD 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:
it_it_fax_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_FAX_T,"TABLES PARAM
wa_it_fax_data  LIKE LINE OF it_it_fax_data ,
it_it_phone_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_TELEPHONE_T,"TABLES PARAM
wa_it_phone_data  LIKE LINE OF it_it_phone_data ,
it_it_telex_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_TLX_T,"TABLES PARAM
wa_it_telex_data  LIKE LINE OF it_it_telex_data ,
it_it_teletex_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_TTX_T,"TABLES PARAM
wa_it_teletex_data  LIKE LINE OF it_it_teletex_data ,
it_it_uri_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_URI_T,"TABLES PARAM
wa_it_uri_data  LIKE LINE OF it_it_uri_data ,
it_it_smtp_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_SMTP_T,"TABLES PARAM
wa_it_smtp_data  LIKE LINE OF it_it_smtp_data ,
it_it_rml_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_RML_T,"TABLES PARAM
wa_it_rml_data  LIKE LINE OF it_it_rml_data ,
it_it_x400_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_X400_T,"TABLES PARAM
wa_it_x400_data  LIKE LINE OF it_it_x400_data ,
it_it_rfc_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_RFC_T,"TABLES PARAM
wa_it_rfc_data  LIKE LINE OF it_it_rfc_data ,
it_it_prt_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_PRT_T,"TABLES PARAM
wa_it_prt_data  LIKE LINE OF it_it_prt_data ,
it_it_ssf_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_SSF_T,"TABLES PARAM
wa_it_ssf_data  LIKE LINE OF it_it_ssf_data ,
it_it_pag_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_PAG_T,"TABLES PARAM
wa_it_pag_data  LIKE LINE OF it_it_pag_data .

DATA(ld_cs_e1kna1m) = 'Check type of data required'.
DATA(ld_iv_clear_fields) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_fax_data to it_it_fax_data.

"populate fields of struture and append to itab
append wa_it_phone_data to it_it_phone_data.

"populate fields of struture and append to itab
append wa_it_telex_data to it_it_telex_data.

"populate fields of struture and append to itab
append wa_it_teletex_data to it_it_teletex_data.

"populate fields of struture and append to itab
append wa_it_uri_data to it_it_uri_data.

"populate fields of struture and append to itab
append wa_it_smtp_data to it_it_smtp_data.

"populate fields of struture and append to itab
append wa_it_rml_data to it_it_rml_data.

"populate fields of struture and append to itab
append wa_it_x400_data to it_it_x400_data.

"populate fields of struture and append to itab
append wa_it_rfc_data to it_it_rfc_data.

"populate fields of struture and append to itab
append wa_it_prt_data to it_it_prt_data.

"populate fields of struture and append to itab
append wa_it_ssf_data to it_it_ssf_data.

"populate fields of struture and append to itab
append wa_it_pag_data to it_it_pag_data. . CALL FUNCTION 'PI_BP_MAP_COMM_DATA_RD' * EXPORTING * iv_clear_fields = ld_iv_clear_fields * TABLES * it_fax_data = it_it_fax_data * it_phone_data = it_it_phone_data * it_telex_data = it_it_telex_data * it_teletex_data = it_it_teletex_data * it_uri_data = it_it_uri_data * it_smtp_data = it_it_smtp_data * it_rml_data = it_it_rml_data * it_x400_data = it_it_x400_data * it_rfc_data = it_it_rfc_data * it_prt_data = it_it_prt_data * it_ssf_data = it_it_ssf_data * it_pag_data = it_it_pag_data CHANGING cs_e1kna1m = ld_cs_e1kna1m EXCEPTIONS STANDARD_ENTRY_NOT_EXISTING = 1 . " PI_BP_MAP_COMM_DATA_RD
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_cs_e1kna1m  TYPE E1KNA1M ,
ld_iv_clear_fields  TYPE C ,
it_it_fax_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_FAX_T ,
wa_it_fax_data  LIKE LINE OF it_it_fax_data,
it_it_phone_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_TELEPHONE_T ,
wa_it_phone_data  LIKE LINE OF it_it_phone_data,
it_it_telex_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_TLX_T ,
wa_it_telex_data  LIKE LINE OF it_it_telex_data,
it_it_teletex_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_TTX_T ,
wa_it_teletex_data  LIKE LINE OF it_it_teletex_data,
it_it_uri_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_URI_T ,
wa_it_uri_data  LIKE LINE OF it_it_uri_data,
it_it_smtp_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_SMTP_T ,
wa_it_smtp_data  LIKE LINE OF it_it_smtp_data,
it_it_rml_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_RML_T ,
wa_it_rml_data  LIKE LINE OF it_it_rml_data,
it_it_x400_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_X400_T ,
wa_it_x400_data  LIKE LINE OF it_it_x400_data,
it_it_rfc_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_RFC_T ,
wa_it_rfc_data  LIKE LINE OF it_it_rfc_data,
it_it_prt_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_PRT_T ,
wa_it_prt_data  LIKE LINE OF it_it_prt_data,
it_it_ssf_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_SSF_T ,
wa_it_ssf_data  LIKE LINE OF it_it_ssf_data,
it_it_pag_data  TYPE STANDARD TABLE OF BUSEI_COM_BUPA_PAG_T ,
wa_it_pag_data  LIKE LINE OF it_it_pag_data.

ld_cs_e1kna1m = 'Check type of data required'.
ld_iv_clear_fields = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_fax_data to it_it_fax_data.

"populate fields of struture and append to itab
append wa_it_phone_data to it_it_phone_data.

"populate fields of struture and append to itab
append wa_it_telex_data to it_it_telex_data.

"populate fields of struture and append to itab
append wa_it_teletex_data to it_it_teletex_data.

"populate fields of struture and append to itab
append wa_it_uri_data to it_it_uri_data.

"populate fields of struture and append to itab
append wa_it_smtp_data to it_it_smtp_data.

"populate fields of struture and append to itab
append wa_it_rml_data to it_it_rml_data.

"populate fields of struture and append to itab
append wa_it_x400_data to it_it_x400_data.

"populate fields of struture and append to itab
append wa_it_rfc_data to it_it_rfc_data.

"populate fields of struture and append to itab
append wa_it_prt_data to it_it_prt_data.

"populate fields of struture and append to itab
append wa_it_ssf_data to it_it_ssf_data.

"populate fields of struture and append to itab
append wa_it_pag_data to it_it_pag_data.

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 PI_BP_MAP_COMM_DATA_RD or its description.