‎2009 Apr 07 12:38 PM
Hi All,
Is there a BAPI available for creating Payment Advices as is done in FBE1?
Please let me know.
Thanks,
Binu
‎2009 Apr 07 12:48 PM
Hi,
Function module for creation of Payment Advice (Transaction: FBE1)
EBPP_APAR_BUILD_PAYMENT_ADVICE
‎2009 Apr 07 1:02 PM
‎2009 Jul 14 7:49 AM
Hi,
The suggested BAPI's dont serve my purpose, so have used BDC recording for the requirement.
Thanks,
Binu
‎2013 Oct 22 9:58 PM
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.