SAP APAR_STOP_ORDER Function Module for EBPP: Einzugsermächtigung erzeugen
APAR_STOP_ORDER is a standard apar stop 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: Einzugsermächtigung erzeugen 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 stop order FM, simply by entering the name APAR_STOP_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_STOP_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_STOP_ORDER'"EBPP: Einzugsermächtigung erzeugen.
EXPORTING
I_COMP_CODE = "Buchungskreis
I_CUSTOMER = "Debitorennummer 1
* I_TYPE_OF_STOP = 'I' "Art der Selektion bei Stop (I: Rechnung, P: Zahlung)
TABLES
T_INVOICES = "Biller Direct: Rechnungsdaten
T_ITEMS = "Biller Direct: Positionsdaten
T_ALLOCATION = "Biller Direct: Zuordnung Positionsdaten / Rechnungsdaten
T_MYPAYMENTS = "Biller Direct: Meine Zahlungen
EXCEPTIONS
INTERNAL_ERROR = 1
IMPORTING Parameters details for APAR_STOP_ORDER
I_COMP_CODE - Buchungskreis
Data type: BUKRSOptional: No
Call by Reference: Yes
I_CUSTOMER - Debitorennummer 1
Data type: KUNNROptional: No
Call by Reference: Yes
I_TYPE_OF_STOP - Art der Selektion bei Stop (I: Rechnung, P: Zahlung)
Data type: CHAR1Default: 'I'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for APAR_STOP_ORDER
T_INVOICES - Biller Direct: Rechnungsdaten
Data type: APAREBPP_INVOICEOptional: No
Call by Reference: Yes
T_ITEMS - Biller Direct: Positionsdaten
Data type: APAREBPP_ITEMOptional: No
Call by Reference: Yes
T_ALLOCATION - Biller Direct: Zuordnung Positionsdaten / Rechnungsdaten
Data type: APAREBPP_ALLOCATIONOptional: No
Call by Reference: Yes
T_MYPAYMENTS - Biller Direct: Meine Zahlungen
Data type: APAREBPP_MYPAYMENTSOptional: No
Call by Reference: Yes
EXCEPTIONS details
INTERNAL_ERROR - Interner Fehler
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for APAR_STOP_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_t_invoices | TYPE STANDARD TABLE OF APAREBPP_INVOICE, " | |||
| lv_i_comp_code | TYPE BUKRS, " | |||
| lv_internal_error | TYPE BUKRS, " | |||
| lt_t_items | TYPE STANDARD TABLE OF APAREBPP_ITEM, " | |||
| lv_i_customer | TYPE KUNNR, " | |||
| lt_t_allocation | TYPE STANDARD TABLE OF APAREBPP_ALLOCATION, " | |||
| lv_i_type_of_stop | TYPE CHAR1, " 'I' | |||
| lt_t_mypayments | TYPE STANDARD TABLE OF APAREBPP_MYPAYMENTS. " |
|   CALL FUNCTION 'APAR_STOP_ORDER' "EBPP: Einzugsermächtigung erzeugen |
| EXPORTING | ||
| I_COMP_CODE | = lv_i_comp_code | |
| I_CUSTOMER | = lv_i_customer | |
| I_TYPE_OF_STOP | = lv_i_type_of_stop | |
| TABLES | ||
| T_INVOICES | = lt_t_invoices | |
| T_ITEMS | = lt_t_items | |
| T_ALLOCATION | = lt_t_allocation | |
| T_MYPAYMENTS | = lt_t_mypayments | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| . " APAR_STOP_ORDER | ||
ABAP code using 7.40 inline data declarations to call FM APAR_STOP_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_type_of_stop) | = 'I'. | |||
Search for further information about these or an SAP related objects