SAP ISH_ADAPT_ALL_TABLES Function Module for IS-H: Changes all tables following a change to movement
ISH_ADAPT_ALL_TABLES is a standard ish adapt all tables SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-H: Changes all tables following a change to movement 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 ish adapt all tables FM, simply by entering the name ISH_ADAPT_ALL_TABLES into the relevant SAP transaction such as SE37 or SE38.
Function Group: N018
Program Name: SAPLN018
Main Program: SAPLN018
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_ADAPT_ALL_TABLES 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_ADAPT_ALL_TABLES'"IS-H: Changes all tables following a change to movement.
EXPORTING
LAST_NR = "Last internally assigned seq. no. of srv
TABLES
KOUE_OLD = "Old ins. verification requests
KOU_DEL = "IV requests to be deleted
LEI_DEL = "Services to be deleted
NKSP_NEW = "Current NKSP records
NLEI_MOD = "New, adjusted service records
NLEI_OLD = "Old service records
NLKZ_DEL = "Assignment records NLEI - NKSP to be deleted
NLKZ_IST = "Current NLKZ
NLKZ_MOD = "Modified assignment table
IMPORTING Parameters details for ISH_ADAPT_ALL_TABLES
LAST_NR - Last internally assigned seq. no. of srv
Data type: NLEI-LNRLSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_ADAPT_ALL_TABLES
KOUE_OLD - Old ins. verification requests
Data type: RNLE5Optional: No
Call by Reference: No ( called with pass by value option)
KOU_DEL - IV requests to be deleted
Data type: RNLE1Optional: No
Call by Reference: No ( called with pass by value option)
LEI_DEL - Services to be deleted
Data type: RNLE1Optional: No
Call by Reference: No ( called with pass by value option)
NKSP_NEW - Current NKSP records
Data type: RNKSPOptional: No
Call by Reference: No ( called with pass by value option)
NLEI_MOD - New, adjusted service records
Data type: RNLE5Optional: No
Call by Reference: No ( called with pass by value option)
NLEI_OLD - Old service records
Data type: RNLE5Optional: No
Call by Reference: No ( called with pass by value option)
NLKZ_DEL - Assignment records NLEI - NKSP to be deleted
Data type: NLKZOptional: No
Call by Reference: No ( called with pass by value option)
NLKZ_IST - Current NLKZ
Data type: NLKZOptional: No
Call by Reference: No ( called with pass by value option)
NLKZ_MOD - Modified assignment table
Data type: RNLEINLKZOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_ADAPT_ALL_TABLES 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_last_nr | TYPE NLEI-LNRLS, " | |||
| lt_koue_old | TYPE STANDARD TABLE OF RNLE5, " | |||
| lt_kou_del | TYPE STANDARD TABLE OF RNLE1, " | |||
| lt_lei_del | TYPE STANDARD TABLE OF RNLE1, " | |||
| lt_nksp_new | TYPE STANDARD TABLE OF RNKSP, " | |||
| lt_nlei_mod | TYPE STANDARD TABLE OF RNLE5, " | |||
| lt_nlei_old | TYPE STANDARD TABLE OF RNLE5, " | |||
| lt_nlkz_del | TYPE STANDARD TABLE OF NLKZ, " | |||
| lt_nlkz_ist | TYPE STANDARD TABLE OF NLKZ, " | |||
| lt_nlkz_mod | TYPE STANDARD TABLE OF RNLEINLKZ. " |
|   CALL FUNCTION 'ISH_ADAPT_ALL_TABLES' "IS-H: Changes all tables following a change to movement |
| EXPORTING | ||
| LAST_NR | = lv_last_nr | |
| TABLES | ||
| KOUE_OLD | = lt_koue_old | |
| KOU_DEL | = lt_kou_del | |
| LEI_DEL | = lt_lei_del | |
| NKSP_NEW | = lt_nksp_new | |
| NLEI_MOD | = lt_nlei_mod | |
| NLEI_OLD | = lt_nlei_old | |
| NLKZ_DEL | = lt_nlkz_del | |
| NLKZ_IST | = lt_nlkz_ist | |
| NLKZ_MOD | = lt_nlkz_mod | |
| . " ISH_ADAPT_ALL_TABLES | ||
ABAP code using 7.40 inline data declarations to call FM ISH_ADAPT_ALL_TABLES
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 LNRLS FROM NLEI INTO @DATA(ld_last_nr). | ||||
Search for further information about these or an SAP related objects