SAP SD_PARTNER_DETERMINATION Function Module for NOTRANSL: Ermittelt die Partnerrollenbelegung anhand eines Partnerschemata









SD_PARTNER_DETERMINATION is a standard sd partner determination 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: Ermittelt die Partnerrollenbelegung anhand eines Partnerschemata 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 sd partner determination FM, simply by entering the name SD_PARTNER_DETERMINATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: V09A
Program Name: SAPLV09A
Main Program: SAPLV09A
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_PARTNER_DETERMINATION 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 'SD_PARTNER_DETERMINATION'"NOTRANSL: Ermittelt die Partnerrollenbelegung anhand eines Partnerschemata
EXPORTING
FIC_OBJECTTYPE = "Object Type
* FIF_HI_DATE = SY-DATLO "Date and Time, Current (Application Server) Date
* FIF_PARTNERS_OF_PARVW_ONLY = ' ' "
* FIF_COMPLETE_DETERMINATION = 'X' "
* FIF_PARTIAL_DETERMINATION = ' ' "
* FIF_CHECK_REMOVE_AND_FIND = ' ' "
* FIF_JUST_CHECK_AND_REMOVE = ' ' "
* FIF_JUST_CHECK = ' ' "
* FIF_NEW_TIME_RELEVANT_PAR = ' ' "
* FIF_NO_LOG = ' ' "
* FIF_CLEAR_APPL_LOG = 'X' "
FIC_OBJECTKEY = "Object Key
* FIF_NO_DIALOG = ' ' "
* FIF_LISTPROCESSING = ' ' "
FIF_PARGR = "Partner Determination Procedure
FIF_DESTINATION_POSNR = "
FIS_SDORGDATA = "SD Organizational Data
* FIF_PARVW = ' ' "
* FIF_POSNR = "
* FIF_PARTNER = ' ' "
* FIF_HITYP = ' ' "Cust. Hierarchy Type

IMPORTING
FET_XVBPA = "Partner Table
FEF_LOG_COUNT = "

TABLES
* FET_KUPAV = "

EXCEPTIONS
PARAMETER_INCOMPLETE = 1 OBJECT_NOT_FOUND = 2 GIVEN_PARTNER_NOT_FOUND = 3 MANDATORY_PARTNER_NOT_POSSIBLE = 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_SAPLV09A_001 Duplicate/Use as a Referene: Decision Making Manual Address
EXIT_SAPLV09A_002 EXIT in NO_KNVV for Partner Type
EXIT_SAPLV09A_003 User Exit Partner Determination (Entry Mode XYZ)
EXIT_SAPLV09A_004 U.Exit for Part. Determ.(before entering determined partner)

IMPORTING Parameters details for SD_PARTNER_DETERMINATION

FIC_OBJECTTYPE - Object Type

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

FIF_HI_DATE - Date and Time, Current (Application Server) Date

Data type: SY-DATLO
Default: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIF_PARTNERS_OF_PARVW_ONLY -

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

FIF_COMPLETE_DETERMINATION -

Data type: XFLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIF_PARTIAL_DETERMINATION -

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

FIF_CHECK_REMOVE_AND_FIND -

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

FIF_JUST_CHECK_AND_REMOVE -

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

FIF_JUST_CHECK -

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

FIF_NEW_TIME_RELEVANT_PAR -

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

FIF_NO_LOG -

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

FIF_CLEAR_APPL_LOG -

Data type: XFLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIC_OBJECTKEY - Object Key

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

FIF_NO_DIALOG -

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

FIF_LISTPROCESSING -

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

FIF_PARGR - Partner Determination Procedure

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

FIF_DESTINATION_POSNR -

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

FIS_SDORGDATA - SD Organizational Data

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

FIF_PARVW -

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

FIF_POSNR -

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

FIF_PARTNER -

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

FIF_HITYP - Cust. Hierarchy Type

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

EXPORTING Parameters details for SD_PARTNER_DETERMINATION

FET_XVBPA - Partner Table

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

FEF_LOG_COUNT -

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

TABLES Parameters details for SD_PARTNER_DETERMINATION

FET_KUPAV -

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

EXCEPTIONS details

PARAMETER_INCOMPLETE -

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

OBJECT_NOT_FOUND -

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

GIVEN_PARTNER_NOT_FOUND -

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

MANDATORY_PARTNER_NOT_POSSIBLE -

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

Copy and paste ABAP code example for SD_PARTNER_DETERMINATION 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:
lt_fet_kupav  TYPE STANDARD TABLE OF LV09A_TY_KUPAV_TABLE, "   
lv_fet_xvbpa  TYPE LV09A_TY_XVBPA, "   
lv_fic_objecttype  TYPE SWO_OBJTYP, "   
lv_parameter_incomplete  TYPE SWO_OBJTYP, "   
lv_fif_hi_date  TYPE SY-DATLO, "   SY-DATLO
lv_fif_partners_of_parvw_only  TYPE PARVW_4, "   SPACE
lv_fif_complete_determination  TYPE XFLAG, "   'X'
lv_fif_partial_determination  TYPE XFLAG, "   SPACE
lv_fif_check_remove_and_find  TYPE XFLAG, "   SPACE
lv_fif_just_check_and_remove  TYPE XFLAG, "   SPACE
lv_fif_just_check  TYPE XFLAG, "   SPACE
lv_fif_new_time_relevant_par  TYPE XFLAG, "   SPACE
lv_fif_no_log  TYPE XFLAG, "   SPACE
lv_fif_clear_appl_log  TYPE XFLAG, "   'X'
lv_fef_log_count  TYPE I, "   
lv_fic_objectkey  TYPE SWO_TYPEID, "   
lv_object_not_found  TYPE SWO_TYPEID, "   
lv_fif_no_dialog  TYPE XFLAG, "   SPACE
lv_fif_listprocessing  TYPE XFELD, "   SPACE
lv_fif_pargr  TYPE PARGR, "   
lv_given_partner_not_found  TYPE PARGR, "   
lv_fif_destination_posnr  TYPE POSNR, "   
lv_mandatory_partner_not_possible  TYPE POSNR, "   
lv_fis_sdorgdata  TYPE SDORGDATA, "   
lv_fif_parvw  TYPE PARVW_4, "   SPACE
lv_fif_posnr  TYPE POSNR, "   
lv_fif_partner  TYPE SD_PARTNER_PARNR, "   SPACE
lv_fif_hityp  TYPE KNVH-HITYP. "   SPACE

  CALL FUNCTION 'SD_PARTNER_DETERMINATION'  "NOTRANSL: Ermittelt die Partnerrollenbelegung anhand eines Partnerschemata
    EXPORTING
         FIC_OBJECTTYPE = lv_fic_objecttype
         FIF_HI_DATE = lv_fif_hi_date
         FIF_PARTNERS_OF_PARVW_ONLY = lv_fif_partners_of_parvw_only
         FIF_COMPLETE_DETERMINATION = lv_fif_complete_determination
         FIF_PARTIAL_DETERMINATION = lv_fif_partial_determination
         FIF_CHECK_REMOVE_AND_FIND = lv_fif_check_remove_and_find
         FIF_JUST_CHECK_AND_REMOVE = lv_fif_just_check_and_remove
         FIF_JUST_CHECK = lv_fif_just_check
         FIF_NEW_TIME_RELEVANT_PAR = lv_fif_new_time_relevant_par
         FIF_NO_LOG = lv_fif_no_log
         FIF_CLEAR_APPL_LOG = lv_fif_clear_appl_log
         FIC_OBJECTKEY = lv_fic_objectkey
         FIF_NO_DIALOG = lv_fif_no_dialog
         FIF_LISTPROCESSING = lv_fif_listprocessing
         FIF_PARGR = lv_fif_pargr
         FIF_DESTINATION_POSNR = lv_fif_destination_posnr
         FIS_SDORGDATA = lv_fis_sdorgdata
         FIF_PARVW = lv_fif_parvw
         FIF_POSNR = lv_fif_posnr
         FIF_PARTNER = lv_fif_partner
         FIF_HITYP = lv_fif_hityp
    IMPORTING
         FET_XVBPA = lv_fet_xvbpa
         FEF_LOG_COUNT = lv_fef_log_count
    TABLES
         FET_KUPAV = lt_fet_kupav
    EXCEPTIONS
        PARAMETER_INCOMPLETE = 1
        OBJECT_NOT_FOUND = 2
        GIVEN_PARTNER_NOT_FOUND = 3
        MANDATORY_PARTNER_NOT_POSSIBLE = 4
. " SD_PARTNER_DETERMINATION




ABAP code using 7.40 inline data declarations to call FM SD_PARTNER_DETERMINATION

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 DATLO FROM SY INTO @DATA(ld_fif_hi_date).
DATA(ld_fif_hi_date) = SY-DATLO.
 
DATA(ld_fif_partners_of_parvw_only) = ' '.
 
DATA(ld_fif_complete_determination) = 'X'.
 
DATA(ld_fif_partial_determination) = ' '.
 
DATA(ld_fif_check_remove_and_find) = ' '.
 
DATA(ld_fif_just_check_and_remove) = ' '.
 
DATA(ld_fif_just_check) = ' '.
 
DATA(ld_fif_new_time_relevant_par) = ' '.
 
DATA(ld_fif_no_log) = ' '.
 
DATA(ld_fif_clear_appl_log) = 'X'.
 
 
 
 
DATA(ld_fif_no_dialog) = ' '.
 
DATA(ld_fif_listprocessing) = ' '.
 
 
 
 
 
 
DATA(ld_fif_parvw) = ' '.
 
 
DATA(ld_fif_partner) = ' '.
 
"SELECT single HITYP FROM KNVH INTO @DATA(ld_fif_hityp).
DATA(ld_fif_hityp) = ' '.
 


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!