SAP FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT Function Module for Distribute DE Document Flows to DE Document Lot Flows









FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT is a standard fpm lot de flows assign to lot SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Distribute DE Document Flows to DE Document Lot Flows 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 fpm lot de flows assign to lot FM, simply by entering the name FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FPM_LOT
Program Name: SAPLFPM_LOT
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT 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 'FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT'"Distribute DE Document Flows to DE Document Lot Flows
EXPORTING
I_TAB_FLOWS_TO_ASSIGN = "aufzuteilende DE-Belegbewegungen
I_TAB_FLOWS_ASSIGNED_OLD = "alte DE-Beleglotbewegungen

IMPORTING
E_TAB_FLOWS_ASSIGNED_NEW = "neue DE-Beleglotbewegungen

EXCEPTIONS
FLOWS_INVALID = 1 VARMA_LOT_NOT_QUALIFIED = 2 DBESTAND_NOT_VALID = 3 ASTUECK_NOT_VALID = 4 CHANGES_NOT_VALID = 5 LOT_DELETE_FAILED = 6 FLOW_NOT_QUALIFIED = 7 FAILED = 8
.



IMPORTING Parameters details for FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT

I_TAB_FLOWS_TO_ASSIGN - aufzuteilende DE-Belegbewegungen

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

I_TAB_FLOWS_ASSIGNED_OLD - alte DE-Beleglotbewegungen

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

EXPORTING Parameters details for FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT

E_TAB_FLOWS_ASSIGNED_NEW - neue DE-Beleglotbewegungen

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

EXCEPTIONS details

FLOWS_INVALID - mehr als eine stückeverändernde Bewegung

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

VARMA_LOT_NOT_QUALIFIED - Varmabewegung: Lot/Bukrs nicht gefüllt

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

DBESTAND_NOT_VALID - Bestandsvaluta zu groß

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

ASTUECK_NOT_VALID - Stückzahl zu klein

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

CHANGES_NOT_VALID - Änderung nicht zulässig

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

LOT_DELETE_FAILED - Löschen eines Lots nicht zulässig

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

FLOW_NOT_QUALIFIED - Lotverwaltungstyp in Bewegung nicht gefüllt

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

FAILED - Assignment could not be carried out

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

Copy and paste ABAP code example for FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT 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_flows_invalid  TYPE STRING, "   
lv_i_tab_flows_to_assign  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_e_tab_flows_assigned_new  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_varma_lot_not_qualified  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_i_tab_flows_assigned_old  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_dbestand_not_valid  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_astueck_not_valid  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_changes_not_valid  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_lot_delete_failed  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_flow_not_qualified  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_failed  TYPE TPMY_DEDOC_LOT_FLOW. "   

  CALL FUNCTION 'FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT'  "Distribute DE Document Flows to DE Document Lot Flows
    EXPORTING
         I_TAB_FLOWS_TO_ASSIGN = lv_i_tab_flows_to_assign
         I_TAB_FLOWS_ASSIGNED_OLD = lv_i_tab_flows_assigned_old
    IMPORTING
         E_TAB_FLOWS_ASSIGNED_NEW = lv_e_tab_flows_assigned_new
    EXCEPTIONS
        FLOWS_INVALID = 1
        VARMA_LOT_NOT_QUALIFIED = 2
        DBESTAND_NOT_VALID = 3
        ASTUECK_NOT_VALID = 4
        CHANGES_NOT_VALID = 5
        LOT_DELETE_FAILED = 6
        FLOW_NOT_QUALIFIED = 7
        FAILED = 8
. " FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT




ABAP code using 7.40 inline data declarations to call FM FPM_LOT_DE_FLOWS_ASSIGN_TO_LOT

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.

 
 
 
 
 
 
 
 
 
 
 


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!