SAP OIA_GET_NOT_CLEARED_DOCS Function Module for Exchanges: Get Exg Related Mov Docs without clearing no.
OIA_GET_NOT_CLEARED_DOCS is a standard oia get not cleared docs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Exchanges: Get Exg Related Mov Docs without clearing no. 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 oia get not cleared docs FM, simply by entering the name OIA_GET_NOT_CLEARED_DOCS into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIAI
Program Name: SAPLOIAI
Main Program: SAPLOIAI
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIA_GET_NOT_CLEARED_DOCS 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 'OIA_GET_NOT_CLEARED_DOCS'"Exchanges: Get Exg Related Mov Docs without clearing no..
EXPORTING
I_OIAQA = "
I_TVFK = "
I_TMC4 = "
* I_CALL_SOURCE = ' ' "
* I_SEL_TYP = ' ' "
IMPORTING
E_SUBRC = "
TABLES
G_OIAQB = "Exchange Movements Index
* G_EXGB_LOCK = "
* G_EXGB = "
IMPORTING Parameters details for OIA_GET_NOT_CLEARED_DOCS
I_OIAQA -
Data type: OIAQAOptional: No
Call by Reference: No ( called with pass by value option)
I_TVFK -
Data type: TVFKOptional: No
Call by Reference: No ( called with pass by value option)
I_TMC4 -
Data type: TMC4Optional: No
Call by Reference: No ( called with pass by value option)
I_CALL_SOURCE -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEL_TYP -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OIA_GET_NOT_CLEARED_DOCS
E_SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for OIA_GET_NOT_CLEARED_DOCS
G_OIAQB - Exchange Movements Index
Data type: OIAQBOptional: No
Call by Reference: Yes
G_EXGB_LOCK -
Data type: OIASCOptional: Yes
Call by Reference: No ( called with pass by value option)
G_EXGB -
Data type: OIASCOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIA_GET_NOT_CLEARED_DOCS 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_e_subrc | TYPE SY-SUBRC, " | |||
| lt_g_oiaqb | TYPE STANDARD TABLE OF OIAQB, " | |||
| lv_i_oiaqa | TYPE OIAQA, " | |||
| lv_i_tvfk | TYPE TVFK, " | |||
| lt_g_exgb_lock | TYPE STANDARD TABLE OF OIASC, " | |||
| lt_g_exgb | TYPE STANDARD TABLE OF OIASC, " | |||
| lv_i_tmc4 | TYPE TMC4, " | |||
| lv_i_call_source | TYPE TMC4, " ' ' | |||
| lv_i_sel_typ | TYPE TMC4. " ' ' |
|   CALL FUNCTION 'OIA_GET_NOT_CLEARED_DOCS' "Exchanges: Get Exg Related Mov Docs without clearing no. |
| EXPORTING | ||
| I_OIAQA | = lv_i_oiaqa | |
| I_TVFK | = lv_i_tvfk | |
| I_TMC4 | = lv_i_tmc4 | |
| I_CALL_SOURCE | = lv_i_call_source | |
| I_SEL_TYP | = lv_i_sel_typ | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| TABLES | ||
| G_OIAQB | = lt_g_oiaqb | |
| G_EXGB_LOCK | = lt_g_exgb_lock | |
| G_EXGB | = lt_g_exgb | |
| . " OIA_GET_NOT_CLEARED_DOCS | ||
ABAP code using 7.40 inline data declarations to call FM OIA_GET_NOT_CLEARED_DOCS
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 SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| DATA(ld_i_call_source) | = ' '. | |||
| DATA(ld_i_sel_typ) | = ' '. | |||
Search for further information about these or an SAP related objects