SAP FAGL_R_CHECK_OBJ_NOT_IN_REORG Function Module for
FAGL_R_CHECK_OBJ_NOT_IN_REORG is a standard fagl r check obj not in reorg 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 r check obj not in reorg FM, simply by entering the name FAGL_R_CHECK_OBJ_NOT_IN_REORG into the relevant SAP transaction such as SE37 or SE38.
Function Group: FAGL_R_SERVICES
Program Name: SAPLFAGL_R_SERVICES
Main Program: SAPLFAGL_R_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FAGL_R_CHECK_OBJ_NOT_IN_REORG 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_R_CHECK_OBJ_NOT_IN_REORG'".
EXPORTING
* IV_KOKRS = "Controlling Area
* IV_VBELN = "Sales Document
* IV_POSNR = "Sales document item
* IV_PSPNR = "WBS Element
* IV_PSPNR_PROJ = "Project Definition (Internal)
* IV_XONLY_OPEN_PLANS = 'X' "
* IV_OBJNR = "
* IV_PLAN_TYPE = '001' "
* IV_KOSTL = "Cost Center
* IV_AUFNR = "Order Number
* IV_KSTRG = "
* IV_MATNR = "Material Number
* IV_WERKS = "Plant
* IV_VORNR = "Operation Number
* IV_EBELN = "Purchasing Document Number
* IV_EBELP = "Item Number of Purchasing Document
IMPORTING
EV_XIN_REORG = "
EV_PLAN = "Reorganization Plan
EV_UNAME_RESP = "
IMPORTING Parameters details for FAGL_R_CHECK_OBJ_NOT_IN_REORG
IV_KOKRS - Controlling Area
Data type: TKA01-KOKRSOptional: Yes
Call by Reference: Yes
IV_VBELN - Sales Document
Data type: VBAK-VBELNOptional: Yes
Call by Reference: Yes
IV_POSNR - Sales document item
Data type: VBAP-POSNROptional: Yes
Call by Reference: Yes
IV_PSPNR - WBS Element
Data type: PRPS-PSPNROptional: Yes
Call by Reference: Yes
IV_PSPNR_PROJ - Project Definition (Internal)
Data type: PROJ-PSPNROptional: Yes
Call by Reference: Yes
IV_XONLY_OPEN_PLANS -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_OBJNR -
Data type: J_OBJNROptional: Yes
Call by Reference: Yes
IV_PLAN_TYPE -
Data type: FAGL_R_PLAN_TYPEDefault: '001'
Optional: Yes
Call by Reference: Yes
IV_KOSTL - Cost Center
Data type: CSKS-KOSTLOptional: Yes
Call by Reference: Yes
IV_AUFNR - Order Number
Data type: AUFK-AUFNROptional: Yes
Call by Reference: Yes
IV_KSTRG -
Data type: CKPH-KSTRGOptional: Yes
Call by Reference: Yes
IV_MATNR - Material Number
Data type: MARA-MATNROptional: Yes
Call by Reference: Yes
IV_WERKS - Plant
Data type: T001W-WERKSOptional: Yes
Call by Reference: Yes
IV_VORNR - Operation Number
Data type: AFVC-VORNROptional: Yes
Call by Reference: Yes
IV_EBELN - Purchasing Document Number
Data type: EKPO-EBELNOptional: Yes
Call by Reference: Yes
IV_EBELP - Item Number of Purchasing Document
Data type: EKPO-EBELPOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FAGL_R_CHECK_OBJ_NOT_IN_REORG
EV_XIN_REORG -
Data type: FLAGOptional: No
Call by Reference: Yes
EV_PLAN - Reorganization Plan
Data type: FAGL_R_PLANOptional: No
Call by Reference: Yes
EV_UNAME_RESP -
Data type: FAGL_R_UNAME_CREATEDOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FAGL_R_CHECK_OBJ_NOT_IN_REORG 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_iv_kokrs | TYPE TKA01-KOKRS, " | |||
| lv_ev_xin_reorg | TYPE FLAG, " | |||
| lv_iv_vbeln | TYPE VBAK-VBELN, " | |||
| lv_iv_posnr | TYPE VBAP-POSNR, " | |||
| lv_iv_pspnr | TYPE PRPS-PSPNR, " | |||
| lv_iv_pspnr_proj | TYPE PROJ-PSPNR, " | |||
| lv_iv_xonly_open_plans | TYPE FLAG, " 'X' | |||
| lv_iv_objnr | TYPE J_OBJNR, " | |||
| lv_iv_plan_type | TYPE FAGL_R_PLAN_TYPE, " '001' | |||
| lv_ev_plan | TYPE FAGL_R_PLAN, " | |||
| lv_iv_kostl | TYPE CSKS-KOSTL, " | |||
| lv_iv_aufnr | TYPE AUFK-AUFNR, " | |||
| lv_ev_uname_resp | TYPE FAGL_R_UNAME_CREATED, " | |||
| lv_iv_kstrg | TYPE CKPH-KSTRG, " | |||
| lv_iv_matnr | TYPE MARA-MATNR, " | |||
| lv_iv_werks | TYPE T001W-WERKS, " | |||
| lv_iv_vornr | TYPE AFVC-VORNR, " | |||
| lv_iv_ebeln | TYPE EKPO-EBELN, " | |||
| lv_iv_ebelp | TYPE EKPO-EBELP. " |
|   CALL FUNCTION 'FAGL_R_CHECK_OBJ_NOT_IN_REORG' " |
| EXPORTING | ||
| IV_KOKRS | = lv_iv_kokrs | |
| IV_VBELN | = lv_iv_vbeln | |
| IV_POSNR | = lv_iv_posnr | |
| IV_PSPNR | = lv_iv_pspnr | |
| IV_PSPNR_PROJ | = lv_iv_pspnr_proj | |
| IV_XONLY_OPEN_PLANS | = lv_iv_xonly_open_plans | |
| IV_OBJNR | = lv_iv_objnr | |
| IV_PLAN_TYPE | = lv_iv_plan_type | |
| IV_KOSTL | = lv_iv_kostl | |
| IV_AUFNR | = lv_iv_aufnr | |
| IV_KSTRG | = lv_iv_kstrg | |
| IV_MATNR | = lv_iv_matnr | |
| IV_WERKS | = lv_iv_werks | |
| IV_VORNR | = lv_iv_vornr | |
| IV_EBELN | = lv_iv_ebeln | |
| IV_EBELP | = lv_iv_ebelp | |
| IMPORTING | ||
| EV_XIN_REORG | = lv_ev_xin_reorg | |
| EV_PLAN | = lv_ev_plan | |
| EV_UNAME_RESP | = lv_ev_uname_resp | |
| . " FAGL_R_CHECK_OBJ_NOT_IN_REORG | ||
ABAP code using 7.40 inline data declarations to call FM FAGL_R_CHECK_OBJ_NOT_IN_REORG
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 KOKRS FROM TKA01 INTO @DATA(ld_iv_kokrs). | ||||
| "SELECT single VBELN FROM VBAK INTO @DATA(ld_iv_vbeln). | ||||
| "SELECT single POSNR FROM VBAP INTO @DATA(ld_iv_posnr). | ||||
| "SELECT single PSPNR FROM PRPS INTO @DATA(ld_iv_pspnr). | ||||
| "SELECT single PSPNR FROM PROJ INTO @DATA(ld_iv_pspnr_proj). | ||||
| DATA(ld_iv_xonly_open_plans) | = 'X'. | |||
| DATA(ld_iv_plan_type) | = '001'. | |||
| "SELECT single KOSTL FROM CSKS INTO @DATA(ld_iv_kostl). | ||||
| "SELECT single AUFNR FROM AUFK INTO @DATA(ld_iv_aufnr). | ||||
| "SELECT single KSTRG FROM CKPH INTO @DATA(ld_iv_kstrg). | ||||
| "SELECT single MATNR FROM MARA INTO @DATA(ld_iv_matnr). | ||||
| "SELECT single WERKS FROM T001W INTO @DATA(ld_iv_werks). | ||||
| "SELECT single VORNR FROM AFVC INTO @DATA(ld_iv_vornr). | ||||
| "SELECT single EBELN FROM EKPO INTO @DATA(ld_iv_ebeln). | ||||
| "SELECT single EBELP FROM EKPO INTO @DATA(ld_iv_ebelp). | ||||
Search for further information about these or an SAP related objects