SAP - How To Upload Serial Number
SAP - How To Upload Serial Number
SAP - How To Upload Serial Number
Hi my version of netweaver is 7.0 netweaver ,on reading about customer exit (cmod) http://wiki.sdn.sap.com/
wiki/display/ABAP/CustomerExits%28CMOD%29 IItis indicated that this concept is obsolete for netweaver
7.0 and is replaced by the classic and new BAdIs, and SAP does not create any more customer exit.I was
wondering if still applicable to use the enhancement.IQSM0001 in my version of 7.0 because I can see in
se84 it exist ?
Edited by: JackAbaper on Feb 3, 2012 11:53 AM
Edited by: JackAbaper on Feb 3, 2012 11:55 AM
Make sure you validate the processing using ABAP stack and T-Code check....I made a blunder not checking
those...
PERFORM SERIAL_L
I got a requirement to update the serial numbers during outbound delivery creation in VL01N.
the information that u have provided had assisted me in accomplishing the goal :-)
I have used the BADI: LE_SHP_DELIVERY_PROC and implemented an enhancement for the METHOD:
SAVE AND PUBLISH_BEFORE_OUTPUT.
Step - 1: used the logic provided to me to fetch the serial numbers.
Step - 2: used the FM: SERNR_ADD_TO_LS
Step - 3: used the below code to update
IF SERIAL_COMMIT = 'X'.
">>>>If serial numbers and Object numbers are generated
PERFORM SERIAL_LISTE_POST_LS IN PROGRAM SAPLIPW1.
ENDIF.
Regards,
Sai Vignesh.
= 'X'
number
= wa_sernum-sernr
QUANTITY
=
RETURNCODE
=
EXCEPTIONS
interval_not_found
=1
number_range_not_intern
=2
object_not_found
=3
quantity_is_0
=4
quantity_is_not_1
=5
interval_overflow
=6
buffer_overflow
=7
OTHERS
=8
endloop.
CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
EXPORTING
object
= 'EQUIP_NR'
EXCEPTIONS
OBJECT_NOT_FOUND
=1
OTHERS
=2
endloop.
CALL FUNCTION 'SERNR_ADD_TO_LS'
EXPORTING
PROFILE
= WA_XLIPS-SERAIL
MATERIAL
= WA_XLIPS-MATNR
QUANTITY
= LV_ANZAHL ">>>>Type cast this from LFIMG
DOCUMENT
= WA_XLIPS-VBELN
ITEM
= WA_XLIPS-POSNR
DEBITOR
= WA_XLIKP-KUNNR
VBTYP
= ' ' "WA_XLIPS-VGTYP
BWART
= WA_XLIPS-BWART
SNBWG
= 'XXXX' ">>>>Serial number profuile of the material
M_WERK
= WA_XLIPS-WERKS
IMPORTING
ANZSN
= WA_XLIPS-ANZSN
SERIAL_COMMIT
= SERIAL_COMMIT
TABLES
SERNOS
= IT_SERNUM
EXCEPTIONS ">>>>Please use all exceptions
endmethod.