SAP ARFC_END_VB Function Module for









ARFC_END_VB is a standard arfc end vb 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 end vb FM, simply by entering the name ARFC_END_VB into the relevant SAP transaction such as SE37 or SE38.

Function Group: ARFC
Program Name: SAPLARFC
Main Program: SAPLARFC
Appliation area: S
Release date: 31-Aug-1994
Mode(Normal, Remote etc): Normal Function Module
Update: 4



Function ARFC_END_VB 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_END_VB'"
EXPORTING
* TID = "Transaction ID
* UPBG_FIRST = "
* ACTQFLAG = "
* DIA_TOTALCNT = "
* VBKEY = ' ' "

TABLES
* DATEN = "ARFC data
* STATUS = "ARFC status
* DIA_QUEUE = "
.




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_SAPLARFC_001 Asynchronous RFC: Parameter Settings

IMPORTING Parameters details for ARFC_END_VB

TID - Transaction ID

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

UPBG_FIRST -

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

ACTQFLAG -

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

DIA_TOTALCNT -

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

VBKEY -

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

TABLES Parameters details for ARFC_END_VB

DATEN - ARFC data

Data type: ARFCSDATA
Optional: Yes
Call by Reference: Yes

STATUS - ARFC status

Data type: ARFCSSTATE
Optional: Yes
Call by Reference: Yes

DIA_QUEUE -

Data type: TRFCQOUT
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for ARFC_END_VB 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_tid  TYPE ARFCTID, "   
lt_daten  TYPE STANDARD TABLE OF ARFCSDATA, "   
lt_status  TYPE STANDARD TABLE OF ARFCSSTATE, "   
lv_upbg_first  TYPE SY-INPUT, "   
lv_actqflag  TYPE SY-INPUT, "   
lt_dia_queue  TYPE STANDARD TABLE OF TRFCQOUT, "   
lv_dia_totalcnt  TYPE TRFCQOUT-QCOUNT, "   
lv_vbkey  TYPE VBHDR-VBKEY. "   SPACE

  CALL FUNCTION 'ARFC_END_VB'  "
    EXPORTING
         TID = lv_tid
         UPBG_FIRST = lv_upbg_first
         ACTQFLAG = lv_actqflag
         DIA_TOTALCNT = lv_dia_totalcnt
         VBKEY = lv_vbkey
    TABLES
         DATEN = lt_daten
         STATUS = lt_status
         DIA_QUEUE = lt_dia_queue
. " ARFC_END_VB




ABAP code using 7.40 inline data declarations to call FM ARFC_END_VB

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 INPUT FROM SY INTO @DATA(ld_upbg_first).
 
"SELECT single INPUT FROM SY INTO @DATA(ld_actqflag).
 
 
"SELECT single QCOUNT FROM TRFCQOUT INTO @DATA(ld_dia_totalcnt).
 
"SELECT single VBKEY FROM VBHDR INTO @DATA(ld_vbkey).
DATA(ld_vbkey) = ' '.
 


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!