SAP PM_CHECK_SALES_ORG Function Module for NOTRANSL: Vertriebsorganisationsdaten und IH-Werk auf Vereinbarkeit überpr









PM_CHECK_SALES_ORG is a standard pm check sales org 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: Vertriebsorganisationsdaten und IH-Werk auf Vereinbarkeit überpr 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 check sales org FM, simply by entering the name PM_CHECK_SALES_ORG into the relevant SAP transaction such as SE37 or SE38.

Function Group: INST
Program Name: SAPLINST
Main Program:
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PM_CHECK_SALES_ORG 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_CHECK_SALES_ORG'"NOTRANSL: Vertriebsorganisationsdaten und IH-Werk auf Vereinbarkeit überpr
EXPORTING
VKORG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
VTWEG = "Distribution Channel
SPART = "Division
* IWERK = ' ' "PM Plant
* VKBUR = ' ' "Sales Office
* VKGRP = ' ' "Sales Group

IMPORTING
E_TVTA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_TVKWZ = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_TVKBZ = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_TVBVK = "

EXCEPTIONS
INV_COMB_SD_ORG = 1 INV_COMB_SD_ORG_PLANT = 2 INV_COMB_SD_ORG_OFFICE = 3 INV_COMB_SD_ORG_GROUP = 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_SAPLINST_001 111

IMPORTING Parameters details for PM_CHECK_SALES_ORG

VKORG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

VTWEG - Distribution Channel

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

SPART - Division

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

IWERK - PM Plant

Data type: T001W-WERKS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VKBUR - Sales Office

Data type: ILOA-VKBUR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VKGRP - Sales Group

Data type: ILOA-VKGRP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for PM_CHECK_SALES_ORG

E_TVTA - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_TVKWZ - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_TVKBZ - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

E_TVBVK -

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

EXCEPTIONS details

INV_COMB_SD_ORG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

INV_COMB_SD_ORG_PLANT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

INV_COMB_SD_ORG_OFFICE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

INV_COMB_SD_ORG_GROUP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for PM_CHECK_SALES_ORG 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_vkorg  TYPE ILOA-VKORG, "   
lv_e_tvta  TYPE TVTA, "   
lv_inv_comb_sd_org  TYPE TVTA, "   
lv_vtweg  TYPE ILOA-VTWEG, "   
lv_e_tvkwz  TYPE TVKWZ, "   
lv_inv_comb_sd_org_plant  TYPE TVKWZ, "   
lv_spart  TYPE ILOA-SPART, "   
lv_e_tvkbz  TYPE TVKBZ, "   
lv_inv_comb_sd_org_office  TYPE TVKBZ, "   
lv_iwerk  TYPE T001W-WERKS, "   SPACE
lv_e_tvbvk  TYPE TVBVK, "   
lv_inv_comb_sd_org_group  TYPE TVBVK, "   
lv_vkbur  TYPE ILOA-VKBUR, "   SPACE
lv_vkgrp  TYPE ILOA-VKGRP. "   SPACE

  CALL FUNCTION 'PM_CHECK_SALES_ORG'  "NOTRANSL: Vertriebsorganisationsdaten und IH-Werk auf Vereinbarkeit überpr
    EXPORTING
         VKORG = lv_vkorg
         VTWEG = lv_vtweg
         SPART = lv_spart
         IWERK = lv_iwerk
         VKBUR = lv_vkbur
         VKGRP = lv_vkgrp
    IMPORTING
         E_TVTA = lv_e_tvta
         E_TVKWZ = lv_e_tvkwz
         E_TVKBZ = lv_e_tvkbz
         E_TVBVK = lv_e_tvbvk
    EXCEPTIONS
        INV_COMB_SD_ORG = 1
        INV_COMB_SD_ORG_PLANT = 2
        INV_COMB_SD_ORG_OFFICE = 3
        INV_COMB_SD_ORG_GROUP = 4
. " PM_CHECK_SALES_ORG




ABAP code using 7.40 inline data declarations to call FM PM_CHECK_SALES_ORG

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 VKORG FROM ILOA INTO @DATA(ld_vkorg).
 
 
 
"SELECT single VTWEG FROM ILOA INTO @DATA(ld_vtweg).
 
 
 
"SELECT single SPART FROM ILOA INTO @DATA(ld_spart).
 
 
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_iwerk).
DATA(ld_iwerk) = ' '.
 
 
 
"SELECT single VKBUR FROM ILOA INTO @DATA(ld_vkbur).
DATA(ld_vkbur) = ' '.
 
"SELECT single VKGRP FROM ILOA INTO @DATA(ld_vkgrp).
DATA(ld_vkgrp) = ' '.
 


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!