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

Similar Messages

  • 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

  • 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

  • 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!!!

  • My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my com

    My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my computer and load them in my LR. The photos appear but witthout any editing or tagging. We need to be able to have her working on the photos on her computer with her copy of LR and me on my computer with my version of LR being able to access what is already tagged and given back to me. This seems hard. We need advice on if it is at all possible to have two computers simultaneously working on LR . I bought her her own version because I was told at the time of purchasing that that was the only way to share. Please advise urgently! Thanks.

    Sounds like your assistant isn't instructing Lightroom to write the tagging and editing to the files themselves, so wehn the files return to you, they don't have editing and tagging information. She need to select the photos in Lightroom and then Ctrl-S (Cmd-S on Mac). Or alternatively turn on the option to autmoatically write this information to the files.
    If you are using RAW photos, then this information will be written to a sidecar XMP file, and your assistant must provide you with the sidecar file. If these photos are not RAW photos, then the information is written directly into the photo file itself.
    Lightroom wasn't designed to be a multi-user program, and so it is truly not possible to have two people working on the same catalog at once. The way you are doing things, as modified above, is probably the way to go.
    As an alternative, you can transfer (portions of) catalogs as well as photos back and forth and then all of these issues disappear, but a catalog might be rather large for a flash drive (or maybe not, it depends)

  • Why do I have to update Keynote,Numbers,and Pages on a daily basis?

    For the past week I've had to update Keynote, Numbers, and Pages on a daily basis?If I update the apps today, tomorrow I will be asked to update them again.Something is wrong with picture.
    Is anyone else having this issue?

    Rebuild the Spotlight index. If you try to search now from the magnifying-glass icon in the top right corner of the display, there will be an indication that indexing is in progress.

  • 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

  • My serial numbers and activation codes don't work

    Hey, anybody out there?  My serial numbers and activation codes don't work and I don't see anyway, through your menus to reach a PERSON!!
    Michelle
    Not much happening out there.

    Try the following:
    Visit www.adobe.com
    Click the MENU link near the upper-right
    Click the ABOUT ADOBE link near the upper-right
    Click the Contact Us link.
    There are some phone numbers there you could try.  I imagine if you call Sales and say you're having a problem they might be able to transfer you to a support line, though I haven't tried it myself.
    I don't think there's much help we can give you here on the forum with that particular problem, unfortunately.
    -Noel

  • Updating Pages, Numbers and Keynote in OS X Yosemite

    I have a mid 2009 white MacBook, on which I have just installed OXS Yosemite.  I am prompted to update Pages, Numbers and Keynote in the Mac App store.  When I try to do this (also when I try to update via software update notifications), I am then told they can't update because they were not purchased with this Apple ID.  I presume I set up my Apple ID after I'd purchased this MacBook with iWork preinstalled.  I'd even be happy to repurchase these apps, but the app store won't let me because it just says 'update' instead of giving me a price.  Any thoughts?

    Here is a link to App Store Support. Apple iWork applications were never preinstalled on Apple hardware prior to 2014. This was a separate purchase, either earlier on via iWork '09 DVD, or later by OS X App Store purchase. Your preinstalled comment suggests to me that your Mac was pre-owned, and someone else installed iWork '09 applications using their Apple ID — which would block you from updating through your own Apple ID.
    The iWork ’09 applications that are currently installed have considerably more functionality than the new (rewritten) applications that prompt those update notices. You do not have to update to Pages v5.5.1, Numbers 3.5, and Keynote 6.5. You should however, update the iWork '09 applications via the Apple iWork 9.3 updater.
    If you want to disable the nagging update to newer software messages in Yosemite, I suggest you visit System Preferences > App Store. Check Install system data files and security updates, uncheck Download newly available updates in the background, and then uncheck Automatically check for updates.

  • Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems,

    Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems, but when I try to open up the photo editor (either by trying to open up the program from the main menu, or right-clicking on a photo in the organizer to edit in elements), the program asks me to sign in to adobe (which I can do and it doesn't give an an "incorrect password" or log-in ID error) then accept the terms and conditions.  When I click to accept the terms and conditions, nothing happens and the editor fails to open.  Everytime I click on the program, I get this same "loop" of signing in and accepting T&C's, but the program fails to open.  Any advice?

      Premiere Elements 10 is now 64 bit, but not PSE10.
    Take a look at your scratch disk set-up and if you have a spare volume, allocate that first before the C drive. Elements use scratch disks when it gets low on RAM.
    Click image to enlarge
    Turn off face recognition and the auto-analyzer to improve performance.
    When editing photos or videos check the task manager to see what background processes may be running and end them temporarily if not needed.

  • When I updated Iphone software and synchronized with MacBook, newest calendar entries were deleted. Other experiences with this? If so, how do I prevent this? I have Iphone 3G

    On at least 2 occasions, when I updated Iphone software and synced with MacBook, my newest calendar events were deleted. The information in Ical and on IPhone reverted to an older version of events instead of defaulting to the new information. I know of at least 1 other person who experienced this; is this a common occurrence? What is the reason for it and the remedy? How do I prevent this from happening in the future?

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • I was told at the Mac store, if download Numbers and Pages with my Imac I could install it on my Macbook for no extra charge. True?  Tried it and was charged twice

    I was told at the Mac store, if download Numbers and Pages with my Imac I could install it on my Macbook for no extra charge. True?  Tried it and was charged twice

    Cynthia7 wrote:
    so if i'm trying to use keynote on my imac after i purchased it on my ipad first, can i do that for free if i already paid for it once? and if i can, how? any advice will help. thanks.
    Sorry, no. The versions for Macs and iDevices are different.

  • Come one I already asked, how do i get it to accept my serial numbers and use the thing

    It is improssible to use th is th ing,....... for the third time ........................How do I get it to accept my serial numbers and turn on so i can actually use it

    Hi,
    Premiere Elements has it's own forum so it may be better ask your question there.
    http://forums.adobe.com/community/premiere_elements?view=all
    In version 12, activation is done by loading the editor (Photoshop or Premiere), supplying the serial number and signing in. Do not sign out as that deactivates that installation.
    If you get a message that there is no Internet connection when there is, could be an indication that the hosts file has been modified in the past to stop Adobe contacting the authentication server - I don't know what would modify the hosts file to do that. If you do modify the hosts file, it is wise to take a copy first.
    In your case, does the serial number get rejected or the sign on?
    Brian

  • Updated serial number and it needs the previous serial number. I don't have that because this is the first light room I have.

    Hi I just bought an Adobe photoshop lightroom 5 from amazon. It just came in the mail, and I am trying to install it. What I am having problem is the serial number. As I put the serial number in it says that this is an updated serial number and it needs the previous serial number. I don't have that because this is the first light room I have.

    You purchased the wrong license. You should have purchased Lightroom at the full price. I don't know what the Amazon price is, but Adobe sells it for $149. You will have to contact Amazon and see if there is any way you can exchange for the right license.

  • Inbound Delivery (WM) with Serial Numbers and HU's

    Hey,
    I want to use Serial Numbers with Handling Unit Management in WM.
    I want to use MIGO to GR a Purchase Order and then Auto Pack the Inbound Delivery.
    I also want to be able to Auto Pack the HU's with the Serial Numbers that i enter into the WM tab of the MIGO transaction.
    I post the GR of my PO and get my inbound delivery.  The delivery is Packed onto an HU ... BUT the serial numbers i enter are not present in the HU ?!?
    Does anyone know if this is possible via MIGO? or is this available only when receiving IM deliveries??
    thanks,
    Adam.

    Hi Nagesh,
    The process will be to use transaction MIGO for all goods receipts, therefore i would like to automate the Inbound Delivery Create AND pack process so that we minimise the amount of user input.
    Once we have entered the GR for the PO i want to automatically do the following:
    1) Create the inbound delivery (which the system does because the item is going into an HU managed storage location).
    2) Pack the inbound delivery (which the system does because i set the Delivery Type to 'Auto Pack')
    3) Assign entered Serial Numbers to the HU - which at the moment is not happening.
    I thought that by entering the Serial Numbers in the 'Serial Numbers' tab in transaction MIGO that these would be copied into the HU but this is not happening ?!?
    (NB: I have serialisation procedure MMSL: Maintain goods receipt and issue doc. - set on my serial number profile).
    We do not want to go into the Inbound Delivery and manually assign the serial numbers as this adds complexity and is time consuming for the User.
    thanks,
    A

Maybe you are looking for

  • How do I get Firefox to automatically open to my igHome page

    iGoogle is going away. I chose and registered for igHome to be my replacement. I want that homepage to open whenever I click on the Firefox symbol. How do I make that happen? Please be detailed in your answer. I'm not a computer geek! I have tried to

  • Date Question

    I need to run a query to get certain information from my Oracle table that's over 9 months old. My query doesn't seem to be working properly. Below is my query: ---Getting today's date---- currentDate = new SimpleDateFormat("MM/dd/yyyy").format(new j

  • Locale shown in the wrong language in the production server.

    I have an application with a few projects which all have two locales - faroese and english. When I run the application on the default application server on my local machine it works fine with faroese locale but when I deploy to our production server

  • Oop's itunes back up deleted

    (G4 Powerbook superdrive 10.3.9) I have just (inadvertently) deleted my back up music that I created on my smart playlist this has all the last years worth of music on it. Although I still have all my music in the library section I would still like t

  • Export Sale Bill to be raised

    Dear All, We have 4 manufacturing plants and Finished Goods from all plants come to port and from here one bill is raised to the party. In SAP we have opened port as a plant and from here we are raising bill's. Now our organisation after 2 years of i