SAP ARFC_BREAK Function Module for
ARFC_BREAK is a standard arfc break SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 arfc break FM, simply by entering the name ARFC_BREAK into the relevant SAP transaction such as SE37 or SE38.
Function Group: ERFC
Program Name: SAPLERFC
Main Program: SAPLERFC
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ARFC_BREAK 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 'ARFC_BREAK'".
EXPORTING
* DEBUG = ' ' "
DESTINATION = "
SENDER_ID = "
* STATISTIC = "
IMPORTING
MESSAGE = "
SUBRC = "
RETUDATA = "Internal
ASTATE = "Transactional tRFC queue status
TABLES
DATA = "
STATES = "
IMPORTING Parameters details for ARFC_BREAK
DEBUG -
Data type: CDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
DESTINATION -
Data type: RFCDES-RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
SENDER_ID -
Data type: RFCDES-RFCDESTOptional: No
Call by Reference: No ( called with pass by value option)
STATISTIC -
Data type: TRFC_STATISTICOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ARFC_BREAK
MESSAGE -
Data type: CHAR100Optional: No
Call by Reference: No ( called with pass by value option)
SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
RETUDATA - Internal
Data type: SY-INPUTOptional: No
Call by Reference: No ( called with pass by value option)
ASTATE - Transactional tRFC queue status
Data type: TRFCQOUT-QSTATEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ARFC_BREAK
DATA -
Data type: ARFCSDATAOptional: No
Call by Reference: No ( called with pass by value option)
STATES -
Data type: ARFCRSTATEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ARFC_BREAK 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_data | TYPE STANDARD TABLE OF ARFCSDATA, " | |||
lv_debug | TYPE C, " SPACE | |||
lv_message | TYPE CHAR100, " | |||
lv_subrc | TYPE SY-SUBRC, " | |||
lt_states | TYPE STANDARD TABLE OF ARFCRSTATE, " | |||
lv_destination | TYPE RFCDES-RFCDEST, " | |||
lv_retudata | TYPE SY-INPUT, " | |||
lv_sender_id | TYPE RFCDES-RFCDEST, " | |||
lv_astate | TYPE TRFCQOUT-QSTATE, " | |||
lv_statistic | TYPE TRFC_STATISTIC. " |
  CALL FUNCTION 'ARFC_BREAK' " |
EXPORTING | ||
DEBUG | = lv_debug | |
DESTINATION | = lv_destination | |
SENDER_ID | = lv_sender_id | |
STATISTIC | = lv_statistic | |
IMPORTING | ||
MESSAGE | = lv_message | |
SUBRC | = lv_subrc | |
RETUDATA | = lv_retudata | |
ASTATE | = lv_astate | |
TABLES | ||
DATA | = lt_data | |
STATES | = lt_states | |
. " ARFC_BREAK |
ABAP code using 7.40 inline data declarations to call FM ARFC_BREAK
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_debug) | = ' '. | |||
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_destination). | ||||
"SELECT single INPUT FROM SY INTO @DATA(ld_retudata). | ||||
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_sender_id). | ||||
"SELECT single QSTATE FROM TRFCQOUT INTO @DATA(ld_astate). | ||||
Search for further information about these or an SAP related objects