SAP EHSB101_VAI_TABSCREEN_OPEN Function Module for NOTRANSL: EHS-BAS: tabellarischen Bewertungs-Dialog öffnen









EHSB101_VAI_TABSCREEN_OPEN is a standard ehsb101 vai tabscreen open SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS-BAS: tabellarischen Bewertungs-Dialog öffnen 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 ehsb101 vai tabscreen open FM, simply by entering the name EHSB101_VAI_TABSCREEN_OPEN into the relevant SAP transaction such as SE37 or SE38.

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



Function EHSB101_VAI_TABSCREEN_OPEN 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 'EHSB101_VAI_TABSCREEN_OPEN'"NOTRANSL: EHS-BAS: tabellarischen Bewertungs-Dialog öffnen
EXPORTING
I_ACTYPE = "Activity Type in the Transaction
* I_FLG_PROP_REL = "
* I_FLG_PROP_SOURCE = "
* I_FLG_PROP_FTEXT = "
* I_FLG_PROP_FTEXT_LONGTEXT = "
* I_FLG_MULTIPLE_VALUE_ASSIGN = "
* I_FLG_VARIABLE_VAI_INFO = "
* I_FLG_SIMULATION = ESP1_FALSE "
* I_FLG_EDIT_VIA_FIELDCAT = ESP1_FALSE "
* IT_KEY = "
* IT_KEYS = "Value Assignment Instance Keys
I_KEYDATE = "Key Date
* IT_ESTCAT = "Value Assignment Types: Keys
* IT_SUB_HEADER = "
* IT_PROP_HEADER = "
* IT_PROP_VAL = "
* IT_PROP_DATA = "
* IT_PROP_FTEXT = "
* I_AENNR = "Change Number
I_APPL_CONTEXT = "Application Area of Table-Based Value Assignment
* I_SUBSCREEN = GC_SUBSCREEN_1 "Representing Subscreen
* I_RECNROOT_REF = "
* I_SUBCAT = "Specification Type
* I_FLG_PROP_CHAR_DATA = "
* I_FLG_PROP_USAGE = "

IMPORTING
E_FLG_ABORT_ON_ERROR = "Cancel Processing
ET_EXTERROR = "Extended Error Information

EXCEPTIONS
INTERNAL_ERROR = 1 PARAMETER_ERROR = 2
.



IMPORTING Parameters details for EHSB101_VAI_TABSCREEN_OPEN

I_ACTYPE - Activity Type in the Transaction

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

I_FLG_PROP_REL -

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

I_FLG_PROP_SOURCE -

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

I_FLG_PROP_FTEXT -

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

I_FLG_PROP_FTEXT_LONGTEXT -

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

I_FLG_MULTIPLE_VALUE_ASSIGN -

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

I_FLG_VARIABLE_VAI_INFO -

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

I_FLG_SIMULATION -

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

I_FLG_EDIT_VIA_FIELDCAT -

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

IT_KEY -

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

IT_KEYS - Value Assignment Instance Keys

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

I_KEYDATE - Key Date

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

IT_ESTCAT - Value Assignment Types: Keys

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

IT_SUB_HEADER -

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

IT_PROP_HEADER -

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

IT_PROP_VAL -

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

IT_PROP_DATA -

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

IT_PROP_FTEXT -

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

I_AENNR - Change Number

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

I_APPL_CONTEXT - Application Area of Table-Based Value Assignment

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

I_SUBSCREEN - Representing Subscreen

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

I_RECNROOT_REF -

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

I_SUBCAT - Specification Type

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

I_FLG_PROP_CHAR_DATA -

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

I_FLG_PROP_USAGE -

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

EXPORTING Parameters details for EHSB101_VAI_TABSCREEN_OPEN

E_FLG_ABORT_ON_ERROR - Cancel Processing

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

ET_EXTERROR - Extended Error Information

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

EXCEPTIONS details

INTERNAL_ERROR -

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

PARAMETER_ERROR -

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

Copy and paste ABAP code example for EHSB101_VAI_TABSCREEN_OPEN 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_i_actype  TYPE RCGDIALCTR-ACTYPE, "   
lv_internal_error  TYPE RCGDIALCTR, "   
lv_e_flg_abort_on_error  TYPE ESP1_BOOLEAN, "   
lv_i_flg_prop_rel  TYPE ESP1_BOOLEAN, "   
lv_i_flg_prop_source  TYPE ESP1_BOOLEAN, "   
lv_i_flg_prop_ftext  TYPE ESP1_BOOLEAN, "   
lv_i_flg_prop_ftext_longtext  TYPE ESP1_BOOLEAN, "   
lv_i_flg_multiple_value_assign  TYPE ESP1_BOOLEAN, "   
lv_i_flg_variable_vai_info  TYPE ESP1_BOOLEAN, "   
lv_i_flg_simulation  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_edit_via_fieldcat  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_it_key  TYPE EHSBTY_API_VAI_KEY, "   
lv_it_keys  TYPE EHSBTY_API_VAI_EXKEY, "   
lv_i_keydate  TYPE RCGADDINF-VALDAT, "   
lv_et_exterror  TYPE ESPAP_EXTERROR_TAB_TYPE, "   
lv_parameter_error  TYPE ESPAP_EXTERROR_TAB_TYPE, "   
lv_it_estcat  TYPE EHSBTY_API_VAI_ESTCAT, "   
lv_it_sub_header  TYPE ESPRH_APIRH_TAB_TYPE, "   
lv_it_prop_header  TYPE ESPRH_APIVH_TAB_TYPE, "   
lv_it_prop_val  TYPE ESPRH_APIVA_TAB_TYPE, "   
lv_it_prop_data  TYPE ESPRH_APIPR_TAB_TYPE, "   
lv_it_prop_ftext  TYPE ESPRH_APIDF_TAB_TYPE, "   
lv_i_aennr  TYPE RCGADDINF-AENNR, "   
lv_i_appl_context  TYPE EHSBE_VAI_APPL_CONTEXT, "   
lv_i_subscreen  TYPE SYDYNNR, "   GC_SUBSCREEN_1
lv_i_recnroot_ref  TYPE ESERECN, "   
lv_i_subcat  TYPE ESESUBCAT, "   
lv_i_flg_prop_char_data  TYPE ESP1_BOOLEAN, "   
lv_i_flg_prop_usage  TYPE ESP1_BOOLEAN. "   

  CALL FUNCTION 'EHSB101_VAI_TABSCREEN_OPEN'  "NOTRANSL: EHS-BAS: tabellarischen Bewertungs-Dialog öffnen
    EXPORTING
         I_ACTYPE = lv_i_actype
         I_FLG_PROP_REL = lv_i_flg_prop_rel
         I_FLG_PROP_SOURCE = lv_i_flg_prop_source
         I_FLG_PROP_FTEXT = lv_i_flg_prop_ftext
         I_FLG_PROP_FTEXT_LONGTEXT = lv_i_flg_prop_ftext_longtext
         I_FLG_MULTIPLE_VALUE_ASSIGN = lv_i_flg_multiple_value_assign
         I_FLG_VARIABLE_VAI_INFO = lv_i_flg_variable_vai_info
         I_FLG_SIMULATION = lv_i_flg_simulation
         I_FLG_EDIT_VIA_FIELDCAT = lv_i_flg_edit_via_fieldcat
         IT_KEY = lv_it_key
         IT_KEYS = lv_it_keys
         I_KEYDATE = lv_i_keydate
         IT_ESTCAT = lv_it_estcat
         IT_SUB_HEADER = lv_it_sub_header
         IT_PROP_HEADER = lv_it_prop_header
         IT_PROP_VAL = lv_it_prop_val
         IT_PROP_DATA = lv_it_prop_data
         IT_PROP_FTEXT = lv_it_prop_ftext
         I_AENNR = lv_i_aennr
         I_APPL_CONTEXT = lv_i_appl_context
         I_SUBSCREEN = lv_i_subscreen
         I_RECNROOT_REF = lv_i_recnroot_ref
         I_SUBCAT = lv_i_subcat
         I_FLG_PROP_CHAR_DATA = lv_i_flg_prop_char_data
         I_FLG_PROP_USAGE = lv_i_flg_prop_usage
    IMPORTING
         E_FLG_ABORT_ON_ERROR = lv_e_flg_abort_on_error
         ET_EXTERROR = lv_et_exterror
    EXCEPTIONS
        INTERNAL_ERROR = 1
        PARAMETER_ERROR = 2
. " EHSB101_VAI_TABSCREEN_OPEN




ABAP code using 7.40 inline data declarations to call FM EHSB101_VAI_TABSCREEN_OPEN

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 ACTYPE FROM RCGDIALCTR INTO @DATA(ld_i_actype).
 
 
 
 
 
 
 
 
 
DATA(ld_i_flg_simulation) = ESP1_FALSE.
 
DATA(ld_i_flg_edit_via_fieldcat) = ESP1_FALSE.
 
 
 
"SELECT single VALDAT FROM RCGADDINF INTO @DATA(ld_i_keydate).
 
 
 
 
 
 
 
 
 
"SELECT single AENNR FROM RCGADDINF INTO @DATA(ld_i_aennr).
 
 
DATA(ld_i_subscreen) = GC_SUBSCREEN_1.
 
 
 
 
 


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!