SAP PRICAT_ILN_VENDOR_PURCH_GRP Function Module for PRICAT Inbound: Read Vendor, PGr, and Purch. Org. for ILN
PRICAT_ILN_VENDOR_PURCH_GRP is a standard pricat iln vendor purch grp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for PRICAT Inbound: Read Vendor, PGr, and Purch. Org. for ILN 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 pricat iln vendor purch grp FM, simply by entering the name PRICAT_ILN_VENDOR_PURCH_GRP into the relevant SAP transaction such as SE37 or SE38.
Function Group: WPR1
Program Name: SAPLWPR1
Main Program: SAPLWPR1
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PRICAT_ILN_VENDOR_PURCH_GRP 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 'PRICAT_ILN_VENDOR_PURCH_GRP'"PRICAT Inbound: Read Vendor, PGr, and Purch. Org. for ILN.
EXPORTING
I_ILNNR = "PRICAT: International location number of sender (CHAR 35)
IMPORTING
E_LIFNR = "Vendor's account number
E_EKGRP = "Purchasing Group
E_EKORG = "PRICAT purchasing organization
E_HISTORY = "PRICAT: Type of history processing
EXCEPTIONS
ILN_NOT_FOUND = 1 VENDOR_NOT_FOUND = 2 PURCHASING_GROUP_NOT_FOUND = 3 ILN_NOT_UNIQUE = 4 VENDOR_PURCH_ORG_NOT_UNIQUE = 5 VENDOR_PURCH_ORG_NOT_ASSIGNED = 6 VENDOR_NO_PURCH_ORG_DATA = 7
IMPORTING Parameters details for PRICAT_ILN_VENDOR_PURCH_GRP
I_ILNNR - PRICAT: International location number of sender (CHAR 35)
Data type: PRICAT_001-ILNNROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PRICAT_ILN_VENDOR_PURCH_GRP
E_LIFNR - Vendor's account number
Data type: PRICAT_001-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
E_EKGRP - Purchasing Group
Data type: PRICAT_001-EKGRPOptional: No
Call by Reference: No ( called with pass by value option)
E_EKORG - PRICAT purchasing organization
Data type: PRICAT_001-EKORGOptional: No
Call by Reference: No ( called with pass by value option)
E_HISTORY - PRICAT: Type of history processing
Data type: PRICAT_001-HISTORYOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ILN_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VENDOR_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PURCHASING_GROUP_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILN_NOT_UNIQUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VENDOR_PURCH_ORG_NOT_UNIQUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VENDOR_PURCH_ORG_NOT_ASSIGNED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VENDOR_NO_PURCH_ORG_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRICAT_ILN_VENDOR_PURCH_GRP 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_e_lifnr | TYPE PRICAT_001-LIFNR, " | |||
| lv_i_ilnnr | TYPE PRICAT_001-ILNNR, " | |||
| lv_iln_not_found | TYPE PRICAT_001, " | |||
| lv_e_ekgrp | TYPE PRICAT_001-EKGRP, " | |||
| lv_vendor_not_found | TYPE PRICAT_001, " | |||
| lv_e_ekorg | TYPE PRICAT_001-EKORG, " | |||
| lv_purchasing_group_not_found | TYPE PRICAT_001, " | |||
| lv_e_history | TYPE PRICAT_001-HISTORY, " | |||
| lv_iln_not_unique | TYPE PRICAT_001, " | |||
| lv_vendor_purch_org_not_unique | TYPE PRICAT_001, " | |||
| lv_vendor_purch_org_not_assigned | TYPE PRICAT_001, " | |||
| lv_vendor_no_purch_org_data | TYPE PRICAT_001. " |
|   CALL FUNCTION 'PRICAT_ILN_VENDOR_PURCH_GRP' "PRICAT Inbound: Read Vendor, PGr, and Purch. Org. for ILN |
| EXPORTING | ||
| I_ILNNR | = lv_i_ilnnr | |
| IMPORTING | ||
| E_LIFNR | = lv_e_lifnr | |
| E_EKGRP | = lv_e_ekgrp | |
| E_EKORG | = lv_e_ekorg | |
| E_HISTORY | = lv_e_history | |
| EXCEPTIONS | ||
| ILN_NOT_FOUND = 1 | ||
| VENDOR_NOT_FOUND = 2 | ||
| PURCHASING_GROUP_NOT_FOUND = 3 | ||
| ILN_NOT_UNIQUE = 4 | ||
| VENDOR_PURCH_ORG_NOT_UNIQUE = 5 | ||
| VENDOR_PURCH_ORG_NOT_ASSIGNED = 6 | ||
| VENDOR_NO_PURCH_ORG_DATA = 7 | ||
| . " PRICAT_ILN_VENDOR_PURCH_GRP | ||
ABAP code using 7.40 inline data declarations to call FM PRICAT_ILN_VENDOR_PURCH_GRP
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 LIFNR FROM PRICAT_001 INTO @DATA(ld_e_lifnr). | ||||
| "SELECT single ILNNR FROM PRICAT_001 INTO @DATA(ld_i_ilnnr). | ||||
| "SELECT single EKGRP FROM PRICAT_001 INTO @DATA(ld_e_ekgrp). | ||||
| "SELECT single EKORG FROM PRICAT_001 INTO @DATA(ld_e_ekorg). | ||||
| "SELECT single HISTORY FROM PRICAT_001 INTO @DATA(ld_e_history). | ||||
Search for further information about these or an SAP related objects