SAP SERIAL_COPY_PO_LS Function Module for NOTRANSL: Kopieren von Bestelleinteilung - Lieferposition
SERIAL_COPY_PO_LS is a standard serial copy po 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 Bestelleinteilung - 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 po ls FM, simply by entering the name SERIAL_COPY_PO_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_PO_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_PO_LS'"NOTRANSL: Kopieren von Bestelleinteilung - Lieferposition.
EXPORTING
PROFILE = "Serial Number Profile
I_DEBITOR = "Debtor Number 1
I_VBTYP = "SD document category
* I_BWART = "Movement Type (Inventory Management)
* I_M_CHARGE = "Batch Number
* I_BSTCH = "
MATERIAL = "Material Number
QUANTITY = "Number of Serial Numbers/Pieces of Equipment to be Created
* J_VORGANG = "Business Transaction
I_EBELN = "Purchasing Document Number
I_EBELP = "Item Number of Purchasing Document
I_ETENR = "Delivery Schedule Line Counter
I_LIEF_NR = "Delivery
I_LIEF_POS = "Delivery Item
IMPORTING
ANZSN = "
ZEILEN_ID = "
SERIAL_COMMIT = "Change Indicator
STATUS_NOT_ALLOWED = "
EXCEPTIONS
OBJECTLIST_NOT_FOUND = 1
IMPORTING Parameters details for SERIAL_COPY_PO_LS
PROFILE - Serial Number Profile
Data type: T377P-SERAILOptional: No
Call by Reference: Yes
I_DEBITOR - Debtor Number 1
Data type: SER01-KUNDEOptional: No
Call by Reference: Yes
I_VBTYP - SD document category
Data type: SER01-VBTYPOptional: No
Call by Reference: Yes
I_BWART - Movement Type (Inventory Management)
Data type: SER01-BWARTOptional: Yes
Call by Reference: Yes
I_M_CHARGE - Batch Number
Data type: EKET-CHARGOptional: Yes
Call by Reference: Yes
I_BSTCH -
Data type: BSINFOptional: Yes
Call by Reference: Yes
MATERIAL - Material Number
Data type: RISA0-MATNROptional: No
Call by Reference: Yes
QUANTITY - Number of Serial Numbers/Pieces of Equipment to be Created
Data type: RISA0-ANZAHLOptional: No
Call by Reference: Yes
J_VORGANG - Business Transaction
Data type: TJ01-VRGNGOptional: Yes
Call by Reference: Yes
I_EBELN - Purchasing Document Number
Data type: SER08-EBELNOptional: No
Call by Reference: Yes
I_EBELP - Item Number of Purchasing Document
Data type: SER08-EBELPOptional: No
Call by Reference: Yes
I_ETENR - Delivery Schedule Line Counter
Data type: SER08-ETENROptional: No
Call by Reference: Yes
I_LIEF_NR - Delivery
Data type: SER01-LIEF_NROptional: No
Call by Reference: Yes
I_LIEF_POS - Delivery Item
Data type: SER01-POSNROptional: No
Call by Reference: Yes
EXPORTING Parameters details for SERIAL_COPY_PO_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: No ( called with pass by value option)
SERIAL_COMMIT - Change Indicator
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
STATUS_NOT_ALLOWED -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OBJECTLIST_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SERIAL_COPY_PO_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_profile | TYPE T377P-SERAIL, " | |||
| lv_objectlist_not_found | TYPE T377P, " | |||
| lv_i_debitor | TYPE SER01-KUNDE, " | |||
| lv_i_vbtyp | TYPE SER01-VBTYP, " | |||
| lv_i_bwart | TYPE SER01-BWART, " | |||
| lv_i_m_charge | TYPE EKET-CHARG, " | |||
| lv_i_bstch | TYPE BSINF, " | |||
| lv_material | TYPE RISA0-MATNR, " | |||
| lv_zeilen_id | TYPE MESG-ZEILE, " | |||
| lv_quantity | TYPE RISA0-ANZAHL, " | |||
| lv_serial_commit | TYPE C, " | |||
| lv_j_vorgang | TYPE TJ01-VRGNG, " | |||
| lv_status_not_allowed | TYPE C, " | |||
| lv_i_ebeln | TYPE SER08-EBELN, " | |||
| lv_i_ebelp | TYPE SER08-EBELP, " | |||
| lv_i_etenr | TYPE SER08-ETENR, " | |||
| lv_i_lief_nr | TYPE SER01-LIEF_NR, " | |||
| lv_i_lief_pos | TYPE SER01-POSNR. " |
|   CALL FUNCTION 'SERIAL_COPY_PO_LS' "NOTRANSL: Kopieren von Bestelleinteilung - Lieferposition |
| EXPORTING | ||
| PROFILE | = lv_profile | |
| I_DEBITOR | = lv_i_debitor | |
| I_VBTYP | = lv_i_vbtyp | |
| I_BWART | = lv_i_bwart | |
| I_M_CHARGE | = lv_i_m_charge | |
| I_BSTCH | = lv_i_bstch | |
| MATERIAL | = lv_material | |
| QUANTITY | = lv_quantity | |
| J_VORGANG | = lv_j_vorgang | |
| I_EBELN | = lv_i_ebeln | |
| I_EBELP | = lv_i_ebelp | |
| I_ETENR | = lv_i_etenr | |
| I_LIEF_NR | = lv_i_lief_nr | |
| I_LIEF_POS | = lv_i_lief_pos | |
| 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_PO_LS | ||
ABAP code using 7.40 inline data declarations to call FM SERIAL_COPY_PO_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 SERAIL FROM T377P INTO @DATA(ld_profile). | ||||
| "SELECT single KUNDE FROM SER01 INTO @DATA(ld_i_debitor). | ||||
| "SELECT single VBTYP FROM SER01 INTO @DATA(ld_i_vbtyp). | ||||
| "SELECT single BWART FROM SER01 INTO @DATA(ld_i_bwart). | ||||
| "SELECT single CHARG FROM EKET INTO @DATA(ld_i_m_charge). | ||||
| "SELECT single MATNR FROM RISA0 INTO @DATA(ld_material). | ||||
| "SELECT single ZEILE FROM MESG INTO @DATA(ld_zeilen_id). | ||||
| "SELECT single ANZAHL FROM RISA0 INTO @DATA(ld_quantity). | ||||
| "SELECT single VRGNG FROM TJ01 INTO @DATA(ld_j_vorgang). | ||||
| "SELECT single EBELN FROM SER08 INTO @DATA(ld_i_ebeln). | ||||
| "SELECT single EBELP FROM SER08 INTO @DATA(ld_i_ebelp). | ||||
| "SELECT single ETENR FROM SER08 INTO @DATA(ld_i_etenr). | ||||
| "SELECT single LIEF_NR FROM SER01 INTO @DATA(ld_i_lief_nr). | ||||
| "SELECT single POSNR FROM SER01 INTO @DATA(ld_i_lief_pos). | ||||
Search for further information about these or an SAP related objects