SAP SWU_EDIT_TASK_TEXTLINES Function Module for
SWU_EDIT_TASK_TEXTLINES is a standard swu edit task textlines 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 swu edit task textlines FM, simply by entering the name SWU_EDIT_TASK_TEXTLINES into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWUT
Program Name: SAPLSWUT
Main Program: SAPLSWUT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWU_EDIT_TASK_TEXTLINES 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 'SWU_EDIT_TASK_TEXTLINES'".
EXPORTING
* ACT_TITLE = "
* MAINT_FLAG = "
* FORMATTED = ' ' "
* CONTAINER_HANDLE = "
IMPORTING
CHANGED = "
TABLES
TEXT_LINES = "
* CONTAINERDEF = "
EXCEPTIONS
TEXT_SYSTEM_ERROR = 1
IMPORTING Parameters details for SWU_EDIT_TASK_TEXTLINES
ACT_TITLE -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
MAINT_FLAG -
Data type: T77FC-MAINTOptional: Yes
Call by Reference: No ( called with pass by value option)
FORMATTED -
Data type: SWU_FLAG-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONTAINER_HANDLE -
Data type: IF_SWF_CNT_CONTAINEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SWU_EDIT_TASK_TEXTLINES
CHANGED -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SWU_EDIT_TASK_TEXTLINES
TEXT_LINES -
Data type: TLINEOptional: No
Call by Reference: No ( called with pass by value option)
CONTAINERDEF -
Data type: SWCONTDEFOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
TEXT_SYSTEM_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SWU_EDIT_TASK_TEXTLINES 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_changed | TYPE C, " | |||
| lv_act_title | TYPE C, " | |||
| lt_text_lines | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_text_system_error | TYPE TLINE, " | |||
| lv_maint_flag | TYPE T77FC-MAINT, " | |||
| lt_containerdef | TYPE STANDARD TABLE OF SWCONTDEF, " | |||
| lv_formatted | TYPE SWU_FLAG-FLAG, " SPACE | |||
| lv_container_handle | TYPE IF_SWF_CNT_CONTAINER. " |
|   CALL FUNCTION 'SWU_EDIT_TASK_TEXTLINES' " |
| EXPORTING | ||
| ACT_TITLE | = lv_act_title | |
| MAINT_FLAG | = lv_maint_flag | |
| FORMATTED | = lv_formatted | |
| CONTAINER_HANDLE | = lv_container_handle | |
| IMPORTING | ||
| CHANGED | = lv_changed | |
| TABLES | ||
| TEXT_LINES | = lt_text_lines | |
| CONTAINERDEF | = lt_containerdef | |
| EXCEPTIONS | ||
| TEXT_SYSTEM_ERROR = 1 | ||
| . " SWU_EDIT_TASK_TEXTLINES | ||
ABAP code using 7.40 inline data declarations to call FM SWU_EDIT_TASK_TEXTLINES
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 MAINT FROM T77FC INTO @DATA(ld_maint_flag). | ||||
| "SELECT single FLAG FROM SWU_FLAG INTO @DATA(ld_formatted). | ||||
| DATA(ld_formatted) | = ' '. | |||
Search for further information about these or an SAP related objects