Can't add a goods-issue with more than one item and one is serial managed.

Hi,
We are trying to issue more than one item to a production order using the DI API.  If none of the items is serial managed, they all are accepted and the goods-issue Add is successful.  If one the items is batch-managed, the goods-issue Add is also successful.  I am able to add the goods-receipt if I it contains only one item and it is serial-number managed.  However, if I’m issuing more than one item and one or more of the items is serial number managed, then the DI API will not add the goods-issue.  The error message that appears refers to an item that is not among the items being issued.  The message is:
-10: (IGE1.WhsCode)(line: 3), ‘Item ‘A00006        ‘ with system serial 1 is not in stock.’
Again item A00006 is not even in the group of items being issued.
The code I am using for the serial number part is:
With oGoodsIssue.Lines.SerialNumbers
          .SystemSerialNumber = rs.Fields.Item("SysSerial").Value
          .ManufacturerSerialNumber = rs.Fields.Item("MfrSN").Value
          .InternalSerialNumber = rs.Fields.Item("IntrSerial").Value
          .SetCurrentLine(n)
          .Add()
          rs.MoveNext()
          n += 1
End With
The rs is a recordset that the code is looping through as the serial numbers are being added.
The error message does not occur during this code.  It occurs when it tries to add the full goods-receipt.  Does anyone have any idea how I can fix this?
Thanks,
Mike
Edited by: Mike Angelastro on Mar 31, 2008 8:43 AM

Hi Mike,
Try to do the ".Add" only if you need it. Doing a ".add" without assignation may cause the error you have.
I guess your n variable start at 1 or 0, so you could put code like this :
With oGoodsIssue.Lines.SerialNumbers
if n = 0 then (or 1, also I don't the correct syntax of your programming language)
.Add()
end if
.SystemSerialNumber = rs.Fields.Item("SysSerial").Value
.ManufacturerSerialNumber = rs.Fields.Item("MfrSN").Value
.InternalSerialNumber = rs.Fields.Item("IntrSerial").Value
.SetCurrentLine(n)
rs.MoveNext()
n += 1
End With
HTH
Jodérick

Similar Messages

  • Goods Issue of more than 500 items

    Is it possible to post for than 500 items?
    The following error is hit when doing 261 posting in MB1A. There are many items in the production order to backflush.
    Maximum number of items in FI reached
    Message no. F5727
    Diagnosis
    The maximum number of items for an FI document ('999') has been exceeded.
    System Response
    FI documents have a 3-digit item counter that limits the number of items permitted per document.
    Procedure
    If the documents with an excessive number of items come from another application area (e.g. sales, logistics, order accounting), you can configure the system to the effect that these documents are summarized in FI.

    The note says
    Via the summarization you can post documents with more than 999 items in FI.
    The modification required for this is small, in addition you have to change 2 tables. The modification is carried out in FI not in invoice verification.
    However there are two more notes referring. I think you should check with FI consultant
    Regards
    Sangeeta

  • Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been usin

    Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been using adobe forms for 2 years with mass response feedback and have never had this problem.

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • Can my tunes library me associated with more than one iCloud account?

    Can my iTunes library be associated with more than one iCloud account?

    No, but as mentioned in my answer to your other post, you can share the same iTunes ID with your family and maintain separate iCloud accounts with separate IDs.

  • Can Free add-ons be downloaded with a single Adobe ID and applied to a classroom of computers?

    Can Adobe's free extensions and add-ons be downloaded with a single Adobe ID and applied to a classroom of computers? Specifically a situation where a computer technician has a request from a teacher for a particular free extension (such as Kuler) which the technician then downloads  with his or her Adobe ID and installs on all computers in a classroom.

    Hi,
    This question is difficult to answer because it depends how the classroom of computers were set up from a licensing perspective but in talking to some fellow Adobe colleagues we do think this is technically feasible. I do not have a classroom of computers to test this with to hand and even if I did it could be different to your environment so I would love for you to try it out and give it a go. Here's how I think this could work:
    Sign in to the Creative Cloud for desktops app with the Adobe ID you want to use. It should automatically sync and install your free extensions, if not you can force a reinstall here:
    http://creative.adobe.com/addons/my_addons
    Then repeat the process for each machine. If this does not work you can just download the extension and install it using Adobe Extension Manager CC on each machine, it's a little more work but that method will definitely work.
    Please let me know how you get on.
    Thanks,
    Jonathan

  • Can I use a magic trackpad with more than one Mac at a time?

    I am attempting to pair a MTP with a second MacBook Pro.  So far I can't get system preferences to find the MTP.
    I am wondering whether the MTP can be paired with only one Mac at a time, and that this is why my MBP won't find it.
    The reason I am thinking this is because the little booklet that comes with the MTP says 'after you pair your MTP with a Mac, you can pair it again with a different Mac.  To do this, you first remove the existing pairing and then pair the trackpad again'.
    Can anyone advise, please?
    If it can be paired with more than one MBP at a time, any suggestions why my system preferences search for the MTP is not producing any results?
    Thanks

    Yes, your keyboard, mouse or trackpad can be paired with multiple Macs.  You can even have multiple keyboards, mice or trackpads paired with one Mac.  The caveat is that the device can only be connected to one Mac at a time.  The device can't be paired or connected with a Mac while it's currently connected to another.
    Pairing a device with 2 Macs will be troublesome if the Macs are located within 33 ft of each other.  The device will connect with the first available paired Mac and then unavailable to the second.   If the Macs are located outside the 10meter range, it's quite easy to power off the keyboard (forcing a disconnect) then walking the keyboard to Mac 2 and powering the keyboard on.   I do this with a keyboard from my iMac to a Mac Mini in another room.
    Captfred

  • How can I to Update all colum with more than 3 digits

    Hi
    How can I to update a tabel in all column where values have more than 3 digits in decimal point , eg:
    10.35789882232 wil be 10.358
    11.4523455 will be 11.452
    Using Round (number, 3), How can I to know What columns have more than 3 digits in decimal ?

    Always wonder about why someone would ask.
    XYZ@TTST> select 1/3*3 from dual;
    1/3*3
    1
    XYZ@TTST> set numw 50
    XYZ@TTST> select 1/3*3 from dual;
    1/3*3
    .9999999999999999999999999999999999999999
    Remember, Oracle has to convert numbers to its internal format, and not all numbers convert back and forth cleanly. So the display may make things look different than they are.
    There are legitimate reasons to round existing data (like, they should have been rounded before insertion), but there are also illegitimate reasons, like confusing display with storage.
    See http://laurentschneider.com/wordpress/2009/03/11.html#comments

  • Sales order with more than 9 items causing problem

    Hi,
    I have a situation here.
    A sales order is created in the system and since it is order related billing so its billing document is also generated. The billing document is not relevant for accounting. So, the only 2 documents are a sales order and its billing document.
    Due to some technical restrictions,if the number of lines is more than 9 the printout wont come.Henceforth,the user is unable to take a printout so I need to give him a solution.
    What shall I suggest him?

    Hi,
    >So, my question is that,should I ask the user to create a credit memo wrt the billing document and then split the sales order with 2 invoices(one with say 5 and the other invoice with the rest of the quantities)?
    So, if my undestanding is right then you want to create a credit memo after invoice ? If yes, then why are you splitting the sales order ? Also, this is something strange kind of ABAP logic which would not allow to print an invoice with more than 9 line items... Now, as you said if your sales order is having more than 9 line items then only print doesn't come.. right ? then in your case at this moment there are only 9 line items so ideally you'd be able to get a print.. right ?
    I think there is some confusion out here with your two posts.. kindly clarify...
    Hrishi

  • How to set a process with more than 10 item values to be changed?

    I am trying to make a "default" button where it resets the Column checkboxes to its original state but I have more than 10 iems and I cant fill them all in the 10 slots that they have. Anyone have any ideas? thanks.
    For example I have columns 1-20 and I want something like col 1-5 to be checked and col 6-20 to be unchecked as default.

    I tried to use process where i declare the new values i.e. ID=1/true, Name=0/false etc. and still nothing happens, anyone have any suggestions?

  • Can having 1 I cloud account with more than 1 phone connected? Does this reate issues?

    Can using 1 I cloud account with 1 apple ID connected to 3 different I phones create issues.?

    All 3 phones are not 1 persons, they have different networks and numbers. The reason I ask is I recently upgraded my i phone and also downloaded the ios6 and it seemed my phone had a funny turn. I would text a contact and she replied but it didnt show on my phone, it showed on my sons who is a completely different number to me and network?
    Its now changed and she can reply to me but it also still shows on my sons phone. The only link I can think of is icloud.
    Also a genius told me that I should have my own apple id etc and not use my husbands?

  • PI Message Map - useOneAsMany issue with more than 10 lines.

    I am having an issue using 'useOnAsMany' .  I am using this to map lines of text from an idoc, specifically the SHPMNT04 idoc.  When there are more than 10 lines of text (i.g. 10 occurances of E1TXTP8) the sytem drops everything after the 10th line.  When I check the context of the fields it appears all occurances are being mapped however when I execute the map it drops the text after the 10 line.  Is this a bug?  Has anyone seen this and know of an answer?
    I am using 'useOneAsMany' with E1TXTH8-TDID as the first argument and E1TXTP8-TDLINE as the second and third arguments.  I am simply moving all the text when TDID = Z001.

    Hi Busse,
    Can you check the occurence of the target field to which you are mapping? If it is 0..10 then you will only 10 lines in outupt, else it should get populated.
    Regards,
    ---Satish

  • Goods Issue Qty More than Purchase Order Qty ( Intercompany Stock trans. PO

    Hi All,
    I have following Issue,
    I can do Goods Issue more than qty which is in Intercompany stock transport
    purchase Order.
    I want to restrict this Process, It should not allow more than PO Qty.
    In the STPO Setting, Checking rule field is blank.Is this the reason for
    the Issue.
    Thanx in Advance.
    Key.

    Hi -
    This is controlled by setting at item level in purchase order / sto creation transaction i.e, ME21N.
    Go to item --> Delivery tab.
    You will see under delivery tolerance and over delivery tolerance.
    Please reward points if youfind this information useful.
    Thanks,
    Ramesh

  • Can I have more than one ipod with more than  music library on one computer

    I was just wondering if i could have 2 different ipods (one a 5th generation and the other ipod touch) with 2 different music libraries on the same computer and itunes? because right now im using my parents computer and my fiance is using my laptop and we're moving so we'll only have one computer in the next few weeks. So if anyone could try to give me an answer or have a solution that would be fantastic lol!

    See these articles about using more than one iPod on one computer, and with either one or more iTunes libraries.
    Multiple iPod installations.
    How to use multiple iPods with one computer.
    If you have the latest iTunes, an easy way to create a new library is to hold down the 'alt' key whilst opening iTunes (for Macs), or hold down the 'shift' key (for Windows).
    This will give you the option of either using the current iTunes library or creating a new one.
    There are various methods of transferring different songs to different iPods with a single iTunes library.
    One is to manage the songs manually.
    With this setting, you can drag and drop songs/playlists etc onto the iPod from iTunes, and also delete and/or edit songs which are currently on the iPod without affecting the iTunes library.
    If you wish to keep the convenience of automatic sync, then you could set the iPods to sync with "selected playlists". This setting can be found in the iPod summary screen under the 'music' tab. With this setting, different playlists can be transferred and later deleted from each iPod without affecting any playlists stored in iTunes or the playlists on the other iPods.
    Also, on the 'summary' main page you will see the option to "only sync checked items". With this setting selected, if you remove the check marks from any songs in iTunes, they will not be transferred to the iPod. You can restore the check mark if you want to put the songs back on the iPod at a later date.
    Be aware that when playing songs in iTunes, any songs that do not have a check mark against them will be skipped over and will not be played.

  • Can we create a table field with more than 1200 char length

    Hi,
       As per business requirement, need to create new table - and one of the field should contain 1200 char length. i found the sap data element but when i was activating it was throwing an error.. is there any alternative for this.
    Thanks in advance.

    hi jayasri,
    Can you use datatype as LCHR for the character string.
    before creating the string you need to decalre one INTEGER field.
    you can refer to the table EDID4 where SDATA field declared.
    check for the data  type EDI_SDATA.
    Hope this will solve your problem.
    Regards,
    Madhavi

  • How can I add a date picker in Word for Mac 2008 with more than 25 items? I need to select calendar days so I need 31 items.

    I am building a form for customers to complete. I want them to be able to click on a pull down menu and select the day of the month 1-31. The drop down form field only allows 25 entries. How can I get 31 entries? I'm on a Macbook Pro running Mountain Lion.

    Hello,
    This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office in any way. I suggest you post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums

Maybe you are looking for