Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI to create Payment Advice

Former Member
0 Likes
2,991

Hi All,

Is there a BAPI available for creating Payment Advices as is done in FBE1?

Please let me know.

Thanks,

Binu

4 REPLIES 4
Read only

Former Member
0 Likes
1,789

Hi,

Function module for creation of Payment Advice (Transaction: FBE1)

EBPP_APAR_BUILD_PAYMENT_ADVICE

Read only

Former Member
0 Likes
1,789

Hi,

try fm FARMATCH_BUILD_PAYMENT_ADVICE

thanks

ravi

Read only

0 Likes
1,789

Hi,

The suggested BAPI's dont serve my purpose, so have used BDC recording for the requirement.

Thanks,

Binu

Read only

Former Member
0 Likes
1,789

FARMATCH_BUILD_PAYMENT_ADVICE creates payment advice with type 09 ( type defined for "internet creation" in config)

FBE1 creates payment advice with type 4 (Manual creation)

And F.27 creates with type 8 (automatic creation)

     Internally F.27 uses the following function module:

data: LV_avsid TYPE avsid. "Payment advice number generated

CALL FUNCTION 'REMADV_CORRESPONDENCE_INSERT'

                EXPORTING

                     I_VORID = '0001'   "Kontoauszug

                     I_BUKRS = gs_knb1-BUKRS

                     I_KOART = 'D' "customer

                     I_KONTO = gs_knb1-KUNNR

                IMPORTING

                     E_AVSID = lv_avsid

                TABLES

                     T_AVICO = lt_HAVICO

                EXCEPTIONS

                     ERROR   = 1

                     OTHERS  = 0.

           IF SY-SUBRC = 0.

             CALL FUNCTION 'REMADV_SAVE_DB_ALL'

                  EXPORTING

                       I_DIALOG_UPDATE = 'X'

                       I_COMMIT        = ' '

                  EXCEPTIONS

                       OTHERS          = 1.

           ELSE.

           ENDIF.