SAP Function Modules

IHC_BCA_EXTERNAL_PAYMENT SAP Function module - BCA externa Zahlung über IHC Zahlungsauftrag







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

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


Pattern for FM IHC_BCA_EXTERNAL_PAYMENT - IHC BCA EXTERNAL PAYMENT





CALL FUNCTION 'IHC_BCA_EXTERNAL_PAYMENT' "BCA externa Zahlung über IHC Zahlungsauftrag
  EXPORTING
    i_sender =                  " ibkkpo_snd    Übergabestruktur: Zahlungsauftrag, Sender
*   i_xdoc = SPACE              " ibkkpohd-xdocument  Kennzeichen: Beleghafte Rückgabe
*   i_origin_trnstype = SPACE   " ibkkpohd-s_trnstype  Ursprungs-Vorgangsart
*   i_returnkey = SPACE         " ibkkpohd-returnk  Rückgabegrund
    i_ref_bkkrs =               " ibkkpohd-bkkrs  Bankkreis
    i_ref_number =              " ibkkpohd-paorn  Nummer des Zahlungsauftrags
*   i_xrepetition = SPACE       " ibkk_misc-xrepetition  Kennzeichen: Wiederholte Vorgelage der Datensätze
  IMPORTING
    e_return =                  " sy-subrc      Rückgabewert, Rückgabewert nach ABAP-Anweisungen
  TABLES
    t_receiver =                " ibkkpo_rcv    Übergabestruktur: Zahlungsauftrag, Empfänger
    t_paym_note =               " ibkk_pynot    Verwendungszweckdaten (extern)
    t_mesg =                    " ibkkmesg      Struktur zur Übergabe von Fehlermeldungen
    .  "  IHC_BCA_EXTERNAL_PAYMENT

ABAP code example for Function Module IHC_BCA_EXTERNAL_PAYMENT





The ABAP code below is a full code listing to execute function module IHC_BCA_EXTERNAL_PAYMENT 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_return  TYPE SY-SUBRC ,
it_t_receiver  TYPE STANDARD TABLE OF IBKKPO_RCV,"TABLES PARAM
wa_t_receiver  LIKE LINE OF it_t_receiver ,
it_t_paym_note  TYPE STANDARD TABLE OF IBKK_PYNOT,"TABLES PARAM
wa_t_paym_note  LIKE LINE OF it_t_paym_note ,
it_t_mesg  TYPE STANDARD TABLE OF IBKKMESG,"TABLES PARAM
wa_t_mesg  LIKE LINE OF it_t_mesg .

DATA(ld_i_sender) = 'Check type of data required'.

DATA(ld_i_xdoc) = some text here

DATA(ld_i_origin_trnstype) = some text here

DATA(ld_i_returnkey) = some text here

DATA(ld_i_ref_bkkrs) = some text here

DATA(ld_i_ref_number) = Check type of data required

DATA(ld_i_xrepetition) = some text here

"populate fields of struture and append to itab
append wa_t_receiver to it_t_receiver.

"populate fields of struture and append to itab
append wa_t_paym_note to it_t_paym_note.

"populate fields of struture and append to itab
append wa_t_mesg to it_t_mesg. . CALL FUNCTION 'IHC_BCA_EXTERNAL_PAYMENT' EXPORTING i_sender = ld_i_sender * i_xdoc = ld_i_xdoc * i_origin_trnstype = ld_i_origin_trnstype * i_returnkey = ld_i_returnkey i_ref_bkkrs = ld_i_ref_bkkrs i_ref_number = ld_i_ref_number * i_xrepetition = ld_i_xrepetition IMPORTING e_return = ld_e_return TABLES t_receiver = it_t_receiver t_paym_note = it_t_paym_note t_mesg = it_t_mesg . " IHC_BCA_EXTERNAL_PAYMENT
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_return  TYPE SY-SUBRC ,
ld_i_sender  TYPE IBKKPO_SND ,
it_t_receiver  TYPE STANDARD TABLE OF IBKKPO_RCV ,
wa_t_receiver  LIKE LINE OF it_t_receiver,
ld_i_xdoc  TYPE IBKKPOHD-XDOCUMENT ,
it_t_paym_note  TYPE STANDARD TABLE OF IBKK_PYNOT ,
wa_t_paym_note  LIKE LINE OF it_t_paym_note,
ld_i_origin_trnstype  TYPE IBKKPOHD-S_TRNSTYPE ,
it_t_mesg  TYPE STANDARD TABLE OF IBKKMESG ,
wa_t_mesg  LIKE LINE OF it_t_mesg,
ld_i_returnkey  TYPE IBKKPOHD-RETURNK ,
ld_i_ref_bkkrs  TYPE IBKKPOHD-BKKRS ,
ld_i_ref_number  TYPE IBKKPOHD-PAORN ,
ld_i_xrepetition  TYPE IBKK_MISC-XREPETITION .

ld_i_sender = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_receiver to it_t_receiver.

ld_i_xdoc = some text here

"populate fields of struture and append to itab
append wa_t_paym_note to it_t_paym_note.

ld_i_origin_trnstype = some text here

"populate fields of struture and append to itab
append wa_t_mesg to it_t_mesg.

ld_i_returnkey = some text here

ld_i_ref_bkkrs = some text here

ld_i_ref_number = Check type of data required

ld_i_xrepetition = 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 IHC_BCA_EXTERNAL_PAYMENT or its description.