SAP PVSCNV_EXTERNAL_TO_INTERNAL Function Module for NOTRANSL: Konvertierung von externen Schlüssel zu den PVS-ID-Strukturen









PVSCNV_EXTERNAL_TO_INTERNAL is a standard pvscnv external to internal 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: Konvertierung von externen Schlüssel zu den PVS-ID-Strukturen 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 pvscnv external to internal FM, simply by entering the name PVSCNV_EXTERNAL_TO_INTERNAL into the relevant SAP transaction such as SE37 or SE38.

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



Function PVSCNV_EXTERNAL_TO_INTERNAL 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 'PVSCNV_EXTERNAL_TO_INTERNAL'"NOTRANSL: Konvertierung von externen Schlüssel zu den PVS-ID-Strukturen
EXPORTING
* IM_MSG_OPT = 'A' "Message Handling in iPPE
* IM_MSG_TYPE = "Generic Type
IM_PVS_EXTERNAL = "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
EX_PNODID = "Nodes
EX_POSVID = "Variant
EX_PALTID = "Alternative/Mode
EX_OTYPE = "iPPE Object Type

EXCEPTIONS
EXISTENCE_ERROR = 1
.



IMPORTING Parameters details for PVSCNV_EXTERNAL_TO_INTERNAL

IM_MSG_OPT - Message Handling in iPPE

Data type: PPET_MSG_OPT
Default: 'A'
Optional: Yes
Call by Reference: Yes

IM_MSG_TYPE - Generic Type

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

IM_PVS_EXTERNAL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for PVSCNV_EXTERNAL_TO_INTERNAL

EX_PNODID - Nodes

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

EX_POSVID - Variant

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

EX_PALTID - Alternative/Mode

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

EX_OTYPE - iPPE Object Type

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

EXCEPTIONS details

EXISTENCE_ERROR - Object Does Not Exist

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PVSCNV_EXTERNAL_TO_INTERNAL 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_ex_pnodid  TYPE PPET_PNODID_LI, "   
lv_im_msg_opt  TYPE PPET_MSG_OPT, "   'A'
lv_existence_error  TYPE PPET_MSG_OPT, "   
lv_ex_posvid  TYPE PPET_POSVID_LI, "   
lv_im_msg_type  TYPE C, "   
lv_ex_paltid  TYPE PPET_PALTID_LI, "   
lv_im_pvs_external  TYPE PPET_EXTERNAL, "   
lv_ex_otype  TYPE PVS_OTYPE. "   

  CALL FUNCTION 'PVSCNV_EXTERNAL_TO_INTERNAL'  "NOTRANSL: Konvertierung von externen Schlüssel zu den PVS-ID-Strukturen
    EXPORTING
         IM_MSG_OPT = lv_im_msg_opt
         IM_MSG_TYPE = lv_im_msg_type
         IM_PVS_EXTERNAL = lv_im_pvs_external
    IMPORTING
         EX_PNODID = lv_ex_pnodid
         EX_POSVID = lv_ex_posvid
         EX_PALTID = lv_ex_paltid
         EX_OTYPE = lv_ex_otype
    EXCEPTIONS
        EXISTENCE_ERROR = 1
. " PVSCNV_EXTERNAL_TO_INTERNAL




ABAP code using 7.40 inline data declarations to call FM PVSCNV_EXTERNAL_TO_INTERNAL

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_im_msg_opt) = 'A'.
 
 
 
 
 
 
 


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!