Adding and Updating Batch record for oOrders with DISERVER-DI SERVER BATCH

Hi,
Can you please share a valid XML call to DIServer for creating and updating a batch for oOrders?
The only example I was able to find is in the docs, which is for oDeliveryNotes:
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
  <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
</env:Header>
<env:Body>
  <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
  <BOM>
   <BO>
    <AdmInfo>
     <Object>oDeliveryNotes</Object>
    </AdmInfo>
    <Documents>
     <row>
      <CardCode>BPForBatch</CardCode>
     </row>
    </Documents>
   <Document_Lines>
    <row>
     <ItemCode>ItemToBatch1</ItemCode>
     <Quantity>10</Quantity>
     <Price>10</Price>
     <TaxCode>My Tax</TaxCode>
    </row>
    <row>
     <ItemCode>ItemToBatch2</ItemCode>
     <Quantity>8</Quantity>
     <Price>10</Price>
     <TaxCode>My Tax</TaxCode>
    </row>
   </Document_Lines>
   <BatchNumbers>
     <row>
     <BatchNumber>AA</BatchNumber>
     <Quantity>5</Quantity>
     <BaseLineNumber>0</BaseLineNumber>
    </row>
    <row>
     <BatchNumber>AA</BatchNumber>
     <Quantity>5</Quantity>
     <BaseLineNumber>0</BaseLineNumber>
    </row>
    <row>
     <BatchNumber>AB</BatchNumber>
     <Quantity>5</Quantity>
     <BaseLineNumber>1</BaseLineNumber>
    </row>
    <row>
     <BatchNumber>AB</BatchNumber>
     <Quantity>3</Quantity>
     <BaseLineNumber>1</BaseLineNumber>
    </row>
   </BatchNumbers>
   </BO>
  </BOM>
  </dis:AddObject>
</env:Body>
</env:Envelope>
Thank you very much,
Mike

Hi Niall,
Thank you very much for helping, and unfortunately this XML:
<?xml version="1.0" encoding="utf-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header>
    <SessionID>DD54C201-4A8C-4CE0-A6A2-F33F0C0D4604</SessionID>
  </env:Header>
  <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Item">
      <BOM>
        <BO>
          <AdmInfo>
                 <Object>oOrders</Object>        
          </AdmInfo>
      <Documents>
          <row>
          <CardCode>PAG</CardCode>
          <DocDate>20080808</DocDate>
          <DocDueDate>20080909</DocDueDate>
          </row>          
      </Documents>
      <Document_Lines>
          <row>
          <ItemCode>diserver</ItemCode>
          </row>
      </Document_Lines>
     <BatchNumbers>
               <row>
               <BatchNumber>27718</BatchNumber>
               <Quantity>1</Quantity>
              </row>
     </BatchNumbers>
     </BO>
      </BOM>
    </dis:AddObject>
  </env:Body>
</env:Envelope>
causes this error:
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
     <env:Body>
          <env:Fault>
               <env:Code>
                    <env:Value>env:Receiver</env:Value>
                    <env:Subcode>
                         <env:Value>-5009</env:Value>
                    </env:Subcode>
               </env:Code>
               <env:Reason>
                    <env:Text xml:lang="en">Item no. is missing</env:Text>
               </env:Reason>
               <env:Detail>
                    <Object>17</Object>
                    <ObjectIndex>1</ObjectIndex>
                    <Command>AddObject</Command>
                    <CommandID>Add Item</CommandID>
                    <SessionID>DD54C201-4A8C-4CE0-A6A2-F33F0C0D4604</SessionID>
               </env:Detail>
          </env:Fault>
     </env:Body>
</env:Envelope>
I'm not sure what "Item no. is missing" is missing means.  I don't seen an "ItemNo" in the database as a field, or in the XML template SAP gives me. Can you please help me better understand this?
Also, do you happen to know how we can add, update and remove just the batch information, without having to add an order?
I appreciate your help, thank you!
Cheers,
Mike

Similar Messages

  • How to execute ATP check and update schedule lines for existing sales order

    Hello all,
    After stock quantity has been updated, we’d like to perform ATP check and update schedule lines for sales documents which have not been delivered yet.
    Is BAPI_SALESDOCUMENT_CHANGE useful to do so?
    If so which fields should I set ‘X’?
    At the moment, I called BATCH INPUT and execute ATP check.
    But I'm wondering if this is not a smart way.
    Thank you
    Yuko

    Hi arnab
      one way of achieving your requirements is
    after creating the sales order you can execute the SALEs order MRP using MD50 transaction enter the order # and MRP control parameters 1,3,1,2. and execute.
    Ensure the following before MRP.
    1. All the master data are maintained for the schedule line creation for the components ( Source list, Scheduling agreements)
    2. Material master with valid MRP data.strategy group having MTO strategy.
    after sales order MRP you will get the schedule line created for the components
    also MRp will create the cpacity requirements as we run the MRP with Lead time scheduling.
    Hope this helps
    SK
    Reward your points

  • Unique data record means you can't  update a record from ECC with same key.

    Unique data record means you can't  update a record from ECC with same key fileds right?
    Details: For example i have two requests Req1 and Req2 in DSO with unique data record setting checked. on day one Req1 has a filed quantity with value 10 in Active data table. On day two Req1 can not be overwitten from ECC with Req2 with the same key fields but different value 20 in the filed quantity because of the Unique data record settings. finally the delta load fails from ECC going to DSO because of this setting. is it right?
    I think we can only use unique record setting going from DSO to cube right?
    Please give me a simple scenario in which we can use this setting.
    I already search the threads and will assign points only to valuable information.
    Thanks in advance.
    York

    Hi Les,
    Unique Data Records:
    With the Unique Data Records indicator, you determine whether only unique data records are to be updated to the ODS object. This means that you cannot load a data record into the ODS object the key combination for which already exists in the system – otherwise a termination occurs. Only use this setting when you are sure that only unique data records are to be loaded into the ODS object (for example, single documents). A typical application of this is in the loading of mass data. It improves the load performance.
    Hope it Helps
    Srini

  • HT1414 I have iphone 4; tried to sync it said I need to update software so I clicked ok - it then said I need to restore and did above got to stage 3, clicked restore and update, but it comes up with an error saying iphone cannot be found Please help!!!

    I have iphone 4; tried to sync it said I need to update software so I clicked ok - it then said I need to restore and did above got to stage 3, clicked restore and update, but it comes up with an error saying iphone cannot be found Please help!!!

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • Update condition records for delivery

    Hi
    Can anyone tell me is there is any function module or IDOC which updates condition records for Item level and header level for a delivery??
    I checked the standard BAPI's but they dont do..
    also can we use bdc ??
    Thanks
    Thilothama
    Message was edited by: Thilothama v

    Sorry, can't help there as I don't have access to that environment.
    Srinivas

  • I have a ipod touch and i got it for christmas with an iTunes card .the problem is that i downloaded videos and now it said that there is not enough space and i only downloaded 8 and now 5 don't download how do i erase them.can  get my money back

    i have a ipod touch and i got it for christmas with an iTunes card .the problem is that i downloaded videos and now it said that there is not enough space and i only downloaded 8 and now 5 don't download how do i erase them.can  get my money back

    Whatever you read about iTunes is wrong unless you're actually referring to feature movies, not videos. Videos, apps, music and iBooks you can re-download:
    http://support.apple.com/kb/ht2519
    Download to your computer and then sync to your iPod touch whatever will fit.
    And no, I can't say with certainty that they won't give you a refund, but it's unlikely. The most probable outcome, if you do indeed mean movies, not TV shows or other videos, is that they would set up an additional download. For other content they'll probably just direct you to the same instructions on re-downloading I just posted.

  • HT3529 Is there a way to create, store and use preset messages for use with "Messages"?

    Is there a way to create, store and use preset messages for use with "Messages". I often have a recurrinig message to send, after a repeating event, and need to enter the same short message each time. It would be nice to have this short message stored and selectable so that I do not need to enter each time.

    found an answer that seems to work:
    https://discussions.apple.com/message/17997300#17997300

  • Can i buy an iPhone at a pawn shop and get it unlocked for use with Straight Talk wireless?

    Just wondering if I can buy a used iphone at a pawn shop or on ebay and get it unlocked for use with the prepaid Straight Talk wireless service? If so, how much would it cost to get it unlocked?

    PHones can only be unlocked from the carrier; if you're looking for an unlocked device I'd recommand buying it directly from Apple as that is the only way to promise it is, if you buy it second hand you may find it is locked to a carrier who doesn't support unlocking, or worst yet activation lock

  • How to scan my computer and external hard drives for pictures with out importing duplicates.

    how do i scan my computer and external hard drives for pictures with out importing duplicates.

    iPhoto doesn't scan anywhere. It imports files offered to it. If it spots a duplicate it will warn you.

  • I want to send app as gift, and I want pay for it with my $ on iTunes account

    I want to send app as gift, and I want pay for it with my $ on iTunes account

    You cannot gift with a gift balance
    You would have to use a credit card.

  • Can we assign 2 IPs for a SCCM 2012 primary site server and use 1 IP for communicating with its 2 DPs and 2nd one for communicating with its upper hierarchy CAS which is in a different .Domain

    Hi,
    Can we assign 2 IPs for a SCCM 2012 primary site server and use 1 Ip for communicating with its 2 DPs and 2nd one for communicating with its upper hierarchy CAS . ?
    Scenario: We are building 1 SCCM 2012 primary site and 2 DPs in one domain . In future this will attach to a CAS server which is in different domain. Can we assign  2 IPs in Primary site server , one IP will use to communicate with its 2 DPs and second
    IP for communicating with the CAS server which is in a different domain.? 
    Details: 
    1)Server : Windows 2012 R2 Std , VM environment .2) SCCM : SCCM 2012 R2 .3)SQL: SQL 2012 Std
    Thanks
    Rajesh Vasudevan

    First, it's not possible. You cannot attach a primary site to an existing CAS.
    Primary sites in 2012 are *not* the same as primary sites in 2007 and a CAS is 2012 is completely different from a central primary site in 2007.
    CASes cannot manage clients. Also, primary sites are *not* used for delegation in 2012. As Torsten points out, multiple primary sites are used for scale-out (in terms of client count) only. Placing primary sites for different organizational units provides
    no functional differences but does add complexity, latency, and additional failure points.
    Thus, as the others have pointed out, your premise for doing this is completely incorrect. What are your actual business goals?
    As for the IP Addressing, that depends upon your networking infrastructure. There is no way to configure ConfigMgr to use different interfaces for different types of traffic. You could potentially manipulate the routing tables in Windows but that's asking
    for trouble IMO.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Is there a car charger and fm frequency transmitter for iPhone with IOS6?

    is there a car charger and fm frequency transmitter for iPhone with IOS6?

    Here is something interesting about car chargers and the iPhone 3G:
    From Macworld:
    On to the power adapters. Here’s the story: We learned a while back that iPhone 3G doesn’t support charging “via FireWire.” The thing is, there are lots of devices out there that don’t actually have a FireWire port, but are technically FireWire chargers because they’re sending power on the dock-connector pins that were used for power by the FireWire interface. There are a lot of reasons for this, chief among them the fact that the FireWire spec allows as much a 18 volts, while USB is a 5-volt connection. Since cars provide 12 volts of power, many if not most car-chargers used the FireWire method to send power.
    However, in the interests of space and simplicity (i.e., not having to engineer for two separate power paths), Apple has dropped support for FireWire charging with the iPhone 3G. This means that many accessories won’t charge an iPhone 3G. Borchers said that Apple gave accessory developers a strong hint that this was going to happen a while ago, but he said that some companies have continued to implement FireWire-based chargers despite the warning.
    But there’s some hope in sight: Borchers told me that at least a couple of third parties will be releasing converters that will pass through the dock connection, but convert the power to a USB standard. That adapter may make many of those charging devices come back to life

  • Edit and update multiple records in JSP buisness components

    Hi everybody,
    I'm building BC4J components using entities and views and JSP buisness components.
    how can I edit and update multiple records
    at a time in the jsp file
    Note using the databean
    "oracle.jbo.html.databeans.EditCurrentRecord"
    one can view one record at a time
    thank you

    do you have a sample code? thanks
    Hi
    There are several options. One of them could be
    1) use <input name=rc[j] value="..."> instead of
    display a raw text
    2) parse parameters in doPost method of your servlet
    to update appropriate values.
    3) Make a empty row enable inserts
    Regards
    Jan

  • Inqmy resource adapter for SAP with Bea Weblogic Server

              Hi everybody,
              Anybody have tried to use INQMY resource adapter for SAP with Bea weblogic server
              It works well with INQMY server, but with BEA I'm getting a lot of problems creating
              the connections.
              Thanks in advance.
              Xavi.
              

    All,
              Here are the steps we (used for internal testing) had to perform to get
              IN-Q-MY adapter for SAP to work with WebLogic:
              The wli.adapter.inqmy.sapr3.spi package contains extensions to the
              In-Q-My J2EE Connector Architecture classes to overcome some limitations
              in the base implementation classes. To get around these issues, we had
              to extend their R3ManagedConnectionFactory, R3ConnectionManager, and
              R3ConnectionFactory classes.
              * The javax.resource.spi.ManagedConnectionFactory implementation
              does not over-ride the equals and hashCode methods correctly. This
              causes problems with WLS 6.1.
              * There is a bug in their javax.resource.spi.ConnectionManager
              implementation for non-managed uses of the adapter. Consequently, their
              adapter cannot be used in a non-managed scenario.
              * The javax.resource.cci.ConnectionFactory class does not support
              the getConnection() method that does not take any arguments (it throws a
              null pointer exception).
              I am attaching the classes discussed above.
              Cheers,
              Chris
              Torsten Friebe wrote:
              > Hi,
              >
              > does anybody know where to get a trail version - if one exists - of IN-Q-MY
              > application server or the resource adapter?
              >
              > Thanks, regards
              > Torsten
              >
              > "Xavi" <[email protected]> schrieb im Newsbeitrag
              > news:[email protected]...
              >
              >>Hi everybody,
              >>
              >>Anybody have tried to use INQMY resource adapter for SAP with Bea weblogic
              >>
              > server
              >
              >>?
              >>
              >>It works well with INQMY server, but with BEA I'm getting a lot of
              >>
              > problems creating
              >
              >>the connections.
              >>
              >>Thanks in advance.
              >>Xavi.
              >>
              >>
              >
              >
              package wli.adapter.inqmy.sapr3.spi;
              import java.io.Serializable;
              import javax.resource.ResourceException;
              import javax.resource.cci.Connection;
              import javax.resource.cci.ConnectionSpec;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.resource.spi.ManagedConnectionFactory;
              import com.inqmy.r3adapter.R3ConnectionSpec;
              import com.inqmy.r3adapter.R3ManagedConnectionFactory;
              * Extends the In-Q-My implementation to allow for getConnection() with no
              * connection spec, i.e. use the default configured connection parameters.
              public class R3ConnectionFactory
              extends com.inqmy.r3adapter.R3ConnectionFactory
              implements com.bea.connector.IProxyMarker {
              private R3ConnectionSpec m_cspec;
              public R3ConnectionFactory(ConnectionManager cm, R3ManagedConnectionFactory mcf)
              throws ResourceException {
              super(cm, mcf);
              String strClientNumber = mcf.getClientNumber();
              if (strClientNumber == null) {
              throw new javax.resource.spi.IllegalStateException("ClientNumber not set for "+mcf);
              String strLanguage = mcf.getLanguage();
              if (strLanguage == null) {
              throw new javax.resource.spi.IllegalStateException("Language not set for "+mcf);
              String strUserName = mcf.getUserName();
              if (strUserName == null) {
              throw new javax.resource.spi.IllegalStateException("UserName not set for "+mcf);
              String strPassword = mcf.getPassword();
              if (strPassword == null) {
              throw new javax.resource.spi.IllegalStateException("Password not set for "+mcf);
              m_cspec = new R3ConnectionSpec(strClientNumber, strLanguage, strUserName, strPassword);
              public Connection getConnection(ConnectionSpec connectionSpec)
              throws ResourceException {
              if (connectionSpec == null) connectionSpec = m_cspec;
              return super.getConnection(connectionSpec);
              package wli.adapter.inqmy.sapr3.spi;
              import java.io.Serializable;
              import javax.resource.ResourceException;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.resource.spi.ManagedConnectionFactory;
              * Extends the In-Q-My implementation to over-ride the
              * allocateConnection method to return a CCI connection vs. a ManagedConnection
              public class R3DefaultConnectionManager
              implements ConnectionManager, Serializable {
              public R3DefaultConnectionManager() {}
              public Object
              allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri)
              throws ResourceException {
              ManagedConnection mc = mcf.createManagedConnection(null, cri);
              return mc.getConnection(null, cri);
              package wli.adapter.inqmy.sapr3.spi;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.security.auth.Subject;
              * Extends the In-Q-My implementation to get around some problems encountered
              * while running on WebLogic:
              * <ul>
              * <li>Must over-ride default implementation of equals and hashCode method</li>
              * <li>Needed to provide my version of the CCI ConnectionFactory</li>
              * <li>Needed to provide my version of the default ConnectionManager for the
              * non-managed scenario use case</li>
              * </ul>
              public class R3ManagedConnectionFactory
              extends com.inqmy.r3adapter.R3ManagedConnectionFactory {
              private int m_iHashCode;
              transient private com.inqmy.r3adapter.R3ConnectionRequestInfo t_cri = null;
              public R3ManagedConnectionFactory() {
              super();
              java.rmi.server.UID uid = new java.rmi.server.UID();
              m_iHashCode = uid.hashCode();
              public Object createConnectionFactory() {
              // need to install our own default connection manager because In-Q-My
              // version causes a ClassCastException in CCI ConnectionFactory
              // getConnection
              return createConnectionFactory(new R3DefaultConnectionManager());
              public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cri)
              throws javax.resource.ResourceException {
              // need to check for null on the ConnectionRequestInfo object because the
              // In-Q-My R3ManagedConnection ctor does not check for null
              if (cri == null) cri = getDefaultConnectionRequestInfo();
              return new com.inqmy.r3adapter.R3ManagedConnection(this, subject, cri);
              public Object createConnectionFactory(ConnectionManager connectionManager) {
              // need to supply a connection factory that can deal with getConnection
              // that does not take a ConnectionSpec
              try {
              return new R3ConnectionFactory(connectionManager, this);      
              } catch (javax.resource.ResourceException re) {
              re.printStackTrace();
              throw new java.lang.IllegalStateException(re.getMessage());
              com.inqmy.r3adapter.R3ConnectionRequestInfo getDefaultConnectionRequestInfo()
              throws javax.resource.spi.IllegalStateException {
              if (t_cri == null) {
              String strClientNumber = this.getClientNumber();
              if (strClientNumber == null) {
              throw new javax.resource.spi.IllegalStateException("ClientNumber not set for "+this);
              String strLanguage = this.getLanguage();
              if (strLanguage == null) {
              throw new javax.resource.spi.IllegalStateException("Language not set for "+this);
              String strUserName = this.getUserName();
              if (strUserName == null) {
              throw new javax.resource.spi.IllegalStateException("UserName not set for "+this);
              String strPassword = this.getPassword();
              if (strPassword == null) {
              throw new javax.resource.spi.IllegalStateException("Password not set for "+this);
              t_cri = new com.inqmy.r3adapter.R3ConnectionRequestInfo(strClientNumber, strLanguage, strUserName, strPassword);
              return t_cri;
              public boolean equals(Object obj) {
              if (obj == null) return false;
              if (obj == this) return true;
              if (!this.getClass().isInstance(obj)) return false;
              R3ManagedConnectionFactory mcf = (R3ManagedConnectionFactory)obj;
              return compare(getClientNumber(), mcf.getClientNumber()) &&
              compare(getLanguage(), mcf.getLanguage()) &&
              compare(getUserName(), mcf.getUserName()) &&
              compare(getPassword(), mcf.getPassword()) &&
              compare(getServerName(), mcf.getServerName()) &&
              compare(getSystemNumber(), mcf.getSystemNumber());
              protected final boolean compare(final Object obj1, final Object obj2) {
              if (obj1 == obj2) return true;
              if (obj1 != null) {
              return obj1.equals(obj2);
              } else {
              if (obj2 == null) {
              return true;
              } else {
              return false;
              public int hashCode() { return m_iHashCode; }
              

  • I have a 5s which has been working fine until about a week ago when any calender event added to my phone will not sync with my enterprise server. Any calender event entered on my PC (enterprise) does show on my phone. Mail is working fine both ways,ideas?

    i have a 5s which has been working fine until about a week ago when any calender event added to my phone will not sync with my enterprise server. Any calender event entered on my PC (enterprise) does show on my phone. Mail is working fine both ways,ideas?Iphne 5s and enterprise

    See my reply to this message:
    https://discussions.apple.com/thread/2557520?start=15&tstart=0
    The problem is that the POP3 client is not issuing a DELE command to remove the email from the server.

Maybe you are looking for