SAP DPWTY_DEFECT_CATALOG_RFC Function Module for RFC get defect codes









DPWTY_DEFECT_CATALOG_RFC is a standard dpwty defect catalog rfc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RFC get defect codes 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 dpwty defect catalog rfc FM, simply by entering the name DPWTY_DEFECT_CATALOG_RFC into the relevant SAP transaction such as SE37 or SE38.

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



Function DPWTY_DEFECT_CATALOG_RFC 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 'DPWTY_DEFECT_CATALOG_RFC'"RFC get defect codes
EXPORTING
* IV_CATALOG = "Catalog Code
* IV_LANGU = "Language Key
* IV_KATART = 'C' "Catalog QM
* IV_KATNR = "Number in Catalog
* IV_MAXIMUM_ROW = '500' "Maximum row export table
* IV_KATXT = "Catalog Description for Display in Warranty Claim

IMPORTING
EV_CATALOG_STRUC = "Template for Number in Catalog
EV_CATALOG_STEP = "Hierarchy Levels of Catalog
ET_CATALOG = "Catalof transfer structure

CHANGING
* CV_DEFCD = "Defect Code Number
.



IMPORTING Parameters details for DPWTY_DEFECT_CATALOG_RFC

IV_CATALOG - Catalog Code

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

IV_LANGU - Language Key

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

IV_KATART - Catalog QM

Data type: CHAR1
Default: 'C'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_KATNR - Number in Catalog

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

IV_MAXIMUM_ROW - Maximum row export table

Data type: SY-TABIX
Default: '500'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_KATXT - Catalog Description for Display in Warranty Claim

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

EXPORTING Parameters details for DPWTY_DEFECT_CATALOG_RFC

EV_CATALOG_STRUC - Template for Number in Catalog

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

EV_CATALOG_STEP - Hierarchy Levels of Catalog

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

ET_CATALOG - Catalof transfer structure

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

CHANGING Parameters details for DPWTY_DEFECT_CATALOG_RFC

CV_DEFCD - Defect Code Number

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

Copy and paste ABAP code example for DPWTY_DEFECT_CATALOG_RFC 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_cv_defcd  TYPE WTY_DEFCT, "   
lv_iv_catalog  TYPE WTY_KATKZ, "   
lv_ev_catalog_struc  TYPE CHAR30, "   
lv_iv_langu  TYPE SPRAS, "   
lv_ev_catalog_step  TYPE CHAR30, "   
lv_iv_katart  TYPE CHAR1, "   'C'
lv_et_catalog  TYPE DPWTY_T_CATALOG, "   
lv_iv_katnr  TYPE WTY_KATNR, "   
lv_iv_maximum_row  TYPE SY-TABIX, "   '500'
lv_iv_katxt  TYPE WTY_KATTXT. "   

  CALL FUNCTION 'DPWTY_DEFECT_CATALOG_RFC'  "RFC get defect codes
    EXPORTING
         IV_CATALOG = lv_iv_catalog
         IV_LANGU = lv_iv_langu
         IV_KATART = lv_iv_katart
         IV_KATNR = lv_iv_katnr
         IV_MAXIMUM_ROW = lv_iv_maximum_row
         IV_KATXT = lv_iv_katxt
    IMPORTING
         EV_CATALOG_STRUC = lv_ev_catalog_struc
         EV_CATALOG_STEP = lv_ev_catalog_step
         ET_CATALOG = lv_et_catalog
    CHANGING
         CV_DEFCD = lv_cv_defcd
. " DPWTY_DEFECT_CATALOG_RFC




ABAP code using 7.40 inline data declarations to call FM DPWTY_DEFECT_CATALOG_RFC

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_katart) = 'C'.
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_iv_maximum_row).
DATA(ld_iv_maximum_row) = '500'.
 
 


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!