SAP PVSCUST_PRTYPE_READ Function Module for NOTRANSL: ermittelt die möglichen PNDREL Typen zwische 2 Knoten









PVSCUST_PRTYPE_READ is a standard pvscust prtype 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 NOTRANSL: ermittelt die möglichen PNDREL Typen zwische 2 Knoten 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 pvscust prtype read FM, simply by entering the name PVSCUST_PRTYPE_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function PVSCUST_PRTYPE_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 'PVSCUST_PRTYPE_READ'"NOTRANSL: ermittelt die möglichen PNDREL Typen zwische 2 Knoten
EXPORTING
* IM_PRTYPE = "iPPE Relationship Type
* IM_OWNER = "Assignment to Function Groups
* IM_LANGU = SY-LANGU "ABAP System Field: Language Key of Text Environment
* IV_BUFFER_RESET = "Generic Type
* IM_PTYPE1 = "iPPE Object Type 1 (Node, Alternative, Variant)
* IM_OTYPE1 = "iPPE Object Type 1
* IM_PTYPE2 = "iPPE Object Type 2 (Node, Alternative, Variant)
* IM_OTYPE2 = "iPPE Object Type 2
* IM_APPLREL_TYPE = "iPPE Application Object Type
* IM_PREL_TYPE = "iPPE Relationship Type
* WITH_HIDE_PXTYPES = "Generic Type
* WITH_HIDE_PRTYPES = "Generic Type

IMPORTING
EX_PRTYPE_TAB = "
EX_PRTYPE_NAME_TAB = "

EXCEPTIONS
UNKNOWN_PREL_TYPE = 1
.



IMPORTING Parameters details for PVSCUST_PRTYPE_READ

IM_PRTYPE - iPPE Relationship Type

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

IM_OWNER - Assignment to Function Groups

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

IM_LANGU - ABAP System Field: Language Key of Text Environment

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

IV_BUFFER_RESET - Generic Type

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

IM_PTYPE1 - iPPE Object Type 1 (Node, Alternative, Variant)

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

IM_OTYPE1 - iPPE Object Type 1

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

IM_PTYPE2 - iPPE Object Type 2 (Node, Alternative, Variant)

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

IM_OTYPE2 - iPPE Object Type 2

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

IM_APPLREL_TYPE - iPPE Application Object Type

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

IM_PREL_TYPE - iPPE Relationship Type

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

WITH_HIDE_PXTYPES - Generic Type

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

WITH_HIDE_PRTYPES - Generic Type

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

EXPORTING Parameters details for PVSCUST_PRTYPE_READ

EX_PRTYPE_TAB -

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

EX_PRTYPE_NAME_TAB -

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

EXCEPTIONS details

UNKNOWN_PREL_TYPE -

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

Copy and paste ABAP code example for PVSCUST_PRTYPE_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_im_prtype  TYPE CPRTYPE-PRTYPE, "   
lv_ex_prtype_tab  TYPE PPET_PRTYPE_TAB, "   
lv_unknown_prel_type  TYPE PPET_PRTYPE_TAB, "   
lv_im_owner  TYPE PPE_OWNER, "   
lv_im_langu  TYPE SY-LANGU, "   SY-LANGU
lv_iv_buffer_reset  TYPE C, "   
lv_im_ptype1  TYPE CPRTYPE-PTYPE1, "   
lv_ex_prtype_name_tab  TYPE PPET_TYPE_NAME_TAB, "   
lv_im_otype1  TYPE CPRTYPE-OTYPE1, "   
lv_im_ptype2  TYPE CPRTYPE-PTYPE2, "   
lv_im_otype2  TYPE CPRTYPE-OTYPE2, "   
lv_im_applrel_type  TYPE CPRTYPE-APPLREL_TYPE, "   
lv_im_prel_type  TYPE CPRTYPE-PREL_TYPE, "   
lv_with_hide_pxtypes  TYPE C, "   
lv_with_hide_prtypes  TYPE C. "   

  CALL FUNCTION 'PVSCUST_PRTYPE_READ'  "NOTRANSL: ermittelt die möglichen PNDREL Typen zwische 2 Knoten
    EXPORTING
         IM_PRTYPE = lv_im_prtype
         IM_OWNER = lv_im_owner
         IM_LANGU = lv_im_langu
         IV_BUFFER_RESET = lv_iv_buffer_reset
         IM_PTYPE1 = lv_im_ptype1
         IM_OTYPE1 = lv_im_otype1
         IM_PTYPE2 = lv_im_ptype2
         IM_OTYPE2 = lv_im_otype2
         IM_APPLREL_TYPE = lv_im_applrel_type
         IM_PREL_TYPE = lv_im_prel_type
         WITH_HIDE_PXTYPES = lv_with_hide_pxtypes
         WITH_HIDE_PRTYPES = lv_with_hide_prtypes
    IMPORTING
         EX_PRTYPE_TAB = lv_ex_prtype_tab
         EX_PRTYPE_NAME_TAB = lv_ex_prtype_name_tab
    EXCEPTIONS
        UNKNOWN_PREL_TYPE = 1
. " PVSCUST_PRTYPE_READ




ABAP code using 7.40 inline data declarations to call FM PVSCUST_PRTYPE_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 PRTYPE FROM CPRTYPE INTO @DATA(ld_im_prtype).
 
 
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_im_langu).
DATA(ld_im_langu) = SY-LANGU.
 
 
"SELECT single PTYPE1 FROM CPRTYPE INTO @DATA(ld_im_ptype1).
 
 
"SELECT single OTYPE1 FROM CPRTYPE INTO @DATA(ld_im_otype1).
 
"SELECT single PTYPE2 FROM CPRTYPE INTO @DATA(ld_im_ptype2).
 
"SELECT single OTYPE2 FROM CPRTYPE INTO @DATA(ld_im_otype2).
 
"SELECT single APPLREL_TYPE FROM CPRTYPE INTO @DATA(ld_im_applrel_type).
 
"SELECT single PREL_TYPE FROM CPRTYPE INTO @DATA(ld_im_prel_type).
 
 
 


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!