SAP PM_PARTNER_READ_MASTER_DATA Function Module for NOTRANSL: Lesen der Partnerdaten, nur Stammdaten, keine spezielle ADRNR
PM_PARTNER_READ_MASTER_DATA is a standard pm partner read master data 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: Lesen der Partnerdaten, nur Stammdaten, keine spezielle ADRNR 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 pm partner read master data FM, simply by entering the name PM_PARTNER_READ_MASTER_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPAR
Program Name: SAPLIPAR
Main Program: SAPLIPAR
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PM_PARTNER_READ_MASTER_DATA 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 'PM_PARTNER_READ_MASTER_DATA'"NOTRANSL: Lesen der Partnerdaten, nur Stammdaten, keine spezielle ADRNR.
EXPORTING
* PARVW = ' ' "
PARNR = "
* NRART = ' ' "
* CHECK_DEBITOR = 'X' "
IMPORTING
PARNR_EXP = "
ADRNR_SD = "
ADRDA = "
ADRND = "
ADRNP = "
ADDR_PERS = "Person Number
ADDR_NUMB = "Address Number
DIADRC_WA = "
DIADRP_WA = "
DIADR_WA = "
XCPDK = "
E_NRART = "
KTOKD = "
VTEXT = "
CUSTOMER_CONTACT = "
EXCEPTIONS
NO_VALID_PARNR = 1 NO_VALID_PARNR_TODAY = 2 NO_AUTHORITY = 3 PARVW_AND_NRART_INITAL = 4
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIPAR_002 Selection of Notification Partners
EXIT_SAPLIPAR_003 Customizing Partner Check
EXIT_SAPLIPAR_004 Reading of the Additionally Supported Partner Types
EXIT_SAPLIPAR_005 F4 Help for Additonal Partner Types
IMPORTING Parameters details for PM_PARTNER_READ_MASTER_DATA
PARVW -
Data type: IHPA-PARVWDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PARNR -
Data type: IHPA-PARNROptional: No
Call by Reference: No ( called with pass by value option)
NRART -
Data type: TPAR-NRARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_DEBITOR -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PM_PARTNER_READ_MASTER_DATA
PARNR_EXP -
Data type: IHPA-PARNROptional: No
Call by Reference: No ( called with pass by value option)
ADRNR_SD -
Data type: IHPAVB-ADRNR_KUPAVOptional: No
Call by Reference: No ( called with pass by value option)
ADRDA -
Data type: IHPAVB-ADRDAOptional: No
Call by Reference: No ( called with pass by value option)
ADRND -
Data type: IHPAVB-ADRNDOptional: No
Call by Reference: No ( called with pass by value option)
ADRNP -
Data type: IHPAVB-ADRNPOptional: No
Call by Reference: No ( called with pass by value option)
ADDR_PERS - Person Number
Data type: ADDR3_VAL-PERSNUMBEROptional: No
Call by Reference: No ( called with pass by value option)
ADDR_NUMB - Address Number
Data type: ADDR3_VAL-ADDRNUMBEROptional: No
Call by Reference: No ( called with pass by value option)
DIADRC_WA -
Data type: DIADRCOptional: No
Call by Reference: Yes
DIADRP_WA -
Data type: DIADRPOptional: No
Call by Reference: Yes
DIADR_WA -
Data type: DIADROptional: No
Call by Reference: Yes
XCPDK -
Data type: KUPAV-XCPDKOptional: No
Call by Reference: No ( called with pass by value option)
E_NRART -
Data type: TPAR-NRARTOptional: No
Call by Reference: No ( called with pass by value option)
KTOKD -
Data type: KUPAV-KTOKDOptional: No
Call by Reference: No ( called with pass by value option)
VTEXT -
Data type: TPART-VTEXTOptional: No
Call by Reference: No ( called with pass by value option)
CUSTOMER_CONTACT -
Data type: SPHFIELDS-VALUEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_VALID_PARNR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_PARNR_TODAY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARVW_AND_NRART_INITAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PM_PARTNER_READ_MASTER_DATA 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_parvw | TYPE IHPA-PARVW, " SPACE | |||
| lv_parnr_exp | TYPE IHPA-PARNR, " | |||
| lv_no_valid_parnr | TYPE IHPA, " | |||
| lv_adrnr_sd | TYPE IHPAVB-ADRNR_KUPAV, " | |||
| lv_adrda | TYPE IHPAVB-ADRDA, " | |||
| lv_adrnd | TYPE IHPAVB-ADRND, " | |||
| lv_adrnp | TYPE IHPAVB-ADRNP, " | |||
| lv_addr_pers | TYPE ADDR3_VAL-PERSNUMBER, " | |||
| lv_addr_numb | TYPE ADDR3_VAL-ADDRNUMBER, " | |||
| lv_parnr | TYPE IHPA-PARNR, " | |||
| lv_diadrc_wa | TYPE DIADRC, " | |||
| lv_no_valid_parnr_today | TYPE DIADRC, " | |||
| lv_nrart | TYPE TPAR-NRART, " SPACE | |||
| lv_diadrp_wa | TYPE DIADRP, " | |||
| lv_no_authority | TYPE DIADRP, " | |||
| lv_diadr_wa | TYPE DIADR, " | |||
| lv_check_debitor | TYPE DIADR, " 'X' | |||
| lv_parvw_and_nrart_inital | TYPE DIADR, " | |||
| lv_xcpdk | TYPE KUPAV-XCPDK, " | |||
| lv_e_nrart | TYPE TPAR-NRART, " | |||
| lv_ktokd | TYPE KUPAV-KTOKD, " | |||
| lv_vtext | TYPE TPART-VTEXT, " | |||
| lv_customer_contact | TYPE SPHFIELDS-VALUE. " |
|   CALL FUNCTION 'PM_PARTNER_READ_MASTER_DATA' "NOTRANSL: Lesen der Partnerdaten, nur Stammdaten, keine spezielle ADRNR |
| EXPORTING | ||
| PARVW | = lv_parvw | |
| PARNR | = lv_parnr | |
| NRART | = lv_nrart | |
| CHECK_DEBITOR | = lv_check_debitor | |
| IMPORTING | ||
| PARNR_EXP | = lv_parnr_exp | |
| ADRNR_SD | = lv_adrnr_sd | |
| ADRDA | = lv_adrda | |
| ADRND | = lv_adrnd | |
| ADRNP | = lv_adrnp | |
| ADDR_PERS | = lv_addr_pers | |
| ADDR_NUMB | = lv_addr_numb | |
| DIADRC_WA | = lv_diadrc_wa | |
| DIADRP_WA | = lv_diadrp_wa | |
| DIADR_WA | = lv_diadr_wa | |
| XCPDK | = lv_xcpdk | |
| E_NRART | = lv_e_nrart | |
| KTOKD | = lv_ktokd | |
| VTEXT | = lv_vtext | |
| CUSTOMER_CONTACT | = lv_customer_contact | |
| EXCEPTIONS | ||
| NO_VALID_PARNR = 1 | ||
| NO_VALID_PARNR_TODAY = 2 | ||
| NO_AUTHORITY = 3 | ||
| PARVW_AND_NRART_INITAL = 4 | ||
| . " PM_PARTNER_READ_MASTER_DATA | ||
ABAP code using 7.40 inline data declarations to call FM PM_PARTNER_READ_MASTER_DATA
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 PARVW FROM IHPA INTO @DATA(ld_parvw). | ||||
| DATA(ld_parvw) | = ' '. | |||
| "SELECT single PARNR FROM IHPA INTO @DATA(ld_parnr_exp). | ||||
| "SELECT single ADRNR_KUPAV FROM IHPAVB INTO @DATA(ld_adrnr_sd). | ||||
| "SELECT single ADRDA FROM IHPAVB INTO @DATA(ld_adrda). | ||||
| "SELECT single ADRND FROM IHPAVB INTO @DATA(ld_adrnd). | ||||
| "SELECT single ADRNP FROM IHPAVB INTO @DATA(ld_adrnp). | ||||
| "SELECT single PERSNUMBER FROM ADDR3_VAL INTO @DATA(ld_addr_pers). | ||||
| "SELECT single ADDRNUMBER FROM ADDR3_VAL INTO @DATA(ld_addr_numb). | ||||
| "SELECT single PARNR FROM IHPA INTO @DATA(ld_parnr). | ||||
| "SELECT single NRART FROM TPAR INTO @DATA(ld_nrart). | ||||
| DATA(ld_nrart) | = ' '. | |||
| DATA(ld_check_debitor) | = 'X'. | |||
| "SELECT single XCPDK FROM KUPAV INTO @DATA(ld_xcpdk). | ||||
| "SELECT single NRART FROM TPAR INTO @DATA(ld_e_nrart). | ||||
| "SELECT single KTOKD FROM KUPAV INTO @DATA(ld_ktokd). | ||||
| "SELECT single VTEXT FROM TPART INTO @DATA(ld_vtext). | ||||
| "SELECT single VALUE FROM SPHFIELDS INTO @DATA(ld_customer_contact). | ||||
Search for further information about these or an SAP related objects