Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Assign Serial number to delivery-VL02N

former_member185462
Active Participant
0 Kudos

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

6 REPLIES 6

SimoneMilesi
Active Contributor
0 Kudos

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'

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

Raymond Giuseppi     Why are you saying WS_DELIVERY_UPDATE_2 doesn't works into assigning the SN to delivery?

0 Kudos

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

0 Kudos

-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 😕

former_member185462
Active Participant
0 Kudos

Thanks for the replies.

Now i used BAPI_OUTB_DELIVERY_CHANGE. Through this i could assign serial number to delivery.