SAP REMADV_APPEND_POSITION Function Module for Insert Payment Advice Note Item









REMADV_APPEND_POSITION is a standard remadv append position SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert Payment Advice Note Item processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for remadv append position FM, simply by entering the name REMADV_APPEND_POSITION into the relevant SAP transaction such as SE37 or SE38.

Function Group: FRAD
Program Name: SAPLFRAD
Main Program: SAPLFRAD
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function REMADV_APPEND_POSITION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'REMADV_APPEND_POSITION'"Insert Payment Advice Note Item
EXPORTING
I_AVIK = "Payment Advice Header
* I_BELNR = "Document number
* I_XBLNR = "Reference document number
* I_XACON = "Payment advice item created from item posted on account
* I_WRBTR = "Amount
* I_RFRADC = "
* I_NO_DB_UPDATE = ' ' "

EXCEPTIONS
LOCKED = 1 NO_AUTHORITY = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFRAD_001 Customer Exit for Changing Payment Advice Segment Text

IMPORTING Parameters details for REMADV_APPEND_POSITION

I_AVIK - Payment Advice Header

Data type: AVIK
Optional: No
Call by Reference: No ( called with pass by value option)

I_BELNR - Document number

Data type: AVIP-BELNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XBLNR - Reference document number

Data type: AVIP-XBLNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XACON - Payment advice item created from item posted on account

Data type: AVIP-XACON
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WRBTR - Amount

Data type: AVIP-WRBTR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RFRADC -

Data type: RFRADC
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_DB_UPDATE -

Data type: BOOLE_D
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

LOCKED - Payment advice blocked

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY - No authorization

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for REMADV_APPEND_POSITION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_avik  TYPE AVIK, "   
lv_locked  TYPE AVIK, "   
lv_i_belnr  TYPE AVIP-BELNR, "   
lv_no_authority  TYPE AVIP, "   
lv_i_xblnr  TYPE AVIP-XBLNR, "   
lv_i_xacon  TYPE AVIP-XACON, "   
lv_i_wrbtr  TYPE AVIP-WRBTR, "   
lv_i_rfradc  TYPE RFRADC, "   
lv_i_no_db_update  TYPE BOOLE_D. "   ' '

  CALL FUNCTION 'REMADV_APPEND_POSITION'  "Insert Payment Advice Note Item
    EXPORTING
         I_AVIK = lv_i_avik
         I_BELNR = lv_i_belnr
         I_XBLNR = lv_i_xblnr
         I_XACON = lv_i_xacon
         I_WRBTR = lv_i_wrbtr
         I_RFRADC = lv_i_rfradc
         I_NO_DB_UPDATE = lv_i_no_db_update
    EXCEPTIONS
        LOCKED = 1
        NO_AUTHORITY = 2
. " REMADV_APPEND_POSITION




ABAP code using 7.40 inline data declarations to call FM REMADV_APPEND_POSITION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
"SELECT single BELNR FROM AVIP INTO @DATA(ld_i_belnr).
 
 
"SELECT single XBLNR FROM AVIP INTO @DATA(ld_i_xblnr).
 
"SELECT single XACON FROM AVIP INTO @DATA(ld_i_xacon).
 
"SELECT single WRBTR FROM AVIP INTO @DATA(ld_i_wrbtr).
 
 
DATA(ld_i_no_db_update) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!