SAP ISHMED_COPY_SERVICES Function Module for
ISHMED_COPY_SERVICES is a standard ishmed copy services 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 ishmed copy services FM, simply by entering the name ISHMED_COPY_SERVICES into the relevant SAP transaction such as SE37 or SE38.
Function Group: N1HI
Program Name: SAPLN1HI
Main Program: SAPLN1HI
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISHMED_COPY_SERVICES 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 'ISHMED_COPY_SERVICES'".
EXPORTING
I_EINRI = "
I_GPART = "
* I_DAT_VON = SY-DATUM "
* I_DAT_BIS = SY-DATUM "
* I_DAT_BIS2 = SY-DATUM "
* I_TITLE = ' ' "
* I_LOCK_TAB = 'X' "
I_NBEW = "
IMPORTING
E_FCODE = "
TABLES
* T_NLEI = "
* T_NLEM = "
* T_N1LSSTZ = "
EXCEPTIONS
READ_ERROR = 1 CANCEL = 2 END = 3 FALL_LOCKED = 4 SYS_ERROR = 5 NO_AUTH = 6
IMPORTING Parameters details for ISHMED_COPY_SERVICES
I_EINRI -
Data type: NLEI-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
I_GPART -
Data type: N1LSSTZ-GPARTOptional: No
Call by Reference: No ( called with pass by value option)
I_DAT_VON -
Data type: NLEI-IBGDTDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DAT_BIS -
Data type: NLEI-IBGDTDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DAT_BIS2 -
Data type: NLEI-IBGDTDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TITLE -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LOCK_TAB -
Data type: RNT40-MARKDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NBEW -
Data type: NBEWOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISHMED_COPY_SERVICES
E_FCODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISHMED_COPY_SERVICES
T_NLEI -
Data type: VNLEIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_NLEM -
Data type: VNLEMOptional: Yes
Call by Reference: No ( called with pass by value option)
T_N1LSSTZ -
Data type: VN1LSSTZOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
READ_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCEL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
END -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FALL_LOCKED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYS_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISHMED_COPY_SERVICES 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: | ||||
| lt_t_nlei | TYPE STANDARD TABLE OF VNLEI, " | |||
| lv_e_fcode | TYPE VNLEI, " | |||
| lv_i_einri | TYPE NLEI-EINRI, " | |||
| lv_read_error | TYPE NLEI, " | |||
| lv_cancel | TYPE NLEI, " | |||
| lt_t_nlem | TYPE STANDARD TABLE OF VNLEM, " | |||
| lv_i_gpart | TYPE N1LSSTZ-GPART, " | |||
| lv_end | TYPE N1LSSTZ, " | |||
| lv_i_dat_von | TYPE NLEI-IBGDT, " SY-DATUM | |||
| lt_t_n1lsstz | TYPE STANDARD TABLE OF VN1LSSTZ, " | |||
| lv_i_dat_bis | TYPE NLEI-IBGDT, " SY-DATUM | |||
| lv_fall_locked | TYPE NLEI, " | |||
| lv_sys_error | TYPE NLEI, " | |||
| lv_i_dat_bis2 | TYPE NLEI-IBGDT, " SY-DATUM | |||
| lv_i_title | TYPE NLEI, " SPACE | |||
| lv_no_auth | TYPE NLEI, " | |||
| lv_i_lock_tab | TYPE RNT40-MARK, " 'X' | |||
| lv_i_nbew | TYPE NBEW. " |
|   CALL FUNCTION 'ISHMED_COPY_SERVICES' " |
| EXPORTING | ||
| I_EINRI | = lv_i_einri | |
| I_GPART | = lv_i_gpart | |
| I_DAT_VON | = lv_i_dat_von | |
| I_DAT_BIS | = lv_i_dat_bis | |
| I_DAT_BIS2 | = lv_i_dat_bis2 | |
| I_TITLE | = lv_i_title | |
| I_LOCK_TAB | = lv_i_lock_tab | |
| I_NBEW | = lv_i_nbew | |
| IMPORTING | ||
| E_FCODE | = lv_e_fcode | |
| TABLES | ||
| T_NLEI | = lt_t_nlei | |
| T_NLEM | = lt_t_nlem | |
| T_N1LSSTZ | = lt_t_n1lsstz | |
| EXCEPTIONS | ||
| READ_ERROR = 1 | ||
| CANCEL = 2 | ||
| END = 3 | ||
| FALL_LOCKED = 4 | ||
| SYS_ERROR = 5 | ||
| NO_AUTH = 6 | ||
| . " ISHMED_COPY_SERVICES | ||
ABAP code using 7.40 inline data declarations to call FM ISHMED_COPY_SERVICES
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 EINRI FROM NLEI INTO @DATA(ld_i_einri). | ||||
| "SELECT single GPART FROM N1LSSTZ INTO @DATA(ld_i_gpart). | ||||
| "SELECT single IBGDT FROM NLEI INTO @DATA(ld_i_dat_von). | ||||
| DATA(ld_i_dat_von) | = SY-DATUM. | |||
| "SELECT single IBGDT FROM NLEI INTO @DATA(ld_i_dat_bis). | ||||
| DATA(ld_i_dat_bis) | = SY-DATUM. | |||
| "SELECT single IBGDT FROM NLEI INTO @DATA(ld_i_dat_bis2). | ||||
| DATA(ld_i_dat_bis2) | = SY-DATUM. | |||
| DATA(ld_i_title) | = ' '. | |||
| "SELECT single MARK FROM RNT40 INTO @DATA(ld_i_lock_tab). | ||||
| DATA(ld_i_lock_tab) | = 'X'. | |||
Search for further information about these or an SAP related objects