SAP SERIAL_LISTE_IV Function Module for NOTRANSL: Hinzufuegen Serialnummer(n) zum Inventurbeleg (Zaehlung)
SERIAL_LISTE_IV is a standard serial liste iv 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: Hinzufuegen Serialnummer(n) zum Inventurbeleg (Zaehlung) 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 liste iv FM, simply by entering the name SERIAL_LISTE_IV into the relevant SAP transaction such as SE37 or SE38.
Function Group: IPW1
Program Name: SAPLIPW1
Main Program: SAPLIPW1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SERIAL_LISTE_IV 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_LISTE_IV'"NOTRANSL: Hinzufuegen Serialnummer(n) zum Inventurbeleg (Zaehlung).
EXPORTING
PROFILE = "
WERK = "Plant
LAGERORT = "Storage Location
CHARGE = "Batch
BSTAR = "Stock Type
BSTCH = "
* STOCK_PROPOSAL = ' ' "
MATERIAL = "Material Number
M_CHARGE = "
QUANTITY = "
* J_VORGANG = 'PMTC' "
ACTIVITY = "
IBLNR = "Physical Inventory Doc. No.
ZEILI = "
GJAHR = "
IMPORTING
ANZSN = "
SERIAL_COMMIT = "Change Indicator
EXIT_FLAG = "
EXCEPTIONS
NO_PROFILE_OPERATION = 1 OBJECTLIST_ALREADY_GENERATED = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIPW1_001 Automatic Serial Number Assignment
EXIT_SAPLIPW1_002 Check on Copying Object List
EXIT_SAPLIPW1_003 Serial Numbers, User Exit for Additional Fields
EXIT_SAPLIPW1_004 Serial Numbers, User Exit After Exiting the Serial Screen
EXIT_SAPLIPW1_008 Check of Serial Number - Character String
IMPORTING Parameters details for SERIAL_LISTE_IV
PROFILE -
Data type: T377P-SERAILOptional: No
Call by Reference: No ( called with pass by value option)
WERK - Plant
Data type: SER07-WERKOptional: No
Call by Reference: No ( called with pass by value option)
LAGERORT - Storage Location
Data type: SER07-LAGERORTOptional: No
Call by Reference: No ( called with pass by value option)
CHARGE - Batch
Data type: SER07-CHARGEOptional: No
Call by Reference: No ( called with pass by value option)
BSTAR - Stock Type
Data type: SER07-BSTAROptional: No
Call by Reference: No ( called with pass by value option)
BSTCH -
Data type: BSINFOptional: No
Call by Reference: No ( called with pass by value option)
STOCK_PROPOSAL -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL - Material Number
Data type: RISA0-MATNROptional: No
Call by Reference: No ( called with pass by value option)
M_CHARGE -
Data type: SER03-CHARGEOptional: No
Call by Reference: No ( called with pass by value option)
QUANTITY -
Data type: RISA0-ANZAHLOptional: No
Call by Reference: No ( called with pass by value option)
J_VORGANG -
Data type: TJ01-VRGNGDefault: 'PMTC'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVITY -
Data type: T370-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
IBLNR - Physical Inventory Doc. No.
Data type: SER07-IBLNROptional: No
Call by Reference: No ( called with pass by value option)
ZEILI -
Data type: SER07-ZEILIOptional: No
Call by Reference: No ( called with pass by value option)
GJAHR -
Data type: SER07-MJAHROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SERIAL_LISTE_IV
ANZSN -
Data type: LIPS-ANZSNOptional: No
Call by Reference: Yes
SERIAL_COMMIT - Change Indicator
Data type: COptional: No
Call by Reference: Yes
EXIT_FLAG -
Data type: COptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_PROFILE_OPERATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECTLIST_ALREADY_GENERATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SERIAL_LISTE_IV 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_no_profile_operation | TYPE T377P, " | |||
| lv_werk | TYPE SER07-WERK, " | |||
| lv_lagerort | TYPE SER07-LAGERORT, " | |||
| lv_charge | TYPE SER07-CHARGE, " | |||
| lv_bstar | TYPE SER07-BSTAR, " | |||
| lv_bstch | TYPE BSINF, " | |||
| lv_stock_proposal | TYPE C, " SPACE | |||
| lv_material | TYPE RISA0-MATNR, " | |||
| lv_serial_commit | TYPE C, " | |||
| lv_objectlist_already_generated | TYPE C, " | |||
| lv_m_charge | TYPE SER03-CHARGE, " | |||
| lv_exit_flag | TYPE C, " | |||
| lv_quantity | TYPE RISA0-ANZAHL, " | |||
| lv_j_vorgang | TYPE TJ01-VRGNG, " 'PMTC' | |||
| lv_activity | TYPE T370-AKTYP, " | |||
| lv_iblnr | TYPE SER07-IBLNR, " | |||
| lv_zeili | TYPE SER07-ZEILI, " | |||
| lv_gjahr | TYPE SER07-MJAHR. " |
|   CALL FUNCTION 'SERIAL_LISTE_IV' "NOTRANSL: Hinzufuegen Serialnummer(n) zum Inventurbeleg (Zaehlung) |
| EXPORTING | ||
| PROFILE | = lv_profile | |
| WERK | = lv_werk | |
| LAGERORT | = lv_lagerort | |
| CHARGE | = lv_charge | |
| BSTAR | = lv_bstar | |
| BSTCH | = lv_bstch | |
| STOCK_PROPOSAL | = lv_stock_proposal | |
| MATERIAL | = lv_material | |
| M_CHARGE | = lv_m_charge | |
| QUANTITY | = lv_quantity | |
| J_VORGANG | = lv_j_vorgang | |
| ACTIVITY | = lv_activity | |
| IBLNR | = lv_iblnr | |
| ZEILI | = lv_zeili | |
| GJAHR | = lv_gjahr | |
| IMPORTING | ||
| ANZSN | = lv_anzsn | |
| SERIAL_COMMIT | = lv_serial_commit | |
| EXIT_FLAG | = lv_exit_flag | |
| EXCEPTIONS | ||
| NO_PROFILE_OPERATION = 1 | ||
| OBJECTLIST_ALREADY_GENERATED = 2 | ||
| . " SERIAL_LISTE_IV | ||
ABAP code using 7.40 inline data declarations to call FM SERIAL_LISTE_IV
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 WERK FROM SER07 INTO @DATA(ld_werk). | ||||
| "SELECT single LAGERORT FROM SER07 INTO @DATA(ld_lagerort). | ||||
| "SELECT single CHARGE FROM SER07 INTO @DATA(ld_charge). | ||||
| "SELECT single BSTAR FROM SER07 INTO @DATA(ld_bstar). | ||||
| DATA(ld_stock_proposal) | = ' '. | |||
| "SELECT single MATNR FROM RISA0 INTO @DATA(ld_material). | ||||
| "SELECT single CHARGE FROM SER03 INTO @DATA(ld_m_charge). | ||||
| "SELECT single ANZAHL FROM RISA0 INTO @DATA(ld_quantity). | ||||
| "SELECT single VRGNG FROM TJ01 INTO @DATA(ld_j_vorgang). | ||||
| DATA(ld_j_vorgang) | = 'PMTC'. | |||
| "SELECT single AKTYP FROM T370 INTO @DATA(ld_activity). | ||||
| "SELECT single IBLNR FROM SER07 INTO @DATA(ld_iblnr). | ||||
| "SELECT single ZEILI FROM SER07 INTO @DATA(ld_zeili). | ||||
| "SELECT single MJAHR FROM SER07 INTO @DATA(ld_gjahr). | ||||
Search for further information about these or an SAP related objects