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

Function CAT_EDIT_MAIN 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 'CAT_EDIT_MAIN'".
EXPORTING
ABLNR = "
* LANGU = SY-LANGU "
* SHOW_ONLY = ' ' "
* TWB_TITLE = "
* TWB_TYPE = "
* USER_MODE = 'E' "
TABLES
* CATFKTC = "
EXCEPTIONS
ABLNR_NOT_FOUND = 1 SYSTEM_ERROR = 2 RELOAD_TC_SHOW = 3 RELOAD_TC_EDIT = 4 RELOAD_TC_PROF = 5 RELOAD_TC_EASY = 6
IMPORTING Parameters details for CAT_EDIT_MAIN
ABLNR -
Data type: CATP-ABLNROptional: No
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_ONLY -
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TWB_TITLE -
Data type: TWB_TITLEOptional: Yes
Call by Reference: No ( called with pass by value option)
TWB_TYPE -
Data type: TWB_TYPOptional: Yes
Call by Reference: No ( called with pass by value option)
USER_MODE -
Data type: CHAR3Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CAT_EDIT_MAIN
CATFKTC -
Data type: SCAT_FKTCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ABLNR_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_ERROR - System Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RELOAD_TC_SHOW -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RELOAD_TC_EDIT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RELOAD_TC_PROF -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RELOAD_TC_EASY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CAT_EDIT_MAIN 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_ablnr | TYPE CATP-ABLNR, " | |||
| lt_catfktc | TYPE STANDARD TABLE OF SCAT_FKTC, " | |||
| lv_ablnr_not_found | TYPE SCAT_FKTC, " | |||
| lv_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_system_error | TYPE SY, " | |||
| lv_show_only | TYPE CHAR1, " SPACE | |||
| lv_reload_tc_show | TYPE CHAR1, " | |||
| lv_twb_title | TYPE TWB_TITLE, " | |||
| lv_reload_tc_edit | TYPE TWB_TITLE, " | |||
| lv_twb_type | TYPE TWB_TYP, " | |||
| lv_reload_tc_prof | TYPE TWB_TYP, " | |||
| lv_user_mode | TYPE CHAR3, " 'E' | |||
| lv_reload_tc_easy | TYPE CHAR3. " |
|   CALL FUNCTION 'CAT_EDIT_MAIN' " |
| EXPORTING | ||
| ABLNR | = lv_ablnr | |
| LANGU | = lv_langu | |
| SHOW_ONLY | = lv_show_only | |
| TWB_TITLE | = lv_twb_title | |
| TWB_TYPE | = lv_twb_type | |
| USER_MODE | = lv_user_mode | |
| TABLES | ||
| CATFKTC | = lt_catfktc | |
| EXCEPTIONS | ||
| ABLNR_NOT_FOUND = 1 | ||
| SYSTEM_ERROR = 2 | ||
| RELOAD_TC_SHOW = 3 | ||
| RELOAD_TC_EDIT = 4 | ||
| RELOAD_TC_PROF = 5 | ||
| RELOAD_TC_EASY = 6 | ||
| . " CAT_EDIT_MAIN | ||
ABAP code using 7.40 inline data declarations to call FM CAT_EDIT_MAIN
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 ABLNR FROM CATP INTO @DATA(ld_ablnr). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
| DATA(ld_langu) | = SY-LANGU. | |||
| DATA(ld_show_only) | = ' '. | |||
| DATA(ld_user_mode) | = 'E'. | |||
Search for further information about these or an SAP related objects