SAP SERIAL_COPY_HU_LS Function Module for NOTRANSL: Kopieren von Handlingunitposition - Lieferposition
SERIAL_COPY_HU_LS is a standard serial copy hu ls SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Kopieren von Handlingunitposition - Lieferposition 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 serial copy hu ls FM, simply by entering the name SERIAL_COPY_HU_LS into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPW3
Program Name: SAPLIPW3
Main Program: SAPLIPW1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SERIAL_COPY_HU_LS 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 'SERIAL_COPY_HU_LS'"NOTRANSL: Kopieren von Handlingunitposition - Lieferposition.
EXPORTING
VENUM = "Internal handling unit number
QUANTITY = "
VEPOS = "Handling Unit Item
LIEF_NR = "Delivery Number
LIEF_POS = "Delivery Item
MATERIAL = "Material Number
DEBITOR = "Customer
VBTYP = "SD document category
BWART = "Movement Type
* J_VORGANG = 'PMS3' "
IMPORTING
ANZSN = "
ZEILEN_ID = "
SERIAL_COMMIT = "Change Indicator
STATUS_NOT_ALLOWED = "
EXCEPTIONS
OBJECTLIST_NOT_FOUND = 1
IMPORTING Parameters details for SERIAL_COPY_HU_LS
VENUM - Internal handling unit number
Data type: SER06-VENUMOptional: No
Call by Reference: Yes
QUANTITY -
Data type: RISA0-ANZAHLOptional: No
Call by Reference: Yes
VEPOS - Handling Unit Item
Data type: SER06-VEPOSOptional: No
Call by Reference: Yes
LIEF_NR - Delivery Number
Data type: SER01-LIEF_NROptional: No
Call by Reference: Yes
LIEF_POS - Delivery Item
Data type: SER01-POSNROptional: No
Call by Reference: Yes
MATERIAL - Material Number
Data type: RISA0-MATNROptional: No
Call by Reference: Yes
DEBITOR - Customer
Data type: SER01-KUNDEOptional: No
Call by Reference: Yes
VBTYP - SD document category
Data type: SER01-VBTYPOptional: No
Call by Reference: Yes
BWART - Movement Type
Data type: SER01-BWARTOptional: No
Call by Reference: Yes
J_VORGANG -
Data type: TJ01-VRGNGDefault: 'PMS3'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SERIAL_COPY_HU_LS
ANZSN -
Data type: LIPS-ANZSNOptional: No
Call by Reference: No ( called with pass by value option)
ZEILEN_ID -
Data type: MESG-ZEILEOptional: No
Call by Reference: Yes
SERIAL_COMMIT - Change Indicator
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STATUS_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECTLIST_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SERIAL_COPY_HU_LS 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_anzsn | TYPE LIPS-ANZSN, " | |||
| lv_venum | TYPE SER06-VENUM, " | |||
| lv_objectlist_not_found | TYPE SER06, " | |||
| lv_quantity | TYPE RISA0-ANZAHL, " | |||
| lv_vepos | TYPE SER06-VEPOS, " | |||
| lv_zeilen_id | TYPE MESG-ZEILE, " | |||
| lv_lief_nr | TYPE SER01-LIEF_NR, " | |||
| lv_serial_commit | TYPE SER01, " | |||
| lv_lief_pos | TYPE SER01-POSNR, " | |||
| lv_status_not_allowed | TYPE SER01, " | |||
| lv_material | TYPE RISA0-MATNR, " | |||
| lv_debitor | TYPE SER01-KUNDE, " | |||
| lv_vbtyp | TYPE SER01-VBTYP, " | |||
| lv_bwart | TYPE SER01-BWART, " | |||
| lv_j_vorgang | TYPE TJ01-VRGNG. " 'PMS3' |
|   CALL FUNCTION 'SERIAL_COPY_HU_LS' "NOTRANSL: Kopieren von Handlingunitposition - Lieferposition |
| EXPORTING | ||
| VENUM | = lv_venum | |
| QUANTITY | = lv_quantity | |
| VEPOS | = lv_vepos | |
| LIEF_NR | = lv_lief_nr | |
| LIEF_POS | = lv_lief_pos | |
| MATERIAL | = lv_material | |
| DEBITOR | = lv_debitor | |
| VBTYP | = lv_vbtyp | |
| BWART | = lv_bwart | |
| J_VORGANG | = lv_j_vorgang | |
| IMPORTING | ||
| ANZSN | = lv_anzsn | |
| ZEILEN_ID | = lv_zeilen_id | |
| SERIAL_COMMIT | = lv_serial_commit | |
| STATUS_NOT_ALLOWED | = lv_status_not_allowed | |
| EXCEPTIONS | ||
| OBJECTLIST_NOT_FOUND = 1 | ||
| . " SERIAL_COPY_HU_LS | ||
ABAP code using 7.40 inline data declarations to call FM SERIAL_COPY_HU_LS
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 ANZSN FROM LIPS INTO @DATA(ld_anzsn). | ||||
| "SELECT single VENUM FROM SER06 INTO @DATA(ld_venum). | ||||
| "SELECT single ANZAHL FROM RISA0 INTO @DATA(ld_quantity). | ||||
| "SELECT single VEPOS FROM SER06 INTO @DATA(ld_vepos). | ||||
| "SELECT single ZEILE FROM MESG INTO @DATA(ld_zeilen_id). | ||||
| "SELECT single LIEF_NR FROM SER01 INTO @DATA(ld_lief_nr). | ||||
| "SELECT single POSNR FROM SER01 INTO @DATA(ld_lief_pos). | ||||
| "SELECT single MATNR FROM RISA0 INTO @DATA(ld_material). | ||||
| "SELECT single KUNDE FROM SER01 INTO @DATA(ld_debitor). | ||||
| "SELECT single VBTYP FROM SER01 INTO @DATA(ld_vbtyp). | ||||
| "SELECT single BWART FROM SER01 INTO @DATA(ld_bwart). | ||||
| "SELECT single VRGNG FROM TJ01 INTO @DATA(ld_j_vorgang). | ||||
| DATA(ld_j_vorgang) | = 'PMS3'. | |||
Search for further information about these or an SAP related objects