SAP SD_TRANSFERDATA_DETERMINE Function Module for Determine SD-specific data for a stock transport via delivery









SD_TRANSFERDATA_DETERMINE is a standard sd transferdata determine SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine SD-specific data for a stock transport via delivery 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 transferdata determine FM, simply by entering the name SD_TRANSFERDATA_DETERMINE into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_TRANSFERDATA_DETERMINE 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_TRANSFERDATA_DETERMINE'"Determine SD-specific data for a stock transport via delivery
EXPORTING
IEKPV = "Shipping Data For Stock Transfer of Purchasing Document Item
* OPT_VKORG = "Sales Organization
* OPT_VTWEG = "Distribution Channel
* OPT_SPART = "Division
* VTBFI = ' ' "Rule for determining the sales area for stock transfers
* LFART = "Delivery Type
* PRIO_URG = "Requirement Urgency
* PRIO_REQ = "Requirement Priority
* IS_INTERFACE = "Interface for Creating Deliveries
* LKUNAG = ' ' "Sold-to party
LKUNWE = "Customer Number
LLWERK = "Supplying (issuing) plant in case of stock transport order
* LLGORT = "Issuing Storage Location for Stock Transport Order
LMATNR = "Material Number
LSPART = "Division
LVKORG = "Sales Organization
LVTWEG = "Distribution Channel

IMPORTING
FEKPV = "Shipping Data For Stock Transfer of Purchasing Document Item
FKUWEV = "Ship-to Party's View of the Customer Master Record
FKUAGV = "Sold-to Party View of the Customer Master Record

EXCEPTIONS
KUNDE_NICHT_VORHANDEN = 1 MATERIAL_HAT_LOESCHVORMERKUNG = 2 MATERIAL_NICHT_VORHANDEN = 3 PARAMETER_MATERIAL_FEHLT = 4 PARAMETER_ORGANISATION_FEHLT = 5 PARAMETER_WERK_FEHLT = 6 VSTEL_NICHT_BESTIMMBAR = 7 VERTRBEREICH_NICHT_BESTIMMBAR = 8
.



IMPORTING Parameters details for SD_TRANSFERDATA_DETERMINE

IEKPV - Shipping Data For Stock Transfer of Purchasing Document Item

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

OPT_VKORG - Sales Organization

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

OPT_VTWEG - Distribution Channel

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

OPT_SPART - Division

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

VTBFI - Rule for determining the sales area for stock transfers

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

LFART - Delivery Type

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

PRIO_URG - Requirement Urgency

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

PRIO_REQ - Requirement Priority

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

IS_INTERFACE - Interface for Creating Deliveries

Data type: LESHP_DELIVERY_CREATE
Optional: Yes
Call by Reference: Yes

LKUNAG - Sold-to party

Data type: EKPV-KUNAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

LKUNWE - Customer Number

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

LLWERK - Supplying (issuing) plant in case of stock transport order

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

LLGORT - Issuing Storage Location for Stock Transport Order

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

LMATNR - Material Number

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

LSPART - Division

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

LVKORG - Sales Organization

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

LVTWEG - Distribution Channel

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

EXPORTING Parameters details for SD_TRANSFERDATA_DETERMINE

FEKPV - Shipping Data For Stock Transfer of Purchasing Document Item

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

FKUWEV - Ship-to Party's View of the Customer Master Record

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

FKUAGV - Sold-to Party View of the Customer Master Record

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

EXCEPTIONS details

KUNDE_NICHT_VORHANDEN - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

MATERIAL_HAT_LOESCHVORMERKUNG -

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

MATERIAL_NICHT_VORHANDEN -

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

PARAMETER_MATERIAL_FEHLT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

PARAMETER_ORGANISATION_FEHLT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

PARAMETER_WERK_FEHLT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

VSTEL_NICHT_BESTIMMBAR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

VERTRBEREICH_NICHT_BESTIMMBAR - 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 SD_TRANSFERDATA_DETERMINE 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_fekpv  TYPE EKPV, "   
lv_iekpv  TYPE EKPV, "   
lv_kunde_nicht_vorhanden  TYPE EKPV, "   
lv_opt_vkorg  TYPE LIKP-VKORG, "   
lv_opt_vtweg  TYPE LIPS-VTWEG, "   
lv_opt_spart  TYPE LIPS-SPART, "   
lv_vtbfi  TYPE T001W-VTBFI, "   ' '
lv_lfart  TYPE TVLK-LFART, "   
lv_prio_urg  TYPE EKPO-PRIO_URG, "   
lv_prio_req  TYPE EKPO-PRIO_REQ, "   
lv_is_interface  TYPE LESHP_DELIVERY_CREATE, "   
lv_fkuwev  TYPE KUWEV, "   
lv_lkunag  TYPE EKPV-KUNAG, "   ' '
lv_material_hat_loeschvormerkung  TYPE EKPV, "   
lv_fkuagv  TYPE KUAGV, "   
lv_lkunwe  TYPE EKKO-KUNNR, "   
lv_material_nicht_vorhanden  TYPE EKKO, "   
lv_llwerk  TYPE EKKO-RESWK, "   
lv_parameter_material_fehlt  TYPE EKKO, "   
lv_llgort  TYPE EKPO-RESLO, "   
lv_parameter_organisation_fehlt  TYPE EKPO, "   
lv_lmatnr  TYPE EKPO-MATNR, "   
lv_parameter_werk_fehlt  TYPE EKPO, "   
lv_lspart  TYPE LIPS-SPART, "   
lv_vstel_nicht_bestimmbar  TYPE LIPS, "   
lv_lvkorg  TYPE LIKP-VKORG, "   
lv_vertrbereich_nicht_bestimmbar  TYPE LIKP, "   
lv_lvtweg  TYPE LIPS-VTWEG. "   

  CALL FUNCTION 'SD_TRANSFERDATA_DETERMINE'  "Determine SD-specific data for a stock transport via delivery
    EXPORTING
         IEKPV = lv_iekpv
         OPT_VKORG = lv_opt_vkorg
         OPT_VTWEG = lv_opt_vtweg
         OPT_SPART = lv_opt_spart
         VTBFI = lv_vtbfi
         LFART = lv_lfart
         PRIO_URG = lv_prio_urg
         PRIO_REQ = lv_prio_req
         IS_INTERFACE = lv_is_interface
         LKUNAG = lv_lkunag
         LKUNWE = lv_lkunwe
         LLWERK = lv_llwerk
         LLGORT = lv_llgort
         LMATNR = lv_lmatnr
         LSPART = lv_lspart
         LVKORG = lv_lvkorg
         LVTWEG = lv_lvtweg
    IMPORTING
         FEKPV = lv_fekpv
         FKUWEV = lv_fkuwev
         FKUAGV = lv_fkuagv
    EXCEPTIONS
        KUNDE_NICHT_VORHANDEN = 1
        MATERIAL_HAT_LOESCHVORMERKUNG = 2
        MATERIAL_NICHT_VORHANDEN = 3
        PARAMETER_MATERIAL_FEHLT = 4
        PARAMETER_ORGANISATION_FEHLT = 5
        PARAMETER_WERK_FEHLT = 6
        VSTEL_NICHT_BESTIMMBAR = 7
        VERTRBEREICH_NICHT_BESTIMMBAR = 8
. " SD_TRANSFERDATA_DETERMINE




ABAP code using 7.40 inline data declarations to call FM SD_TRANSFERDATA_DETERMINE

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 LIKP INTO @DATA(ld_opt_vkorg).
 
"SELECT single VTWEG FROM LIPS INTO @DATA(ld_opt_vtweg).
 
"SELECT single SPART FROM LIPS INTO @DATA(ld_opt_spart).
 
"SELECT single VTBFI FROM T001W INTO @DATA(ld_vtbfi).
DATA(ld_vtbfi) = ' '.
 
"SELECT single LFART FROM TVLK INTO @DATA(ld_lfart).
 
"SELECT single PRIO_URG FROM EKPO INTO @DATA(ld_prio_urg).
 
"SELECT single PRIO_REQ FROM EKPO INTO @DATA(ld_prio_req).
 
 
 
"SELECT single KUNAG FROM EKPV INTO @DATA(ld_lkunag).
DATA(ld_lkunag) = ' '.
 
 
 
"SELECT single KUNNR FROM EKKO INTO @DATA(ld_lkunwe).
 
 
"SELECT single RESWK FROM EKKO INTO @DATA(ld_llwerk).
 
 
"SELECT single RESLO FROM EKPO INTO @DATA(ld_llgort).
 
 
"SELECT single MATNR FROM EKPO INTO @DATA(ld_lmatnr).
 
 
"SELECT single SPART FROM LIPS INTO @DATA(ld_lspart).
 
 
"SELECT single VKORG FROM LIKP INTO @DATA(ld_lvkorg).
 
 
"SELECT single VTWEG FROM LIPS INTO @DATA(ld_lvtweg).
 


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!