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

Function TWB_F4_OUTLINE 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 'TWB_F4_OUTLINE'".
EXPORTING
OUTLINE = "
* LANGUAGE = SY-LANGU "
* O_TYPE = 'C' "
* FUNC = "
IMPORTING
SEL_OUTLINE = "
SEL_TITLE = "
EXCEPTIONS
OUTLINE_NOT_FOUND = 1
IMPORTING Parameters details for TWB_F4_OUTLINE
OUTLINE -
Data type: DSYAH-OUTLINEOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE -
Data type: DSYAH-SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
O_TYPE -
Data type: DSYAH-ATTRIBUT_1Default: 'C'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FUNC -
Data type: RSCAT-SA_FC0Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TWB_F4_OUTLINE
SEL_OUTLINE -
Data type: DSYAH-OUTLINEOptional: No
Call by Reference: No ( called with pass by value option)
SEL_TITLE -
Data type: DSYAT-CHILD_TITLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OUTLINE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TWB_F4_OUTLINE 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_outline | TYPE DSYAH-OUTLINE, " | |||
| lv_sel_outline | TYPE DSYAH-OUTLINE, " | |||
| lv_outline_not_found | TYPE DSYAH, " | |||
| lv_language | TYPE DSYAH-SPRAS, " SY-LANGU | |||
| lv_sel_title | TYPE DSYAT-CHILD_TITL, " | |||
| lv_o_type | TYPE DSYAH-ATTRIBUT_1, " 'C' | |||
| lv_func | TYPE RSCAT-SA_FC0. " |
|   CALL FUNCTION 'TWB_F4_OUTLINE' " |
| EXPORTING | ||
| OUTLINE | = lv_outline | |
| LANGUAGE | = lv_language | |
| O_TYPE | = lv_o_type | |
| FUNC | = lv_func | |
| IMPORTING | ||
| SEL_OUTLINE | = lv_sel_outline | |
| SEL_TITLE | = lv_sel_title | |
| EXCEPTIONS | ||
| OUTLINE_NOT_FOUND = 1 | ||
| . " TWB_F4_OUTLINE | ||
ABAP code using 7.40 inline data declarations to call FM TWB_F4_OUTLINE
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 OUTLINE FROM DSYAH INTO @DATA(ld_outline). | ||||
| "SELECT single OUTLINE FROM DSYAH INTO @DATA(ld_sel_outline). | ||||
| "SELECT single SPRAS FROM DSYAH INTO @DATA(ld_language). | ||||
| DATA(ld_language) | = SY-LANGU. | |||
| "SELECT single CHILD_TITL FROM DSYAT INTO @DATA(ld_sel_title). | ||||
| "SELECT single ATTRIBUT_1 FROM DSYAH INTO @DATA(ld_o_type). | ||||
| DATA(ld_o_type) | = 'C'. | |||
| "SELECT single SA_FC0 FROM RSCAT INTO @DATA(ld_func). | ||||
Search for further information about these or an SAP related objects