Problem in Wfetch client for Update operations

Hi,
I am using the Wfetch client for the 'Update' operation of an RFC Gateway consumption model . But it seems to always give this error : 'HTTP/1.0 400 Bad Request\r\n'
I have passed only those fields that have been exposed in the GW Data model. Is there anything else that needs to be taken care of ?
The read and query operations are executed successfully though.
Thanks,
Shubhada

Hi Shubhada,
Just recheck two things in Wfetch with below details.
1. Check the path. It should be below formate for update operation
Verb : Put
Path:  /sap/opu/sdata/sap/<CONSUM_MODEL>/<data_model>Collection(value='  ',scheme_id='<DATA_MODEL>',scheme_agency_id='  ')?sap-client=< >&$format=xml
Above formate you can take from Read operation which you already executed successfully.
2. Check the XML formate on right handside in Wfetch it should be header & body with below details.
Xml Formate:
x-requested-with: XMLHttpRequest\r\n
\r\n
<?xml version="1.0" encoding="utf-8" standalone="yes"?>\r\n
  <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">\r\n
      <content type="application/xml">\r\n
        <m:properties>\r\n
   <d:value> </d:value> \r\n
  <d:scheme_id> </d:scheme_id> \r\n
  <d:scheme_agency_id> </d:scheme_agency_id> \r\n
Just copy from read operation Read operation which you already executed successfully. And update the fields what you required.
</m:properties>\r\n
      </content>\r\n
</entry>\r\n
Hope you this will help above information.
Thanks & Regards,
Mahesh Devershetty

Similar Messages

  • Problem with DII client for Doc/Literal with non built-in type in WL8.1 Sp2

    Hello,
    I have been trying to make this DII client for doc/literal using non built-in type to work for 2 days now.
    Any help/input will be greatly appreciated. I have added the code and wsdl below.
    BTW this is using the code first approach.
    Works perfectly fine with the clientgen generated stubs. But not with DII.
    With the stubs, following is the SOAP envelope.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:getType xmlns:n1="http://www.aeb.com/wlws">
         <n2:id xmlns:n2="java:com.aeb.types">XYS</n2:id>
         <n3:name xmlns:n3="java:com.aeb.types">Name</n3:name>
    </n1:getType>
    </env:Body>
    </env:Envelope>
    With DII (using the serializer/deserializer generated by clientgen),
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:TestType xmlns:n1="java:com.aeb.types">
         <n1:id>ABC</n1:id>
         <n1:name>Some Name</n1:name>
    </n1:TestType>
    </env:Body></env:Envelope>
    Exception
    javax.xml.rpc.soap.SOAPFaultException: Unable to find a matching Operation for this remote invocation
    <n1:TestType xmlns:n1="java:com.aeb.types">
    <n1:id>ABC</n1:id>
    <n1:name>Some Name</n1:name>
    </n1:TestType>.
         Please check your operation name.
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
         at com.amgen.webservice.clients.DocClient.callService(DocClient.java:83)
         at com.amgen.webservice.clients.DocClient.main(DocClient.java:35)
    Client
    System.setProperty("javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");
    System.setProperty("weblogic.webservice.verbose", "true");
    String targetNamespace = "http://www.aeb.com/wlws";
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName = new QName(targetNamespace, "DocWebservice");
    QName portName = new QName(targetNamespace, "DocWebservicePort");
    QName operationName = new QName(targetNamespace, "getType");
    Service service = factory.createService(serviceName);
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING);
    mapping.register(TestType.class, new QName("java:com.aeb.types","TestType"), new TestTypeCodec(), new TestTypeCodec());
    Call call = service.createCall();
    call.setOperationName(operationName);
    call.setPortTypeName(portName);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    call.addParameter("testType", new QName("java:com.aeb.types","TestType"), TestType.class, ParameterMode.IN);
    call.setReturnType(new QName("java:com.aeb.types", "TestType"),TestType.class);
    call.setTargetEndpointAddress("http://localhost:7001/wlws/DocWebservice");
    TestType type = new TestType();
    type.setId("ABC");
    type.setName("Some Name");
    TestType res = (TestType) call.invoke(new Object[] { type });
    System.out.println(res.getName());
    TestType.java
    package com.aeb.types;
    import java.io.Serializable;
    public class TestType implements Serializable {
         private String id;
         private String name;
         public String getId() {
              return id;
         public void setId(String id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    DocWebservice.java
    package com.aeb.webservices;
    import com.aeb.types.TestType;
    public class DocWebservice {
         public TestType getType(TestType type) {
              System.out.println("In Server....");
              System.out.println("Received : " + type.getName());
              return type;
    ServiceGen Ant Task
    <servicegen destear="${dist.dir}/wlws.ear" contexturi="wlws">
         <service javaClassComponents="com.aeb.webservices.DocWebservice"
              generateTypes="True"
              targetNamespace="http://www.aeb.com/wlws"
              serviceName="DocWebservice"
              serviceURI="/DocWebservice"
              style="document">
              <client packageName="com.aeb.ws.doc.client" />
         </service>
    </servicegen>
    WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns:tns="http://www.aeb.com/wlws" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.aeb.com/wlws">
    <types xmlns:tns="http://www.aeb.com/wlws"
    xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="http://www.aeb.com/wlws"
    xmlns:tp="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="http://www.aeb.com/wlws">
    <xsd:import namespace="java:com.aeb.types">
    </xsd:import>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getType"
    nillable="true">
    </xsd:element>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getTypeResponse"
    nillable="true">
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="java:com.aeb.types">
    <xsd:complexType name="TestType">
    <xsd:sequence>
    <xsd:element type="xsd:string"
    name="id"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    <xsd:element type="xsd:string"
    name="name"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="getType">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="testType"
    element="partns:getType">
    </part>
    </message>
    <message name="getTypeResponse">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="result"
    element="partns:getTypeResponse">
    </part>
    </message>
    <portType name="DocWebservicePort">
    <operation name="getType">
    <input message="tns:getType">
    </input>
    <output message="tns:getTypeResponse">
    </output>
    </operation>
    </portType>
    <binding type="tns:DocWebservicePort"
    name="DocWebservicePort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    <operation name="getType">
    <soap:operation style="document"
    soapAction="">
    </soap:operation>
    <wsr:reliability persistDuration="60000">
    </wsr:reliability>
    <input>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </input>
    <output>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </output>
    </operation>
    </binding>
    <service name="DocWebservice">
    <port name="DocWebservicePort"
    binding="tns:DocWebservicePort">
    <soap:address location="http://localhost:7001/wlws/DocWebservice">
    </soap:address>
    </port>
    </service>
    </definitions>
    Thanks
    Aspert

    Hello,
    I have been trying to make this DII client for doc/literal using non built-in type to work for 2 days now.
    Any help/input will be greatly appreciated. I have added the code and wsdl below.
    BTW this is using the code first approach.
    Works perfectly fine with the clientgen generated stubs. But not with DII.
    With the stubs, following is the SOAP envelope.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:getType xmlns:n1="http://www.aeb.com/wlws">
         <n2:id xmlns:n2="java:com.aeb.types">XYS</n2:id>
         <n3:name xmlns:n3="java:com.aeb.types">Name</n3:name>
    </n1:getType>
    </env:Body>
    </env:Envelope>
    With DII (using the serializer/deserializer generated by clientgen),
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header/>
    <env:Body>
    <n1:TestType xmlns:n1="java:com.aeb.types">
         <n1:id>ABC</n1:id>
         <n1:name>Some Name</n1:name>
    </n1:TestType>
    </env:Body></env:Envelope>
    Exception
    javax.xml.rpc.soap.SOAPFaultException: Unable to find a matching Operation for this remote invocation
    <n1:TestType xmlns:n1="java:com.aeb.types">
    <n1:id>ABC</n1:id>
    <n1:name>Some Name</n1:name>
    </n1:TestType>.
         Please check your operation name.
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
         at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
         at com.amgen.webservice.clients.DocClient.callService(DocClient.java:83)
         at com.amgen.webservice.clients.DocClient.main(DocClient.java:35)
    Client
    System.setProperty("javax.xml.rpc.ServiceFactory","weblogic.webservice.core.rpc.ServiceFactoryImpl");
    System.setProperty("weblogic.webservice.verbose", "true");
    String targetNamespace = "http://www.aeb.com/wlws";
    ServiceFactory factory = ServiceFactory.newInstance();
    QName serviceName = new QName(targetNamespace, "DocWebservice");
    QName portName = new QName(targetNamespace, "DocWebservicePort");
    QName operationName = new QName(targetNamespace, "getType");
    Service service = factory.createService(serviceName);
    TypeMappingRegistry registry = service.getTypeMappingRegistry();
    TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING);
    mapping.register(TestType.class, new QName("java:com.aeb.types","TestType"), new TestTypeCodec(), new TestTypeCodec());
    Call call = service.createCall();
    call.setOperationName(operationName);
    call.setPortTypeName(portName);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document");
    call.addParameter("testType", new QName("java:com.aeb.types","TestType"), TestType.class, ParameterMode.IN);
    call.setReturnType(new QName("java:com.aeb.types", "TestType"),TestType.class);
    call.setTargetEndpointAddress("http://localhost:7001/wlws/DocWebservice");
    TestType type = new TestType();
    type.setId("ABC");
    type.setName("Some Name");
    TestType res = (TestType) call.invoke(new Object[] { type });
    System.out.println(res.getName());
    TestType.java
    package com.aeb.types;
    import java.io.Serializable;
    public class TestType implements Serializable {
         private String id;
         private String name;
         public String getId() {
              return id;
         public void setId(String id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    DocWebservice.java
    package com.aeb.webservices;
    import com.aeb.types.TestType;
    public class DocWebservice {
         public TestType getType(TestType type) {
              System.out.println("In Server....");
              System.out.println("Received : " + type.getName());
              return type;
    ServiceGen Ant Task
    <servicegen destear="${dist.dir}/wlws.ear" contexturi="wlws">
         <service javaClassComponents="com.aeb.webservices.DocWebservice"
              generateTypes="True"
              targetNamespace="http://www.aeb.com/wlws"
              serviceName="DocWebservice"
              serviceURI="/DocWebservice"
              style="document">
              <client packageName="com.aeb.ws.doc.client" />
         </service>
    </servicegen>
    WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns:tns="http://www.aeb.com/wlws" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.aeb.com/wlws">
    <types xmlns:tns="http://www.aeb.com/wlws"
    xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
    xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="http://www.aeb.com/wlws"
    xmlns:tp="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="http://www.aeb.com/wlws">
    <xsd:import namespace="java:com.aeb.types">
    </xsd:import>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getType"
    nillable="true">
    </xsd:element>
    <xsd:element xmlns:tp="java:com.aeb.types"
    type="tp:TestType"
    name="getTypeResponse"
    nillable="true">
    </xsd:element>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:com.aeb.types"
    elementFormDefault="qualified"
    attributeFormDefault="qualified"
    targetNamespace="java:com.aeb.types">
    <xsd:complexType name="TestType">
    <xsd:sequence>
    <xsd:element type="xsd:string"
    name="id"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    <xsd:element type="xsd:string"
    name="name"
    minOccurs="1"
    maxOccurs="1"
    nillable="true">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="getType">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="testType"
    element="partns:getType">
    </part>
    </message>
    <message name="getTypeResponse">
    <part xmlns:partns="http://www.aeb.com/wlws"
    name="result"
    element="partns:getTypeResponse">
    </part>
    </message>
    <portType name="DocWebservicePort">
    <operation name="getType">
    <input message="tns:getType">
    </input>
    <output message="tns:getTypeResponse">
    </output>
    </operation>
    </portType>
    <binding type="tns:DocWebservicePort"
    name="DocWebservicePort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http">
    </soap:binding>
    <operation name="getType">
    <soap:operation style="document"
    soapAction="">
    </soap:operation>
    <wsr:reliability persistDuration="60000">
    </wsr:reliability>
    <input>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </input>
    <output>
    <soap:body namespace="http://www.aeb.com/wlws"
    use="literal">
    </soap:body>
    </output>
    </operation>
    </binding>
    <service name="DocWebservice">
    <port name="DocWebservicePort"
    binding="tns:DocWebservicePort">
    <soap:address location="http://localhost:7001/wlws/DocWebservice">
    </soap:address>
    </port>
    </service>
    </definitions>
    Thanks
    Aspert

  • Problems running DII client for consuming webservices

    Hello webservices experts,
    am running into problems - when I try running my DII client for a webservice that I've successfully deployed on j2sdkee1.4.
    The exception goes like this
    java.rmi.RemoteException: JAXRPC.JAXRPCSERVLET.28: Missing port information
         at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:462)
    I've searched this forum and others as well. Although a lot of people seem to be having this problem nobody seems to have got it solved. Any way out? The client is a mere copy paste of the DII client example in j2eetutorial 1.4

    Solved it ! Some endpoint alias problem during deployment ! Now works fine !

  • JDBC Problem: "select * from NAMES for update of FIRSTNAME"

    I am using Oracle 8 and JDBC thin driver. Is there any reason
    why when I try to use the statement:
    "select * from NAMES for update of FIRSTNAME"
    it does NOT work in JDBC?
    However when I do the statement in SQL-Plus it works fine.
    If anyone has used this statement with success, please let me
    know that it actually works, so that I know there is something
    wrong with me!
    Any code snippets would be very helpful.
    Could it be the thin driver?
    Please help! Thanks in advance.
    null

    Thomas Gutzmann (guest) wrote:
    : James,
    : for this command you need transactional control, which is not
    : possible with JDBC - if I'm not wrong. You can circumvent it
    with
    : something like:
    : select x into vOld from t where id=4711;
    : vNew := 0.815;
    : update t set x = vNew where id = 4711 and x = vOld;
    : Another option would be to write a stored PL/SQL procedure that
    : runs the whole transaction.
    : Cheers
    : Thomas
    : James Ward (guest) wrote:
    : : I am using Oracle 8 and JDBC thin driver. Is there any
    reason
    : : why when I try to use the statement:
    : : "select * from NAMES for update of FIRSTNAME"
    : : it does NOT work in JDBC?
    : : However when I do the statement in SQL-Plus it works fine.
    : : If anyone has used this statement with success, please let me
    : : know that it actually works, so that I know there is
    something
    : : wrong with me!
    : : Any code snippets would be very helpful.
    : : Could it be the thin driver?
    : : Please help! Thanks in advance.
    I don't think this is correct. I have used select for update
    with no problems. you can send a "set transaction control"
    via sql, I believe, but you shouldn't need to do so...
    Maureen
    null

  • Getting BAPI_ALM_ORDER_MAINTAIN work for updating operations!

    Dear users,
    I am having a tough time in getting the BAPI_ALM_ORDER_MAINTAIN for updating my operations.
    The requirement is to update the Material Group, Vendor and a few fields on the First operation of the Order. I have written a piece of code ( extracted bits and pieces from previous threads raised on the same issue).
    The issue I have is, it only updates the Operation if a RELEASE is included in the method, and needless to say, it can happen only once. If I remove the RELEASE from methods table, then it gives a success message that the BAPI has worked, but nothing gets reflected on the Order. And as a bonus (?!!) I get an 'Update terminated' message in my SAP BUsiness workplace with an error SAPSQL_ARRAY_INSERT_DUPREC, when I try to open the Order.
    Please find the code below in the next post.
    Can you please suggest if there is a way to update ONLY the operation?
    Thanks,
    Vijay

      l_method_line-refnumber = '000001'.
      l_method_line-objecttype = 'HEADER'.
      l_method_line-method = 'CHANGE'.
      l_method_line-objectkey = p_aufnr.
      APPEND l_method_line TO l_methods.
      l_method_line-method = 'RELEASE'.
      APPEND l_method_line TO l_methods.
      l_method_line-objecttype = 'OPERATION'.
      l_method_line-method = 'CHANGE'.
      CONCATENATE p_aufnr '0010' INTO l_method_line-objectkey.
      APPEND l_method_line TO l_methods.
      l_method_line-method = 'SAVE'.
      l_method_line-objecttype = space.
      APPEND l_method_line TO l_methods.
      MOVE p_aufnr TO l_header_line-orderid.
      MOVE sy-datum TO l_header_line-start_date.
      MOVE '7' TO l_header_line-priority.
      APPEND l_header_line TO l_header.
      MOVE 'X' TO l_header_up_line-start_date.
      MOVE 'X' TO l_header_up_line-priority.
      APPEND l_header_up_line TO l_header_up.
      MOVE '0010' TO l_operation_line-activity.
      l_operation_line-MATL_GROUP = '9051'.
      l_operation_line-usr01 = 'Test 1'.
      APPEND l_operation_line TO l_operation.
      MOVE 'X' TO l_operation_line_up-MATL_GROUP.
      MOVE 'X' TO l_operation_line_up-usr01.
      APPEND l_operation_line_up TO l_operation_up.
    * Update order
      CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
        TABLES
          it_methods             = l_methods
         it_header              = l_header
         it_header_up           = l_header_up
    *   IT_HEADER_SRV          =
    *   IT_HEADER_SRV_UP       =
    *     it_userstatus          = l_userstatus
    *   IT_PARTNER             =
    *   IT_PARTNER_UP          =
       it_operation           = l_operation
       it_operation_up        = l_operation_up
    *   IT_RELATION            =
    *   IT_RELATION_UP         =
    *   IT_COMPONENT           =
    *   IT_COMPONENT_UP        =
    *   IT_TEXT                =
    *   IT_TEXT_LINES          =
    *   EXTENSION_IN           =
         return                 =  l_return
    *   ET_NUMBERS             =
        LOOP AT l_return INTO l_return_line.
          WRITE:/ l_return_line-type,
                  l_return_line-id,
                  l_return_line-number,
                  l_return_line-message.
        ENDLOOP.

  • Problem in BOM explosion for a operation Sub Contract.

    Hi All,
    Please advise how to explode a BOM or Assign component in a Purchase order with Item category (L) for a Operation SubContract External Processing  oriented material for which no material code is created from a Series Operation production order .
    Actually in my scenario, no raw material component will send to the Sub -Contract Vendor. Only Assembled operation material lets say operation 20 from a routing ( which is not having material code ) from an In - house production from a shopfloor has to be sent to the vendor to create a operation 30 material , which is also not having a material code." How to explode a BOM or component allocation for the Non- codified Item in a PO".
    regards,
    YK

    Hi
    Change the control key of the operation to PP02. System will prompt u to PR data screen where u have to tick on Subcontracting checkbox. Enter other mandatory field like material grp, cost element, purchasing grp etc. On saving system will create PR with line items. System will trigger the components reqmt based on the assignment to operation. Example if for operation 20, materials M1 & M2 are assigned, then in the PR u will find M1, M2 in the component screen which u have to send to the vendor.
    Hope it is clear to u.

  • Problem using application client for local stateful session bean

    Hi,
    I have deployed a local stateful session bean in Sun J2EE 1.4 application server.
    On running the applclient for the stateful session bean application client i get the following error:
    Warning: ACC006: No application client descriptor defined for: [null]
    cant we use application client for local stateful session beans. becoz the application runs smoothly when i changed the stateful sesion bean to remote.

    Hi,
    No, an ejb that exposes a local view can only be accessed by an ejb or web component packaged within the same application. Parameters and return values for invocations through the ejb local view are passed by reference instead of by value. That can't work for an application client since it's running in a separate JVM.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Mutating Error problem using audit trigger for UPDATE

    I need to add 4 columns to all of my tables named:
    INSERT_BY
    INSERT_DATA
    UPDATE_BY
    UPDATE_DATE
    I intend these to act as "inserted" and "last updated" audit trails within the table, as opposed to creating a new table and storing the audit information there. The insert columns appear to be easy, as I can just use a DEFAULT clause within the definition of the table. However when I attempted to write a (my first) trigger then I run into problems with mutating tables. Presumebly because I am attempting to change the table while the trigger is referencing it.
    create or replace trigger test_audit
    after update on dictionary
    begin
    update dictionary
    set update_by = user, update_date = sysdate
    where entity_id = :old.entity_id;
    end;
    I thought I could maybe get around this by calling a procedure from inside the trigger. Something like:
    create or replace procedure test_audit(vColumn in varchar2, vData in varchar2, vTable in varchar2) is
    -- vTable is table name
    -- vColumn is PK of table
    -- vData is value of PK in current row
    begin
    update vTable
    set update_by = user, update_date = sysdate
    where vColumn = vData;
    commit;
    end test_audit;
    However I cannot use variable for table names. Will this mean I have to create a procedure for each table/trigger? Is there a way to reference the table name as a variable and keep this a generic procedure? Or is there an easier way to record the auditing UPDATE information for each changed row within the original table?
    Many thanks in advance......

    Will
    this mean I have to create a procedure for each
    table/trigger? I think you've answered that question already.
    Is there a way to reference the table
    name as a variable and keep this a generic procedure?Not that I'm aware of.
    Or is there an easier way to record the auditing
    UPDATE information for each changed row within the
    original table?Well, there's the AUDIT feature.
    C.

  • Problems running JSP Client for ApplicationModule

    Hi All,
    I'm still having trouble getting a simple JSP client up and running for an AppModule. The AppModule tests okay using the java client, but when I try to run the main.jsp for my Module, it starts up with the following error. I've tried building several projects and have had no success with JSP.
    Does this really work? Has anyone here successfully gotten a JSP Client running?
    Thanks,
    Rich
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    log3: oracle.jsp.runner.JspRunner: init
    log3: Loading from CLASSPATH backend_AppModule.properties
    log3: Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput
    =silent to remove)
    [0] Diagnostic Properties: (from /oracle/jbo/common/Diagnostic.properties)log3:
    [1] Timing:false Functions:false Linecount:true Threshold:6log3:
    [2] CSMessageBundle (language base) being initializedlog3:
    log3: oracle.jbo.ApplicationModuleCreateException: JBO-25222: Unable to create a
    pplication module.
    log3: at oracle.jbo.server.ApplicationModuleHomeImpl.create(Compiled Code)
    log3: at oracle.jbo.common.appmgr.AppModuleInfo.getReservedAppModuleInstance(C
    ompiled Code)
    log3: at oracle.jbo.common.appmgr.AppRegistry.getAppModuleInstance(Compiled Co
    de)
    log3: at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPro
    pertyFile(Compiled Code)
    log3: at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPro
    pertyFile(Compiled Code)
    log3: at webapp1.main._jspService(main.jsp:7)
    log3: at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
    log3: at oracle.jsp.runner.JspRunner.dispatch(Compiled Code)
    log3: at oracle.jsp.runner.JspRunner.service(Compiled Code)
    log3: at javax.servlet.http.HttpServlet.service(Compiled Code)
    log3: at oracle.lite.web.JupServlet.service(Compiled Code)
    log3: at oracle.lite.web.MimeServletHandler.handle(Compiled Code)
    log3: at oracle.lite.web.JupApplication.service(Compiled Code)
    log3: at oracle.lite.web.JupAppHandler.handle(Compiled Code)
    log3: at oracle.lite.web.HTTPServer.include(Compiled Code)
    log3: at oracle.lite.web.HTTPServer.forward(Compiled Code)
    log3: at oracle.lite.web.HTTPServer.handleRequest(Compiled Code)
    log3: at oracle.lite.web.JupServer.handle(Compiled Code)
    log3: at oracle.lite.web.JupHTTPListener$JupHTTP.run(Compiled Code)
    log3: oracle.lite.web.workspace.WorkSpaceDevel: init

    Is the Appmodule running locally or as EJB in Oracle8i.
    Unable to create appmodule genrally is result of not all the required libraries in classpath.
    If you have deployed as EJB then in the project properties make sure that JBOEJBCLIENT and EJBSTUBS(Generated during deployment) are on top of the list.
    If this is not the scenario, give more details on your env.
    raghu
    null

  • Problem in update operation for duet enterprise 1.0 from SharePoint end.

    Hi Everyone, I have developed a sap netweaver duet enterprise 1.0 to send the data from sap to share point and from share point to sap. The problem is that I am able to test the data successfully from duet system in sap for all the operations  Query, Read & Update and I am getting the required output.
    But from share point end when they are hitting the data for Query, Read & Update operations the query and read operations are successful but the update operation is getting failed. I unable to trigger the break point for update operation. I have checked the log but in that i am getting BULK READ status.
    Can anyone help me out in resolving this issue.
    Thanks in advance
    Regards
    Srinu

    Hi Binson,
    I want to ristrict the crude operation (create, update etc) by giving roles in backend system. i am able to apply restriction at sharepoint end but i don't want that. i want SAP role based security.
    So i want, according to given roles in backend system user is able to do operations at sharepoint.
    Thanks & Regards
    Virender Solanki

  • Best practice for update/insert on existing/non existing rows

    Hello,
    In an application I want to check if a row exists and if yes I want to update the row and if not I want to insert the row.
    Currently I have something like this:
    begin
    select *
    into v_ps_abcana
    from ps_abcana
    where typ = p_typ
    and bsw_nr = p_bsw_nr
    and datum = v_akt_date
    for update;
    exception
    when no_data_found then
    v_update := false;
    when others then
    raise e_error_return;
    end;
    if v_update = false
    then
    /* insert new row */
    else
    /* update locked row */
    end if;
    The problem is that the FOR UPDATE lock has no effect for inserts. So if another session executes this part exactly the same time then there will be two rows inserted.
    What is the best way to avoid this?

    for me the 1st solution is the most efficient one.
    in your 2nd solution it seems to me that you're gonna create a dummy table that will serve as a traffic cop. well that possible but not the proper and clean approach for your requirement. you're absolutely complicating your life where in fact Oracle can do it all for you.
    First thing that you have to consider is your database design. This should somehow corresponds to the business rule and don't just let the program to do it on that level leaving the database vulnerable to data integrity issue such as direct data access. In your particular example, there's no way you can assure that there'll be no duplicate records in the table.
    this is just an advice when designing solution: Don't use a "Mickey Mouse" approach on your design!

  • Update Operation to SAP Failed using BDC Model

    Hi All,
    I am working in Duet Enterprise 1.0 development in SharePoint. At SAP front Query, Read and Update operations have been developed and the corresponding WSDL and Endpoint URLs are generated.
    I need to use these WSDL and Endpoint urls and perform Update operation in SharePoint. For this I need to pass the parameters POSCLKey, CorrelationID, ReleaseCode and PONumber for the update operation.
    I have written the following code:
     using (new Microsoft.SharePoint.SPServiceContextScope(SPServiceContext.GetContext(site)))
    BdcService service =
    SPFarm.Local.Services.GetValue<BdcService>();
                            IMetadataCatalog
    catalog = service.GetDatabaseBackedMetadataCatalog(SPServiceContext.Current);
    //IEntity entity = catalog.GetEntity(ConfigurationManager.AppSettings["NameSpace"], ConfigurationManager.AppSettings["EntityName"]);
    IEntity entity = catalog.GetEntity("http://bccplmoss:9999",
    "Purchase Order V1");
    foreach (KeyValuePair<string,
    IMethod> methods in entity.GetMethods())
    ILobSystemInstance LobSysteminstance = entity.GetLobSystem().GetLobSystemInstances()[0].Value;
    IFieldCollection fieldCollection = entity.GetUpdaterView("UpdatePO").Fields;
    IMethodInstance methodInstance = entity.GetMethodInstance("UpdatePO",
    MethodInstanceType.Updater);
    string Relcode = "V1";
    //string[] parameters = { "1022_7400000011_ZPURCHASE_ORDER_HEADER_SPI_SERV_160", "7400000011", Relcode };
    Identity identity = new
    Identity("1022_7400000011_ZPURCHASE_ORDER_HEADER_SPI_SERV_160");
    IMethodInstance methodinstance = methods.Value.GetMethodInstances()[methods.Key];
                               IEntityInstance
    entityinstance = null;
    entityinstance = entity.FindSpecific(identity, LobSysteminstance);
                                entityinstance.Update();
    Error Details Are:
    Error Occurred in the following line:
    entityinstance = entity.FindSpecific(identity, LobSysteminstance);
    Error Description:  The shim execution failed unexpectedly - The incoming policy could not be validated. For more information, please see the event log..
    Is there any Alternate Method to update the data into SAP through BDC model? Please suggest me at the earliest.
    Thanks & Regards,
    Murali Krishna Tatoju
    Best Regards, Murali Krishna Tatoju SAP Duet Developer

    Hi all,
    Now we are able to pass all the required input data to the update operation
    and no errors exist for this operation. But when we execute the update operation, the PO is not getting updated at SAP. But same operation
    is working fine from DUET-ABAP. As a test, we executed this operation from DUET ABAP front and generated the log (/iwfnd/view_log) log
    has been generated. The same operation when we executed from Sharepoint and when we looked into 14-hive logs, nothing has got generated
    for update operation. 
    Note: when executed this update operation from SharePoint, in /iwfnd/view_log, no logs generated for updated operation.
    Please suggest me a way so that I can sort out this issue.
    Best Regards, Murali Krishna Tatoju SAP Duet Developer

  • How to check for updates on SCM packages?

    Hey guys,
    I wondered for some time now how to check for updates on SCM packages, i.e. -git
    or -svn ones. Updates for binary packages are automatically updated by pacman,
    no problem there. Checking for updates on non-SCM packages from the AUR is
    easily done with one of the various helper tools available (personally, I use
    slurpy).
    However, SCM packages can change without their PKGBUILD changing, so I'm not
    notified that I should recompile and update them.
    Is there a "proper" way of doing this? Am I missing something?
    Thanks in advance!

    If your system is booting then u can say that your bootblks are installed.Usually BootBlks are present in 0 & 1 slice of UFS Filesystem
    /usr/platform/platform-name/lib/fs/ufs
    directory where ufs boot objects reside.
    An x86 FDISK partition for the Solaris software begins with a one-cylinder boot slice, which contains the partition boot program (pboot) in the first sector, the standard Solaris disk label and volume table of contents (VTOC) in the second and third sectors, and the bootblk program in the fourth and subsequent sectors. When the FDISK partition for the Solaris software is the active partition, the master boot program (mboot) reads the partition boot program in the first sector into memory and jumps to it. It in turn reads the bootblk program into memory and jumps to it. Regardless of the type of the active partition, if the drive contains multiple FDISK partitions, the user is given the opportunity to reboot another partition.

  • Select for update timing out

    Hi there
    when I do a simple select statement like
    select * from table
    I recieve all the records without a problem
    when I add 'for update' like
    select * from table for update
    this seems to take a long time (I don't actually get a result)
    Is there something I'm doing wrong or have I incorrectly set up my oracle server?

    As you are saying that your normal query is running fine but if you are using query with for update of it takes more time than previous.
    But it is normal behaviour of the oracle itself, when you use for update of, oracle put lock on selected row and then dont allow other users to access it unless and untill first user finish the desired task on selected row. It creates delay in response of your for update query.
    null

  • I receive the following error message when trying to download and update my software on my iPod touch and iPad - "there was a problem downloading the software for the iPad/iPod "Mikki's iPad". T

    When trying to download and update the operating system software for my iPad and iPod I get the following message - "ERROR MESSAGE" There was a problem downloading the software for the iPad "Mikki's iPad". The network connection timed out. Make sure your network settings are correct and your network connection is active, or try again. later." Is this a setting on my computer - my network is working fine.  I didn't have any trouble before but have just started having trouble.  Please help...

    Hi Robertfrom Denver.
    Did you try the solution given, and if yes, did it work?
    I have done several "attempted downloads, and see the full file download, typically taking 30 minutes to complete, and then something goes wrong.
    I am happy to suspend AV and FW software, but would like to know if it is a good fix or not first?
    HelenfromBroughton Astley

Maybe you are looking for

  • Oracle SOA Suite for Healthcare Integration

    Oracle SOA Suite for Healthcare Integration : *To provide healthcare customers with comprehensive healthcare integration capabilities within a unified enterprise application infrastructure platform, Oracle announced Oracle SOA Suite for healthcare in

  • Is there a feature in Audition CS6 similar to Soundtrack Pro's Conform Projects

    Hi All, I'm new to the forums so I applogize if this is a repeat question, I could not find it during my searchs.  I have a video project that I sent from Premiere to Audition, did my sound mix and sent back to Premiere.  There was then a requested c

  • WHY DO I HAVE SO MUCH ' INACTIVE ' MEMORY?????

    i was just looking at the activity monitor seeing how much memory my applications were using up and i noticed a hugeee amount of inactive memory... at the time i had thses applications running: toast titanium PowerPC azureus Intel msn messenger Power

  • Forecast not disaggregating properly

    Hi, We calculate forecast on monthly level and disaggregating it to week level. We follow Calendar year 4, 4 and 5 Weeks. Year 2015 has 53 Weeks so in DEC 2015 we have 6 weeks. ( As per our design). 1. When our Monthly-Forecast Process Chain ran, for

  • Gaps in Standby.

    Hi group How can I know how many archivelogs a standby have been applied and how many are still missing or not have been applied and their number of secuences. OS: AIX 5.3 BD: 10.2.0.3 OS: AIX 5.3 BD: 9.2.0.5 Thanks in advance. Edited by: user1200306