SAP FAGL_MIG_OPITEMS_SELECT Function Module for









FAGL_MIG_OPITEMS_SELECT is a standard fagl mig opitems select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fagl mig opitems select FM, simply by entering the name FAGL_MIG_OPITEMS_SELECT into the relevant SAP transaction such as SE37 or SE38.

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



Function FAGL_MIG_OPITEMS_SELECT 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 'FAGL_MIG_OPITEMS_SELECT'"
EXPORTING
ID_MGPLN = "Migration Plan
* ID_BUKRS = "Company Code
* IR_BELNR = "Range Table for Document Numbers of an Accounting Document
* ID_GJAHR = "Fiscal Year
ID_STATUS_NEXT = "Migration Status for an Open Item
* ID_STATUS_PREV = '00' "Migration Status for an Open Item
* IB_STATUS_RESET = 'X' "Checkbox
* I_PACKAGE_SIZE = 50000 "

IMPORTING
ETS_OPITEM_KEYS = "Sorted Table FAGL_MIG_OPITEMS (by Line Item Key)

EXCEPTIONS
NO_ITEMS_FOUND = 1 INVALID_INPUT = 2
.



IMPORTING Parameters details for FAGL_MIG_OPITEMS_SELECT

ID_MGPLN - Migration Plan

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

ID_BUKRS - Company Code

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

IR_BELNR - Range Table for Document Numbers of an Accounting Document

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

ID_GJAHR - Fiscal Year

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

ID_STATUS_NEXT - Migration Status for an Open Item

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

ID_STATUS_PREV - Migration Status for an Open Item

Data type: FAGL_MIG_STATUS_OPITEM
Default: '00'
Optional: Yes
Call by Reference: Yes

IB_STATUS_RESET - Checkbox

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_PACKAGE_SIZE -

Data type: I
Default: 50000
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FAGL_MIG_OPITEMS_SELECT

ETS_OPITEM_KEYS - Sorted Table FAGL_MIG_OPITEMS (by Line Item Key)

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

EXCEPTIONS details

NO_ITEMS_FOUND -

Data type:
Optional: No
Call by Reference: Yes

INVALID_INPUT -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FAGL_MIG_OPITEMS_SELECT 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_id_mgpln  TYPE FAGL_MGPLN, "   
lv_no_items_found  TYPE FAGL_MGPLN, "   
lv_ets_opitem_keys  TYPE FAGL_TS_MIG_OPITEMS, "   
lv_id_bukrs  TYPE BUKRS, "   
lv_invalid_input  TYPE BUKRS, "   
lv_ir_belnr  TYPE FAGL_RANGE_T_BELNR, "   
lv_id_gjahr  TYPE GJAHR, "   
lv_id_status_next  TYPE FAGL_MIG_STATUS_OPITEM, "   
lv_id_status_prev  TYPE FAGL_MIG_STATUS_OPITEM, "   '00'
lv_ib_status_reset  TYPE XFELD, "   'X'
lv_i_package_size  TYPE I. "   50000

  CALL FUNCTION 'FAGL_MIG_OPITEMS_SELECT'  "
    EXPORTING
         ID_MGPLN = lv_id_mgpln
         ID_BUKRS = lv_id_bukrs
         IR_BELNR = lv_ir_belnr
         ID_GJAHR = lv_id_gjahr
         ID_STATUS_NEXT = lv_id_status_next
         ID_STATUS_PREV = lv_id_status_prev
         IB_STATUS_RESET = lv_ib_status_reset
         I_PACKAGE_SIZE = lv_i_package_size
    IMPORTING
         ETS_OPITEM_KEYS = lv_ets_opitem_keys
    EXCEPTIONS
        NO_ITEMS_FOUND = 1
        INVALID_INPUT = 2
. " FAGL_MIG_OPITEMS_SELECT




ABAP code using 7.40 inline data declarations to call FM FAGL_MIG_OPITEMS_SELECT

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.

 
 
 
 
 
 
 
 
DATA(ld_id_status_prev) = '00'.
 
DATA(ld_ib_status_reset) = 'X'.
 
DATA(ld_i_package_size) = 50000.
 


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!