RFC Exactly once in order

I deployed EJB to enable RFC Sender Adapter to work in exactly once in order
this is the code I used :
package com.netafim;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.ejb.CreateException;
import com.sap.aii.af.mp.module.ModuleContext;
import com.sap.aii.af.mp.module.ModuleData;
import com.sap.aii.af.mp.module.ModuleException;
import com.sap.aii.af.ra.ms.api.DeliverySemantics;
import com.sap.aii.af.ra.ms.api.*;
@ejbLocal <{com.netafim.EOIORfcLocal}>
@ejbLocalHome <{com.netafim.EOIORfcLocalHome}>
@stateless
@transactionType Container
public class EOIORfcBean implements SessionBean {
        public void ejbRemove() {
        public void ejbActivate() {
        public void ejbPassivate() {
        public void setSessionContext(SessionContext context) {
                myContext = context;
        private SessionContext myContext;
Create Method.
        public void ejbCreate() throws CreateException {
                // TODO : Implement
        public ModuleData process(ModuleContext moduleContext,ModuleData inputModuleData, String queueName)
                throws ModuleException {
                        try {
                        Message msg = (Message)inputModuleData.getPrincipalData();
                        msg.setDeliverySemantics(DeliverySemantics.ExactlyOnceInOrder);
                        msg.setConversationId(queueName);
                        inputModuleData.setPrincipalData(msg);
                } catch (Exception e) {
//                 raise exception, when an error occurred
                ModuleException me = new ModuleException(e);
                throw me;
//                 return XI message
                return inputModuleData;
when I excute the function I get the following error in the comuunicatin chanel monitoring  : no paramter was found.
in the paramters in the adapter modules tab I just wrote the queue name
for example : ( its supposed to be a string )
RFC******************queueName************XBIO_0001
still the module doesnt reconzie it.
Is the code above will add the functionaly of Excatly once in Order to the RFC Sender Adatper ? whats wrong with the paramters ?
thx,Shai

Hi,
<i>
data is sent "exactly once in order".</i>
>>>I am not sure about this document which assures it is always EOIO.
I am sure that using proxy communication u can do the quality of service as EOIO.
To maintain the sequence in the client ABAPproxy with ABAP code-http://help.sap.com/saphelp_nw2004s/helpdata/en/65/40c9a4a1fa476288ac61b5fcc6bbde/content.htm
Regards,
Moorthy

Similar Messages

  • Exactly Once In Order ..in File adapter ???

    Hi Xi friends..
    in my file to idoc ..
    i am getting files as wear*.xml .
    i think , i have  to use Exactly once in Order in Communication Channel  to process multiple files in order starting with wear*.xml
    if i select Exactly Once In Order..
    i have to give Queue Name..
    please tell me which queue name to be given here..
    please tell me how to use this Exacly Once in Order option..
    thanks and regards
    Ram

    Hi Ram,
    The XI supports Synchronous and Asynchronous delivery; in XI terms, these
    are described with a Quality of Service (QoS) descriptor. The XI supports
    QoS Best Effort (BE), Exactly-once (EO), and Exactly-once-in-order (EOIO).
    These are equivalent to RFC types Synchronous RFC (sRFC), Transactional
    RFC (tRFC), and Queued RFC (qRFC), respectively.
    EOIO (Exactly Once In Order):
    Messages are delivered with the same queue names (supplied by the application) in the same sequence that they were sent from the sender system. Message processing is asynchronous in this case.
    In the case of quality of service BE, an error occurs if more than one receiver is determined for a message. In the case of delivery types EO and EOIO, the message is copied correspondingly and sent to the individual receivers.
    Ckeck this link
    http://help.sap.com/saphelp_nw04/helpdata/en/41/b714fe5ffc11d5b3ea0050da403d6a/frameset.htm

  • Quality of Services "Exactly Once in Order"

    Hi,
    I have several integration using iDOC output R / 3.
    This integration into the Integration Builder them removed brand "Maintain Order At runtime" (Quality of Services - Interface Determination) to be executed in parallel, but when they reach the engine J2EE appear with the Quality of Services as "Exactly Once in Order."
    Why this happens with iDOCs? . With RFC do not have this problem.
    Best Regards
    Julian.

    Hi
    I have been reviewing the integrations that run in parallel and gave the impression that really do not run in parallel (Quality of Services "Exactly Once"), but that the channel receiver is taken so that the previous interface ends of inserting data into the receiver.
    If open the message and revise the log, the first message that arrives is in this state:
    "JDBC adapter receiver channel JDBC_XXX_YYY_Receiver: started processing; Party, service ZZZ_BS "
    But the following is not enough to reach this state and it is with this log:
    "Receiver JDBC adapter: started processing; QoS required: ExactlyOnce "
    One step before the first message, only runs the next step when the first message ends to be processed by the adapter.

  • FTP - Sender File Adapter - Exactly Once In Order

    We are running SP10 on PI7.0
    I have a file (FTP - content conversion) to idoc scenario and this works well apart from the communication channel picking up the files in the wrong order.
    I have set to Exactly Once In Order, and the nuemrically file is being picked up in the correct order, however we wish to pick the file up by time and date stamp.
    If I flag the Adapter Specific Message Attributes - and Source File Time Stamp, will this then process the files by timestamp instead of by File name?
    How else can we get the files to process by time created?

    but this option is valid for NFS transport protocol
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    &#9679;      Processing Sequence (for transport protocol File System (NFS))
    If you used placeholders when specifying the file name, define the processing sequence of the files:
    &#9675;       By Name: Files are processed alphabetically by file name.
    &#9675;       By Date: Files are processed according to their time stamp in the file system, starting with the oldest file.
    Message was edited by:
            Prabhu  S

  • Exactly once in order in adapter engine

    We have a user case that requires using R/3>XI>adapter-->back end system. There is requirement for maintain the message in exactly the order comes in.
    the issue is, when the adapter or back end system part has some kind of error, we can see in the run time workbench the messages will repeat trying for several times before turning to "system error". Seems to me during the re-send process by adapter engine, the order of the original message get easily be lost. and we do not want this.
    Any input on how to solve this?

    normally the quality of service for a message is set in the sender (refer to http://help.sap.com/saphelp_nw04/helpdata/en/41/b714fe5ffc11d5b3ea0050da403d6a/content.htm). Did you check, if this is set correctly in the incoming message in XI? (in sxmb_moni, entry SOAP Header:ReliableMessaging has a tag <SAP:QualityOfService>) Only if this is really set to EOIO the receiver adapter will handle the message in one queue. What happens then, is that if the queue fails with one message, all later messages are blocked because the erroneous message blocks the complete queue.
    best regards
    Christine

  • Changing Exactly-Once-in-Order Processing in the Adapter Engine

    During some issues with hanging messages in some communication channels I noticed that messages for other receivers were also on hold. So adapter engine was processing all messages EOIO while Integration Server does that per receiver.
    I found the [solution in the SAP Help |http://help.sap.com/saphelp_nw04/helpdata/en/45/13b942f14d29efe10000000a114a6b/content.htm] but I am not able to access the mentioned link: http://<host><port>/MessagingSystem/migration.jsp
    Error message I got is: 404 not found.
    Looks like something changed! I checked some simular links like http://<host>:50000/MessagingSystem/monitor/monitor.jsp and that works fine.
    (I also checked the role SAP_XI_ADMINISTRATOR_J2EE was included in my userprofile)
    Please help me finding what I do wrong...or what has changed.

    Hi Sunil,
    ok, but do you know how what happened with the
    http://<host>:50000/MessagingSystem/migration.jsp
    I need that link to change the EOIO processing in the adapter engine.
    Regards,
    Michel

  • Exactly once(option) in QOS filesender

    hi.
    i want to know the difference between EXACTLYONCE,EXACTLY ONCE IN ORDER,BEST EFFORT options in quality of service.
    waiting for your response.
    cheers.
    seeta ram.

    hi michal.
    thanks for your answer.
    but i just want clear my doubt.
    here in my scenarion iam testing file to bapi by putting exactly once in(QOS)Of file sender adapterand the procesing mode of sender file adapter as test.
    but i forgot to deactivate file sender adapter and now iam getting ptoblems with ICM IN MESSAGE MONITORING(SXMB_MONI)
    ITS SHOWING IN XMLPAYLOAD AS
    400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
      <SAP:P3 />
    <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED)</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    wat would be the reason for this.
    waiting for yur answer.
    cheers.
    seeta ram.

  • Receiver Mail adapter Exactly Once

    Hi,
    I've setup my scenario RFC (trfc for exactly once QOS ) ->  Mail (receiver)
    Now I'm testing what happens when the smtp server is down.
    In message monitor (sxmb_moni) , the message is successful. In comm chanel monitoring, I can see the message is in error.
    The error states that "The message status was set to NDLV." but nothing is sent back to integration engine ...
    The adapter retries to send the message 3 times but then just stops...
    Q1 : How do you resend the message after the 3 retries ?
    Q2 : How can you know this error arrived if the message is successful in sxmb_moni ?
    Thanks

    Hi Thierry,
    If you see that the message passed in sxmb_moni, this indicates that the mapping was successful.  Your problem is happening at the adapter engine level, which you access through Message Monitoring in the Runtime Workbench.  It is there that you can try to resend the message.
    Mike

  • WL - MQ bridge in Exactly-Once mode not working

              I cannot get a message bridge from an MQ queue to a JMS queue to work in exactly
              once mode. I followed the directions in the 'Using Foreign JMS Providers with
              WebLogic Server' whitepaper (It works fine for atmost once). Once I configured
              weblogic correctly, I had a problem with made me think that I needed to use the
              class MQXAQueueConnection instead of MQQueueConnection as listed in the whitepaper.
              After that, I got an exception like 'XAResource not found.' Am completely stuck
              at this point.
              Does two phase commit actually work with WLS 6.1 and MQ 5.2 (?) ?
              

    Does this help?
              http://edocs.bea.com/wls/docs61/faq/msgbridge.html#500395
              Doug McGrath wrote:
              > I cannot get a message bridge from an MQ queue to a JMS queue to work in exactly
              > once mode. I followed the directions in the 'Using Foreign JMS Providers with
              > WebLogic Server' whitepaper (It works fine for atmost once). Once I configured
              > weblogic correctly, I had a problem with made me think that I needed to use the
              > class MQXAQueueConnection instead of MQQueueConnection as listed in the whitepaper.
              > After that, I got an exception like 'XAResource not found.' Am completely stuck
              > at this point.
              >
              > Does two phase commit actually work with WLS 6.1 and MQ 5.2 (?) ?
              >
              >
              

  • Condition to be applied once per order and per Invoice - best ideas please

    Hi
    My client has a requirement for a surcharge to be applied once per order. I.e. to be applied once to the first Invoice resulting from an order. This is a set amount for every order. eg. $10.
    Additionally, if rescheduling determines another item to be delivered first (when in wasn't when the order was first captured), then it should be active for that condition.
    Currently they have it as a material called "xyz surcharge" but as they have not set it up for availability checking, it creates a separate delivery if the other materials are not available on date of order capture. (Always available immediately).
    It also proposes different dates when purchase orders are delivered late.
    I had thought of creating a normal condition type and then using a requirement to de-activate if the delivery date is not the earliest in the sales order. However, unsure which user-exit to use to run through all items in the order to check this. (Advice please). I may have force re-determine pricing in anothe ruser-exit then.
    All ideas please.
    Regards
    Derrick

    Hi
    My client has a requirement for a surcharge to be applied once per order. I.e. to be applied once to the first Invoice resulting from an order. This is a set amount for every order. eg. $10.
    Additionally, if rescheduling determines another item to be delivered first (when in wasn't when the order was first captured), then it should be active for that condition.
    Currently they have it as a material called "xyz surcharge" but as they have not set it up for availability checking, it creates a separate delivery if the other materials are not available on date of order capture. (Always available immediately).
    It also proposes different dates when purchase orders are delivered late.
    I had thought of creating a normal condition type and then using a requirement to de-activate if the delivery date is not the earliest in the sales order. However, unsure which user-exit to use to run through all items in the order to check this. (Advice please). I may have force re-determine pricing in anothe ruser-exit then.
    All ideas please.
    Regards
    Derrick

  • How to Resend OR Cancel Exactly Once Messages

    Dear all,
    I have nearly 20 messages with status "Holding" under adapter engine message monitor.
    These interfaces are Exactly Once type. I am trying to Resend or cancel them. Nothing worked here.
    When i check the error reason for the Holding status message, it says warning " Empty document found. Proceed without sending message"
    Referred this weblog  /people/stefan.grube/blog/2006/04/27/how-to-deal-with-stuck-eoio-messages-in-the-xi-30-adapter-framework
    Please suggest me how to deal with these...
    Regards
    Edited by: Bhavana Ch on Feb 14, 2011 5:56 PM

    Hi Bhavana,
    I came to a similar error situation when whether restarting nor canceling was possible and I was looking for an solution instead of restarting the whole java stack.
    We restart the messaging service of the java engine and this solves the error, canceling or restart was possible afterwards. The correct service should be XPI Service: Messaging System in Netweaver Adminstrator -> Operation Management -> Systems -> Start&Stop -> Java EE Service, unfortunately I lost my remarks of this error situation, so you have just to try it.
    If this will not solve the issue, I think you have to go for restarting the whole java server.
    please let me know if this solve the error.
    Regards,
    Jochen

  • TO Get  Ensuring Exactly Once Processing data from sender soap adapt

    To XI Specialists
    Now Im trying to get Ensuring Exactly Once Processing data from sender soap adapteter.
    My plan is that send data from Receiver adapter, to Sender adapter by SOAP.
    (1st interface is ABAP to Soap "BE", 2nd interface is Soap to File "EO")
    Sender SOAP adapter will returun Ensuring Exactly Once Processing data.
    (see SAP HELP, http://help.sap.com/saphelp_nw70/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm )
    AND I want to get Ensuring Exactly Once Processing data, I want to determine what to do in ABAP proxy.
    SO I made and tested 2interface. but error occuered.
    I checked the error, and Now I know what is the cause.
    The cause is that Ensuring Exactly Once Processing data didnt enter the payload, at Receiver Adapter.
    1st interface coulnt get the payload data, so mapping error occuered....
    Please give me help,
    <b>"How to get Ensuring Exactly Once Processing data From Sender SOAP ADAPTER"</b>
    or
    <b>"How to enter Ensuring Exactly Once Processing data into Payload of Receiver SOAP ADAPTER"</b>
    and more excelent way....
    our XI is version7.0 and SP10
    Please teach me your wisdom!
    Naoki Kurihara

    I seeked and I noticed that
    maybe I catched the message but the message dont have payload.
    so I got no_payload error.
    I checked SAP note.
    I noticed, no_payload error will be managed to nomal message at SP13....
    my XI is SP12....
    I ll seek for another way!!
    Thank you! noaki

  • Preventing Deletion indicator in PR once work order is completed

    Dear colleagues,
    Users create work orders in IW31 with the choice of external service; control key is PM02. Once work order is saved purchase requisition (PR) is created in background. With reference to PR, purchase order (PO) is created by purchase specialist.
    When work order is technically completed (system status TECO) deletion indicator is set to PR line item(s) automatically which result in undesirable situations since PR(s) has subject to release strategy in our system.
    Is it possible to prevent setting deletion indicator in PR once reference work order is technically completed?
    Kind regards
    Melih

    Hi,
    In this case that behavior has negative effects on PR Workflow process because in our system when PR(s) is created it is subject to release strategy according to preconfigured conditions.
    Once the order is technically completed (TECO) deletion indicator is set to PR line item(s) automatically meanwhile release strategy tab is disappeared from PR line item(s).
    In addition to that in ME54N system gives the MEPO822 (Purchase requisition XXXXXXXXX cannot be released) message even PR is approved before the order is technically completed.
    Kind regards
    Melih

  • Exactly-Once Handling in Receiver JDBC Adapter

    Hi,
    I have doubt abt Exactly-Once Handling in Receiver JDBC Adapter.
    For Conflict Resolution as Database.
    Why there is need to define table as below ?
    In the database where the write-to tables are located you must create an additional table with two columns for this purpose. To define the table, specify the following:
    Database Table Name
    Enter the name of the table.
    Key Column Name
    Enter the name of the column in which the key is entered.
    Value Column Name
    Enter the name of the column in which the key value is entered.
    Please explain in simple language.

    Hi Abhishake,
    Thanks for your reply.
    I understant that the tables needs to be created in DB.
    But if you read the SAP Docs for conflict resolution. My undestanding is "During Database commit if AS Java is terminated then the message will be in unknown state, for this type of messgaes when the AS Java restarted the behaviour is defined by this parameters. If the message doesn't have primary key, then there is probablity when AS Java will try second time it may get the message in DB so a message can be duplicated. To avoid this condition it is mentioned that you must create additional table with three column".
    Please correct my understanding if I am wrong.
    My additional table needs to create & how it will resolve the problem.
    Thanks in advance.

  • SD How to create IDoc once Sales Order Invoice (Billing) has been created ?

    Hi,
    How to create IDoc once Sales Order Invoice (Billing) has been created ?
    I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
    Thanks

    Hello,
    Go to T.code VV31 and select the billing output type and select the access sequence required and in the details screen of create condition records give all the required entries for eg: may be Billing Type, Sales Organsiation etc.and in the medium choose the option as 6(EDI) and time select as 4 that is immediately after saving the document.Also please ensure that particular partners for whom idoc should be generated they need to have partner profile setup with the billing message types. Hope this helps.

Maybe you are looking for

  • Urgent please help

    hi all, we are running two instance in two different machines A and B (oracle 9.2.0.1.0/win2000). we exported the data from A and copied to machine B.data has not been modified since 'copy'. now the problem is , the following query select count(*) fr

  • AD-41 headset volume adjustment sensitivity too hi...

    Hi! I own Nokia 3250 and what's really annoying me is the headset's volume adjustment. It works terrible ! The sensitivity of buttons is so high that it's very difficult to change volume only one level up or down. I don't know if it applies only to t

  • How do you keep the order using SELECT WHERE IN()?

    Hi, Is there a way to keep the order when using SELECT WHERE IN()? For example, using the following query: SELECT id FROM data_table WHERE id IN('56','55','54','1','7'); The results will come back using the default order by id. 1,7,54,55,56 When I wa

  • Can i use the iPhone's internet for free in sapin or anywhere in europe

    hi im thinking of getting an iPhone 3g for christmas for the internet lol because its the best at the mo. i live in the uk and i know O2 offers free net within the uk, but i go to spain 2 times every year and i was wondering if the internet is free t

  • CME fxo port problem

    hi, I have a 2801 CME and 2 fxo lines. Some times when both lines are seized (because of incoming and outgoing call) and after the phones are on hook the lines are still seized and are not released and when i removed the cables from fxo port, the led