SAP G_BOOL_F4_SUBRULE Function Module for









G_BOOL_F4_SUBRULE is a standard g bool f4 subrule 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 g bool f4 subrule FM, simply by entering the name G_BOOL_F4_SUBRULE into the relevant SAP transaction such as SE37 or SE38.

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



Function G_BOOL_F4_SUBRULE 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 'G_BOOL_F4_SUBRULE'"
EXPORTING
* RULE_EVENT = ' ' "Event to find rule for (' ' finds all events).
* EVENT_FLD = ' ' "
* RULE_USER = ' ' "VALUSER ID of calling application
* DESC_FIELDNAME = ' ' "
* PROG_NAME = '' "
* STEP_IDX = "
* USER_TXT_FLD = ' ' "
* USER_FLD = ' ' "
* ID_FLD = ' ' "
* DISPLAY_ONLY = '' "

IMPORTING
RULE = "Rule selected (blank if none selected).
RULETEXT = "

EXCEPTIONS
NO_VALUES_FOUND = 1
.



IMPORTING Parameters details for G_BOOL_F4_SUBRULE

RULE_EVENT - Event to find rule for (' ' finds all events).

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

EVENT_FLD -

Data type: DYNPREAD-FIELDNAME
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

RULE_USER - VALUSER ID of calling application

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

DESC_FIELDNAME -

Data type: DYNPREAD-FIELDNAME
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROG_NAME -

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

STEP_IDX -

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

USER_TXT_FLD -

Data type: DYNPREAD-FIELDNAME
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER_FLD -

Data type: DYNPREAD-FIELDNAME
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_FLD -

Data type: DYNPREAD-FIELDNAME
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY_ONLY -

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

EXPORTING Parameters details for G_BOOL_F4_SUBRULE

RULE - Rule selected (blank if none selected).

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

RULETEXT -

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

EXCEPTIONS details

NO_VALUES_FOUND -

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

Copy and paste ABAP code example for G_BOOL_F4_SUBRULE 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_rule  TYPE STRING, "   
lv_rule_event  TYPE STRING, "   ' '
lv_no_values_found  TYPE STRING, "   
lv_event_fld  TYPE DYNPREAD-FIELDNAME, "   ' '
lv_ruletext  TYPE DYNPREAD, "   
lv_rule_user  TYPE DYNPREAD, "   ' '
lv_desc_fieldname  TYPE DYNPREAD-FIELDNAME, "   ' '
lv_prog_name  TYPE SY-REPID, "   ''
lv_step_idx  TYPE SY-TABIX, "   
lv_user_txt_fld  TYPE DYNPREAD-FIELDNAME, "   ' '
lv_user_fld  TYPE DYNPREAD-FIELDNAME, "   ' '
lv_id_fld  TYPE DYNPREAD-FIELDNAME, "   ' '
lv_display_only  TYPE DYNPREAD. "   ''

  CALL FUNCTION 'G_BOOL_F4_SUBRULE'  "
    EXPORTING
         RULE_EVENT = lv_rule_event
         EVENT_FLD = lv_event_fld
         RULE_USER = lv_rule_user
         DESC_FIELDNAME = lv_desc_fieldname
         PROG_NAME = lv_prog_name
         STEP_IDX = lv_step_idx
         USER_TXT_FLD = lv_user_txt_fld
         USER_FLD = lv_user_fld
         ID_FLD = lv_id_fld
         DISPLAY_ONLY = lv_display_only
    IMPORTING
         RULE = lv_rule
         RULETEXT = lv_ruletext
    EXCEPTIONS
        NO_VALUES_FOUND = 1
. " G_BOOL_F4_SUBRULE




ABAP code using 7.40 inline data declarations to call FM G_BOOL_F4_SUBRULE

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_rule_event) = ' '.
 
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_event_fld).
DATA(ld_event_fld) = ' '.
 
 
DATA(ld_rule_user) = ' '.
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_desc_fieldname).
DATA(ld_desc_fieldname) = ' '.
 
"SELECT single REPID FROM SY INTO @DATA(ld_prog_name).
DATA(ld_prog_name) = ''.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_step_idx).
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_user_txt_fld).
DATA(ld_user_txt_fld) = ' '.
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_user_fld).
DATA(ld_user_fld) = ' '.
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_id_fld).
DATA(ld_id_fld) = ' '.
 
DATA(ld_display_only) = ''.
 


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!