Failover of SF EJB with ref to SL EJB fails

As a followon from my previous posting, we are also getting the
          following failure:
          Setup: A 2-server cluster (2xSolaris) running a web app, invoking a
          stateful session EJB on a second 2-server cluster (Solaris & Win2K). (I
          don't think the mixed architecture is significant). The stateful EJB can
          also invoke a stateless EJB.
          The first time the SF needs to invoke the SL, it looks up the home
          interface, then the remote, and caches just the remote. If this code is
          not executed, the SF EJB can fail to a secondary server ok. If it has
          ever executed the SL code, the SF EJB cannot failover... The first
          attempt to invoke it following the failover results in the following
          exceptions (the first one expected as it detects the failure, the second
          not expected). com.cp2.ejbsl is, surprisingly enough, the stateless EJB,
          which it was NOT trying to use at the time:
          Anyone got any clues?
          TIA
          Chris
          ####<01-Mar-01 15:04:57 GMT> <Error> <ConnectionManager> <lcy01fs01>
          <WebAppFS> <ExecuteThread-9> <> <> <000000> <Could not connect to:
          '5856064237335487305S:172.19.0.20:[8005,8005,7002,7002,8005,7002,-1]'>
          java.net.ConnectException: Connection refused
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
          at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
          at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
          at java.net.Socket.<init>(Socket.java:273)
          at java.net.Socket.<init>(Socket.java:127)
          at weblogic.rjvm.t3.T3JVMConnection.newSocket(T3JVMConnection.java:324)
          at
          weblogic.rjvm.t3.T3JVMConnection.newSocketWithRetry(T3JVMConnection.java:312)
          at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:74)
          at
          weblogic.rjvm.t3.T3JVMConnection.createConnection(T3JVMConnection.java:148)
          at weblogic.rjvm.Protocol.createConnection(Protocol.java:201)
          at
          weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:997)
          at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:439)
          at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:419)
          at
          weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:114)
          at
          weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:122)
          at
          weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:144)
          at
          weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRequest.java:84)
          at
          weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247)
          at
          weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
          at
          com.cp2.ejbsfBeanEOImpl_WLStub.ejbsfResult(ejbsfBeanEOImpl_WLStub.java:175)
          at com.cp1.rb1.executeAction(rb1.java:99)
          at controller.doGet(controller.java:51)
          at controller.doPost(controller.java:16)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
          at
          weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
          at
          weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          ####<01-Mar-01 15:04:59 GMT> <Info> <cp1-rb1> <lcy01fs01> <WebAppFS>
          <ExecuteThread-9> <> <> <000000> <Caught remote exception>
          java.rmi.NoSuchObjectException: Activation failed with:
          java.rmi.NoSuchObjectException: Unable to locate EJBHome:
          'com.cp2.ejbsl' on server: 't3://172.19.0.20:8005
          at
          weblogic.ejb20.internal.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:70)
          at weblogic.ejb20.internal.HandleImpl.getEJBObject(HandleImpl.java:134)
          at weblogic.ejb20.swap.EJBReplacer.resolveObject(EJBReplacer.java:84)
          at
          weblogic.common.internal.ReplacerObjectInputStream.resolveObject(ReplacerObjectInputStream.java:73)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:399)
          at
          java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
          at
          java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
          at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
          at weblogic.ejb20.swap.PassivationUtils.read(PassivationUtils.java:52)
          at
          weblogic.ejb20.swap.ReplicatedMemorySwap.read(ReplicatedMemorySwap.java:111)
          at
          weblogic.ejb20.manager.StatefulSessionManager.getBean(StatefulSessionManager.java:173)
          at
          weblogic.ejb20.manager.StatefulSessionManager.preInvoke(StatefulSessionManager.java:231)
          at
          weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:113)
          at
          weblogic.ejb20.internal.StatefulEJBObject.preInvoke(StatefulEJBObject.java:136)
          at com.cp2.ejbsfBeanEOImpl.ejbsfResult(ejbsfBeanEOImpl.java:23)
          at
          com.cp2.ejbsfBeanEOImpl_WLSkel.invoke(ejbsfBeanEOImpl_WLSkel.java:108)
          at
          weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
          at
          weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:128)
          at
          weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
          at
          weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.java:103)
          at
          weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:17)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          at
          weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRequest.java:90)
          at
          weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247)
          at
          weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)
          at
          com.cp2.ejbsfBeanEOImpl_WLStub.ejbsfResult(ejbsfBeanEOImpl_WLStub.java:175)
          at com.cp1.rb1.executeAction(rb1.java:99)
          at controller.doGet(controller.java:51)
          at controller.doPost(controller.java:16)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
          at
          weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
          at
          weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          

Hmmm. Similar in that it relates to failover, but it does seem to be quite a
          different problem. It's more closely related to my previous post (problem in
          failBACK). However in neither case am I using an EJB handle, just the remote
          reference.
          Chris
          Diego Doval wrote:
          > I'm seeing something very similar, where the first failover works but
          > subsequent failovers don't. Apparently when the second server goes back
          > online it doesn't replicate the state so a call still looks for the old
          > reference and hence the ConnectionException.
          >
          > The problem I had before (see my message from a few hours ago) is related to
          > using the EJB handle, using a Remote Reference instead works fine. The fact
          > that using the handle breaks it is probably a bug.
          >
          > If anybody knows more about this ConnectionException problem, it would be
          > greatly appreciated.
          >
          > thanks,
          >
          > diego
          >
          > "Chris Palmer" <[email protected]> wrote in message
          > news:[email protected]...
          > > As a followon from my previous posting, we are also getting the
          > > following failure:
          > >
          > > Setup: A 2-server cluster (2xSolaris) running a web app, invoking a
          > > stateful session EJB on a second 2-server cluster (Solaris & Win2K). (I
          > > don't think the mixed architecture is significant). The stateful EJB can
          > > also invoke a stateless EJB.
          > >
          > > The first time the SF needs to invoke the SL, it looks up the home
          > > interface, then the remote, and caches just the remote. If this code is
          > > not executed, the SF EJB can fail to a secondary server ok. If it has
          > > ever executed the SL code, the SF EJB cannot failover... The first
          > > attempt to invoke it following the failover results in the following
          > > exceptions (the first one expected as it detects the failure, the second
          > > not expected). com.cp2.ejbsl is, surprisingly enough, the stateless EJB,
          > > which it was NOT trying to use at the time:
          > >
          > > Anyone got any clues?
          > >
          > > TIA
          > > Chris
          > >
          > > ####<01-Mar-01 15:04:57 GMT> <Error> <ConnectionManager> <lcy01fs01>
          > > <WebAppFS> <ExecuteThread-9> <> <> <000000> <Could not connect to:
          > > '5856064237335487305S:172.19.0.20:[8005,8005,7002,7002,8005,7002,-1]'>
          > > java.net.ConnectException: Connection refused
          > > at java.net.PlainSocketImpl.socketConnect(Native Method)
          > > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
          > > at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
          > > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
          > > at java.net.Socket.<init>(Socket.java:273)
          > > at java.net.Socket.<init>(Socket.java:127)
          > > at weblogic.rjvm.t3.T3JVMConnection.newSocket(T3JVMConnection.java:324)
          > >
          > > at
          > >
          > weblogic.rjvm.t3.T3JVMConnection.newSocketWithRetry(T3JVMConnection.java:312
          > )
          > >
          > > at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:74)
          > > at
          > >
          > weblogic.rjvm.t3.T3JVMConnection.createConnection(T3JVMConnection.java:148)
          > >
          > > at weblogic.rjvm.Protocol.createConnection(Protocol.java:201)
          > > at
          > >
          > weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.jav
          > a:997)
          > >
          > > at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:439)
          > > at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:419)
          > > at
          > >
          > weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.ja
          > va:114)
          > >
          > > at
          > >
          > weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:
          > 122)
          > >
          > > at
          > >
          > weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:144)
          > >
          > > at
          > >
          > weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRe
          > quest.java:84)
          > >
          > > at
          > >
          > weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
          > :247)
          > >
          > > at
          > >
          > weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
          > :225)
          > >
          > > at
          > >
          > com.cp2.ejbsfBeanEOImpl_WLStub.ejbsfResult(ejbsfBeanEOImpl_WLStub.java:175)
          > >
          > > at com.cp1.rb1.executeAction(rb1.java:99)
          > > at controller.doGet(controller.java:51)
          > > at controller.doPost(controller.java:16)
          > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          > > at
          > >
          > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :208)
          > >
          > > at
          > >
          > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
          > ntext.java:1127)
          > >
          > > at
          > >
          > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
          > :1529)
          > >
          > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
          > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          > >
          > > ####<01-Mar-01 15:04:59 GMT> <Info> <cp1-rb1> <lcy01fs01> <WebAppFS>
          > > <ExecuteThread-9> <> <> <000000> <Caught remote exception>
          > > java.rmi.NoSuchObjectException: Activation failed with:
          > > java.rmi.NoSuchObjectException: Unable to locate EJBHome:
          > > 'com.cp2.ejbsl' on server: 't3://172.19.0.20:8005
          > > at
          > > weblogic.ejb20.internal.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:70)
          > >
          > > at weblogic.ejb20.internal.HandleImpl.getEJBObject(HandleImpl.java:134)
          > >
          > > at weblogic.ejb20.swap.EJBReplacer.resolveObject(EJBReplacer.java:84)
          > > at
          > >
          > weblogic.common.internal.ReplacerObjectInputStream.resolveObject(ReplacerObj
          > ectInputStream.java:73)
          > >
          > > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:399)
          > > at
          > > java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
          > > at
          > > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
          > > at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
          > > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
          > > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
          > > at weblogic.ejb20.swap.PassivationUtils.read(PassivationUtils.java:52)
          > > at
          > >
          > weblogic.ejb20.swap.ReplicatedMemorySwap.read(ReplicatedMemorySwap.java:111)
          > >
          > > at
          > >
          > weblogic.ejb20.manager.StatefulSessionManager.getBean(StatefulSessionManager
          > .java:173)
          > >
          > > at
          > >
          > weblogic.ejb20.manager.StatefulSessionManager.preInvoke(StatefulSessionManag
          > er.java:231)
          > >
          > > at
          > > weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:113)
          > > at
          > >
          > weblogic.ejb20.internal.StatefulEJBObject.preInvoke(StatefulEJBObject.java:1
          > 36)
          > >
          > > at com.cp2.ejbsfBeanEOImpl.ejbsfResult(ejbsfBeanEOImpl.java:23)
          > > at
          > > com.cp2.ejbsfBeanEOImpl_WLSkel.invoke(ejbsfBeanEOImpl_WLSkel.java:108)
          > > at
          > >
          > weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
          > >
          > > at
          > >
          > weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
          > :128)
          > >
          > > at
          > >
          > weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
          > >
          > > at
          > >
          > weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
          > java:103)
          > >
          > > at
          > >
          > weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
          > 7)
          > >
          > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
          > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          > > at
          > >
          > weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRe
          > quest.java:90)
          > >
          > > at
          > >
          > weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
          > :247)
          > >
          > > at
          > >
          > weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
          > :225)
          > >
          > > at
          > >
          > com.cp2.ejbsfBeanEOImpl_WLStub.ejbsfResult(ejbsfBeanEOImpl_WLStub.java:175)
          > >
          > > at com.cp1.rb1.executeAction(rb1.java:99)
          > > at controller.doGet(controller.java:51)
          > > at controller.doPost(controller.java:16)
          > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          > > at
          > >
          > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          > :208)
          > >
          > > at
          > >
          > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
          > ntext.java:1127)
          > >
          > > at
          > >
          > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
          > :1529)
          > >
          > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
          > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          > >
          > >
          

Similar Messages

  • Failover agents who work with active directory integration

    Hi Guys,
    I have implemented 'Active Directory' failover in SCOM. But what i see is that it doesn't work.
    The agents are assigned by AD, but the first (RMS Role) management server has got all the agents and is to busy and
    has got many problems to handle all the load. Even with this case nothing is failing over.
    A few i could failover with hand, but the most i cannot because 'change primary management' server is blanked out. Even with the agents turned back from manuel to automatic (blog Kevin Holman).
    1. Has anybody got any idea of getting the AD failover to work automatic?
    2. Has anybody got a workaround to do this manual, by powershell (SCOM 2012 R2 cmdlets), bypassing the grayed out 'Change primary management server?
    3. In my failover screen is see the management servers + the internet DMZ gateway server. I don't want to failover to the internet DMZ Gateway server. Can i delete this?
    Please have a look at my specific question. I did read many blogs who are based on powershell without AD integration or AD integration without explaining how the automatic failover works.
    Kind regards,
    André

    Hi,
    SCOM windows agents automatic failover does not require AD integration or PowerShell scripting or Configuration Manager or manual agents installation specially for small to medium environment and agents distribution between different SCOM management servers
    can be accomplished through push agents wizard, and windows agents failover can be simply verified from event viewer.
    Please refer to the below links for more details:
    How to Use Active Directory Domain Services to Assign Computers to Management Servers
    http://technet.microsoft.com/en-us/library/hh212712.aspx
    OpsMgr AD Integration - how it works
    http://blogs.msdn.com/b/steverac/archive/2008/03/20/opsmgr-ad-integration-how-it-works.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • Partner function not working when creating PO with ref to PReq

    Partner function is not working when creating a Purchase Order with ref to a Purchase Requistion, Partner functions maintained in the vendor master are VN, OA & PI.
    But OA & PI are not appearing in the PO header partner tab when created with ref to PR.
    however it works when i create the PO directly ( without the PR ref )
    I am using the same material & Plant for both manual PO & PR to PO.
    Any idea what could be wrong .
    I have maintained the settings for schema groups for vendor master & purchasing doc in the partner determination.
    Thanks
    Dkmurthy

    Hi,
    I have also an issue that seems similar to one you are discussing.
    When we use ME59N and create a PO with ref. from a PR (created from a sales order), the message determination works well, it reads the condition set in MN04 (condition records for messages), and creates a message (with output type for EDI , medium: 6, and partner function LS: Logical system). Message is created and idoc is sent.
    When we try with ME21N, ME21 and we create the PO with ref. to the same PR, either by entering manually the PR in the document overview of ME21N or by selecting the PR (without entering the PR number), i.e with date, the message is not created in the PO.
    Company code is assigned to purchase organization, and so is purchase organization to plant.
    Any idea why there is no automatic message determination in the case of the transaction: ME21N
    Note: If I try ME21N, and enter the output type and partner, manually, I receive a warning message
    VN006 (Partner XXXX does not exist for partner function LS). If I accept this warning message, then message is saved- idoc is sent. However I can not overcome the warning message, if it plays any role, because I can not assign partner function LS to the vendor.Then I receive message CZ 327 (Can not use this partner role).
    Any input is wellcome.

  • How to create Invoice with ref to PO

    Dear sd gurus..
    i know we can create invoice with ref to sales order not with po
    But i want to create Invoice with ref to po only
    please guide me
    Thanks a lot

    Venu, thanks for your reply.
    So in this case your idea wont work but the main imp thing is we cant create invoice with ref to po
    Please read my post once again, i never said we can create customer invoice with ref  to Purchase order. I said very clearly, " you can follow the normal 3rd party sales process", which means we create customer invoice with ref to sales order only.
    Coming into another query,
    but some time PO Is generated 110 qth to vendor but vendor  may be  he will send  105 due to shortage ... and he will tell i will send the the remaining stock after next 10 days now Generally miro will happen only for 105 not 110 ( even we can do MIRO110 also ) but i am talking generally because he received the stock 105 only
    But company wants billing for 110 not for 105 because here customer accepted to pay full money
    and vendor gave promise to delivery 5 qty in next 10 days
    Why will the customer  agree to be billed the full qty, when he receive the partial qty?
    Let us assume as you said customer agree to pay for full qty, then there are two options.
    1. Do the MIRO for full qty since you would be invoicing the customer for full qty
    Or
    2. Do the MIRO for partial qty and customer should agree for partial invoice
    Please note in the normal case also if there is if condition then you don't have other option.
    Example:
    Order = 100 qty
    PO = 100 qty
    MIGO = 50 qty and remaining 50 qty Vendor delivery in next 10 days
    MIRO =50 qty
    But here also customer agreed to pay for full qty, then what will you do ? you don't have other option but to bill the partial qty in standard.
    And let me know if you need any more clarity?
    thanks,
    Srinu.

  • Credit memo -- with ref to invoice

    Hello All,
    This is my scenario:
    1 Invoice with value 100.
    2 Credit memo whith value 100 with ref. to invoice.
    3 The system let me create more credit memos for the same invoice exceeding de invoice original value. (it just informes me that there are other credit memos) How can I prevent this ?
    I checked copy control and Pos./neg. quantity--i put as "+" and in Item Category TAN- Completion Rule  mark as "A".
    Regards,
    Ashu

    Hi Ashutosh singh
    Credit Memo and the invoice are different and the two r used in different scenarioes
    Credit Memo is the Billing document raised for compensating the customer and the the document is raised with reference to the the Credit Memo request
    The scenarios is that the customer places an order with the company and the company delivers the fgoods to the customer in which some of thm are dmaged and the customer then claims for the compensation , so the company asks the customer to return the goods to the company and simultaneously they will pay the compensation
    process flow is as
    Created the standard order OR
    then do the deliver LF
    then billing document F2
    and then raise the credit memo request for the goods G2
    thenBilling which is the credit memo
    G2
    This is the special process where the goods are received and the customer does not want the replacement of the dmaged goods and instead he wants the amout to be credited
    so we have to raise the credit meemo request with reference to the standard illing document and then the credit memo request and then billing document G@
    but in the standsrd invoice we havae to creatae the created the standsrd and then the delivery and then the invoice
    Invoice
    order (VA01)>Delivery(VL01N)>Change Delivery(VL02N)&PGI>INVOICE
    EX:
    Order type:OR
    credit memo:
    for the return material or discount is missing for the material,we create credit memo request.credit memo has sent to customer
    order (VA01)>CREDIT MEMO(VF01).
    NO DELIVERY PROCESS.WITH REF. to BILLING DOCUMENT,we create credit memo request.
    EX:
    Order type:G2.
    The below link will help u
    http://able.harvard.edu/ar/wi/create-credit-memo.pdf
    http://web.mit.edu/sapr3/windocs/fopcs06f.htm
    Reward if useful to u

  • Sales order creation with ref. to contract. Quantity related issue

    Hii All,
    I am creating sales order with ref. to contract. But i can enter more quantity than that mentioned in the contract. Here i need the system should give a warning while saving the order. I refered the thread Sales Order Against Contract
    In this thread the procedure to convert the warning to error is given. but i need how to give this warning message.
    In VTAA, I have maintained copy requirement as 303 at item level. & DataT as 151, 102 & 002.
    Please suggest.

    Dear Vijay,
    in incompletion procedure we can arrange to check whether any field is empty, here data comparison is not possible.
    As far as I know you can not achieve this through standard config.
    To achieve your requirement, you will need to take help of an ABAPer, it can be achieved using Userexit.
    ABAPer can use include MV45AFZZ
    and Userexit ""USEREXIT_SAVE_DOCUMENT".
    the code written in this userexit will check and compare the quantities before saving the dcument.
    Logic if quantity enter is greater than the quantity mentioned in Contract show warning Message.
    I hope this solves your Problem.
    Regards,
    Paresh

  • Sales order with ref to make to order and with ref to make to production...

    My requirement is as follows:
    Material code : Plant specific and MRP activated
    In one sales organization  the sales order should be created without limitation and with make to order type with ref to above material
    Another sales organization the sale order should be created if stocks are available and with ref to make to production with above material.
    The availability check rule  as no check for first scenario and  Individual requirement for second scenario.
    can it possible ...........

    Hi,
       functionality of availabity check is it checks the material as per order if it is avialable then it confirms quantity & if not then u have to procure or manufacture.
      Mts scenario works for sales from stock while mto to generate requirement via purchase requisition ir plan order.
      however you can configure availabity check for both the scenario by selecting suitable checking group, requirement class, requirement type & schedule lines.
    Reward if it helps u
    Regards
    Dev kumar

  • BAPI for creation of Production Order with Ref to sales order

    Hi all,
    we are using BAPI_PRODORD_CREATE  for creating Production Order with ref to sales order.
    As per the Business Scenario, we are not creating any masters like BOM and Routing, instead
    we are creating Routing directly into the Production Order under operation overview screen.
    during creation of routing system is generating a default operation.
    the following is the error results after running the Bapi.
    "No routing selected"
    Best Regards.
    GTNRNR.

    Hi GTNRNR,
    with out creation of BOM you created routing and in routing for the operations which components did you allocated so that can be used to manufacture the final product. Can you be please specific?
    Regards,
    Madhu.G

  • Order with ref to quotation

    Hi All,
    When i create order with ref to a quotation i give create with ref and give the quotation number and click on items for choosing the quantity(OPEN QUANTITY) , here i want to know the quantity which i choose , where does this get updated ? VBAPD in field name ORFMNG . but while debugging we are not able to find in BAPI SALES ORDER CREATE on where is this getting updated. Please reply.
    thanks

    Hi,
    When he is creating sales order  with reference to same sales order type he can do that in VA01 by clicking "create with reference",here system will not prompt you to create with reference window automatically.But if you set Reference Mandatory set as "C" in VOV8 transaction then system will prompt automatic window.
    But make sure all the dates are copied from existing sales order only.
    Regards,
    Chandra

  • Control GR Qty while posting with ref. to Inbound delivery

    Hi,
    We have an inbound delivery process where Inbound delivery is made against the PO and subsequently GR is made against the inbound delivery.
    While posting GR via MB0A with ref. to inbound delivery, the qty can be modified at GR Stage. We want to ensure that GR Qty is always equal to Inbound Deliery Quantity.
    Is there any customisation available?? Or it can only be controlled using User Exit only.
    Kindly suggest.
    Regards
    C.A. Shankar

    Hi Shankar,
    For this you have to go for seperate Doc. type for Inbound based GR.
    In the document type you can control the field as display maode in Qty field. this will not possible to change.
    SAM

  • BAPI_PO_CHANGE does not change LIMIT value for service PO with ref to IDOC

    Hi,
    I am trying to change the limit values for both ACCTASSCAT (K) and item cat (D ie service PO) with ref to message type PORDCH IDOC type PORDCH02, the IDoc is getting posted but the PO is not getting updated ie LIMIT value is not getting change and returning msg "No data changed".
    Could you please provide the way to change LIMIT value.
    Regards,
    Mojammil Khan

    Are you really sure that your IT_SCH has the same fields like POITEM?
    the delivery date and statistical delivery date are located in the schedule tab in ME23N and stored in the schedule table EKET, not in EKPO where the PO item data is stored.
    I think you should assign your IT_SCH to POSCHEDULE

  • PO item level validation if create with ref to contract

    Hi
    Pl help me to fulfill the following client requirement:
    When user create the PO with ref to contract , system fetch the all data from the contract to PO at line item level, but in the PO, user is able to change the contract line item rate.
    Now contract line item rate is already fixed with vendor & PO creator should not allowed change this rate.
    Could you provide the any standard configuaration or development to restric the user to chage the PO line item rate if created with ref to contract
    Pl give me replay as soon as possible as it is very urgent
    Rgds
    Nishit

    Hi,
    First you have to create a separate document type which is to be used for creation of PO referring a contract . Than define functional authorisation to buyers going by the menupath -Materials management > Purchasing > Authorisation management > Define function authorisations for buyers-Function Authorizations: Purchase Order. Here enter the field selection key of the new PO document type you created . Than check the box "Display Prices" . Uncheck all other boxes .You can check reference to Contract against possible reference Objects. Than save . Than in the User id enter the User parameter EFB and allocate the aparameter to the user . Also remove other document types of POs except the newly created document type in user authorisations. This will prevent change of price field in the specific document type.
    Dhruba

  • Several Return orders with Ref. to one MTO Billing Document.

    Hi,
    I am doing RE with ref. to MTO Billing Document but i am able to issue "N" number of credit memo's with ref. to same MTO.
    Please tell me the Controll, that stops raising the second RE order with ref. to same MTO.
    I checked copy controls completion rule in Item catagory but still the problem not solved.
    Waiting for reply
    Veera.

    Dear Veera,
        The issue is related to the copy control settings only , so you go to VTAF transaction then go in to the item details of your return order type and MTO Billing document type.
    Here you can find the field positive/negative quantity you maintain that as '-' negative.
    Now you try
    I hope it will help you
    Regards,
    Murali.

  • Restriction in MB1B tcode with ref Purchase ORDER

    Dear friends,
    I have one problem regarding the tcode MB1B (Transfer Posting).
    Actually when i transfering with ref to Purchase order no once with all the items.
    then one document no is generated and it is posted successfully.
    But the issue is that once the po number with all the items is posted then it should not allow the same po no to be posted again and generate the document no.
    So for this i want to write the code in some BADI or userexit.
    After searching i thought the right BADI for this is MB_DOCUMENT_BADI and i have to write code in this.
    But i m not getting how to write the code and also i m not sure whether this is the right BADI to make the restriction at MB1B tcode.
    I m transfering goods with ref to movement type 541.
    Please tell me the solution ,i willbe grateful to you and please reply immediately  or as soon as possible.
    Manish.

    Hi,
    If its a standard price in material master record...then it will pick price from material master record ...
    otherwise it will pick PO's price if no valid info record exists.
    It can also read last PO's price....depending upon the setting.
    Brgds,
    Ashok

  • Line item is getting Switched in OBD, created with ref to PO

    I have created a PO# 4500189441.
    In that PO there are two line items as below:
    Line item# 10              C792X1CG                         280
    Line item# 20              X792X1MG                         160
    But when we create an OBD with ref to this PO in VL10D, line item are getting switched as below:
    In OBD# 89490798,
    Line item# 10        
    X792X1MG                        
    160
    Line item# 20      
      C792X1CG                       
    280
    Can you please let us know the reason behind it or is there any configuration for this?
    Thanks & Regards,
    Tanmay Mondal
    SAP SD Consultant

    Hi Tanmay,
    First Check the Delivery type configuration in the Logistic Execution ---Delivery Type IMG path
    Your Delivery type should have Item Requirement as '202' and check the Default Order type assigned to it.
    Next go to the Specify Copy Control for Deliveries-----In that select the copy control from the Default sales doc. type which is assigned to the delivery type and the Delivery type which you are Using
    Select and in the Item Data click on the delivery item category which is assigned to the delivery type.
    In the details of the selection check the Item Data in the Data Transfer Block.
    The routine assigned to it should be '202'
    This will Solve your Issue.
    Regards

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

Maybe you are looking for