SAP ISP_AGENT_PURCHASING_ORG_GET Function Module for IS-M/AM: Get Purchasing Organization for Sales Agent Sales Areas









ISP_AGENT_PURCHASING_ORG_GET is a standard isp agent purchasing org get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: Get Purchasing Organization for Sales Agent Sales Areas 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 isp agent purchasing org get FM, simply by entering the name ISP_AGENT_PURCHASING_ORG_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: JJGA
Program Name: SAPLJJGA
Main Program: SAPLJJGA
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISP_AGENT_PURCHASING_ORG_GET 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 'ISP_AGENT_PURCHASING_ORG_GET'"IS-M/AM: Get Purchasing Organization for Sales Agent Sales Areas
EXPORTING
IV_VKORG = "Sales Organization
IV_VTWEG = "Distribution Channel
IV_SPART = "Division

IMPORTING
EV_EKORG = "Purchasing Organization

EXCEPTIONS
NO_PURCHASING_ORG_FOUND = 1
.




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_SAPLJJGA_001 IS-M/AM: Sort Contract Requirements (1.Variant)
EXIT_SAPLJJGA_002 IS-M/AM: Sort Contract Requirements (2. Variant)
EXIT_SAPLJJGA_003 IS-M/AM: Sort Contract Elements (1. Variant)
EXIT_SAPLJJGA_004 IS-M/AM: Sort Contract Elements (2. Variant)
EXIT_SAPLJJGA_005 IS-M: Define Default Contract Header when Creating a Sales Agent Contract
EXIT_SAPLJJGA_006 IS-M/AM: Plausibility Check for Sales Agent Contract Header
EXIT_SAPLJJGA_007 IS-M/AM: Plausibility Checks for Sales Agent Contract Requirements
EXIT_SAPLJJGA_008 IS-M/AM: Plausibility Check for Sales Agent Contract/Sales Areas
EXIT_SAPLJJGA_009 IS-M/AM: Plausibility Checks for Sales Agent Contract Requirement Elements
EXIT_SAPLJJGA_010 IS-M/AM: Sales Agent Contract Consistency Check
EXIT_SAPLJJGA_011 IS-M/AM: Customer Potential: Determine Contract-Relevant BP Role
EXIT_SAPLJJGA_012 IS-M: Customer Potential: Identify Free Attributes with Customer Relevance

IMPORTING Parameters details for ISP_AGENT_PURCHASING_ORG_GET

IV_VKORG - Sales Organization

Data type: JLTEKORG-VKORG
Optional: No
Call by Reference: Yes

IV_VTWEG - Distribution Channel

Data type: JLTEKORG-VTWEG
Optional: No
Call by Reference: Yes

IV_SPART - Division

Data type: JLTEKORG-SPART
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for ISP_AGENT_PURCHASING_ORG_GET

EV_EKORG - Purchasing Organization

Data type: JLTEKORG-EKORG
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_PURCHASING_ORG_FOUND -

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

Copy and paste ABAP code example for ISP_AGENT_PURCHASING_ORG_GET 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_ev_ekorg  TYPE JLTEKORG-EKORG, "   
lv_iv_vkorg  TYPE JLTEKORG-VKORG, "   
lv_no_purchasing_org_found  TYPE JLTEKORG, "   
lv_iv_vtweg  TYPE JLTEKORG-VTWEG, "   
lv_iv_spart  TYPE JLTEKORG-SPART. "   

  CALL FUNCTION 'ISP_AGENT_PURCHASING_ORG_GET'  "IS-M/AM: Get Purchasing Organization for Sales Agent Sales Areas
    EXPORTING
         IV_VKORG = lv_iv_vkorg
         IV_VTWEG = lv_iv_vtweg
         IV_SPART = lv_iv_spart
    IMPORTING
         EV_EKORG = lv_ev_ekorg
    EXCEPTIONS
        NO_PURCHASING_ORG_FOUND = 1
. " ISP_AGENT_PURCHASING_ORG_GET




ABAP code using 7.40 inline data declarations to call FM ISP_AGENT_PURCHASING_ORG_GET

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 EKORG FROM JLTEKORG INTO @DATA(ld_ev_ekorg).
 
"SELECT single VKORG FROM JLTEKORG INTO @DATA(ld_iv_vkorg).
 
 
"SELECT single VTWEG FROM JLTEKORG INTO @DATA(ld_iv_vtweg).
 
"SELECT single SPART FROM JLTEKORG INTO @DATA(ld_iv_spart).
 


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!