SAP Function Modules

BUP_ADDR_COMMDATA_SELECT_ARRAY SAP Function module







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

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


Pattern for FM BUP_ADDR_COMMDATA_SELECT_ARRAY - BUP ADDR COMMDATA SELECT ARRAY





CALL FUNCTION 'BUP_ADDR_COMMDATA_SELECT_ARRAY' "
  EXPORTING
    it_addrnum2 =               " bus_addrnum2_t  Address and Communication Data (Input Part 2)
    i_xno_orga_check = SPACE    " bu_no_orga_check  No Block Check for Organizations
    i_select_date = SY-DATLO    " systdatlo     Date and time, local date of user
    i_select_time = SY-TIMLO    " systtimlo     Date and time, local time for user
    i_select_tzone = SY-ZONLO   " systzonlo     Date and time, time zone of user
  IMPORTING
    et_addrnum3 =               " bus_addrnum3_t  Address and Communication Data (Output Part 2)
    et_adtel =                  " bus_adtel_t   Telephone Data
    et_adfax =                  " bus_adfax_t   FAX Data
    et_adttx =                  " bus_adttx_t   Teletex Data
    et_adtlx =                  " bus_adtlx_t   Telex Data
    et_adsmtp =                 " bus_adsmtp_t  E-Mail Data
    et_adrml =                  " bus_adrml_t   Remote Mail Data
    et_adpag =                  " bus_adpag_t   SMS Data
    et_address =                " bus_address_t  Address Data
    et_but000 =                 " bup_but000_t  BP: General data I
    et_error =                  " bus_bapiret2_t  Return Parameters
    et_central =                " bus_mass_central_t
    et_person =                 " bus_mass_pers_t
    et_organ =                  " bus_mass_organ_t
    et_group =                  " bus_mass_group_t
    ev_int_addr_active =        " xfeld
  EXCEPTIONS
    WRONGPARAMETER = 1          "               Wrong Input Parameters
    .  "  BUP_ADDR_COMMDATA_SELECT_ARRAY

ABAP code example for Function Module BUP_ADDR_COMMDATA_SELECT_ARRAY





The ABAP code below is a full code listing to execute function module BUP_ADDR_COMMDATA_SELECT_ARRAY 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_addrnum3  TYPE BUS_ADDRNUM3_T ,
ld_et_adtel  TYPE BUS_ADTEL_T ,
ld_et_adfax  TYPE BUS_ADFAX_T ,
ld_et_adttx  TYPE BUS_ADTTX_T ,
ld_et_adtlx  TYPE BUS_ADTLX_T ,
ld_et_adsmtp  TYPE BUS_ADSMTP_T ,
ld_et_adrml  TYPE BUS_ADRML_T ,
ld_et_adpag  TYPE BUS_ADPAG_T ,
ld_et_address  TYPE BUS_ADDRESS_T ,
ld_et_but000  TYPE BUP_BUT000_T ,
ld_et_error  TYPE BUS_BAPIRET2_T ,
ld_et_central  TYPE BUS_MASS_CENTRAL_T ,
ld_et_person  TYPE BUS_MASS_PERS_T ,
ld_et_organ  TYPE BUS_MASS_ORGAN_T ,
ld_et_group  TYPE BUS_MASS_GROUP_T ,
ld_ev_int_addr_active  TYPE XFELD .

DATA(ld_it_addrnum2) = 'Check type of data required'.
DATA(ld_i_xno_orga_check) = 'Check type of data required'.
DATA(ld_i_select_date) = 'some text here'.
DATA(ld_i_select_time) = 'some text here'.
DATA(ld_i_select_tzone) = 'some text here'. . CALL FUNCTION 'BUP_ADDR_COMMDATA_SELECT_ARRAY' EXPORTING it_addrnum2 = ld_it_addrnum2 i_xno_orga_check = ld_i_xno_orga_check i_select_date = ld_i_select_date i_select_time = ld_i_select_time i_select_tzone = ld_i_select_tzone IMPORTING et_addrnum3 = ld_et_addrnum3 et_adtel = ld_et_adtel et_adfax = ld_et_adfax et_adttx = ld_et_adttx et_adtlx = ld_et_adtlx et_adsmtp = ld_et_adsmtp et_adrml = ld_et_adrml et_adpag = ld_et_adpag et_address = ld_et_address et_but000 = ld_et_but000 et_error = ld_et_error et_central = ld_et_central et_person = ld_et_person et_organ = ld_et_organ et_group = ld_et_group ev_int_addr_active = ld_ev_int_addr_active EXCEPTIONS WRONGPARAMETER = 1 . " BUP_ADDR_COMMDATA_SELECT_ARRAY
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_et_addrnum3  TYPE BUS_ADDRNUM3_T ,
ld_it_addrnum2  TYPE BUS_ADDRNUM2_T ,
ld_et_adtel  TYPE BUS_ADTEL_T ,
ld_i_xno_orga_check  TYPE BU_NO_ORGA_CHECK ,
ld_et_adfax  TYPE BUS_ADFAX_T ,
ld_i_select_date  TYPE SYSTDATLO ,
ld_et_adttx  TYPE BUS_ADTTX_T ,
ld_i_select_time  TYPE SYSTTIMLO ,
ld_et_adtlx  TYPE BUS_ADTLX_T ,
ld_i_select_tzone  TYPE SYSTZONLO ,
ld_et_adsmtp  TYPE BUS_ADSMTP_T ,
ld_et_adrml  TYPE BUS_ADRML_T ,
ld_et_adpag  TYPE BUS_ADPAG_T ,
ld_et_address  TYPE BUS_ADDRESS_T ,
ld_et_but000  TYPE BUP_BUT000_T ,
ld_et_error  TYPE BUS_BAPIRET2_T ,
ld_et_central  TYPE BUS_MASS_CENTRAL_T ,
ld_et_person  TYPE BUS_MASS_PERS_T ,
ld_et_organ  TYPE BUS_MASS_ORGAN_T ,
ld_et_group  TYPE BUS_MASS_GROUP_T ,
ld_ev_int_addr_active  TYPE XFELD .

ld_it_addrnum2 = 'some text here'.
ld_i_xno_orga_check = 'some text here'.
ld_i_select_date = 'some text here'.
ld_i_select_time = 'some text here'.
ld_i_select_tzone = 'some text here'.

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