SAP SWA_CONT_BIND_EDIT Function Module for









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

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



Function SWA_CONT_BIND_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_BIND_EDIT'"
EXPORTING
CALLED_CONTTYPE = "Container type of container called
* CUA_VARIABLE1 = "
* CUA_VARIABLE2 = "
* USE_TECHNICAL_NAMES = 'X' "
* START_IN_POPUP = 'X' "
* CALLED_CONTAINER_IF = "
* CALLING_CONTAINER_IF = "
* SWF_BINDING = "
* ALLOW_EXIT_WITH_ERRORS = ' ' "
CALLED_DESCR = "Description of container called
* CALLED_KEYWORD = ' ' "Key word for container type of container called
CALLING_CONTTYPE = "Container type of calling container )
CALLING_DESCR = "Description of called container
* CALLING_KEYWORD = ' ' "Key word for container type of container called
* CALLING_LOOPELEMENT = ' ' "Table element of calling container
* DISPLAY = 'X' "Display, otherwise change
* CUA_TITEL = "

IMPORTING
CHANGED = "Binding definition changed
CALLING_CONTDEF_CHANGED = "
NEW_SWF_BINDING = "

TABLES
* BINDEFINITION = "Binding definition
* CALLED_CONTDEF = "Container definition of container called
* CALLING_CONTDEF = "Container definition of calling container

EXCEPTIONS
INCONSISTENT_BINDINGDEFINITION = 1 UNGUILTY_BINDINGTYPE = 2 UNGUILTY_EMPTY_CALLED_CONTDEF = 3
.



IMPORTING Parameters details for SWA_CONT_BIND_EDIT

CALLED_CONTTYPE - Container type of container called

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

CUA_VARIABLE1 -

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

CUA_VARIABLE2 -

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

USE_TECHNICAL_NAMES -

Data type: XFELD
Default: 'X'
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)

CALLED_CONTAINER_IF -

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

CALLING_CONTAINER_IF -

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

SWF_BINDING -

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

ALLOW_EXIT_WITH_ERRORS -

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

CALLED_DESCR - Description of container called

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

CALLED_KEYWORD - Key word for container type of container called

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

CALLING_CONTTYPE - Container type of calling container )

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

CALLING_DESCR - Description of called container

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

CALLING_KEYWORD - Key word for container type of container called

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

CALLING_LOOPELEMENT - Table element of calling container

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

DISPLAY - Display, otherwise change

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

CUA_TITEL -

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

EXPORTING Parameters details for SWA_CONT_BIND_EDIT

CHANGED - Binding definition changed

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

CALLING_CONTDEF_CHANGED -

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

NEW_SWF_BINDING -

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

TABLES Parameters details for SWA_CONT_BIND_EDIT

BINDEFINITION - Binding definition

Data type: SWABINDEF
Optional: Yes
Call by Reference: Yes

CALLED_CONTDEF - Container definition of container called

Data type: SWCONTDEF
Optional: Yes
Call by Reference: Yes

CALLING_CONTDEF - Container definition of calling container

Data type: SWCONTDEF
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

INCONSISTENT_BINDINGDEFINITION - Binding def. for called container inconsistent

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

UNGUILTY_BINDINGTYPE - Invalid binding definition (according to LSWA1D00)

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

UNGUILTY_EMPTY_CALLED_CONTDEF -

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

Copy and paste ABAP code example for SWA_CONT_BIND_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:
lv_changed  TYPE XFELD, "   
lt_bindefinition  TYPE STANDARD TABLE OF SWABINDEF, "   
lv_called_conttype  TYPE SWCEDITOR-CONTTYPE, "   
lv_inconsistent_bindingdefinition  TYPE SWCEDITOR, "   
lv_cua_variable1  TYPE SY-TITLE, "   
lv_cua_variable2  TYPE SY-TITLE, "   
lv_use_technical_names  TYPE XFELD, "   'X'
lv_start_in_popup  TYPE XFELD, "   'X'
lv_called_container_if  TYPE IF_SWF_CNT_CONTAINER, "   
lv_calling_container_if  TYPE IF_SWF_CNT_CONTAINER, "   
lv_swf_binding  TYPE SWFBNDPTAB, "   
lv_allow_exit_with_errors  TYPE XFLAG, "   SPACE
lv_called_descr  TYPE SWABINTYPE-FUNDESCR, "   
lt_called_contdef  TYPE STANDARD TABLE OF SWCONTDEF, "   
lv_unguilty_bindingtype  TYPE SWCONTDEF, "   
lv_calling_contdef_changed  TYPE XFELD, "   
lv_called_keyword  TYPE SWABINTYPE-FUNKEYWORD, "   SPACE
lt_calling_contdef  TYPE STANDARD TABLE OF SWCONTDEF, "   
lv_new_swf_binding  TYPE SWFBNDPTAB, "   
lv_unguilty_empty_called_contdef  TYPE SWFBNDPTAB, "   
lv_calling_conttype  TYPE SWCEDITOR-CONTTYPE, "   
lv_calling_descr  TYPE SWABINTYPE-USEDESCR, "   
lv_calling_keyword  TYPE SWABINTYPE-USEKEYWORD, "   SPACE
lv_calling_loopelement  TYPE SWCONTDEF-ELEMENT, "   SPACE
lv_display  TYPE SWABINEDIT-DISPLAY, "   'X'
lv_cua_titel  TYPE SWABINEDIT-CTITEL. "   

  CALL FUNCTION 'SWA_CONT_BIND_EDIT'  "
    EXPORTING
         CALLED_CONTTYPE = lv_called_conttype
         CUA_VARIABLE1 = lv_cua_variable1
         CUA_VARIABLE2 = lv_cua_variable2
         USE_TECHNICAL_NAMES = lv_use_technical_names
         START_IN_POPUP = lv_start_in_popup
         CALLED_CONTAINER_IF = lv_called_container_if
         CALLING_CONTAINER_IF = lv_calling_container_if
         SWF_BINDING = lv_swf_binding
         ALLOW_EXIT_WITH_ERRORS = lv_allow_exit_with_errors
         CALLED_DESCR = lv_called_descr
         CALLED_KEYWORD = lv_called_keyword
         CALLING_CONTTYPE = lv_calling_conttype
         CALLING_DESCR = lv_calling_descr
         CALLING_KEYWORD = lv_calling_keyword
         CALLING_LOOPELEMENT = lv_calling_loopelement
         DISPLAY = lv_display
         CUA_TITEL = lv_cua_titel
    IMPORTING
         CHANGED = lv_changed
         CALLING_CONTDEF_CHANGED = lv_calling_contdef_changed
         NEW_SWF_BINDING = lv_new_swf_binding
    TABLES
         BINDEFINITION = lt_bindefinition
         CALLED_CONTDEF = lt_called_contdef
         CALLING_CONTDEF = lt_calling_contdef
    EXCEPTIONS
        INCONSISTENT_BINDINGDEFINITION = 1
        UNGUILTY_BINDINGTYPE = 2
        UNGUILTY_EMPTY_CALLED_CONTDEF = 3
. " SWA_CONT_BIND_EDIT




ABAP code using 7.40 inline data declarations to call FM SWA_CONT_BIND_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 CONTTYPE FROM SWCEDITOR INTO @DATA(ld_called_conttype).
 
 
"SELECT single TITLE FROM SY INTO @DATA(ld_cua_variable1).
 
"SELECT single TITLE FROM SY INTO @DATA(ld_cua_variable2).
 
DATA(ld_use_technical_names) = 'X'.
 
DATA(ld_start_in_popup) = 'X'.
 
 
 
 
DATA(ld_allow_exit_with_errors) = ' '.
 
"SELECT single FUNDESCR FROM SWABINTYPE INTO @DATA(ld_called_descr).
 
 
 
 
"SELECT single FUNKEYWORD FROM SWABINTYPE INTO @DATA(ld_called_keyword).
DATA(ld_called_keyword) = ' '.
 
 
 
 
"SELECT single CONTTYPE FROM SWCEDITOR INTO @DATA(ld_calling_conttype).
 
"SELECT single USEDESCR FROM SWABINTYPE INTO @DATA(ld_calling_descr).
 
"SELECT single USEKEYWORD FROM SWABINTYPE INTO @DATA(ld_calling_keyword).
DATA(ld_calling_keyword) = ' '.
 
"SELECT single ELEMENT FROM SWCONTDEF INTO @DATA(ld_calling_loopelement).
DATA(ld_calling_loopelement) = ' '.
 
"SELECT single DISPLAY FROM SWABINEDIT INTO @DATA(ld_display).
DATA(ld_display) = 'X'.
 
"SELECT single CTITEL FROM SWABINEDIT INTO @DATA(ld_cua_titel).
 


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!