Update serial numbers in delivery

Hi Experts,
I need to update serial numbers in delivery,
I am using function modules SERNR_ADD_TO_LS and SERIAL_LISTE_POST_LS for it.
Its updating the serial numbers in tables SER01 and OBJK properly.
but I am not able to see those serial numbers from tcode VL03N,
though when in try to update the serial numbers using tcode VL02N , i can see the serial numbers updated through above function modules.
i debugged the code and these FMs doesn't update the field ANZSN(number of serial numbers) in table LIKP.
could you please suggest how can i update this field in this scenario. I don't want to use update/modify commands on SAP standard table(LIKP) directly .
Thanks
Yogesh Gupta

Hi,
did you find a solution for this? I'm facing the same issue. Before I use a BDC I would like to try the FM first.
thanks!
Frans

Similar Messages

  • Update serial numbers in delivery (VL02N)

    Hi all,
    I need to update the serial numbers in delivery (VL02N) transaction. Do we have any BAPI or function module for this. I tried some function modules but didn't work. Anybody has information please share.
    Thanks,
    Pranav

    Hi,
    I have used the function  module SERNR_ADD_TO_LS and PERFORM serial_liste_post_ls IN PROGRAM saplipw1. It is adding the serial number to delivery. But I need to go to VL02N and save that delivery then only it is getting saved.
    Any input can appreciated.
    Thanks,
    Pranav

  • Function Module to update Serial Numbers in Delivery

    Hello there,
    I am attempting to update serial numbers in an outbound delivery using function module SERNR_ADD_TO_LS followed by a perform of serial_liste_post_ls IN PROGRAM saplipw1. However I am struggle with error messages of inconsistancies in status management of the serial numbers. I have verified that the serial numbers I'm using are valid and available. Has anyone had any experience with this FM or others to post serial numbers into an outbound delivery?
    Many thanks!

    That is very helpful and turns out to be true, the delivery is updated with the serial numbers however LIPS is not. I have started to write a routine to correct this.
    On another note in my application I'm noticing that the when I call FM serial_liste_post_ls IN PROGRAM saplipw1 that the internal tables being passed that were built in the FM SERNR_ADD_TO_LS contain serial data from all deliveries and consequently I'm getting errors.
    My program loops at the delivery then the item and for each item I call the FM SERNR_ADD_TO_LS and then I call the serial_liste_post_ls IN PROGRAM saplipw1 once all lines have been passed and the first delivery updates fine. However the subsequent delivery receives an error of " Inconsitancy in status management for serial ". I have confirmed that the serials are good and when I go into debug I see the first delivery goes fine and then I noticed on the FM call of serial_liste_post_ls IN PROGRAM saplipw1 that the internal tables contains data from that delivery and the previous one.
    Below is psuedo code replicating how I call the FM's
    loop at i_likp.
    loop at i_lips
           where vbeln = i_likp-vbeln.
          CALL FUNCTION 'SERNR_ADD_TO_LS'
               EXPORTING
                    profile               = 'Z002'
                    material              = i_lips-matnr
                    quantity              = i_lips-anzahl
                    j_vorgang             = 'PMS3'
                    document              = i_likp-vbeln
                    item                  = i_lips-posnr
                    debitor               = i_likp-kunnr
                    vbtyp                 = i_lips-vgtyp
                    bwart                 = '601'
               IMPORTING
                    anzsn                 = anzsn
                    zeilen_id             = l_zeile
                    serial_commit         = serial_commit
               TABLES
                    sernos                = sernr
               EXCEPTIONS
                    konfigurations_error  = 1
                    serialnumber_errors   = 2
                    serialnumber_warnings = 3
                    no_profile_operation  = 4
                    OTHERS                = 5.
    endloop.
        PERFORM serial_liste_post_ls IN PROGRAM saplipw1.
        COMMIT WORK.
    endloop.
    Any help is very much appreciated!!!

  • Problem with updating serial numbers in sales order!

    Hi,
    I am trying to update serial numbers for a sales order in SAP. I tried using both SERNR_ADD_TO_AU and SERNR_ADD_TO_DOCUMENT. However, in both cases the FM returned the number of serial numbers created but these did not reflect in the sales order. The code for both is as below:
    WA_SERXX-SDAUFNR = '0000001733'.
    WA_SERXX-POSNR = '000010'.
    WA_SERXX-KUNDE = '0000009000'.
    WA_SERXX-VBTYP = 'C'.
    WA_SERXX-SD_AUART = 'OR'.
    WA_SERXX-SD_POSTYP = 'TAN'.
    WA_SERNR-SERNR = '000000001234ABCDAR'.
    APPEND WA_SERNR TO IT_SERNR.
    WA_SERNR-SERNR = '000000001234ABCDAQ'.
    APPEND WA_SERNR TO IT_SERNR.
    CALL FUNCTION 'SERNR_ADD_TO_DOCUMENT'
      EXPORTING
        operation                       = 'SDAU'
        objkopf                         = 'SER02'
        serxx                           = wa_serxx
        material                        = 'P1-TEST'
       PROFILE                         = 'Z001'
        quantity                        = '2'
      M_CHARGE                        =
       J_VORGANG                       = 'PMS2'
      KMATNR                          =
      CUOBJ                           =
      R_MATERIAL                      =
      BSTCH                           =
      BSTUP                           =
      SNBWG                           =
      EMATN                           =
      KDAUF                           =
      KDPOS                           =
      AUTOMATIC                       = ' '
      NO_ENQUEUE                      = ' '
      MORE_ALLOWED                    = ' '
      BUDAT                           =
    IMPORTING
       ANZSN                           = anzsn
       NEW_OBKNR                       = new_obknr
       SERIAL_COMMIT                   = serial_commit
       STATUS_NOT_ALLOWED              = status_not_allowed
      tables
        sernr                           = IT_SERNR
        r_sernr                         = it_ser1
      XVBPA                           =
    CHANGING
      T_SMESG                         =
    EXCEPTIONS
      KONFIGURATIONS_ERROR            = 1
      GENERAL_SERIAL_ERROR            = 2
      NO_PROFILE_OPERATION            = 3
      DIFFERENCE_IN_HEADER_DATA       = 4
      OTHERS                          = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    commit work and wait.
    CALL FUNCTION 'SERNR_ADD_TO_AU'
      EXPORTING
        sernr                       = '000000001234ABCDAR'
        profile                     = 'Z001'
        material                    = 'P1-TEST'
      M_CHARGE                    =
        quantity                    = '1'
      J_VORGANG                   = 'PMS2'
      KMATNR                      =
      CUOBJ                       =
        document                    = '0000001733'
        item                        = '000010'
        debitor                     = '0000009000'
        vbtyp                       = 'C'
        sd_auart                    = 'OR'
        sd_postyp                   = 'TAN'
    IMPORTING
       ANZSN                       = ANZSN
      ZEILEN_ID                   =
       SERIAL_COMMIT               = SERIAL_COMMIT
    EXCEPTIONS
      KONFIGURATIONS_ERROR        = 1
      SERIALNUMBER_ERRORS         = 2
      SERIALNUMBER_WARNINGS       = 3
      NO_PROFILE_OPERATION        = 4
      OTHERS                      = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    COMMIT WORK AND WAIT.

    hi,
    In order to maintain customer specific serial numbers you can do the following steps:
    1. Maintain the serial numbers provided by your client in tcode IQ01. this will create the customer serial numbers in the system.
    2. In the material master under Sales View maintain the serial number profile as 0002. this is sap standard.
    3. Once the above has been maintained you can assign serial numbers at the time of delivery and NOT in sales order.
    I hope this helps.
    Regards,
    Vishesh

  • Problem with BAPI_OUTB_DELIVERY_CHANGE to update serial numbers

    hi All,
    I am using BAPI_OUTB_DELIVERY_CHANGE to update serial numbers. i am executing this directly in se37 giving delivery number alone in import parameters header_data, header_control and delivery.
    and giving delivery numer, item no and random serial no in tables ITEM_SERIAL_NO. when i execute  it is not throwing any errors. how ever the delivery is not updated with the serial no's.Return parameters is also nor showing any values.
    Any pointers to solve this would be appreciated.
    Regards,
    Sreekanth.

    Hi,
    You need to use BAPI_TRANSACTION_COMMIT just after BAPI_OUTB_DELIVERY_CHANGE .
    Mark WAIT = 'X' in the IMPORT parameter of BAPI_TRANSACTION_COMMIT.
    For testing if it is working or not:
    Goto SE37 --> click on FUNCTION MODULE --> TEST -->TEST SEQUENCES
    First give BAPI_OUTB_DELIVERY_CHANGE and then BAPI_TRANSACTION_COMMIT.
    Click on EXECUTE. Execute BAPI_OUTB_DELIVERY_CHANGE then 'BACK' and then BAPI_TRANSACTION_COMMIT with proper data.
    Goto the transaction from where you can check entry has been created or not.
    Regards

  • Update Serial Numbers and Qty with bapi_outb_delivery_change

    HI All
    I want to update serial numbers and quantity(delivery qty) for a delivery, this is mostly in case of short ship and over ship, I am using the BAPI for this updation, but I am getting errors to it.
    I am passing the following data in the BAPI:
    HEADER_DATA -
    > Delivery Number
    DELIVERY -
    > Delivery Number
    ITEM_DATA -
    > DELIV_NUMB(Delivery Number), DELIV_ITEM(Item), MATERIAL(material), DLV_QTY(Qty what i need to update in VL02n), FACT_UNIT_NOM(as 1), FACT_UNIT_DENOM (as 1), SALES_UNIT(VRKME), BASE_UOM(MEINS)
    ITEM_CONTROL -
    > DELIV_NUMB(delivery Number), DELIV_ITEM(Item), CHG_DELQTY(as 'X') .
    But I get this error message.
    "serial numbers are already maintained. Quantity cannot be changed"
    Please suggest how can I change both?
    Regards
    Swar

    Hi Swar
    I can maybe give you insight on why you are receiving the error message in hopes in can help you go to the right direction.  In the sales order for technical objects if you are maintaining lets say a qty of 2 each serial numbers.  When you create the delivery the system passes both serial numbers to the delivery. In cases of short ship (wanting to only ship one each) go to the serial number in the file menu under extras in the delviery and  before changing qty to one each; delete the serial number you are not shipping then change your qty this works.
    Edited by: Kim Blair on Sep 29, 2011 5:19 PM

  • Serial Numbers and Delivery not automated.

    "The serial number field on the delivery is only a text field and requires user input. The actual serial numbers shipped on the delivery are not put in this field automatically by the system as you know. This is how it works. The serial number data is stored in different tables, OSRI and SRI1 and linked to the delivery document."
    We have been manually typing the S/N into the delivery form so that we can have it print packing lists and invoices. Once we select the S/N for the delivery it should automatically update the delivery form.
    The Delivery form does not automatically fill in the S/N once we select a s/n. Here is a scenario
    1.)Select a Sales Order that has an item that requires a s/n.
    2.) Copy SO to Delivery
    3.) Click Add or put the cursor in the proper row of the s/n column and hit enter. A new window showing available S/N should appear.
    4.) Select the S/N, assign to this SO and click Update then OK.
    5.) Repeat if more then 1 item requires a s/n.
    6) When done,  click ADD and a new Delivery ticket is created. Note at this time the S/N are not showing in the Delivery Form.
    7) You can now click Print Preview and it will show the Packing List along with a page for serial numbers. Also a Crystal Report Packing list is generated, but the s/nu2019s are not listed.
    The only way we can get s/nu2019s to show on the Delivery form and in Crystal .Reports is to MANUALLY type the s/n into the Delivery form. We want to avoid typing the data, potential for typou2019s. This should be something the software  does for us.

    We're wondering the same thing. Would a bar code scanner work? The data would have to be displayed on a PC or something where it could be recorded.
    Yes and no.  
    We have a small Bluetooth barcode scanner.  Works well if the bar codes were printed better.  I mean, the bar codes for switches/routers are "readable" but for wireless access points, you would need several attempts to get it to read.  
    Alternatively, you can read the bar codes from the box.  I only use this as a "last resort" because I have seen, in two occasions, that the codes in the box and the the ones from the appliance don't match.  

  • Updating Serial numbers coming from third party at PGI

    Hi all,
          I have an requirement such that I need to update the serial numbers for a line item that are coming from third party system and these serial # needs to updated in the PGI processing of delivery.
    I have searched  in the SDN , but could not come these type of requirement. 
    Please any one call help me on this??
    Thanks in advance
    Ravindra

    Hi Ravindranath,
    To cater this requirement:
    1. Create a Z table for storing serial numbers with the link to delivery (means there will be some link with the serial numbers coming from third party and delivery in SAP)
    2. Go to change mode of include MV50AFZ1 for add code in subroutine USEREXIT_MOVE_FIELD_TO_LIPS.
    3. In this subroutine fetch the serial number according to line item and delivery number; that you will get from LIPS.
    Pass the serail number to ANZSN field of LIPS.
    Hope it will solve your problem.
    Regards
    Krishnendu

  • How to update serial numbers in function module BAPI_GOODSMVT_CREATE

    Hi,
    Can you please let me know how to update the serial numbers for the movement type 561,563 and 565 with the material, plant,  storage location, quantity and Unit of measure values using BAPI_GOODSMVT_CREATE

    Hi,
    Can you please let me know how to update the serial numbers for the movement type 561,563 and 565 with the material, plant,  storage location, quantity and Unit of measure values using BAPI_GOODSMVT_CREATE

  • Update Serial Numbers to Production Order

    Hi,
    Has anyone used any Function module for updating the Serial Numbers to the Production Order Header. I am using the FM - SERNR_ADD_TO_PP . The Serial Numbers needs to be assigned when doing Goods Issue in MIGO. At this point The FM is updating the Serial Numbers to Order but it is putting it in Status PMP1.
    Once the Status is PMP1 it prevents anymore Serial Number update to the same production order using the same Function module. This is preventing us from doing partial Goods Issue in MIGO.
    Is there any more Function Module that can be used to updating the Serial Nos in the Production Order.
    Regards,
    Arunava

    HI rasheed,
    Check this resolution on table control for BDC.
    https://wiki.sdn.sap.com/wiki/x/DQGqAw
    Note: Do not post the same question twice.
    Regards,
    Bhumika

  • Serial numbers in delivery

    Hi Gurus,
    When i am performing goods issue for an outbound delivery the system gives an error message"Movement type 647 does not currently support serial number management" and the process is terminated there after.
    With the help of * under the business operation, the entry in table T156S used here under movement type 647 defines that no serial numbers are supported here.
    I have checked the table and one of the business transaction entries has wild card **** and my question is how can i change this value by possible configuration as iam not unable to find it.
    Thanks
    SAM

    Hi
    I was not able to find any standard sap transaction. But you can change as below
    1. Go to SM30 tcode
    2. Put V_T156SY and click Maintain. This will bring you to change screen.
    Caution:
    Its mentioned in the detailed screen (double click on any record) that this is for internal control and this should not be changed. Hence i will suggest if you looking for some thing like 647 but needs to change these field please create a new movement 9* and then you can assign what all transactions you need.
    For configuring new movement types you can go to SPRO-->Inventory mgmt -->movement types.
    Hope this helps. Reward if helpful
    kind regards
    sandeep

  • Maxium number of serial numbers in delivery document (VL02n)

    Hi
    Can anyone know what is the maximum number of serial numbers that can be entered in delivery document (VL01N/VL02N)? I tried generating (automatically) serial numbers with line item quantity 999999 and system generated shot dump. Do let me know if there are any OSS notes for this.
    Thanks in Advance for your immediate feedback.
    thanks,
    Joseph Anand B

    Found Answer from OSS note
    Which note ??   Was the one suggested by me or a different one ??
    thanks
    G. Lakshmipathi

  • Serial Numbers for delivery

    Hi,
    i am cerated serial no. But it created only one no.
    when i am cerated outbound delivery, serial no. is assigned.
    But when i am trying to PGI showing the following error
    Pls help me out
    Item 000010 requires exactly 5 serial numbers for the asset
    Regards,
    Rao P

    Hi Mr. Rao,
    Looks like your material configure in that way, it requires 5 serial number.
    You do one thing --> Go to IQ04 --> Give your maerial number --> Then in the field "No. serial numbers" give the figure how many serial number you want --> Like one you have already created --> Give 4 in the field "No. serial numbers" --> Enter
    If your serial number require equipment view also --> then click at "View selection" --> Click at equipment --> Enter --> Save
    After that go to delivery and assign your serial number to your materials.
    Regards,
    MT

  • Assign Delivery Serial numbers to the Handling Unit

    Hi,
    How can i Assign Delivery Serial numbers to the Handling Unit, is there any User exit to populate serial numbers from delivery to Handling Unit numbers.
    Thanks.

    Isn't this controlled through config? Check here.
    Implementation Guide for R/3 Customizing (IMG)
    -->Logistics Execution
       -->Shipping
          -->Basic Shipping Functions
             -->Serial Numbers
                -->Determine Serial Number Profiles
    Also see if it can be achieved through copy control and data transfer routines or requirements.
    Srinivas

  • Serial numbers in PGI

    Dear SAP Gurus,
    I am working on serial numbers.The issue is when I am doing PGI for those parts which have been issued the serial number status changes to ECUS. Now when I am creating another for another serial number of the same material. If I use the serial numbers which have been issued I am getting the yellow message that the status of the serial number is ECUS. My requirement is the system should block oneself from reusing the same serial number. Is there any configuration where I can block the serial numbers to be used twice.
    Looking for your inputs
    Regards
    Ashish

    HI,
    To update serial nos to delivery use the following FM L_SER_WS_DELIVERY_UPDATE.
    Use as follows
        CALL FUNCTION 'SERIAL_INTTAB_REFRESH'
          EXPORTING
            objects_status_refresh = 'E'.
        CALL FUNCTION 'L_SER_WS_DELIVERY_UPDATE'
          EXPORTING
            vbkok_wa                 = y_wa_vbkok
            synchron                 = 'X'
            commit                   = ' '
            delivery                 = y_p_vbel
            nicht_sperren            = 'X'
            if_get_delivery_buffered = ' '
            if_error_messages_send_0 = 'X'
            it_sernr_update          = y_li_sernr
          EXCEPTIONS
            error_message            = 1
            OTHERS                   = 2.
        CASE sy-subrc.
          WHEN 0.
            COMMIT WORK.
          WHEN OTHERS.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDCASE.
    Regards,
    Ankur Parab

Maybe you are looking for

  • How do you change the text on Calendar entries?

    I could change the timing etc. on the calender entry which I put in a week ago as tentative. Now it is fixed and somehow I cannot delete/adpat nothing. This is really basic. Thx

  • Click function on Touchpad failure

    My HP Envy Sleekbook has a continual problem where after accidently hitting some unknown combination of keys in the page up, page down, enter, shift area the pointer on the screen moves but I can no longer click on anything on my screen. I can use ke

  • Can I display an email in outlook from Thunderbird?

    Due to Outlooks idosyncracies, and it's general use by folks at my company (since IT pushes it!) there are a moderate number of messages I need to read in an outlook window - either because of the way certain attachments are handled, or outlook/micro

  • PHP files in symlinked directory being served as plain text

    I've installed apache and PHP (with MySQL) following the instructions at https://wiki.archlinux.org/index.php/LAMP Everything seems to be working OK - I can view files in /svr/http by navigating to http://localhost, and PHP files in that location or

  • Multiple libraries iTunes and iPhoto

    Probably this is an item that Apple has to resove, but just put this remark in public as some people did before by addressing the problem. I love to use iTunes and iPhoto, but the most irritating failure of the program is that it has no possibillitie