SAP APAR_WRITE_ORDER Function Module for EBPP: Zahlungshistorie









APAR_WRITE_ORDER is a standard apar write order SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EBPP: Zahlungshistorie 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 apar write order FM, simply by entering the name APAR_WRITE_ORDER into the relevant SAP transaction such as SE37 or SE38.

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



Function APAR_WRITE_ORDER 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 'APAR_WRITE_ORDER'"EBPP: Zahlungshistorie
EXPORTING
I_COMP_CODE = "Buchungskreis
I_CUSTOMER = "Debitorennummer 1
* I_STOP_ORDER = ' ' "boolsche Variable (X=true, -=false, space=unknown)

TABLES
I_INVOICES = "EBPP: Rechnungsdaten
I_ALLOCATION = "EBPP: Zuordnung Positionsdaten / Rechnungsdaten
.



IMPORTING Parameters details for APAR_WRITE_ORDER

I_COMP_CODE - Buchungskreis

Data type: BUKRS
Optional: No
Call by Reference: Yes

I_CUSTOMER - Debitorennummer 1

Data type: KUNNR
Optional: No
Call by Reference: Yes

I_STOP_ORDER - boolsche Variable (X=true, -=false, space=unknown)

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

TABLES Parameters details for APAR_WRITE_ORDER

I_INVOICES - EBPP: Rechnungsdaten

Data type: APAREBPP_INVOICE
Optional: No
Call by Reference: Yes

I_ALLOCATION - EBPP: Zuordnung Positionsdaten / Rechnungsdaten

Data type: APAREBPP_ALLOCATION
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for APAR_WRITE_ORDER 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:
lt_i_invoices  TYPE STANDARD TABLE OF APAREBPP_INVOICE, "   
lv_i_comp_code  TYPE BUKRS, "   
lv_i_customer  TYPE KUNNR, "   
lt_i_allocation  TYPE STANDARD TABLE OF APAREBPP_ALLOCATION, "   
lv_i_stop_order  TYPE BOOLEAN. "   SPACE

  CALL FUNCTION 'APAR_WRITE_ORDER'  "EBPP: Zahlungshistorie
    EXPORTING
         I_COMP_CODE = lv_i_comp_code
         I_CUSTOMER = lv_i_customer
         I_STOP_ORDER = lv_i_stop_order
    TABLES
         I_INVOICES = lt_i_invoices
         I_ALLOCATION = lt_i_allocation
. " APAR_WRITE_ORDER




ABAP code using 7.40 inline data declarations to call FM APAR_WRITE_ORDER

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.

 
 
 
 
DATA(ld_i_stop_order) = ' '.
 


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!