SAP AVC_HELP_F4 Function Module for DE-EN-LANG-SWITCH-NO-TRANSLATION









AVC_HELP_F4 is a standard avc help f4 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DE-EN-LANG-SWITCH-NO-TRANSLATION 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 avc help f4 FM, simply by entering the name AVC_HELP_F4 into the relevant SAP transaction such as SE37 or SE38.

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



Function AVC_HELP_F4 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 'AVC_HELP_F4'"DE-EN-LANG-SWITCH-NO-TRANSLATION
EXPORTING
* EXPRESSION_ID = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXPRESSION_TYPE = "Relationship Type
* GRAMMAR = 'SAPLCUPB' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* VALID_FROM = SY-DATUM "Valid-From Date
* DECLARATIVE_MODE = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* HELP_MODE = 'F4' "
* KNART = "Dependency type

IMPORTING
EV_RESULT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EV_SUCCESS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ET_ERRORS = "
ET_OPEN_NODES = "

CHANGING
SRC_POS = "Cursor position

TABLES
PARSD_SOURCE = "Editor buffer
HELP_ITEMS = "

EXCEPTIONS
INTERNAL_ERROR = 1
.



IMPORTING Parameters details for AVC_HELP_F4

EXPRESSION_ID - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPRESSION_TYPE - Relationship Type

Data type:
Optional: No
Call by Reference: Yes

GRAMMAR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Default: 'SAPLCUPB'
Optional: Yes
Call by Reference: Yes

VALID_FROM - Valid-From Date

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

DECLARATIVE_MODE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: PMST_MARK
Default: 'X'
Optional: Yes
Call by Reference: Yes

HELP_MODE -

Data type: STRING
Default: 'F4'
Optional: Yes
Call by Reference: Yes

KNART - Dependency type

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

EXPORTING Parameters details for AVC_HELP_F4

EV_RESULT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EV_SUCCESS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ET_ERRORS -

Data type: CFGT1_PARSE_ERROR_I
Optional: No
Call by Reference: Yes

ET_OPEN_NODES -

Data type: CFGT1_HELP_ITEM_I
Optional: No
Call by Reference: Yes

CHANGING Parameters details for AVC_HELP_F4

SRC_POS - Cursor position

Data type: CFGT0_TEXTEDIT_SECTION
Optional: No
Call by Reference: Yes

TABLES Parameters details for AVC_HELP_F4

PARSD_SOURCE - Editor buffer

Data type:
Optional: No
Call by Reference: Yes

HELP_ITEMS -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INTERNAL_ERROR -

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

Copy and paste ABAP code example for AVC_HELP_F4 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_src_pos  TYPE CFGT0_TEXTEDIT_SECTION, "   
lv_ev_result  TYPE C, "   
lt_parsd_source  TYPE STANDARD TABLE OF C, "   
lv_expression_id  TYPE C, "   SPACE
lv_internal_error  TYPE C, "   
lv_ev_success  TYPE C, "   
lt_help_items  TYPE STANDARD TABLE OF C, "   
lv_expression_type  TYPE C, "   
lv_grammar  TYPE C, "   'SAPLCUPB'
lv_et_errors  TYPE CFGT1_PARSE_ERROR_I, "   
lv_valid_from  TYPE SY-DATUM, "   SY-DATUM
lv_et_open_nodes  TYPE CFGT1_HELP_ITEM_I, "   
lv_declarative_mode  TYPE PMST_MARK, "   'X'
lv_help_mode  TYPE STRING, "   'F4'
lv_knart  TYPE KNART. "   

  CALL FUNCTION 'AVC_HELP_F4'  "DE-EN-LANG-SWITCH-NO-TRANSLATION
    EXPORTING
         EXPRESSION_ID = lv_expression_id
         EXPRESSION_TYPE = lv_expression_type
         GRAMMAR = lv_grammar
         VALID_FROM = lv_valid_from
         DECLARATIVE_MODE = lv_declarative_mode
         HELP_MODE = lv_help_mode
         KNART = lv_knart
    IMPORTING
         EV_RESULT = lv_ev_result
         EV_SUCCESS = lv_ev_success
         ET_ERRORS = lv_et_errors
         ET_OPEN_NODES = lv_et_open_nodes
    CHANGING
         SRC_POS = lv_src_pos
    TABLES
         PARSD_SOURCE = lt_parsd_source
         HELP_ITEMS = lt_help_items
    EXCEPTIONS
        INTERNAL_ERROR = 1
. " AVC_HELP_F4




ABAP code using 7.40 inline data declarations to call FM AVC_HELP_F4

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_expression_id) = ' '.
 
 
 
 
 
DATA(ld_grammar) = 'SAPLCUPB'.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_valid_from).
DATA(ld_valid_from) = SY-DATUM.
 
 
DATA(ld_declarative_mode) = 'X'.
 
DATA(ld_help_mode) = 'F4'.
 
 


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!