SAP FLOG_RETURNS_PO_BATCH_CREATE Function Module for Create Return PO with Batch from supplying Plant









FLOG_RETURNS_PO_BATCH_CREATE is a standard flog returns po batch create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Return PO with Batch from supplying Plant 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 flog returns po batch create FM, simply by entering the name FLOG_RETURNS_PO_BATCH_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function FLOG_RETURNS_PO_BATCH_CREATE 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 'FLOG_RETURNS_PO_BATCH_CREATE'"Create Return PO with Batch from supplying Plant
EXPORTING
I_MATNR = "Material Number
* I_VALTYP = "Valuation Type
* I_SERIAL = "Serial Number
I_PLANT = "Plant
I_QUANTITY = "Quantity
I_UNIT = "Base Unit of Measure
* I_SHIPDATE = "Date
* I_LGORT = "Storage Location
* I_EBELN = "Reference Document Number
* I_STOCKTYPE = "Stock Type
* I_BATCH = "Batch Number

IMPORTING
E_MESSAGES = "Message Handler: Purchasing: Transfer Table
E_PO = "Purchasing Document Number
E_ITEMNO = "Item Number of Purchasing Document
.



IMPORTING Parameters details for FLOG_RETURNS_PO_BATCH_CREATE

I_MATNR - Material Number

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

I_VALTYP - Valuation Type

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

I_SERIAL - Serial Number

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

I_PLANT - Plant

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

I_QUANTITY - Quantity

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

I_UNIT - Base Unit of Measure

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

I_SHIPDATE - Date

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

I_LGORT - Storage Location

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

I_EBELN - Reference Document Number

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

I_STOCKTYPE - Stock Type

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

I_BATCH - Batch Number

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

EXPORTING Parameters details for FLOG_RETURNS_PO_BATCH_CREATE

E_MESSAGES - Message Handler: Purchasing: Transfer Table

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

E_PO - Purchasing Document Number

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

E_ITEMNO - Item Number of Purchasing Document

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

Copy and paste ABAP code example for FLOG_RETURNS_PO_BATCH_CREATE 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_i_matnr  TYPE MATNR, "   
lv_e_messages  TYPE MEPO_T_MESSAGES_BAPI, "   
lv_i_valtyp  TYPE BWTAR_D, "   
lv_i_serial  TYPE GERNR, "   
lv_e_po  TYPE EBELN, "   
lv_i_plant  TYPE WERKS_D, "   
lv_e_itemno  TYPE EBELP, "   
lv_i_quantity  TYPE MENGE_D, "   
lv_i_unit  TYPE MEINS, "   
lv_i_shipdate  TYPE DATUM, "   
lv_i_lgort  TYPE LGORT_D, "   
lv_i_ebeln  TYPE FLOG_DOC, "   
lv_i_stocktype  TYPE INSMK, "   
lv_i_batch  TYPE CHARG_D. "   

  CALL FUNCTION 'FLOG_RETURNS_PO_BATCH_CREATE'  "Create Return PO with Batch from supplying Plant
    EXPORTING
         I_MATNR = lv_i_matnr
         I_VALTYP = lv_i_valtyp
         I_SERIAL = lv_i_serial
         I_PLANT = lv_i_plant
         I_QUANTITY = lv_i_quantity
         I_UNIT = lv_i_unit
         I_SHIPDATE = lv_i_shipdate
         I_LGORT = lv_i_lgort
         I_EBELN = lv_i_ebeln
         I_STOCKTYPE = lv_i_stocktype
         I_BATCH = lv_i_batch
    IMPORTING
         E_MESSAGES = lv_e_messages
         E_PO = lv_e_po
         E_ITEMNO = lv_e_itemno
. " FLOG_RETURNS_PO_BATCH_CREATE




ABAP code using 7.40 inline data declarations to call FM FLOG_RETURNS_PO_BATCH_CREATE

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!