SAP PRICAT_MATERIAL_SAVE Function Module for PRICAT: Update of Articles









PRICAT_MATERIAL_SAVE is a standard pricat material save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for PRICAT: Update of Articles 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 pricat material save FM, simply by entering the name PRICAT_MATERIAL_SAVE into the relevant SAP transaction such as SE37 or SE38.

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



Function PRICAT_MATERIAL_SAVE 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 'PRICAT_MATERIAL_SAVE'"PRICAT: Update of Articles
EXPORTING
IS_PRICAT_K003Z_VB = "Copy of table PRICAT_K003z for posting the material
IV_REF_MATL = "Reference Material

CHANGING
RS_PRICAT_K001 = "PRICAT: Catalog Header
RS_PRICAT_K003_VB = "Copy of table PRICAT_K003 for posting the material
RV_LOG_NR = "Application Log: Log Number
RS_PRICAT_S_IN = "API BOM Header Structure: Fields That Can Be Changed

TABLES
* IT_PRICAT_K004_VB_DEL = "Copy of table PRICAT_K004 for posting material
IT_PRICAT_K004_VB = "Copy of table PRICAT_K004 for posting material
IT_PRICAT_K005_VB = "Copy of structure Bapimltxrt for posting texts
IT_PRICAT_K005B_VB = "Copy of structure Bapie1mamrt for posting till receipt texts
IT_PRICAT_K005K_VB = "Copy of structure Bapie1maktrt for posting short texts
IT_PRICAT_K006_VB = "Copy of structure Bapie1ausprt for posting characteristics
IT_PRICAT_K007_VB = "Copy of Structure for Posting Displays

EXCEPTIONS
MATERIAL_NOT_SAVED = 1 POSITION_NOT_SAVED = 2 UNIT_NOT_SAVED = 3 NUMBER_ERROR = 4 GET_NUMBER_ERROR = 5 BOM_NOT_SAVED = 6 HEADER_NOT_SAVED = 7
.



IMPORTING Parameters details for PRICAT_MATERIAL_SAVE

IS_PRICAT_K003Z_VB - Copy of table PRICAT_K003z for posting the material

Data type: PRICAT_K003Z_VB
Optional: No
Call by Reference: Yes

IV_REF_MATL - Reference Material

Data type: MATNR
Optional: No
Call by Reference: Yes

CHANGING Parameters details for PRICAT_MATERIAL_SAVE

RS_PRICAT_K001 - PRICAT: Catalog Header

Data type: PRICAT_K001
Optional: No
Call by Reference: Yes

RS_PRICAT_K003_VB - Copy of table PRICAT_K003 for posting the material

Data type: PRICAT_K003_VB
Optional: No
Call by Reference: Yes

RV_LOG_NR - Application Log: Log Number

Data type: BALOGNR
Optional: No
Call by Reference: Yes

RS_PRICAT_S_IN - API BOM Header Structure: Fields That Can Be Changed

Data type: PRICAT_S_IN
Optional: No
Call by Reference: Yes

TABLES Parameters details for PRICAT_MATERIAL_SAVE

IT_PRICAT_K004_VB_DEL - Copy of table PRICAT_K004 for posting material

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

IT_PRICAT_K004_VB - Copy of table PRICAT_K004 for posting material

Data type: PRICAT_K004_VB
Optional: No
Call by Reference: Yes

IT_PRICAT_K005_VB - Copy of structure Bapimltxrt for posting texts

Data type: PRICAT_K005_VB
Optional: No
Call by Reference: Yes

IT_PRICAT_K005B_VB - Copy of structure Bapie1mamrt for posting till receipt texts

Data type: PRICAT_K005B_VB
Optional: No
Call by Reference: Yes

IT_PRICAT_K005K_VB - Copy of structure Bapie1maktrt for posting short texts

Data type: PRICAT_K005K_VB
Optional: No
Call by Reference: Yes

IT_PRICAT_K006_VB - Copy of structure Bapie1ausprt for posting characteristics

Data type: PRICAT_K006_VB
Optional: No
Call by Reference: Yes

IT_PRICAT_K007_VB - Copy of Structure for Posting Displays

Data type: PRICAT_K007_VB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

MATERIAL_NOT_SAVED -

Data type:
Optional: No
Call by Reference: Yes

POSITION_NOT_SAVED -

Data type:
Optional: No
Call by Reference: Yes

UNIT_NOT_SAVED -

Data type:
Optional: No
Call by Reference: Yes

NUMBER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

GET_NUMBER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

BOM_NOT_SAVED -

Data type:
Optional: No
Call by Reference: Yes

HEADER_NOT_SAVED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PRICAT_MATERIAL_SAVE 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_rs_pricat_k001  TYPE PRICAT_K001, "   
lv_is_pricat_k003z_vb  TYPE PRICAT_K003Z_VB, "   
lv_material_not_saved  TYPE PRICAT_K003Z_VB, "   
lt_it_pricat_k004_vb_del  TYPE STANDARD TABLE OF PRICAT_K004_VB, "   
lv_iv_ref_matl  TYPE MATNR, "   
lt_it_pricat_k004_vb  TYPE STANDARD TABLE OF PRICAT_K004_VB, "   
lv_rs_pricat_k003_vb  TYPE PRICAT_K003_VB, "   
lv_position_not_saved  TYPE PRICAT_K003_VB, "   
lv_rv_log_nr  TYPE BALOGNR, "   
lv_unit_not_saved  TYPE BALOGNR, "   
lt_it_pricat_k005_vb  TYPE STANDARD TABLE OF PRICAT_K005_VB, "   
lv_number_error  TYPE PRICAT_K005_VB, "   
lv_rs_pricat_s_in  TYPE PRICAT_S_IN, "   
lt_it_pricat_k005b_vb  TYPE STANDARD TABLE OF PRICAT_K005B_VB, "   
lv_get_number_error  TYPE PRICAT_K005B_VB, "   
lt_it_pricat_k005k_vb  TYPE STANDARD TABLE OF PRICAT_K005K_VB, "   
lv_bom_not_saved  TYPE PRICAT_K005K_VB, "   
lt_it_pricat_k006_vb  TYPE STANDARD TABLE OF PRICAT_K006_VB, "   
lv_header_not_saved  TYPE PRICAT_K006_VB, "   
lt_it_pricat_k007_vb  TYPE STANDARD TABLE OF PRICAT_K007_VB. "   

  CALL FUNCTION 'PRICAT_MATERIAL_SAVE'  "PRICAT: Update of Articles
    EXPORTING
         IS_PRICAT_K003Z_VB = lv_is_pricat_k003z_vb
         IV_REF_MATL = lv_iv_ref_matl
    CHANGING
         RS_PRICAT_K001 = lv_rs_pricat_k001
         RS_PRICAT_K003_VB = lv_rs_pricat_k003_vb
         RV_LOG_NR = lv_rv_log_nr
         RS_PRICAT_S_IN = lv_rs_pricat_s_in
    TABLES
         IT_PRICAT_K004_VB_DEL = lt_it_pricat_k004_vb_del
         IT_PRICAT_K004_VB = lt_it_pricat_k004_vb
         IT_PRICAT_K005_VB = lt_it_pricat_k005_vb
         IT_PRICAT_K005B_VB = lt_it_pricat_k005b_vb
         IT_PRICAT_K005K_VB = lt_it_pricat_k005k_vb
         IT_PRICAT_K006_VB = lt_it_pricat_k006_vb
         IT_PRICAT_K007_VB = lt_it_pricat_k007_vb
    EXCEPTIONS
        MATERIAL_NOT_SAVED = 1
        POSITION_NOT_SAVED = 2
        UNIT_NOT_SAVED = 3
        NUMBER_ERROR = 4
        GET_NUMBER_ERROR = 5
        BOM_NOT_SAVED = 6
        HEADER_NOT_SAVED = 7
. " PRICAT_MATERIAL_SAVE




ABAP code using 7.40 inline data declarations to call FM PRICAT_MATERIAL_SAVE

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



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!