SAP FPB_SERVICE_UPDATE_VAR_DATA Function Module for









FPB_SERVICE_UPDATE_VAR_DATA is a standard fpb service update var data 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 fpb service update var data FM, simply by entering the name FPB_SERVICE_UPDATE_VAR_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: FPB_MON_SERVICE
Program Name: SAPLFPB_MON_SERVICE
Main Program: SAPLFPB_MON_SERVICE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FPB_SERVICE_UPDATE_VAR_DATA 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 'FPB_SERVICE_UPDATE_VAR_DATA'"
EXPORTING
ID_MONAPPL = "
* ID_UNAME = SY-UNAME "
* ID_TESTMODE = "
* ID_DELETEDATE = "
* ID_SKIPDATE = "
* ID_CALLED_FROM_FRONTEND = 'X' "

IMPORTING
ET_ALERT = "

EXCEPTIONS
INVALID_RULETYPE = 1 NO_RULES_FOR_USER = 2 EVALUATION_RUNNING = 3
.



IMPORTING Parameters details for FPB_SERVICE_UPDATE_VAR_DATA

ID_MONAPPL -

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

ID_UNAME -

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

ID_TESTMODE -

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

ID_DELETEDATE -

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

ID_SKIPDATE -

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

ID_CALLED_FROM_FRONTEND -

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

EXPORTING Parameters details for FPB_SERVICE_UPDATE_VAR_DATA

ET_ALERT -

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

EXCEPTIONS details

INVALID_RULETYPE -

Data type:
Optional: No
Call by Reference: Yes

NO_RULES_FOR_USER -

Data type:
Optional: No
Call by Reference: Yes

EVALUATION_RUNNING -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FPB_SERVICE_UPDATE_VAR_DATA 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_et_alert  TYPE FPB_T_VAR_DATA, "   
lv_id_monappl  TYPE FPB_MONAPPL, "   
lv_invalid_ruletype  TYPE FPB_MONAPPL, "   
lv_id_uname  TYPE SY-UNAME, "   SY-UNAME
lv_no_rules_for_user  TYPE SY, "   
lv_id_testmode  TYPE BOOLE, "   
lv_evaluation_running  TYPE BOOLE, "   
lv_id_deletedate  TYPE SYDATUM, "   
lv_id_skipdate  TYPE SYDATUM, "   
lv_id_called_from_frontend  TYPE FLAG. "   'X'

  CALL FUNCTION 'FPB_SERVICE_UPDATE_VAR_DATA'  "
    EXPORTING
         ID_MONAPPL = lv_id_monappl
         ID_UNAME = lv_id_uname
         ID_TESTMODE = lv_id_testmode
         ID_DELETEDATE = lv_id_deletedate
         ID_SKIPDATE = lv_id_skipdate
         ID_CALLED_FROM_FRONTEND = lv_id_called_from_frontend
    IMPORTING
         ET_ALERT = lv_et_alert
    EXCEPTIONS
        INVALID_RULETYPE = 1
        NO_RULES_FOR_USER = 2
        EVALUATION_RUNNING = 3
. " FPB_SERVICE_UPDATE_VAR_DATA




ABAP code using 7.40 inline data declarations to call FM FPB_SERVICE_UPDATE_VAR_DATA

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 UNAME FROM SY INTO @DATA(ld_id_uname).
DATA(ld_id_uname) = SY-UNAME.
 
 
 
 
 
 
DATA(ld_id_called_from_frontend) = 'X'.
 


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!