SAP SAVE_CATALOG_ITEM Function Module for Update task for catalog item save
SAVE_CATALOG_ITEM is a standard save catalog item SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update task for catalog item save processing and below is the pattern details for this FM, 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 save catalog item FM, simply by entering the name SAVE_CATALOG_ITEM into the relevant SAP transaction such as SE37 or SE38.
Function Group: MMPUR_CATALOGITEM_MNG
Program Name: SAPLMMPUR_CATALOGITEM_MNG
Main Program: SAPLMMPUR_CATALOGITEM_MNG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1

Function SAVE_CATALOG_ITEM 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 'SAVE_CATALOG_ITEM'"Update task for catalog item save.
EXPORTING
IT_CATALOG_ITEM = "Cat itm table type
* IT_CATALOG_DESC = "table type for descriptions text
* IT_CATALOG_LNGTXT = "Table type for long text
* IT_SEARCH_TERM = "Table type for search terms
* IT_CATALOG_PRICE = "Price conversion table type
* IT_CATALOG_IMAGE = "Table type for attachment
* IT_CATALOG_IMAGE_MAIN = "Tablt type for attachment main
IV_NEW_ITEM = "Boolean Variable (X=true, -=false, space=unknown)
* IV_ACTIVATE = "Check for activate/deactivate
EXCEPTIONS
DB_FAILURE = 1
IMPORTING Parameters details for SAVE_CATALOG_ITEM
IT_CATALOG_ITEM - Cat itm table type
Data type: MMPUR_CAT_T_CAT_ITMOptional: No
Call by Reference: No ( called with pass by value option)
IT_CATALOG_DESC - table type for descriptions text
Data type: MMPUR_CAT_T_DESCTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_CATALOG_LNGTXT - Table type for long text
Data type: MMPUR_CAT_T_LONGTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_SEARCH_TERM - Table type for search terms
Data type: MMPUR_CAT_T_SRCHTRMOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_CATALOG_PRICE - Price conversion table type
Data type: MMPUR_CAT_T_PRCCONVOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_CATALOG_IMAGE - Table type for attachment
Data type: MMPUR_CAT_T_ATCHMNTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_CATALOG_IMAGE_MAIN - Tablt type for attachment main
Data type: MMPUR_CAT_T_ATT_MAINOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NEW_ITEM - Boolean Variable (X=true, -=false, space=unknown)
Data type: BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
IV_ACTIVATE - Check for activate/deactivate
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DB_FAILURE - DB insert/update failure
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SAVE_CATALOG_ITEM 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_db_failure | TYPE STRING, " | |||
| lv_it_catalog_item | TYPE MMPUR_CAT_T_CAT_ITM, " | |||
| lv_it_catalog_desc | TYPE MMPUR_CAT_T_DESCTXT, " | |||
| lv_it_catalog_lngtxt | TYPE MMPUR_CAT_T_LONGTXT, " | |||
| lv_it_search_term | TYPE MMPUR_CAT_T_SRCHTRM, " | |||
| lv_it_catalog_price | TYPE MMPUR_CAT_T_PRCCONV, " | |||
| lv_it_catalog_image | TYPE MMPUR_CAT_T_ATCHMNT, " | |||
| lv_it_catalog_image_main | TYPE MMPUR_CAT_T_ATT_MAIN, " | |||
| lv_iv_new_item | TYPE BOOLEAN, " | |||
| lv_iv_activate | TYPE FLAG. " |
|   CALL FUNCTION 'SAVE_CATALOG_ITEM' "Update task for catalog item save |
| EXPORTING | ||
| IT_CATALOG_ITEM | = lv_it_catalog_item | |
| IT_CATALOG_DESC | = lv_it_catalog_desc | |
| IT_CATALOG_LNGTXT | = lv_it_catalog_lngtxt | |
| IT_SEARCH_TERM | = lv_it_search_term | |
| IT_CATALOG_PRICE | = lv_it_catalog_price | |
| IT_CATALOG_IMAGE | = lv_it_catalog_image | |
| IT_CATALOG_IMAGE_MAIN | = lv_it_catalog_image_main | |
| IV_NEW_ITEM | = lv_iv_new_item | |
| IV_ACTIVATE | = lv_iv_activate | |
| EXCEPTIONS | ||
| DB_FAILURE = 1 | ||
| . " SAVE_CATALOG_ITEM | ||
ABAP code using 7.40 inline data declarations to call FM SAVE_CATALOG_ITEM
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.Search for further information about these or an SAP related objects