DI: Problem with Serials on (AR) Return

Hi,
I've got a really simple piece of code, which is working fine for Goods Receipts (AP) but not for Returns (AR).
I'm able to create a Return manually without problems, but the code doesn't seem to work:
I get Return created, but then when I try to show Serial Numbers Transactions Report, I get error 'No matching records found 'Serial numbers for items' (ODBC -2028)'.
I also checked OSRI table, no trace of the transaction there.
Here's the code:
            Dim oReturn As SAPbobsCOM.Documents
            oReturn = oCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oReturns)
            'oReturn = oCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
            oReturn.CardCode = "test"
            oReturn.Lines.ItemCode = "100044"
            oReturn.Lines.Quantity = 1
            oReturn.Lines.Price = 0
            oReturn.Lines.SerialNumbers.SystemSerialNumber = 0
            oReturn.Lines.SerialNumbers.InternalSerialNumber = "ser4"
            lRetCode = oReturn.Add()

Hi,
This is a known problem explained in note 839019.
Please contact support to exactly know in witch patch it has been/will be released.
Once you have the information about the patch number please share it with us.
Regards
Trinidad.

Similar Messages

  • Problem with *serial no. profile* in work sheduling view of material master

    Hi ! !
    I am here with a problem with serial no. profile in work sheduling view of material master.
    By mistake for some FHMI type ( PRODUCTION RESOURCE TOOLS )materials, serial no profile exist in 'work sheduling' view. Due to that we are facing problem in GRN.
    when I am trying to remove that with MM02. i m getting a message as Serial numbers already assigned to this material
    Please suggest how to remove serial no. profile.
    Thanks in advance,
    Prab

    Hi,
    go to MMBE and check the Current Serial number...for  FHMI type
    and go to IQ02 and close the Serial number range at the Current number range...
    Now you can assign this serial number range to another material type...
    Thx
    Raju

  • Problem with serial.serialize(doc) ;statement

    hi this is my code but iam having problem in the aboe statement iam using net beans and it says cannot find symbol serialize while it is still in the package import {com.sun.org.apache.xml.internal.serialize.XMLSerializer;}
    package newPack;
    import org.jdom.Document;
    import org.jdom.JDOMFactory;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    //import org.w3c.dom.Document;
    import java.sql.DriverManager;
    import javax.xml.parsers.ParserConfigurationException;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    //import org.w3c.dom.Element;
    import java.sql.ResultSetMetaData;
    import com.sun.org.apache.xml.internal.serialize.OutputFormat;
    import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    import java.io.StringWriter;
    import java.io.IOException;
    import org.jdom.Element;
    import org.jdom.Document;
    public class Conversion {
    // public DocumentBuilderFactory dbf;
    // public DocumentBuilder dob;
    // public Document doc;
    /** Creates a new instance of Conversion */
    public static Document convert(ResultSet rs) throws ParserConfigurationException,SQLException
    // DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
    //DocumentBuilder builder=dbf.newDocumentBuilder();
    // Document doc=builder.newDocument();
    Element root=new Element("Artist");
    //doc.appendChild(root);
    ResultSetMetaData rsmd = rs.getMetaData();
    int colCount = rsmd.getColumnCount();
    while (rs.next())
    Element songo= new Element("song1");
    root.addContent(songo);
    //root.appendChild(songo);
    for (int i = 1; i <= colCount; i++)
    String columnName = rsmd.getColumnName(i);
    Object value = rs.getObject(i);
    Element node = new Element(columnName);
    node.setText(value.toString());
    songo.addContent(node);
    Document doc=new Document(root);
    return doc;
    public static String serialized(Document doc) throws IOException
    StringWriter writer = new StringWriter();
    OutputFormat format = new OutputFormat();
    format.setIndenting(true);
    XMLSerializer serial = new XMLSerializer(writer,format);
    serial.serialize(doc);
    return writer.getBuffer().toString();
    }

    VISA is the generic communication interface.
    Hyperterminal has serial comm drivers as well.  It just so happens that Hyperterminal is using the serial comm drivers that are built into Windows.  That's why you don't notice them.
    If you installed LabVIEW, then you should have installed the drivers that come with it.  It is on a separate DVD.  Obviously you haven't.

  • Not able to create STO with serial assignment for returning defective goods

    Hi all,
    I am facing problem while creating STO (641 movement) for returning defective engines which are manufactured at client plant.
    The actual problem is:
    My client manufactures engine with serial no. profile attached.The steps which is followed is (all the movements are reflected in Equipment master ie03 )
    1. They create Stock using Assy. Back flush (131 movement)
    2. They do Sloc transfer using 311 movement.
    3. They send the engines to other plant by raising STO (641 movement)
    4. The Receiving Plant is doing GR (101 movement) using Tcode migo and while doing GR they delete the Serial no attached to the particular engine against material manually.
    5. Everything was going fine till some days before some engines were found defective, now they want to raise return STO against the sending plant to send back those defective engines.
    I had simulated the same case in QA client, but after GR when i am trying to raise return STO by attaching serial no. it is throwing error like check Equipment status i had tried all one but nothing worked.
    Your fast and reliable solutions needed.
    Thanks and Regards,
    Amar

    Hi,
    For converting PR to PO in the configuration you need to first set up which PR Document Type can be converted to which PO type.
    You can check if the PR Doc type is assigned to PO doc type here
    SPRO-IMG-Materials Management-Purchasing-Purchase Order(Purchase requisition)-Define Document Types
    And if you need to prevent the referencing of PR for PO creation then you assign parameter EFB to the user role. This is done by BASIS.
    You can whether your role has been assigned to any of the parameters. Ask you basis team to find this out .Tell the basis team your User ID and ask them which Parameter is assigned to your role. Give them the following configuration path if need
    SPRO-IMG-MM-Purchasing-Authorisation Managment-Define Function Authorisation for Buyers
    Regards,
    Niranjan

  • Problem with Serial Number from MSi ATi HD4870 :/

    Hi all,
    I have problem with my HD4870. I lost the serial number (the small paper on back of card) from card. Have I any chance to get it back? I can take a photo and post it here some S/N and P/N from card, if it helpfull... I lose my warranty, if I can't get it back 
    So, any choice to get it?
    Thanks for answers,
    Mirek.

    Thanks for answers in first,
    I have problem with card - I had it two days in Crossfire with another HD4870 but accidentally when I played Metro 2033 I got some stripes on monitor (purple, blue) and then PC stop working. I had to restart PC and when the system booted to Windows, until 10 second I got the same stripes on monitor. Then my PC didn't boot.
    On my card I have 4 diodes - when I turned on pc, the diodes blinks but now blinks only TREE of FOUR diods.. So I took the card to shop when I bought it, but the shop-assistant told me, that I need this little paper on Card.. :/
    I'm from Czech Republic, so I have a little problem with directly contact to HQ of MSI
    So I have to go again to the shop and tell them, that Serial Numbers what they need are in card?

  • Problem with serial number and installing PSE 12

    I purchased Adobe PSE 12 yesterday and the purchase went through. But I never received a confoirmation email from Adobe. Now, when I try to enter the serial number to install, I'm told there is a problem with the serial number and I must contact customer support. Can't get through to customer support though. What should I do? I desperately need to get this program installed. Thanks.

    Hi 2Summers,
    Please provide me the serial number and I will check it for you.
    Send me aprivate message. Do not post it here.
    If you dont know how to do that refer : http://forums.adobe.com/thread/1184148

  • Problem with serial Number in Inspection Lot

    Dear All,
    I have a typical problem that material is there in quality inspection lot and serial numbers are aslo assigned during 101 mvt. but when I am posting it to unrestricted stock system is not determine serial number and giving an error
    *Stock data of serial number XXXXXX not suitable for movement
    Message no. IO231*
    All configuration setting are also OK as this problem comes for the first time and previously we were able to clear inspection lots of that material easily with serial number.
    Any Idea to rectify that problem?
    Thanks
    Edited by: Ashu on Aug 9, 2010 5:54 PM

    Hello,
    Check with your serializing Procedure check the assignment in Work scheduling View for this material also check in Quality view
    for inspection type 4 for GR of Production order.
    Regards,
    JayaVimal

  • Problem with web service that returns an object with a String that have som

    Hi everybody:
    I have a problem with a web service I am doing, I have made a web service that returns a collection of objects, the objects have a set of properties, there is one property that is a String,this property consists in a text fragment that could have some characters that are considered special in XML like &, <, >, " and that's why when I execute the service from a client an exception is thrown:
    {code}
    Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
    at [row,col {unknown-source}]: [9,646]
    org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
    at [row,col {unknown-source}]: [9,646]
    at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    at org.codehaus.xfire.client.Client.invoke(Client.java:336)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy0.search(Unknown Source)
    at cu.co.cenatav.webservices.client.Client.main(Client.java:26)
    {code}
    I know that this is happening because special characters are sent by the soap message but I don't know how to solve this problem.
    How could I avoid this exception ?
    I hope you can help me.
    Regards.
    Ariel

    Hi,
    BPEL and BPEL PM do not have a good support for SOAPENC-Array: it would be very difficult to create such an array in BPEL or to receive it and manipulate it.
    The (unfortunately very intrusive) work around is to change the WSDL of the service to use a XML type defined using XML schema. This is all the more painful that JDev 9.0.4 does not have strong support for complex types.
    In general though, I would highly recommend this best practice:
    1) Start by define the WSDL contract first
    2) Then generate the server side skeleton to implement it
    3) Use BPEL as the client to this contract.
    By starting with the contract first, you make sure that 1) your interfaces are clean and coarse grained.
    2) things like java objects, sessions, etc to not leak through the interface (which would be the worst thing that could happen because it would closely link the client and the server.
    Sorry for not being more helpful. This will get radically cleaner in Oracle AS 10.1.3.
    Edwin

  • Elements 12 problem with serial.

    i just bought elements 12 from amazon, intalls fine on a windows 8 machine, But then tells us our trial has expired. Catalog section works but editor tells us we need new application manager. I downloaded and installed it but still doesnt work. Cant find a phone number, The worst christmas presentEVER., Help!!!!

    Hi,
    Since you already have one copy activated the serial number must be logged in your account details - I would first check that the one logged and the one you are attempting to enter are the same.
    You can check your account details by going to www.adobe.com and clicking on Manage Account. You need to sign in with your Adobe Id and then click on View All under Plans & Products. Next click on View your products and after a while it should produce your list.
    If there is a problem with the serial number, only Adobe can help you there (we are just users). Please see the response in this thread
    First of all, I would have to say that getting in touch with you is a nightmare and I am not at all happy that I can't just email or live chat with someone who can help!  I am not a technical person, I just want to be able to use Photoshop Elements and ge
    Brian

  • Problem with function, need to return a very large number

    I have a function that is used to derive a number by using a defined algorithm. We have tested it many times in our 'development' region and it works. We moved it to our 'UAT' region and now the function is giving an error. The data is the same in both oracle instances. So.... dba's are telling me it is the function. At this point, I don't know what to do.
    Can I declare "RESULT" in a function so that it can return a number this big: 2.00023880306E24?
    Oracle returns -6502 error in the deriveNewNum function.
    Here is the error:
    *** ERROR in deriveNewNum.fnc
    SQLCODE: -6502
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    BEGIN TF1ID; END;
    ERROR at line 1:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at DERIVENEWNUM", line 93
    ORA-06512: at line 1

    Hi,
    Did you look up that error in the error messages manual?
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28278/e4100.htm#sthref1889
    Is there something there that you didn't understand?
    <h3>ORA-06502: PL/SQL: numeric or value errorstring </h3>
    Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    If you declare variables like this:
    x     NUMBER;
    y     NUMBER (20, 10);there woul be no problem assigning a value like 2E24 to x, but there would be if you tried it with y.
    How are your varaibles declared.
    Whenever you have a problem with your code, post your code.
    Always say what version of Oracle you're using.

  • Problems with Slide Video, when returning to a slide

    Hello all!
    I have a weird problem with my Captivate presenation, I wonder if anyone could help me...
    I have Captivate training course that I've made (output to Flash to run on a SCORM-compliant system).  It has a table of contents which points to different "lesson" screens with videos.
    All videos are of type "slide video", they will be launched from the LMS running the course. 
    When I click on the slide to play the video the first time, it plays just fine. But if I go back to it later, it acts erratically (plays from middle of video, starts looping weirdly, etc).
    Has anyone else seen this?  Wanted to know what I could do to fix.
    Thanks!
    Daniel

    To better illustrate, I've created a simple project with a menu slide and a slide video slide - a really over-simplified version of what I'm trying to do, but still has the same problem. The project is online to download at:
    http://ge.tt/8TqfXEA?c
    If anyone has time, here is how to recreate the difficulty I'm experiencing:
    Run the project (either preview or export SWF, either way is fine)
    From the first slide (menu), click on the button, which will go to the next slide and play the video
    After the video finishes, click on the "Return to Menu" button
    Once back at the menu, click the button to play the next slide & video again. You'll notice that playback is erratic (starts later in the video, also begins weirdly looping).
    Please let me know how I can rectify - it's a really big problem. If I'm doing something stupid, please let me know (although I don't think I am - it's a really minimal project setup).
    Thanks again for any help anyone can provide!!!

  • Problem with serial number with using DTW

    I tried to Upload my inventory balance with serial numbers using the template oInventoryGenEntry
    But i always got this message
    "you should use existing serial/batch numbers for this document type error 65171"

    Header
    RecordKey     DocEntry     CardCode     DocCurrency     DocDate     DocDueDate     DocNum
    1                       14      inno      $                     15102008        15102008             4
    Line
    RecordKey     LineNum     ItemCode     Price     Quantity     WarehouseCode
    1                         1     BINBD23     300     1     01
    Serial
    RecordKey     LineNum     BaseLineNumber     InternalSerialNumber     ReceptionDate     SystemSerialNumber
    1                      1     1                      865875                    15102008                         865875
    1                      1     1                      52423432      15102008                     52423432
    1                      1     1                      5345345                     15102008                       5345345
    Thanks

  • Handling unit with serial numbers in return delivery

    There is a handling unit (HU),whose system status is PSTD(goods issue posted). The delivery is posted. The billing document are issued. Handling unit was packed with materials with equipments and serial numbers.
    Now I am creating another sales document(I want to return the good) and return delivery. No handling unit is attached to return delivery.  (Why not?  Returning original sales document is created with reference to original sales document)
    Now I attach the serial numbers to the return delivery. (the same serial numbers which are included(packed) in the above mentioned HU).  The return delivery is successfully posted. The status of equipment/serial numbers is on stock.
    The problem is that this serial number with equipment is still packed in the original HU.
    How can unpack the equipment from HU?   I think the problem is the status of HU which is PSTD(goods issue posted).
    Or alternative: can I move the HU unit from original delivery and attach it to return delivery?
    The changing of the status of HU is not posssible because the original delivery is posted and I do not want to change this original documents anymore too.

    I am afraid you are right
    - The return delivery was created without HU. ( i mean HU which was originally sold in original delivery. )
    Do you think I should create HU for return delivery with the same/different ID?  How can I transfer equipment from original delivery HU to return delivery and HU ?
    The problem seem to be that the original delivery and HU is locked (sytem status= posted )after posting.  If I cancel posting of return delivery then I can attach a new HU. But the equipment is still part of the original HU.
    Can I move equipment/serial numbers from original to returned HU? Is that possible at all?
    I am talking about phisical  same HU, so I guess there should be not 2 different HUs in the SAP system created.
    I am looking for the scenario to sell equipment in one HU and return it in the same HU with return delivery.
    thank you for your effort and responses

  • Problem with serial communicat​ion PLEASE HELP

    Hello everybody !
    I'd like to ask You for some feedback on my wierdo problem that I got with my program.
    I have built a device that detects changes in magnetic field. It is used for detecting vehicles passing it on a highway. Generally the main components communicate with each other by RS-485 protocol, but I would like to connect the device to a PC. To do so I am using a RS-232 protocol (I have a RS485=RS232 hardware converter).
    Now, I made the program (even two), which generally works, BUT some wierd things are going on sometimes; it happens that I have a problem to get a communication (after that, resetting the device by un-powering it helps, sometimes I have to restart the PC as well) but overall it happens quite not so often. The project itself is for passing one of my subject on the university - so I have to run the whole thing over there, here comes another problem : the program did not work on all of the bunch of PC's that are there. Same thing happens on my notebook. The effect of 'non working' is : I am recieving same data packet that is beeing sent... BTW : notebook does not have a RS232 port and I am using a USB-RS232 calbe converter (to count it out from the reason of problems I have checked it on my main PC and it works almost fine - almost because ocasionally I am getting the same sympthomps as I mentioned before ).
    Other problem is, when it works, that I am loosing communication for couple of hundreds of miliseconds and then it comes back to normal (i can see it on the osciloscope).
    I alredy looked for some answears here and there, and I found some suggestions about using 'buffer cleaning method', unfortunatelly I kinda do not know how to do it, and might that help anyways ?
    I also thought about using VISA drivers, but I am having trouble with it as well - the damn thing just does not work.
    My very bling guess is that everyting that I am expierencing is about using the communication protocol and seting it right. I am attaching both of the programs, PLEASE anyone pretty pretty help I totally ran out of ideas and knowledge and day after day I am turning it on and off on my PC and notebook hoping some miracle will occour ... 
    Many many thanks in advance !
      Best regards
                    Tom
    P.S. the program is very unfinished (man things are just put in), the main thing I am struggling now is getting, and setting the communication protocol right.
    Attachments:
    detektor_3_2.vi ‏141 KB

    The biggest problem I see is in the sequence:
    Write out a string.
    Wait 50 mSec.
    Ask how many bytes have been received.
    Read that many bytes.
    Can you guarantee that the data can make a round trip in 50 mSec?
    You should know that the SERIAL PORT WRITE completes NOT when the data has been sent out the port, but when it has been BUFFERED for sending. In other words it returns and starts the timer BEFORE it is actually sent.
    Also, given that there are 232 -> 485 --> USB conversions involved in both directions, I would bet that you are sometimes not allowing enough time for the data to get back.
    If you can control the protocol of what gets sent back, I would change your receiving logic. I think you should check for a carriage return or some other delimiter, and not react until you get that character (or until a reasonable timeout expires).
    In other words, try synchronizing the two ends. Something like:
    N = Get # bytes at port
    Read N bytes from port (flush any characters waiting).
    Write out command string.
    TimeLimit = NOW + 1000 mSec (or whatever)
    S = ''; (Working string)
    repeat
    N = #Bytes at Port
    If N > 0
    S = S + Read N Bytes
    Found = Search String for Delimiter
    until Found or (Now > TimeLimit)
    If Found, parse string S
    You are also re-initializing the port (SERIAL PORT INIT) every time thru the outer loop - that's unnecessary.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Problem with again and again returned retired application to distribution process

    Hi,
    I have strange problem. In my SCCM enviroment, I have retired application (Flash Player). For time to time, this application is appear on some Distribution Points with status "In process". Application is not deployed. 
    Why it is still returning to distibution on DP? How to remove it pernamently?
    Thank you for answer.

    Probably I have found issue...
    I have found issue appear only on few DP's during system deployment. Next I have compared it with DP's where this issue not appear and found I have few DP's where "retired" application is missing. So, when system deployment process starting, and in TS is
    task where is defined installaltion of this application, DP trying download missing content. Becuse it is "retired" application, thi sprocess is still in "In process" state. 
    Now I need just only check TS where retired application appear and exchange it with newer version.

Maybe you are looking for

  • WEBUTIL-open document

    Hi, I am trying to open a document via webutil using command: client_host ('cmd /c start winword.exe ' || :lre_filename); where the variable lre_filename contains the file to be open. for e.g C:\Guideline_MFSM_FSS.doc. When it is on local drive, its

  • InDesign CS6 PDF export problem

    I have tried to export to print-ready PDF a fairly straightforward A4 advet.  There's nothing complicated or unusual about the file - its based on ones we've successfully done previously. However, this one give me a 'FAiled to Export the PDF file' er

  • Question on Allocations in Oracle Projects

    Hello All , Please let me know how to transfer amount on one task to another within the same project using Project allocations. If there are Multiple Projects present in the system how do we map that cost from a project goes into another task on the

  • Photoshop Album Edition Découverte 3.2

    Bonjour, Dans mon " Adobe Photoshop Album Edition Découverte 3.2 " je voudrais créer des collections pour classer mes Photos. Dans les menus déroulants je trouve " créer une collection " mais rien ne se passe sinon dans l'extension une zone bleue et

  • Export original size not original size

    The native RAW resolution of my camera is 6016x4016. When I try to export jpegs as original size, they come out 1798x1200. If I export as TIFF, they come out full size (but 20x as large a file as jpeg.) If I export at 50%, they come out 50%. This is