SAP STC1_MODIFYFLAGS Function Module for









STC1_MODIFYFLAGS is a standard stc1 modifyflags 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 stc1 modifyflags FM, simply by entering the name STC1_MODIFYFLAGS into the relevant SAP transaction such as SE37 or SE38.

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



Function STC1_MODIFYFLAGS 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 'STC1_MODIFYFLAGS'"
EXPORTING
* HEADER = "
* DELETE_CHECK = "
* MODIFY_DISP_FIELD = "
* NO_INSERT = "
* NO_DELETE = "
* NO_MOVE = "
* NO_UNDO = "
* NO_BUTTON = "
* ADDITIONAL_BUTTON = "
* ADD_BUTTON_CALL = "
* ADD_BUTTON_HEADER = "
* TABNAME = "
* ADD_BUTTON_POSITION = "Position of the field in the table
* DISPLAY_ONLY = "
* ENDLESS = "
HANDLE = "
* DISPLAY_TOGGLE = "
* SORT_FORBIDDEN = "
* MODIFY_CHECK = "
* INSERT_CHECK = "

TABLES
* NAMETAB = "
* FIELDDIF = "
* FIELD_LIST = "
* BUTTON_LIST = "

EXCEPTIONS
NO_MORE_TABLES = 1 TOO_MANY_FIELDS = 2 NAMETAB_NOT_VALID = 3 HANDLE_NOT_VALID = 4
.



IMPORTING Parameters details for STC1_MODIFYFLAGS

HEADER -

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

DELETE_CHECK -

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

MODIFY_DISP_FIELD -

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

NO_INSERT -

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

NO_DELETE -

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

NO_MOVE -

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

NO_UNDO -

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

NO_BUTTON -

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

ADDITIONAL_BUTTON -

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

ADD_BUTTON_CALL -

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

ADD_BUTTON_HEADER -

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

TABNAME -

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

ADD_BUTTON_POSITION - Position of the field in the table

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

DISPLAY_ONLY -

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

ENDLESS -

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

HANDLE -

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

DISPLAY_TOGGLE -

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

SORT_FORBIDDEN -

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

MODIFY_CHECK -

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

INSERT_CHECK -

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

TABLES Parameters details for STC1_MODIFYFLAGS

NAMETAB -

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

FIELDDIF -

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

FIELD_LIST -

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

BUTTON_LIST -

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

EXCEPTIONS details

NO_MORE_TABLES -

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

TOO_MANY_FIELDS -

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

NAMETAB_NOT_VALID -

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

HANDLE_NOT_VALID -

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

Copy and paste ABAP code example for STC1_MODIFYFLAGS 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_header  TYPE STRING, "   
lt_nametab  TYPE STANDARD TABLE OF DFIES, "   
lv_no_more_tables  TYPE DFIES, "   
lv_delete_check  TYPE FIELD_DIF-CHKROUTINE, "   
lv_modify_disp_field  TYPE FIELD_DIF-CHKROUTINE, "   
lv_no_insert  TYPE FIELD_DIF, "   
lv_no_delete  TYPE FIELD_DIF, "   
lv_no_move  TYPE FIELD_DIF, "   
lv_no_undo  TYPE FIELD_DIF, "   
lv_no_button  TYPE FIELD_DIF, "   
lv_additional_button  TYPE FIELD_DIF-DIFFTEXT, "   
lv_add_button_call  TYPE FIELD_DIF-PUSH_CALL, "   
lv_add_button_header  TYPE FIELD_DIF-DIFFTEXT, "   
lv_tabname  TYPE DD02L-TABNAME, "   
lt_fielddif  TYPE STANDARD TABLE OF FIELD_DIF, "   
lv_too_many_fields  TYPE FIELD_DIF, "   
lv_add_button_position  TYPE DFIES-POSITION, "   
lt_field_list  TYPE STANDARD TABLE OF TCDAT_FIELDS_TAB, "   
lv_display_only  TYPE TCDAT_FIELDS_TAB, "   
lv_nametab_not_valid  TYPE TCDAT_FIELDS_TAB, "   
lv_endless  TYPE TCDAT_FIELDS_TAB, "   
lt_button_list  TYPE STANDARD TABLE OF TCDAT_ACTIVE_BUTTON_LIST, "   
lv_handle_not_valid  TYPE TCDAT_ACTIVE_BUTTON_LIST, "   
lv_handle  TYPE TCDAT_TAB_HANDLE, "   
lv_display_toggle  TYPE TCDAT_TAB_HANDLE, "   
lv_sort_forbidden  TYPE TCDAT_TAB_HANDLE, "   
lv_modify_check  TYPE FIELD_DIF-CHKROUTINE, "   
lv_insert_check  TYPE FIELD_DIF-CHKROUTINE. "   

  CALL FUNCTION 'STC1_MODIFYFLAGS'  "
    EXPORTING
         HEADER = lv_header
         DELETE_CHECK = lv_delete_check
         MODIFY_DISP_FIELD = lv_modify_disp_field
         NO_INSERT = lv_no_insert
         NO_DELETE = lv_no_delete
         NO_MOVE = lv_no_move
         NO_UNDO = lv_no_undo
         NO_BUTTON = lv_no_button
         ADDITIONAL_BUTTON = lv_additional_button
         ADD_BUTTON_CALL = lv_add_button_call
         ADD_BUTTON_HEADER = lv_add_button_header
         TABNAME = lv_tabname
         ADD_BUTTON_POSITION = lv_add_button_position
         DISPLAY_ONLY = lv_display_only
         ENDLESS = lv_endless
         HANDLE = lv_handle
         DISPLAY_TOGGLE = lv_display_toggle
         SORT_FORBIDDEN = lv_sort_forbidden
         MODIFY_CHECK = lv_modify_check
         INSERT_CHECK = lv_insert_check
    TABLES
         NAMETAB = lt_nametab
         FIELDDIF = lt_fielddif
         FIELD_LIST = lt_field_list
         BUTTON_LIST = lt_button_list
    EXCEPTIONS
        NO_MORE_TABLES = 1
        TOO_MANY_FIELDS = 2
        NAMETAB_NOT_VALID = 3
        HANDLE_NOT_VALID = 4
. " STC1_MODIFYFLAGS




ABAP code using 7.40 inline data declarations to call FM STC1_MODIFYFLAGS

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 CHKROUTINE FROM FIELD_DIF INTO @DATA(ld_delete_check).
 
"SELECT single CHKROUTINE FROM FIELD_DIF INTO @DATA(ld_modify_disp_field).
 
 
 
 
 
 
"SELECT single DIFFTEXT FROM FIELD_DIF INTO @DATA(ld_additional_button).
 
"SELECT single PUSH_CALL FROM FIELD_DIF INTO @DATA(ld_add_button_call).
 
"SELECT single DIFFTEXT FROM FIELD_DIF INTO @DATA(ld_add_button_header).
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_tabname).
 
 
 
"SELECT single POSITION FROM DFIES INTO @DATA(ld_add_button_position).
 
 
 
 
 
 
 
 
 
 
"SELECT single CHKROUTINE FROM FIELD_DIF INTO @DATA(ld_modify_check).
 
"SELECT single CHKROUTINE FROM FIELD_DIF INTO @DATA(ld_insert_check).
 


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!