SAP SWA_CONT_INST_EDIT Function Module for









SWA_CONT_INST_EDIT is a standard swa cont inst edit 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 swa cont inst edit FM, simply by entering the name SWA_CONT_INST_EDIT into the relevant SAP transaction such as SE37 or SE38.

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



Function SWA_CONT_INST_EDIT 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 'SWA_CONT_INST_EDIT'"
EXPORTING
* CONDESCR = ' ' "Container description
* ONLY_IMPORT_ELEMENTS = ' ' "
* ONLY_EXPORT_ELEMENTS = ' ' "
* ONLY_OBLIG_ELEMENTS = 'X' "Edit mandatory elements only = default
* WITHOUT_SYSTEM_ELEMENTS = 'X' "Do not edit workflow system elements = default
* DIALOG_ONLY_IF_NECESSARY = ' ' "If all elements have a value, no dialog
* NO_SAVE_BUTTON = ' ' "
* START_IN_POPUP = 'X' "
* CONKEYWORD = ' ' "Key word
* CUA_PARA1 = ' ' "CUA status from SAPLSWA2
* CUA_PARA2 = ' ' "CUA status from SAPLSWA2
* CUA_PARA3 = ' ' "CUA status from SAPLSWA2
* CUA_PARA4 = ' ' "CUA status from SAPLSWA2
* CUA_STATUS = ' ' "CUA status from SAPLSWA2
* CUA_TITEL = ' ' "CUA title from SAPLSWA2
* DISPLAY = ' ' "Display only

IMPORTING
CHANGED = "Changed

TABLES
CONT = "Container instance
CONTDEF = "Container definition
.



IMPORTING Parameters details for SWA_CONT_INST_EDIT

CONDESCR - Container description

Data type: SWAEXPEDIT-CONDESCR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ONLY_IMPORT_ELEMENTS -

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

ONLY_EXPORT_ELEMENTS -

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

ONLY_OBLIG_ELEMENTS - Edit mandatory elements only = default

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITHOUT_SYSTEM_ELEMENTS - Do not edit workflow system elements = default

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DIALOG_ONLY_IF_NECESSARY - If all elements have a value, no dialog

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

NO_SAVE_BUTTON -

Data type: SY-BINPT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

START_IN_POPUP -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CONKEYWORD - Key word

Data type: SWAEXPEDIT-CONKEYWORD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUA_PARA1 - CUA status from SAPLSWA2

Data type: SWAEXPEDIT-PARA1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUA_PARA2 - CUA status from SAPLSWA2

Data type: SWAEXPEDIT-PARA2
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUA_PARA3 - CUA status from SAPLSWA2

Data type: SWAEXPEDIT-PARA3
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUA_PARA4 - CUA status from SAPLSWA2

Data type: SWAEXPEDIT-PARA4
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUA_STATUS - CUA status from SAPLSWA2

Data type: SWAEXPEDIT-STATUS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUA_TITEL - CUA title from SAPLSWA2

Data type: SWAEXPEDIT-CTITEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY - Display only

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

EXPORTING Parameters details for SWA_CONT_INST_EDIT

CHANGED - Changed

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

TABLES Parameters details for SWA_CONT_INST_EDIT

CONT - Container instance

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

CONTDEF - Container definition

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

Copy and paste ABAP code example for SWA_CONT_INST_EDIT 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_cont  TYPE STANDARD TABLE OF SWCONT, "   
lv_changed  TYPE SWCONT, "   
lv_condescr  TYPE SWAEXPEDIT-CONDESCR, "   SPACE
lv_only_import_elements  TYPE SWAEXPEDIT, "   SPACE
lv_only_export_elements  TYPE SWAEXPEDIT, "   SPACE
lv_only_oblig_elements  TYPE SWAEXPEDIT, "   'X'
lv_without_system_elements  TYPE SWAEXPEDIT, "   'X'
lv_dialog_only_if_necessary  TYPE SWAEXPEDIT, "   SPACE
lv_no_save_button  TYPE SY-BINPT, "   SPACE
lv_start_in_popup  TYPE XFELD, "   'X'
lt_contdef  TYPE STANDARD TABLE OF SWCONTDEF, "   
lv_conkeyword  TYPE SWAEXPEDIT-CONKEYWORD, "   SPACE
lv_cua_para1  TYPE SWAEXPEDIT-PARA1, "   SPACE
lv_cua_para2  TYPE SWAEXPEDIT-PARA2, "   SPACE
lv_cua_para3  TYPE SWAEXPEDIT-PARA3, "   SPACE
lv_cua_para4  TYPE SWAEXPEDIT-PARA4, "   SPACE
lv_cua_status  TYPE SWAEXPEDIT-STATUS, "   SPACE
lv_cua_titel  TYPE SWAEXPEDIT-CTITEL, "   SPACE
lv_display  TYPE SWAEXPEDIT. "   SPACE

  CALL FUNCTION 'SWA_CONT_INST_EDIT'  "
    EXPORTING
         CONDESCR = lv_condescr
         ONLY_IMPORT_ELEMENTS = lv_only_import_elements
         ONLY_EXPORT_ELEMENTS = lv_only_export_elements
         ONLY_OBLIG_ELEMENTS = lv_only_oblig_elements
         WITHOUT_SYSTEM_ELEMENTS = lv_without_system_elements
         DIALOG_ONLY_IF_NECESSARY = lv_dialog_only_if_necessary
         NO_SAVE_BUTTON = lv_no_save_button
         START_IN_POPUP = lv_start_in_popup
         CONKEYWORD = lv_conkeyword
         CUA_PARA1 = lv_cua_para1
         CUA_PARA2 = lv_cua_para2
         CUA_PARA3 = lv_cua_para3
         CUA_PARA4 = lv_cua_para4
         CUA_STATUS = lv_cua_status
         CUA_TITEL = lv_cua_titel
         DISPLAY = lv_display
    IMPORTING
         CHANGED = lv_changed
    TABLES
         CONT = lt_cont
         CONTDEF = lt_contdef
. " SWA_CONT_INST_EDIT




ABAP code using 7.40 inline data declarations to call FM SWA_CONT_INST_EDIT

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 CONDESCR FROM SWAEXPEDIT INTO @DATA(ld_condescr).
DATA(ld_condescr) = ' '.
 
DATA(ld_only_import_elements) = ' '.
 
DATA(ld_only_export_elements) = ' '.
 
DATA(ld_only_oblig_elements) = 'X'.
 
DATA(ld_without_system_elements) = 'X'.
 
DATA(ld_dialog_only_if_necessary) = ' '.
 
"SELECT single BINPT FROM SY INTO @DATA(ld_no_save_button).
DATA(ld_no_save_button) = ' '.
 
DATA(ld_start_in_popup) = 'X'.
 
 
"SELECT single CONKEYWORD FROM SWAEXPEDIT INTO @DATA(ld_conkeyword).
DATA(ld_conkeyword) = ' '.
 
"SELECT single PARA1 FROM SWAEXPEDIT INTO @DATA(ld_cua_para1).
DATA(ld_cua_para1) = ' '.
 
"SELECT single PARA2 FROM SWAEXPEDIT INTO @DATA(ld_cua_para2).
DATA(ld_cua_para2) = ' '.
 
"SELECT single PARA3 FROM SWAEXPEDIT INTO @DATA(ld_cua_para3).
DATA(ld_cua_para3) = ' '.
 
"SELECT single PARA4 FROM SWAEXPEDIT INTO @DATA(ld_cua_para4).
DATA(ld_cua_para4) = ' '.
 
"SELECT single STATUS FROM SWAEXPEDIT INTO @DATA(ld_cua_status).
DATA(ld_cua_status) = ' '.
 
"SELECT single CTITEL FROM SWAEXPEDIT INTO @DATA(ld_cua_titel).
DATA(ld_cua_titel) = ' '.
 
DATA(ld_display) = ' '.
 


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!