02-12-2016 7:58 AM
Hi,
I am trying to assign serial number to delivery.
So through Function Module-SERNR_ADD_TO_LS.
PROFILE AIL
MATERIAL 1000000070
M_CHARGE
QUANTITY 1
J_VORGANG PMS3
KMATNR
CUOBJ 0000000000000000
DOCUMENT 10400041
ITEM 10
DEBITOR 500000
VBTYP J
BWART 601
SNBWG
M_WERK
I_BAPI
Tables Value
SERNOS 0 Entries
R_SERNR 0 Entries
I am confused were to enter serial number,say mine is 55.
I entered in SERNOS
SERNR UII
55
Were should i enter the serial number
I am getting as below,
PROFILE AIL
MATERIAL 1000000070
M_CHARGE
QUANTITY 1
J_VORGANG PMS3
KMATNR
CUOBJ 000000000000000
DOCUMENT 10400041
ITEM 000010
DEBITOR 500000
VBTYP J
BWART 601
SNBWG
M_WERK
I_BAPI
Export parameters Value
ANZSN 1
ZEILEN_ID $#SDLS001040004
SERIAL_COMMIT X
Tables Value
SERNOS 1 Entry
Result: 1 Entry
R_SERNR 0 Entries
Result: 0 Entries
I believe serial number needs to be updated in the filed ANZSN.
Serial number is not getting updated to delivery
02-12-2016 8:03 AM
I succesfully used WS_DELIVERY_UPDATE_2, filling import parameter IT_SERNR_UPDATE (it's a table where you pass delivery, item and sn).
I also passed Synchron and Commit = 'X'
02-12-2016 8:11 AM
AFAIK no released BAPI exist (WS_DELIVERY_UPDATE*, BAPI_OUTB_DELIVERY_CHANGE and BAPI_DELIVERYPROCESSING_EXEC are not released) so BDC or IDoc solution (look for the DELVRY* IDoc)
Regards,
Raymond
02-12-2016 8:22 AM
Raymond Giuseppi Why are you saying WS_DELIVERY_UPDATE_2 doesn't works into assigning the SN to delivery?
02-12-2016 8:27 AM
I didn't write this , I only point out that those FM are not released so may rise problem one day. (Nethertheless I mentionned those FM as they can be find in multiple threads, so OP can use those at his own risk.)
Regards,
Raymond
02-12-2016 8:31 AM
-facepalm-
i missed the "released" little word -facepalm-
Shame on me
-a little rant/note-
I still wondering why some BAPIs/FM used over and over with great success, objects which perform any control and check so "pretty safe", are still not released 😕
02-12-2016 9:07 AM
Thanks for the replies.
Now i used BAPI_OUTB_DELIVERY_CHANGE. Through this i could assign serial number to delivery.