SAP Function Modules

APAR_EBPP_GET_ADDRESS SAP Function module







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

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


Pattern for FM APAR_EBPP_GET_ADDRESS - APAR EBPP GET ADDRESS





CALL FUNCTION 'APAR_EBPP_GET_ADDRESS' "
  EXPORTING
    i_partner =                 " ebpp_partner
*   i_addsel =                  " ebpp_addsel
  IMPORTING
    e_address =                 " apar_ebpp_address
    e_returncode =              " sysubrc
    return =                    " bapiret1
* TABLES
*   t_telephones =              " apar_ebpp_adtel
*   t_faxes =                   " apar_ebpp_adfax
*   t_emails =                  " apar_ebpp_adsmtp
*   t_r3mails =                 " apar_ebpp_adrml
*   t_internets =               " apar_ebpp_aduri
*   t_messages =                " ebpp_messages
    .  "  APAR_EBPP_GET_ADDRESS

ABAP code example for Function Module APAR_EBPP_GET_ADDRESS





The ABAP code below is a full code listing to execute function module APAR_EBPP_GET_ADDRESS 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_e_address  TYPE APAR_EBPP_ADDRESS ,
ld_e_returncode  TYPE SYSUBRC ,
ld_return  TYPE BAPIRET1 ,
it_t_telephones  TYPE STANDARD TABLE OF APAR_EBPP_ADTEL,"TABLES PARAM
wa_t_telephones  LIKE LINE OF it_t_telephones ,
it_t_faxes  TYPE STANDARD TABLE OF APAR_EBPP_ADFAX,"TABLES PARAM
wa_t_faxes  LIKE LINE OF it_t_faxes ,
it_t_emails  TYPE STANDARD TABLE OF APAR_EBPP_ADSMTP,"TABLES PARAM
wa_t_emails  LIKE LINE OF it_t_emails ,
it_t_r3mails  TYPE STANDARD TABLE OF APAR_EBPP_ADRML,"TABLES PARAM
wa_t_r3mails  LIKE LINE OF it_t_r3mails ,
it_t_internets  TYPE STANDARD TABLE OF APAR_EBPP_ADURI,"TABLES PARAM
wa_t_internets  LIKE LINE OF it_t_internets ,
it_t_messages  TYPE STANDARD TABLE OF EBPP_MESSAGES,"TABLES PARAM
wa_t_messages  LIKE LINE OF it_t_messages .

DATA(ld_i_partner) = 'Check type of data required'.
DATA(ld_i_addsel) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_telephones to it_t_telephones.

"populate fields of struture and append to itab
append wa_t_faxes to it_t_faxes.

"populate fields of struture and append to itab
append wa_t_emails to it_t_emails.

"populate fields of struture and append to itab
append wa_t_r3mails to it_t_r3mails.

"populate fields of struture and append to itab
append wa_t_internets to it_t_internets.

"populate fields of struture and append to itab
append wa_t_messages to it_t_messages. . CALL FUNCTION 'APAR_EBPP_GET_ADDRESS' EXPORTING i_partner = ld_i_partner * i_addsel = ld_i_addsel IMPORTING e_address = ld_e_address e_returncode = ld_e_returncode return = ld_return * TABLES * t_telephones = it_t_telephones * t_faxes = it_t_faxes * t_emails = it_t_emails * t_r3mails = it_t_r3mails * t_internets = it_t_internets * t_messages = it_t_messages . " APAR_EBPP_GET_ADDRESS
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_e_address  TYPE APAR_EBPP_ADDRESS ,
ld_i_partner  TYPE EBPP_PARTNER ,
it_t_telephones  TYPE STANDARD TABLE OF APAR_EBPP_ADTEL ,
wa_t_telephones  LIKE LINE OF it_t_telephones,
ld_e_returncode  TYPE SYSUBRC ,
ld_i_addsel  TYPE EBPP_ADDSEL ,
it_t_faxes  TYPE STANDARD TABLE OF APAR_EBPP_ADFAX ,
wa_t_faxes  LIKE LINE OF it_t_faxes,
ld_return  TYPE BAPIRET1 ,
it_t_emails  TYPE STANDARD TABLE OF APAR_EBPP_ADSMTP ,
wa_t_emails  LIKE LINE OF it_t_emails,
it_t_r3mails  TYPE STANDARD TABLE OF APAR_EBPP_ADRML ,
wa_t_r3mails  LIKE LINE OF it_t_r3mails,
it_t_internets  TYPE STANDARD TABLE OF APAR_EBPP_ADURI ,
wa_t_internets  LIKE LINE OF it_t_internets,
it_t_messages  TYPE STANDARD TABLE OF EBPP_MESSAGES ,
wa_t_messages  LIKE LINE OF it_t_messages.

ld_i_partner = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_telephones to it_t_telephones.
ld_i_addsel = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_faxes to it_t_faxes.

"populate fields of struture and append to itab
append wa_t_emails to it_t_emails.

"populate fields of struture and append to itab
append wa_t_r3mails to it_t_r3mails.

"populate fields of struture and append to itab
append wa_t_internets to it_t_internets.

"populate fields of struture and append to itab
append wa_t_messages to it_t_messages.

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