SAP SERIAL_LISTE_PR Function Module for NOTRANSL: Hinzufügen Serialnummer(n) zur Bestellanforderung (Dialog)









SERIAL_LISTE_PR is a standard serial liste pr 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: Hinzufügen Serialnummer(n) zur Bestellanforderung (Dialog) 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 pr FM, simply by entering the name SERIAL_LISTE_PR into the relevant SAP transaction such as SE37 or SE38.

Function Group: IPW3
Program Name: SAPLIPW3
Main Program: SAPLIPW3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SERIAL_LISTE_PR 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_PR'"NOTRANSL: Hinzufügen Serialnummer(n) zur Bestellanforderung (Dialog)
EXPORTING
PROFILE = "Serial Number Profile
I_BSART = "Purchasing Document Type
I_PSTYP = "Item Category in Purchasing Document
I_WERK = "Plant
I_LOEKZ = "Deletion indicator in purchasing document
* I_STAPO = "Compatibility
* I_M_CHARGE = "Batch Number
* I_KMATNR = "
* I_CUOBJ = "Configuration (Internal Object Number)
* I_SNBWG = "Transaction Type Group
* I_AUTOMATIC = ' ' "
MATERIAL = "Material Number
* I_BSTCH = "
* EXT = "Interface Extensions for SERIAL_LISTE_PR
QUANTITY = "Number of Serial Numbers/Pieces of Equipment to be Created
* J_VORGANG = 'PMSH' "Business Transaction
ACTIVITY = "Activity Category in Transaction (Cr/Ch/D)
I_EBELN = "Purchase Requisition Number
I_EBELP = "Item Number of Purchase Requisition
I_ETENR = "Delivery Schedule Line Counter
I_BSTYP = "Purchasing Document Category

IMPORTING
ANZSN = "Number of Serial Numbers
SERIAL_COMMIT = "Change Indicator
EXIT_FLAG = "

EXCEPTIONS
NO_PROFILE_OPERATION = 1 KONFIGURATIONS_ERROR = 2
.



IMPORTING Parameters details for SERIAL_LISTE_PR

PROFILE - Serial Number Profile

Data type: T377P-SERAIL
Optional: No
Call by Reference: Yes

I_BSART - Purchasing Document Type

Data type: SER09-BSART
Optional: No
Call by Reference: Yes

I_PSTYP - Item Category in Purchasing Document

Data type: SER09-PSTYP
Optional: No
Call by Reference: Yes

I_WERK - Plant

Data type: SER09-WERK
Optional: No
Call by Reference: Yes

I_LOEKZ - Deletion indicator in purchasing document

Data type: SER09-LOEKZ
Optional: No
Call by Reference: Yes

I_STAPO - Compatibility

Data type: SER08-STAPO
Optional: Yes
Call by Reference: Yes

I_M_CHARGE - Batch Number

Data type: EKET-CHARG
Optional: Yes
Call by Reference: Yes

I_KMATNR -

Data type: RISA0-MATNR
Optional: Yes
Call by Reference: Yes

I_CUOBJ - Configuration (Internal Object Number)

Data type: EQUI-CUOBJ
Optional: Yes
Call by Reference: Yes

I_SNBWG - Transaction Type Group

Data type: T156Q-SNBWG
Optional: Yes
Call by Reference: Yes

I_AUTOMATIC -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

MATERIAL - Material Number

Data type: RISA0-MATNR
Optional: No
Call by Reference: Yes

I_BSTCH -

Data type: BSINF
Optional: Yes
Call by Reference: Yes

EXT - Interface Extensions for SERIAL_LISTE_PR

Data type: EXT_SERIAL_LISTE_PR
Optional: Yes
Call by Reference: Yes

QUANTITY - Number of Serial Numbers/Pieces of Equipment to be Created

Data type: RISA0-ANZAHL
Optional: No
Call by Reference: Yes

J_VORGANG - Business Transaction

Data type: TJ01-VRGNG
Default: 'PMSH'
Optional: No
Call by Reference: Yes

ACTIVITY - Activity Category in Transaction (Cr/Ch/D)

Data type: T370-AKTYP
Optional: No
Call by Reference: Yes

I_EBELN - Purchase Requisition Number

Data type: SER09-BANFN
Optional: No
Call by Reference: Yes

I_EBELP - Item Number of Purchase Requisition

Data type: SER09-BNFPO
Optional: No
Call by Reference: Yes

I_ETENR - Delivery Schedule Line Counter

Data type: SER09-ETENR
Optional: No
Call by Reference: Yes

I_BSTYP - Purchasing Document Category

Data type: SER09-BSTYP
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for SERIAL_LISTE_PR

ANZSN - Number of Serial Numbers

Data type: SER08-ANZSN
Optional: No
Call by Reference: Yes

SERIAL_COMMIT - Change Indicator

Data type: C
Optional: No
Call by Reference: Yes

EXIT_FLAG -

Data type: C
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_PROFILE_OPERATION -

Data type:
Optional: No
Call by Reference: Yes

KONFIGURATIONS_ERROR - Error During Configuration

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SERIAL_LISTE_PR 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 SER08-ANZSN, "   
lv_profile  TYPE T377P-SERAIL, "   
lv_no_profile_operation  TYPE T377P, "   
lv_i_bsart  TYPE SER09-BSART, "   
lv_i_pstyp  TYPE SER09-PSTYP, "   
lv_i_werk  TYPE SER09-WERK, "   
lv_i_loekz  TYPE SER09-LOEKZ, "   
lv_i_stapo  TYPE SER08-STAPO, "   
lv_i_m_charge  TYPE EKET-CHARG, "   
lv_i_kmatnr  TYPE RISA0-MATNR, "   
lv_i_cuobj  TYPE EQUI-CUOBJ, "   
lv_i_snbwg  TYPE T156Q-SNBWG, "   
lv_i_automatic  TYPE C, "   SPACE
lv_material  TYPE RISA0-MATNR, "   
lv_serial_commit  TYPE C, "   
lv_konfigurations_error  TYPE C, "   
lv_i_bstch  TYPE BSINF, "   
lv_ext  TYPE EXT_SERIAL_LISTE_PR, "   
lv_quantity  TYPE RISA0-ANZAHL, "   
lv_exit_flag  TYPE C, "   
lv_j_vorgang  TYPE TJ01-VRGNG, "   'PMSH'
lv_activity  TYPE T370-AKTYP, "   
lv_i_ebeln  TYPE SER09-BANFN, "   
lv_i_ebelp  TYPE SER09-BNFPO, "   
lv_i_etenr  TYPE SER09-ETENR, "   
lv_i_bstyp  TYPE SER09-BSTYP. "   

  CALL FUNCTION 'SERIAL_LISTE_PR'  "NOTRANSL: Hinzufügen Serialnummer(n) zur Bestellanforderung (Dialog)
    EXPORTING
         PROFILE = lv_profile
         I_BSART = lv_i_bsart
         I_PSTYP = lv_i_pstyp
         I_WERK = lv_i_werk
         I_LOEKZ = lv_i_loekz
         I_STAPO = lv_i_stapo
         I_M_CHARGE = lv_i_m_charge
         I_KMATNR = lv_i_kmatnr
         I_CUOBJ = lv_i_cuobj
         I_SNBWG = lv_i_snbwg
         I_AUTOMATIC = lv_i_automatic
         MATERIAL = lv_material
         I_BSTCH = lv_i_bstch
         EXT = lv_ext
         QUANTITY = lv_quantity
         J_VORGANG = lv_j_vorgang
         ACTIVITY = lv_activity
         I_EBELN = lv_i_ebeln
         I_EBELP = lv_i_ebelp
         I_ETENR = lv_i_etenr
         I_BSTYP = lv_i_bstyp
    IMPORTING
         ANZSN = lv_anzsn
         SERIAL_COMMIT = lv_serial_commit
         EXIT_FLAG = lv_exit_flag
    EXCEPTIONS
        NO_PROFILE_OPERATION = 1
        KONFIGURATIONS_ERROR = 2
. " SERIAL_LISTE_PR




ABAP code using 7.40 inline data declarations to call FM SERIAL_LISTE_PR

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 SER08 INTO @DATA(ld_anzsn).
 
"SELECT single SERAIL FROM T377P INTO @DATA(ld_profile).
 
 
"SELECT single BSART FROM SER09 INTO @DATA(ld_i_bsart).
 
"SELECT single PSTYP FROM SER09 INTO @DATA(ld_i_pstyp).
 
"SELECT single WERK FROM SER09 INTO @DATA(ld_i_werk).
 
"SELECT single LOEKZ FROM SER09 INTO @DATA(ld_i_loekz).
 
"SELECT single STAPO FROM SER08 INTO @DATA(ld_i_stapo).
 
"SELECT single CHARG FROM EKET INTO @DATA(ld_i_m_charge).
 
"SELECT single MATNR FROM RISA0 INTO @DATA(ld_i_kmatnr).
 
"SELECT single CUOBJ FROM EQUI INTO @DATA(ld_i_cuobj).
 
"SELECT single SNBWG FROM T156Q INTO @DATA(ld_i_snbwg).
 
DATA(ld_i_automatic) = ' '.
 
"SELECT single MATNR FROM RISA0 INTO @DATA(ld_material).
 
 
 
 
 
"SELECT single ANZAHL FROM RISA0 INTO @DATA(ld_quantity).
 
 
"SELECT single VRGNG FROM TJ01 INTO @DATA(ld_j_vorgang).
DATA(ld_j_vorgang) = 'PMSH'.
 
"SELECT single AKTYP FROM T370 INTO @DATA(ld_activity).
 
"SELECT single BANFN FROM SER09 INTO @DATA(ld_i_ebeln).
 
"SELECT single BNFPO FROM SER09 INTO @DATA(ld_i_ebelp).
 
"SELECT single ETENR FROM SER09 INTO @DATA(ld_i_etenr).
 
"SELECT single BSTYP FROM SER09 INTO @DATA(ld_i_bstyp).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!