SAP ISH_GET_OLD_OE Function Module for
ISH_GET_OLD_OE is a standard ish get old oe 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 ish get old oe FM, simply by entering the name ISH_GET_OLD_OE into the relevant SAP transaction such as SE37 or SE38.
Function Group: N029
Program Name: SAPLN029
Main Program: SAPLN029
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_GET_OLD_OE 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 'ISH_GET_OLD_OE'".
EXPORTING
* ABGER = ' ' "Service billed yes/no (on/off)
LEVON = "Service Start Date
NBEW_ACT = "Current movement in processing
* WEGEL = ' ' "Service transferred on/off
* ZEITR = ' ' "Extended service on/off
BEGZT = "Service Start Time
ENDZT = "End time of service
E_RNEXL = "Transfer structure with case- and patient data
* FIND_ANFOE = ' ' "Ordering dept org. unit search on/off
* FIND_ANPOE = ' ' "Ordering nursing org. unit search on/off
* FIND_ERBOE = ' ' "Performing org. unit search on/off
LEBIS = "Service End Date
LEIST = "Service Key
IMPORTING
ANFOE = "Ordering org. unit
EORGKB = "Performing org. unit identifier
ERBOE = "Performing org. unit
ERMAN = "Performing OU manually changed indicator
LFDBEW = "Sequential no. of found movement
ANMAN = "Ordering OU manually changed indicator
ANPOE = "Ordering nursing org. unit
AOKURZ = "Ordering dept OU short text
AORGKB = "Ordering dept OU identifier
APKURZ = "Ordering nursing org. unit short text
APMAN = "Ordering nursing OU manually changed indicator
APRGKB = "Ordering nursing OU identifier
EOKURZ = "Perforning org. unit short text
TABLES
SS_NBEW = "Table of current movement records
EXCEPTIONS
NO_CHANGE_POSSIBLE = 1 NO_NBEW_FOUND = 2 OE_NOT_IN_NORG = 3 TOO_MUCH_NBEW = 4 WRONG_DATE = 5
IMPORTING Parameters details for ISH_GET_OLD_OE
ABGER - Service billed yes/no (on/off)
Data type: RNLE1-ABGERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LEVON - Service Start Date
Data type: RNLE1-LEVONOptional: No
Call by Reference: No ( called with pass by value option)
NBEW_ACT - Current movement in processing
Data type: NBEWOptional: No
Call by Reference: No ( called with pass by value option)
WEGEL - Service transferred on/off
Data type: RNLE1-WEGELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ZEITR - Extended service on/off
Data type: RNLE1-ZEITRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BEGZT - Service Start Time
Data type: RNLE1-BEGZTOptional: No
Call by Reference: No ( called with pass by value option)
ENDZT - End time of service
Data type: RNLE1-ENDZTOptional: No
Call by Reference: No ( called with pass by value option)
E_RNEXL - Transfer structure with case- and patient data
Data type: RNEXLOptional: No
Call by Reference: No ( called with pass by value option)
FIND_ANFOE - Ordering dept org. unit search on/off
Data type: RNLE1-MARKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIND_ANPOE - Ordering nursing org. unit search on/off
Data type: RNLE1-MARKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIND_ERBOE - Performing org. unit search on/off
Data type: RNLE1-MARKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LEBIS - Service End Date
Data type: RNLE1-LEBISOptional: No
Call by Reference: No ( called with pass by value option)
LEIST - Service Key
Data type: NLEI-LEISTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_GET_OLD_OE
ANFOE - Ordering org. unit
Data type: RNLE1-ANFOEOptional: No
Call by Reference: No ( called with pass by value option)
EORGKB - Performing org. unit identifier
Data type: RNLE1-EORGKBOptional: No
Call by Reference: No ( called with pass by value option)
ERBOE - Performing org. unit
Data type: RNLE1-ERBOEOptional: No
Call by Reference: No ( called with pass by value option)
ERMAN - Performing OU manually changed indicator
Data type: RNLE1-ERMANOptional: No
Call by Reference: No ( called with pass by value option)
LFDBEW - Sequential no. of found movement
Data type: NBEW-LFDNROptional: No
Call by Reference: No ( called with pass by value option)
ANMAN - Ordering OU manually changed indicator
Data type: RNLE1-ANMANOptional: No
Call by Reference: No ( called with pass by value option)
ANPOE - Ordering nursing org. unit
Data type: RNLE1-ANPOEOptional: No
Call by Reference: No ( called with pass by value option)
AOKURZ - Ordering dept OU short text
Data type: RNLE1-AOKURZOptional: No
Call by Reference: No ( called with pass by value option)
AORGKB - Ordering dept OU identifier
Data type: RNLE1-AORGKBOptional: No
Call by Reference: No ( called with pass by value option)
APKURZ - Ordering nursing org. unit short text
Data type: RNLE1-EOKURZOptional: No
Call by Reference: No ( called with pass by value option)
APMAN - Ordering nursing OU manually changed indicator
Data type: RNLE1-APMANOptional: No
Call by Reference: No ( called with pass by value option)
APRGKB - Ordering nursing OU identifier
Data type: RNLE1-EORGKBOptional: No
Call by Reference: No ( called with pass by value option)
EOKURZ - Perforning org. unit short text
Data type: RNLE1-EOKURZOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_GET_OLD_OE
SS_NBEW - Table of current movement records
Data type: VNBEWOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_CHANGE_POSSIBLE - Service already billed/transferred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_NBEW_FOUND - Movements/OUS cannot be assigned
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OE_NOT_IN_NORG - Found OU no longer in table NORG
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TOO_MUCH_NBEW - Unique assignment of a movement not possible
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_DATE - 'From' or 'to' date of service incorrect
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_GET_OLD_OE 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_abger | TYPE RNLE1-ABGER, " SPACE | |||
| lv_anfoe | TYPE RNLE1-ANFOE, " | |||
| lt_ss_nbew | TYPE STANDARD TABLE OF VNBEW, " | |||
| lv_no_change_possible | TYPE VNBEW, " | |||
| lv_levon | TYPE RNLE1-LEVON, " | |||
| lv_eorgkb | TYPE RNLE1-EORGKB, " | |||
| lv_erboe | TYPE RNLE1-ERBOE, " | |||
| lv_nbew_act | TYPE NBEW, " | |||
| lv_erman | TYPE RNLE1-ERMAN, " | |||
| lv_wegel | TYPE RNLE1-WEGEL, " SPACE | |||
| lv_zeitr | TYPE RNLE1-ZEITR, " SPACE | |||
| lv_lfdbew | TYPE NBEW-LFDNR, " | |||
| lv_anman | TYPE RNLE1-ANMAN, " | |||
| lv_begzt | TYPE RNLE1-BEGZT, " | |||
| lv_no_nbew_found | TYPE RNLE1, " | |||
| lv_anpoe | TYPE RNLE1-ANPOE, " | |||
| lv_endzt | TYPE RNLE1-ENDZT, " | |||
| lv_oe_not_in_norg | TYPE RNLE1, " | |||
| lv_aokurz | TYPE RNLE1-AOKURZ, " | |||
| lv_e_rnexl | TYPE RNEXL, " | |||
| lv_too_much_nbew | TYPE RNEXL, " | |||
| lv_aorgkb | TYPE RNLE1-AORGKB, " | |||
| lv_find_anfoe | TYPE RNLE1-MARK, " SPACE | |||
| lv_wrong_date | TYPE RNLE1, " | |||
| lv_apkurz | TYPE RNLE1-EOKURZ, " | |||
| lv_find_anpoe | TYPE RNLE1-MARK, " SPACE | |||
| lv_apman | TYPE RNLE1-APMAN, " | |||
| lv_find_erboe | TYPE RNLE1-MARK, " SPACE | |||
| lv_lebis | TYPE RNLE1-LEBIS, " | |||
| lv_aprgkb | TYPE RNLE1-EORGKB, " | |||
| lv_leist | TYPE NLEI-LEIST, " | |||
| lv_eokurz | TYPE RNLE1-EOKURZ. " |
|   CALL FUNCTION 'ISH_GET_OLD_OE' " |
| EXPORTING | ||
| ABGER | = lv_abger | |
| LEVON | = lv_levon | |
| NBEW_ACT | = lv_nbew_act | |
| WEGEL | = lv_wegel | |
| ZEITR | = lv_zeitr | |
| BEGZT | = lv_begzt | |
| ENDZT | = lv_endzt | |
| E_RNEXL | = lv_e_rnexl | |
| FIND_ANFOE | = lv_find_anfoe | |
| FIND_ANPOE | = lv_find_anpoe | |
| FIND_ERBOE | = lv_find_erboe | |
| LEBIS | = lv_lebis | |
| LEIST | = lv_leist | |
| IMPORTING | ||
| ANFOE | = lv_anfoe | |
| EORGKB | = lv_eorgkb | |
| ERBOE | = lv_erboe | |
| ERMAN | = lv_erman | |
| LFDBEW | = lv_lfdbew | |
| ANMAN | = lv_anman | |
| ANPOE | = lv_anpoe | |
| AOKURZ | = lv_aokurz | |
| AORGKB | = lv_aorgkb | |
| APKURZ | = lv_apkurz | |
| APMAN | = lv_apman | |
| APRGKB | = lv_aprgkb | |
| EOKURZ | = lv_eokurz | |
| TABLES | ||
| SS_NBEW | = lt_ss_nbew | |
| EXCEPTIONS | ||
| NO_CHANGE_POSSIBLE = 1 | ||
| NO_NBEW_FOUND = 2 | ||
| OE_NOT_IN_NORG = 3 | ||
| TOO_MUCH_NBEW = 4 | ||
| WRONG_DATE = 5 | ||
| . " ISH_GET_OLD_OE | ||
ABAP code using 7.40 inline data declarations to call FM ISH_GET_OLD_OE
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 ABGER FROM RNLE1 INTO @DATA(ld_abger). | ||||
| DATA(ld_abger) | = ' '. | |||
| "SELECT single ANFOE FROM RNLE1 INTO @DATA(ld_anfoe). | ||||
| "SELECT single LEVON FROM RNLE1 INTO @DATA(ld_levon). | ||||
| "SELECT single EORGKB FROM RNLE1 INTO @DATA(ld_eorgkb). | ||||
| "SELECT single ERBOE FROM RNLE1 INTO @DATA(ld_erboe). | ||||
| "SELECT single ERMAN FROM RNLE1 INTO @DATA(ld_erman). | ||||
| "SELECT single WEGEL FROM RNLE1 INTO @DATA(ld_wegel). | ||||
| DATA(ld_wegel) | = ' '. | |||
| "SELECT single ZEITR FROM RNLE1 INTO @DATA(ld_zeitr). | ||||
| DATA(ld_zeitr) | = ' '. | |||
| "SELECT single LFDNR FROM NBEW INTO @DATA(ld_lfdbew). | ||||
| "SELECT single ANMAN FROM RNLE1 INTO @DATA(ld_anman). | ||||
| "SELECT single BEGZT FROM RNLE1 INTO @DATA(ld_begzt). | ||||
| "SELECT single ANPOE FROM RNLE1 INTO @DATA(ld_anpoe). | ||||
| "SELECT single ENDZT FROM RNLE1 INTO @DATA(ld_endzt). | ||||
| "SELECT single AOKURZ FROM RNLE1 INTO @DATA(ld_aokurz). | ||||
| "SELECT single AORGKB FROM RNLE1 INTO @DATA(ld_aorgkb). | ||||
| "SELECT single MARK FROM RNLE1 INTO @DATA(ld_find_anfoe). | ||||
| DATA(ld_find_anfoe) | = ' '. | |||
| "SELECT single EOKURZ FROM RNLE1 INTO @DATA(ld_apkurz). | ||||
| "SELECT single MARK FROM RNLE1 INTO @DATA(ld_find_anpoe). | ||||
| DATA(ld_find_anpoe) | = ' '. | |||
| "SELECT single APMAN FROM RNLE1 INTO @DATA(ld_apman). | ||||
| "SELECT single MARK FROM RNLE1 INTO @DATA(ld_find_erboe). | ||||
| DATA(ld_find_erboe) | = ' '. | |||
| "SELECT single LEBIS FROM RNLE1 INTO @DATA(ld_lebis). | ||||
| "SELECT single EORGKB FROM RNLE1 INTO @DATA(ld_aprgkb). | ||||
| "SELECT single LEIST FROM NLEI INTO @DATA(ld_leist). | ||||
| "SELECT single EOKURZ FROM RNLE1 INTO @DATA(ld_eokurz). | ||||
Search for further information about these or an SAP related objects