SAP RS_CATT_MAINTAIN Function Module for
RS_CATT_MAINTAIN is a standard rs catt maintain 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 rs catt maintain FM, simply by entering the name RS_CATT_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: STTF
Program Name: SAPLSTTF
Main Program: SAPLSTTF
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RS_CATT_MAINTAIN 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 'RS_CATT_MAINTAIN'".
EXPORTING
* ABLNR = ' ' "
* KORRNUM = ' ' "Correction Number
* CATTTYP = 'C' "
* KTEXT = ' ' "
* BAUSTEIN = ' ' "
* TEILOBJEKT = 'FUNC' "Sub-object ATTR FUNK TEXT PARA ENTR
* AKTION = 'SHOW' "SHOW EDIT ADD DELE COPY
* FIRSTLINE = 1 "SHOW EDIT / FUNK PARA TEXT positioning
* CONFIRMATION = 'X' "Delete confirmation prompt
* WITH_NAVI = ' ' "With navigation functions
* TCODE = ' ' "
* FBAU = ' ' "
* DEVCLASS = '$TMP' "Package
IMPORTING
ABLNR = "
EXCEPTIONS
WRONG_CALL = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for RS_CATT_MAINTAIN
ABLNR -
Data type: CATA-ABLNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KORRNUM - Correction Number
Data type: E070-TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CATTTYP -
Data type: CATA-ATYPDefault: 'C'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KTEXT -
Data type: CATG-KTEXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BAUSTEIN -
Data type: CATA-MODELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEILOBJEKT - Sub-object ATTR FUNK TEXT PARA ENTR
Data type:Default: 'FUNC'
Optional: Yes
Call by Reference: No ( called with pass by value option)
AKTION - SHOW EDIT ADD DELE COPY
Data type:Default: 'SHOW'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIRSTLINE - SHOW EDIT / FUNK PARA TEXT positioning
Data type: CATF-LFDNRDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONFIRMATION - Delete confirmation prompt
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_NAVI - With navigation functions
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TCODE -
Data type: TSTC-TCODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FBAU -
Data type: RS38L-NAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEVCLASS - Package
Data type: TADIR-DEVCLASSDefault: '$TMP'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RS_CATT_MAINTAIN
ABLNR -
Data type: CATA-ABLNROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_CALL - Incorrect module call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RS_CATT_MAINTAIN 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 CATA-ABLNR, " | |||
lv_ablnr | TYPE CATA-ABLNR, " SPACE | |||
lv_wrong_call | TYPE CATA, " | |||
lv_korrnum | TYPE E070-TRKORR, " SPACE | |||
lv_catttyp | TYPE CATA-ATYP, " 'C' | |||
lv_ktext | TYPE CATG-KTEXT, " SPACE | |||
lv_baustein | TYPE CATA-MODEL, " SPACE | |||
lv_teilobjekt | TYPE CATA, " 'FUNC' | |||
lv_internal_error | TYPE CATA, " | |||
lv_aktion | TYPE CATA, " 'SHOW' | |||
lv_firstline | TYPE CATF-LFDNR, " 1 | |||
lv_confirmation | TYPE CATF, " 'X' | |||
lv_with_navi | TYPE CATF, " SPACE | |||
lv_tcode | TYPE TSTC-TCODE, " SPACE | |||
lv_fbau | TYPE RS38L-NAME, " SPACE | |||
lv_devclass | TYPE TADIR-DEVCLASS. " '$TMP' |
  CALL FUNCTION 'RS_CATT_MAINTAIN' " |
EXPORTING | ||
ABLNR | = lv_ablnr | |
KORRNUM | = lv_korrnum | |
CATTTYP | = lv_catttyp | |
KTEXT | = lv_ktext | |
BAUSTEIN | = lv_baustein | |
TEILOBJEKT | = lv_teilobjekt | |
AKTION | = lv_aktion | |
FIRSTLINE | = lv_firstline | |
CONFIRMATION | = lv_confirmation | |
WITH_NAVI | = lv_with_navi | |
TCODE | = lv_tcode | |
FBAU | = lv_fbau | |
DEVCLASS | = lv_devclass | |
IMPORTING | ||
ABLNR | = lv_ablnr | |
EXCEPTIONS | ||
WRONG_CALL = 1 | ||
INTERNAL_ERROR = 2 | ||
. " RS_CATT_MAINTAIN |
ABAP code using 7.40 inline data declarations to call FM RS_CATT_MAINTAIN
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 CATA INTO @DATA(ld_ablnr). | ||||
"SELECT single ABLNR FROM CATA INTO @DATA(ld_ablnr). | ||||
DATA(ld_ablnr) | = ' '. | |||
"SELECT single TRKORR FROM E070 INTO @DATA(ld_korrnum). | ||||
DATA(ld_korrnum) | = ' '. | |||
"SELECT single ATYP FROM CATA INTO @DATA(ld_catttyp). | ||||
DATA(ld_catttyp) | = 'C'. | |||
"SELECT single KTEXT FROM CATG INTO @DATA(ld_ktext). | ||||
DATA(ld_ktext) | = ' '. | |||
"SELECT single MODEL FROM CATA INTO @DATA(ld_baustein). | ||||
DATA(ld_baustein) | = ' '. | |||
DATA(ld_teilobjekt) | = 'FUNC'. | |||
DATA(ld_aktion) | = 'SHOW'. | |||
"SELECT single LFDNR FROM CATF INTO @DATA(ld_firstline). | ||||
DATA(ld_firstline) | = 1. | |||
DATA(ld_confirmation) | = 'X'. | |||
DATA(ld_with_navi) | = ' '. | |||
"SELECT single TCODE FROM TSTC INTO @DATA(ld_tcode). | ||||
DATA(ld_tcode) | = ' '. | |||
"SELECT single NAME FROM RS38L INTO @DATA(ld_fbau). | ||||
DATA(ld_fbau) | = ' '. | |||
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_devclass). | ||||
DATA(ld_devclass) | = '$TMP'. | |||
Search for further information about these or an SAP related objects