SAP PRICAT_READ Function Module for PRICAT: Read All Details for a Catalog Item









PRICAT_READ is a standard pricat read 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: Read All Details for a Catalog Item 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 read FM, simply by entering the name PRICAT_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function PRICAT_READ 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_READ'"PRICAT: Read All Details for a Catalog Item
EXPORTING
PRICECATALOGUE = "PRICAT: Catalog Header

IMPORTING
PS_PRICAT_K001 = "PRICAT: Transfer structure catalog header Pricat_K001
PT_PRICAT_K010 = "Price Catalog: Additional Catalog Fields
PT_PRICAT_K010S = "Price Catalog: Table Type for Structure Fields Information

TABLES
* PT_PRICAT_K00A = "PRICAT: Assortments of the Price Catalog
* PT_PRICAT_K007 = "PRICAT: Catalog Item Bills of Material
* PT_PRICAT_K008 = "PRICAT: Catalog Item Prices / Conditions / Taxes
* PT_PRICAT_K008C = "PRICAT: Catalog Item Prices / Conditions / Taxes
* PT_PRICAT_K009C = "PRICAT: Catalog Item Scales for the Condition for Each Customer
* PT_PRICAT_K00C = "PRICAT: Customer of a Price Catalog
* PT_PRICAT_K002 = "PRICAT: Catalog Item Product Groups
* PT_PRICAT_K003 = "PRICAT: Catalog Item Basic Data
* PT_PRICAT_K003Z = "PRICAT: Catalog Item Basic Data Extras
* PT_PRICAT_K003S = "PRICAT: Status of the Catalog Item per Customer
* PT_PRICAT_K004 = "PRICAT: Catalog Item Units of Measure, Dimensions, Weights, EANs/UPCs
* PT_PRICAT_K005 = "PRICAT: Catalog Item Texts
* PT_PRICAT_K006 = "PRICAT: Catalog Item Characteristics

EXCEPTIONS
CATALOGUE_NOT_FOUND = 1 APPL_LOG_ERROR = 2
.



IMPORTING Parameters details for PRICAT_READ

PRICECATALOGUE - PRICAT: Catalog Header

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

EXPORTING Parameters details for PRICAT_READ

PS_PRICAT_K001 - PRICAT: Transfer structure catalog header Pricat_K001

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

PT_PRICAT_K010 - Price Catalog: Additional Catalog Fields

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

PT_PRICAT_K010S - Price Catalog: Table Type for Structure Fields Information

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

TABLES Parameters details for PRICAT_READ

PT_PRICAT_K00A - PRICAT: Assortments of the Price Catalog

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

PT_PRICAT_K007 - PRICAT: Catalog Item Bills of Material

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

PT_PRICAT_K008 - PRICAT: Catalog Item Prices / Conditions / Taxes

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

PT_PRICAT_K008C - PRICAT: Catalog Item Prices / Conditions / Taxes

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

PT_PRICAT_K009C - PRICAT: Catalog Item Scales for the Condition for Each Customer

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

PT_PRICAT_K00C - PRICAT: Customer of a Price Catalog

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

PT_PRICAT_K002 - PRICAT: Catalog Item Product Groups

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

PT_PRICAT_K003 - PRICAT: Catalog Item Basic Data

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

PT_PRICAT_K003Z - PRICAT: Catalog Item Basic Data Extras

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

PT_PRICAT_K003S - PRICAT: Status of the Catalog Item per Customer

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

PT_PRICAT_K004 - PRICAT: Catalog Item Units of Measure, Dimensions, Weights, EANs/UPCs

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

PT_PRICAT_K005 - PRICAT: Catalog Item Texts

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

PT_PRICAT_K006 - PRICAT: Catalog Item Characteristics

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

EXCEPTIONS details

CATALOGUE_NOT_FOUND - Item does not exist

Data type:
Optional: No
Call by Reference: Yes

APPL_LOG_ERROR - Error in Log Processing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PRICAT_READ 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_pricecatalogue  TYPE PRICAT_K003-PRINBR, "   
lv_ps_pricat_k001  TYPE PRICAT_K001, "   
lt_pt_pricat_k00a  TYPE STANDARD TABLE OF PRICAT_K00A, "   
lv_catalogue_not_found  TYPE PRICAT_K00A, "   
lt_pt_pricat_k007  TYPE STANDARD TABLE OF PRICAT_K007, "   
lt_pt_pricat_k008  TYPE STANDARD TABLE OF PRICAT_K008, "   
lt_pt_pricat_k008c  TYPE STANDARD TABLE OF PRICAT_K008C, "   
lt_pt_pricat_k009c  TYPE STANDARD TABLE OF PRICAT_K009C, "   
lv_appl_log_error  TYPE PRICAT_K009C, "   
lt_pt_pricat_k00c  TYPE STANDARD TABLE OF PRICAT_K00C, "   
lv_pt_pricat_k010  TYPE TT_PRICAT_K010, "   
lt_pt_pricat_k002  TYPE STANDARD TABLE OF PRICAT_K002, "   
lv_pt_pricat_k010s  TYPE TT_PRICAT_K010S, "   
lt_pt_pricat_k003  TYPE STANDARD TABLE OF PRICAT_K003, "   
lt_pt_pricat_k003z  TYPE STANDARD TABLE OF PRICAT_K003Z, "   
lt_pt_pricat_k003s  TYPE STANDARD TABLE OF PRICAT_K003S, "   
lt_pt_pricat_k004  TYPE STANDARD TABLE OF PRICAT_K004, "   
lt_pt_pricat_k005  TYPE STANDARD TABLE OF PRICAT_K005, "   
lt_pt_pricat_k006  TYPE STANDARD TABLE OF PRICAT_K006. "   

  CALL FUNCTION 'PRICAT_READ'  "PRICAT: Read All Details for a Catalog Item
    EXPORTING
         PRICECATALOGUE = lv_pricecatalogue
    IMPORTING
         PS_PRICAT_K001 = lv_ps_pricat_k001
         PT_PRICAT_K010 = lv_pt_pricat_k010
         PT_PRICAT_K010S = lv_pt_pricat_k010s
    TABLES
         PT_PRICAT_K00A = lt_pt_pricat_k00a
         PT_PRICAT_K007 = lt_pt_pricat_k007
         PT_PRICAT_K008 = lt_pt_pricat_k008
         PT_PRICAT_K008C = lt_pt_pricat_k008c
         PT_PRICAT_K009C = lt_pt_pricat_k009c
         PT_PRICAT_K00C = lt_pt_pricat_k00c
         PT_PRICAT_K002 = lt_pt_pricat_k002
         PT_PRICAT_K003 = lt_pt_pricat_k003
         PT_PRICAT_K003Z = lt_pt_pricat_k003z
         PT_PRICAT_K003S = lt_pt_pricat_k003s
         PT_PRICAT_K004 = lt_pt_pricat_k004
         PT_PRICAT_K005 = lt_pt_pricat_k005
         PT_PRICAT_K006 = lt_pt_pricat_k006
    EXCEPTIONS
        CATALOGUE_NOT_FOUND = 1
        APPL_LOG_ERROR = 2
. " PRICAT_READ




ABAP code using 7.40 inline data declarations to call FM PRICAT_READ

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 PRINBR FROM PRICAT_K003 INTO @DATA(ld_pricecatalogue).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!