SAP SWF_CNT_F4_HELP_EXPRESSION Function Module for
SWF_CNT_F4_HELP_EXPRESSION is a standard swf cnt f4 help expression 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 swf cnt f4 help expression FM, simply by entering the name SWF_CNT_F4_HELP_EXPRESSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWF_CNT03
Program Name: SAPLSWF_CNT03
Main Program: SAPLSWF_CNT03
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWF_CNT_F4_HELP_EXPRESSION 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 'SWF_CNT_F4_HELP_EXPRESSION'".
EXPORTING
IM_CONTAINER = "Container Reference
* IM_PARAM = "For Input Help and Check: Allowed Expressions/C. Elements
* IM_EXPRESSION_FOR_TEXT = ' ' "
* IM_DISPLAY = ' ' "Display only
* IM_TITLE = "Title line text
* IM_POPUP = 'X' "
IMPORTING
EX_ELEMENT = "Abstraction of Container Element
EX_EXPRESSION = "Expression in Binding Definition
EX_EXPRESSION_STRING = "
EXCEPTIONS
CANCELLED = 1
IMPORTING Parameters details for SWF_CNT_F4_HELP_EXPRESSION
IM_CONTAINER - Container Reference
Data type: IF_SWF_CNT_CONTAINEROptional: No
Call by Reference: Yes
IM_PARAM - For Input Help and Check: Allowed Expressions/C. Elements
Data type: SWD_F4PARAOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_EXPRESSION_FOR_TEXT -
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
IM_DISPLAY - Display only
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
IM_TITLE - Title line text
Data type: SYTITLEOptional: Yes
Call by Reference: Yes
IM_POPUP -
Data type: XFLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SWF_CNT_F4_HELP_EXPRESSION
EX_ELEMENT - Abstraction of Container Element
Data type: IF_SWF_CNT_ELEMENTOptional: No
Call by Reference: Yes
EX_EXPRESSION - Expression in Binding Definition
Data type: SWA_EXPROptional: No
Call by Reference: Yes
EX_EXPRESSION_STRING -
Data type: STRINGOptional: No
Call by Reference: Yes
EXCEPTIONS details
CANCELLED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SWF_CNT_F4_HELP_EXPRESSION 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_cancelled | TYPE STRING, " | |||
| lv_ex_element | TYPE IF_SWF_CNT_ELEMENT, " | |||
| lv_im_container | TYPE IF_SWF_CNT_CONTAINER, " | |||
| lv_im_param | TYPE SWD_F4PARA, " | |||
| lv_ex_expression | TYPE SWA_EXPR, " | |||
| lv_ex_expression_string | TYPE STRING, " | |||
| lv_im_expression_for_text | TYPE XFLAG, " SPACE | |||
| lv_im_display | TYPE XFLAG, " SPACE | |||
| lv_im_title | TYPE SYTITLE, " | |||
| lv_im_popup | TYPE XFLAG. " 'X' |
|   CALL FUNCTION 'SWF_CNT_F4_HELP_EXPRESSION' " |
| EXPORTING | ||
| IM_CONTAINER | = lv_im_container | |
| IM_PARAM | = lv_im_param | |
| IM_EXPRESSION_FOR_TEXT | = lv_im_expression_for_text | |
| IM_DISPLAY | = lv_im_display | |
| IM_TITLE | = lv_im_title | |
| IM_POPUP | = lv_im_popup | |
| IMPORTING | ||
| EX_ELEMENT | = lv_ex_element | |
| EX_EXPRESSION | = lv_ex_expression | |
| EX_EXPRESSION_STRING | = lv_ex_expression_string | |
| EXCEPTIONS | ||
| CANCELLED = 1 | ||
| . " SWF_CNT_F4_HELP_EXPRESSION | ||
ABAP code using 7.40 inline data declarations to call FM SWF_CNT_F4_HELP_EXPRESSION
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_im_expression_for_text) | = ' '. | |||
| DATA(ld_im_display) | = ' '. | |||
| DATA(ld_im_popup) | = 'X'. | |||
Search for further information about these or an SAP related objects