SAP /SAPAPO/DM_CATPRT_READ_RANGES Function Module for Read Ranges for Partner Product Categories









/SAPAPO/DM_CATPRT_READ_RANGES is a standard /sapapo/dm catprt read ranges SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Ranges for Partner Product Categories 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 /sapapo/dm catprt read ranges FM, simply by entering the name /SAPAPO/DM_CATPRT_READ_RANGES into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SAPAPO/DM_MATPRT_READ
Program Name: /SAPAPO/SAPLDM_MATPRT_READ
Main Program: /SAPAPO/SAPLDM_MATPRT_READ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /SAPAPO/DM_CATPRT_READ_RANGES 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 '/SAPAPO/DM_CATPRT_READ_RANGES'"Read Ranges for Partner Product Categories
EXPORTING
* IV_LANGU = "Sprachenschlüssel
* IV_MAXROWS = 100 "
IT_RANGES = "Tabelle für Ranges mit Feldnamen

TABLES
* ET_CATPRT_OUT = "Ext. Ausgabestruktur für Partnerprodukt Kategorien
* ET_CATPRTXT_OUT = "Ext. Ausgabestruktur für Partnerprodukt Kategorien Beschreib

EXCEPTIONS
NOT_QUALIFIED = 1 TOO_MANY_ENTRIES_IN_RANGES = 2
.



IMPORTING Parameters details for /SAPAPO/DM_CATPRT_READ_RANGES

IV_LANGU - Sprachenschlüssel

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

IV_MAXROWS -

Data type: I
Default: 100
Optional: No
Call by Reference: No ( called with pass by value option)

IT_RANGES - Tabelle für Ranges mit Feldnamen

Data type: /SAPAPO/DM_FRANGE_T
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /SAPAPO/DM_CATPRT_READ_RANGES

ET_CATPRT_OUT - Ext. Ausgabestruktur für Partnerprodukt Kategorien

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

ET_CATPRTXT_OUT - Ext. Ausgabestruktur für Partnerprodukt Kategorien Beschreib

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

EXCEPTIONS details

NOT_QUALIFIED -

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

TOO_MANY_ENTRIES_IN_RANGES -

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

Copy and paste ABAP code example for /SAPAPO/DM_CATPRT_READ_RANGES 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_iv_langu  TYPE LANGU, "   
lt_et_catprt_out  TYPE STANDARD TABLE OF /SAPAPO/DM_CATPRT_OUT, "   
lv_not_qualified  TYPE /SAPAPO/DM_CATPRT_OUT, "   
lv_iv_maxrows  TYPE I, "   100
lt_et_catprtxt_out  TYPE STANDARD TABLE OF /SAPAPO/DM_CATPRTXT_OUT, "   
lv_too_many_entries_in_ranges  TYPE /SAPAPO/DM_CATPRTXT_OUT, "   
lv_it_ranges  TYPE /SAPAPO/DM_FRANGE_T. "   

  CALL FUNCTION '/SAPAPO/DM_CATPRT_READ_RANGES'  "Read Ranges for Partner Product Categories
    EXPORTING
         IV_LANGU = lv_iv_langu
         IV_MAXROWS = lv_iv_maxrows
         IT_RANGES = lv_it_ranges
    TABLES
         ET_CATPRT_OUT = lt_et_catprt_out
         ET_CATPRTXT_OUT = lt_et_catprtxt_out
    EXCEPTIONS
        NOT_QUALIFIED = 1
        TOO_MANY_ENTRIES_IN_RANGES = 2
. " /SAPAPO/DM_CATPRT_READ_RANGES




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_CATPRT_READ_RANGES

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.

 
 
 
DATA(ld_iv_maxrows) = 100.
 
 
 
 


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!