SAP SWD_INTERN_SET_BUFFER Function Module for
SWD_INTERN_SET_BUFFER is a standard swd intern set buffer 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 swd intern set buffer FM, simply by entering the name SWD_INTERN_SET_BUFFER into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWDA
Program Name: SAPLSWDA
Main Program: SAPLSWDA
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWD_INTERN_SET_BUFFER 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 'SWD_INTERN_SET_BUFFER'".
EXPORTING
* WFD_GLOBAL = "
* WFD_HEADER = "Workflow Definition: Interface for API (Header)
* WFD_CONTAINER = "
* WFD_EVENTS = "Workflow Definition: Table of Events in WF Builder
* WFD_LOCAL_EVENTS = "Local Events
* WFD_PROPERTIES = "Properties
* WFD_STEP_CONTAINER = "
TABLES
* WFD_TEXT = "
* WFD_TASKS = "
* WFD_CONTAINER_TEXT = "
* WFD_BINDING = "
* WFD_STEPS = "
* WFD_LINES = "
* WFD_METHOD = "
* WFD_CONDITION = "
* WFD_TEMPLATES = "
* WFD_FORMS = "
* WFD_FUNCTIONS = "
IMPORTING Parameters details for SWD_INTERN_SET_BUFFER
WFD_GLOBAL -
Data type: SWDIGLOBALOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_HEADER - Workflow Definition: Interface for API (Header)
Data type: SWD_AHEADOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_CONTAINER -
Data type: IF_SWF_CNT_CONTAINEROptional: Yes
Call by Reference: Yes
WFD_EVENTS - Workflow Definition: Table of Events in WF Builder
Data type: SWDTIEVNTSOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_LOCAL_EVENTS - Local Events
Data type: SWDTILOCEVTOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_PROPERTIES - Properties
Data type: SWDTPROPTSOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_STEP_CONTAINER -
Data type: SWDTACONTOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SWD_INTERN_SET_BUFFER
WFD_TEXT -
Data type: SWD_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_TASKS -
Data type: SWD_ITASKSOptional: Yes
Call by Reference: Yes
WFD_CONTAINER_TEXT -
Data type: SWD_WFCTXTOptional: Yes
Call by Reference: Yes
WFD_BINDING -
Data type: SWD_BINDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_STEPS -
Data type: SWD_ASTEPOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_LINES -
Data type: SWD_ALINESOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_METHOD -
Data type: SWD_IMETHDOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_CONDITION -
Data type: SWD_CONDEFOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_TEMPLATES -
Data type: SWUOPROPOptional: Yes
Call by Reference: No ( called with pass by value option)
WFD_FORMS -
Data type: SWDIFORMSOptional: Yes
Call by Reference: Yes
WFD_FUNCTIONS -
Data type: SWD_IFUNCSOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SWD_INTERN_SET_BUFFER 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: | ||||
| lt_wfd_text | TYPE STANDARD TABLE OF SWD_TEXT, " | |||
| lv_wfd_global | TYPE SWDIGLOBAL, " | |||
| lt_wfd_tasks | TYPE STANDARD TABLE OF SWD_ITASKS, " | |||
| lt_wfd_container_text | TYPE STANDARD TABLE OF SWD_WFCTXT, " | |||
| lv_wfd_header | TYPE SWD_AHEAD, " | |||
| lt_wfd_binding | TYPE STANDARD TABLE OF SWD_BINDEF, " | |||
| lt_wfd_steps | TYPE STANDARD TABLE OF SWD_ASTEP, " | |||
| lv_wfd_container | TYPE IF_SWF_CNT_CONTAINER, " | |||
| lt_wfd_lines | TYPE STANDARD TABLE OF SWD_ALINES, " | |||
| lv_wfd_events | TYPE SWDTIEVNTS, " | |||
| lt_wfd_method | TYPE STANDARD TABLE OF SWD_IMETHD, " | |||
| lv_wfd_local_events | TYPE SWDTILOCEVT, " | |||
| lt_wfd_condition | TYPE STANDARD TABLE OF SWD_CONDEF, " | |||
| lv_wfd_properties | TYPE SWDTPROPTS, " | |||
| lt_wfd_templates | TYPE STANDARD TABLE OF SWUOPROP, " | |||
| lv_wfd_step_container | TYPE SWDTACONT, " | |||
| lt_wfd_forms | TYPE STANDARD TABLE OF SWDIFORMS, " | |||
| lt_wfd_functions | TYPE STANDARD TABLE OF SWD_IFUNCS. " |
|   CALL FUNCTION 'SWD_INTERN_SET_BUFFER' " |
| EXPORTING | ||
| WFD_GLOBAL | = lv_wfd_global | |
| WFD_HEADER | = lv_wfd_header | |
| WFD_CONTAINER | = lv_wfd_container | |
| WFD_EVENTS | = lv_wfd_events | |
| WFD_LOCAL_EVENTS | = lv_wfd_local_events | |
| WFD_PROPERTIES | = lv_wfd_properties | |
| WFD_STEP_CONTAINER | = lv_wfd_step_container | |
| TABLES | ||
| WFD_TEXT | = lt_wfd_text | |
| WFD_TASKS | = lt_wfd_tasks | |
| WFD_CONTAINER_TEXT | = lt_wfd_container_text | |
| WFD_BINDING | = lt_wfd_binding | |
| WFD_STEPS | = lt_wfd_steps | |
| WFD_LINES | = lt_wfd_lines | |
| WFD_METHOD | = lt_wfd_method | |
| WFD_CONDITION | = lt_wfd_condition | |
| WFD_TEMPLATES | = lt_wfd_templates | |
| WFD_FORMS | = lt_wfd_forms | |
| WFD_FUNCTIONS | = lt_wfd_functions | |
| . " SWD_INTERN_SET_BUFFER | ||
ABAP code using 7.40 inline data declarations to call FM SWD_INTERN_SET_BUFFER
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.Search for further information about these or an SAP related objects