Influence Adapter Status in Monitoring from CCIInteraction.send method

Hi,
I'm working on a custom adapter and would like the adapter und channel status become read when something goes wrong in my CCIInteraction.send method.
I know that there is a callback method getStatus() in SPIManagedConnectionFactory which returns the actual status of the adapter based on the state of the related channels. I don't know how to set the status of a channel in my CCInterarction.send method.
Does anybody know how to solve this?
Regards and thank you in advance,
Heiko

Hi,
i have solved the problem. In my CCIInteraction I have to do the following:
((SPIManagedConnectionFactory) mc.getManagedConnectionFactory())
where mc is the managed connection the interaction results from.
Cheers,
Heiko

Similar Messages

  • CRM Middleware Monitoring: Adapter Status Information. Waiting Objects

    Hello
    I am having a problem sending messages of type RSREQUST from CRM to BW
    I have been seeing in the SMWP transaction that we have waiting objects in Request Status of Adapter Status Information.
    I dont know how I can start it or solve this error
    Thanks in advanced
    Best regards

    Hi,
    It seems that the maximum number of parallel processing threads(usually 5) have been set in ur system which is why the objects are in status WAIT. Status WAIT is not an error. To correct, would you check the transaction R3Ar3 for all requests tht are in running status. If you have 5 requests here, abort one or two out of them. Then go to SMQ2 and select the queue tht is in status WAIT. Unlock the queue immediately. It should change to status "READY" and should flow across to BW.
    Reward points if it helps !!
    Rgds
    Priyanka Bansal

  • The same filename from a sender to a receiver file adapter

    Michal has provided us with a brilliant <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14.  I guess a lot of people have been waiting to do this. However, I have a slightly different scenario. In this case, XI is used as a medium to transfer a PDF file from one directory to another directory. There is not transformation or mapping involved.
    The message is send by File Sender Adapter and received by File Receiver Adapter. Message type is created as a simply type hexBinary. The file is supposed to be picked up as a PDF and received as a PDF, retaining the same file name. As such, the file name is neither stored in the source structure nor the target structure.
    Once the PDF file is transfered into target directory, it should be able to be open by using Acrobat directly without further conversion.
    We might add a file name file into the target structure but would that rendered the PDF non-readable upon being received by the File Receiver Adapter?
    Any feedback is highly appreciated.

    Hi
    >>We might add a file name file into the target structure but would that rendered the PDF non-readable upon being received by the File Receiver Adapter?
    No, adding file name would not hamper the properties. You can name *.pdf or something else.
    For that matter any file pdf, word, .msg format etc can be transferred by this approach. We have tried it.
    Earlier to SP14 you cannot give the same name to outgoing file without writing a Adapter module. But things are easy with SP14.
    Cheers,
    satish

  • The same filename from a sender to a receiver file adapter - SP14

    Hi Expers,
    I Have Gone through the link which is given bu Michal.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Here My Questions are.........
    1.Should we give any file name in the receiver side Adapter in this scenario.?????
    2.How wil be the Sender and Receiver Communication channel Parameters????
      What Are they???????
    Please Clarify me...
    Regards
    Khanna

    Hi Rajesh,
    Is your query related to sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
    Pls. do the following.
    1. In the mapping program that you are using populate the filename coming from the source into the target root element.
    2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
    3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
    <b>Note: You donot need to specify any filename in the receiver communication channel.</b>
    To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
    Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    You donot need to hard code the value of the filename in the file adapter for your interface.
    In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
    Thanks
    Indranil

  • Problem: The same filename from a sender to a receiver file adapter - SP14

    Blog : /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    My Problem:
    The thing works for me and i am able to get my input files name as my output file name. But one thing i noticed is that in my target message, the field where i have mapped the code it always returns the value "null" but finally when the file is created i get the required result.
    My input file name is input.txt and i get the same name in my output file too.
    In sxmb_moni if i check DynamicConfiguration link i see the following
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Response
    -->
    - <sap:DynamicConfiguration xmlns:sap="http://sap.com/xi/XI/Message/30">
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFTPHost">10.25.116.98:21</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">/input/test</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileTimestamp">20060228T112200Z</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">bin</sap:Record>
    <b><sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">input.txt</sap:Record></b>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">770</sap:Record>
    </sap:DynamicConfiguration>
    But when i check my mapped field i see
    <field3>BodyC</field3>
    <keyfield>02</keyfield>
    <field5>BodyE</field5>
    <field6>BodyF</field6>
    </Body>
    - <Trailer>
    <keyfield>03</keyfield>
    <b><field2>null</field2> -> Null value instead of input.txt</b>
    </Trailer>
    </ns0:MT_Putfile>
    The code i have used to map the field2 of the trailer is the following ....
    <i>DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileType");
    String valueOld = conf.get(key);
    return  valueOld;  </i>
    Any clues ?

    Gosh this is spooky
    Anyway i tried with that line of code but it throws me an error during activation ...
    Activation of the change list canceled Check result for Message Mapping mm_IS | http://t-systems.com/Shabarish:  Starting compilation  Source code has syntax error:  /usr/sap/TXT/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map387c7300a9ac11da9d280011256afae8/source/com/sap/xi/tf/_mm_IS_.java:104: cannot resolve symbol symbol : method getTransformationParameters () location: interface com.sap.aii.mappingtool.tf3.rt.GlobalContainer DynamicConfiguration conf = (DynamicConfiguration) container.getGlobalContainer().getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); ^ 1 error
    The code is :
    DynamicConfiguration conf = (DynamicConfiguration) container.getGlobalContainer().getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    //String valueOld = conf.get(key);
    String valueOld = conf.toString();
    return  valueOld; 
    Thanx Renjith so far .. but i hope this gets resolved (else i will loose my sleep thinkin abt the situation)

  • How to Call HTTP Sender Adapter of Other Scenar from HTTP Receiver Adapter?

    Hi,
    I have a requirement to call HTTP Sender Adapter of Other Scenario from HTTP Receiver Adapter?
    or
    call SOAP Sender Adapter of Other Scenario from SOAP Receiver Adapter?
    i.e
    SOME SENDER - > PI - > HTTP Receiver - > calling -> HTTP Sender -> PI -> SOME RECEIVER
    SOME SENDER - > PI - > SOAP Receiver - > calling -> SOAP Sender -> PI -> SOME RECEIVER
    if any one can provide me the screen shot for those SOAP / HTTP Sender or Receiver ADAPTER.
    or Point me to Some article with Screenshots .
    That would be appreciated with Point.
    Regards
    PS.

    Solved .  .

  • Retrieving adapter status using com.sap.aii.af.monitor.api.AdapterStatusDat

    I'm in the processing using this API to retrieve adapter status. I'm on SP17. Has anyone worked on it and if so, how does the code look like. Do we first connect to the desired XI box and call this api, directly. Any help appreciated.
    Thank you.

    Hi,
    Please check servlet:
    <host>:<port>/mdt/amtServlet
    But how to get the code of it I don't know.
    Regards,
    Wojciech

  • XI Production Issue In Adapter Engine Messsege Monitoring

    HI every one ,
         I am facing a starnge problem. When I am going to SXMB_MONI to check flag status, all messeges are OK and processed. However when I am going to Runtime
    workbench - >Messege monitoring - >Adapter Engine, and seeking for system errors/ waiting/ holding / I am  getting this as an  error.:
    Time Stamp Status Description
    2008-05-05 11:59:14 Success Admin action: Trying to fail message.
    2008-05-05 11:59:14 Success Admin action: The message was successfully
    set to status failed.
    2008-05-05 11:59:14 Error Trying to deliver asynchronous error
    notification (message ID: 94c7b8d0-1a6c-11dd-c9c9-00145e743aaa
    (INBOUND)) to sending application:
    com.sap.aii.af.ra.ms.api.DeliveryException: Message failed by admin..
    2008-05-05 11:59:14 Success Asynchronous error notification
    successfully delivered
    This messege is available in the Error Log .
    Can any one help me why this is happening , and where should I check to detect the probable reason for this!!
    points would be Awarded .
    Thanks in advance
    Arnab
    Edited by: Mohd Abdul Khalid on May 5, 2008 9:38 AM

    Pls see the error below, this is all what I have......Incase u need some other information, revert back.
    Time Stamp Status Description
    2008-05-09 00:59:53 Success Trying to put the message into the send queue.
    2008-05-09 00:59:53 Success Message successfully put into the queue.
    2008-05-09 00:59:53 Success The message was successfully retrieved from the send queue.
    2008-05-09 00:59:53 Success The message status set to DLNG.
    2008-05-09 00:59:53 Error Received XI System Error. ErrorCode: NO_BACK_SYSTEM_IN_HOPLIST ErrorText:   ErrorStack: Legacy system to which acknowledgment message is to be sent is missing in hoplist (with wasread=false)
    2008-05-09 00:59:53 Error Transmitting the message to endpoint http://isrxiprd:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: NO_BACK_SYSTEM_IN_HOPLIST:.
    2008-05-09 00:59:53 Success The asynchronous message was successfully scheduled to be delivered at Fri May 09 01:04:53 GMT+05:30 2008.
    2008-05-09 00:59:53 Success The message status set to WAIT.
    2008-05-09 01:04:53 Success Retrying to send message. Retry: 1
    2008-05-09 01:04:53 Success The message was successfully retrieved from the send queue.
    Thanks in advance!!!
    Arnab

  • When RFC-Adapter is down, only the adapter-status shows error flag

    Hi all,
    How can I reprocess a message that did not reach the endpoint because the rfc-adapter was down, if the overall status of the message is "Message Processed"?
    Thaks,
    Nuno

    Hi,
    The question is about receiver RFC adapter and not about the sender RFC adapter. So single / mass re-start from SM58 won't help (Report RSQIWKEX for q-RFC and report RSARFCEX for t-RFC).
    If RFC adapter is down, message won't reach to the destination system via adapter engine. IE monitoring will say that message is successfully processed (so report RSXMB_RESTART_MESSAGES will not help) . In this case, if you go to adapter engine monitoring from RWB, you will be able to see the status Waiting or System error.
    I'm not sure how to re-start this message, but probably you can do this through MDT.
    May be SAP note - 813993 will help you.
    Good Luck & Bapu, Jalasa Kar........

  • Dynamic File Adapter status -  Active or Inactive

    Hi Experts
    Is there any way  to set the Sender/ Receiver File adapter status dynamically to inactive or active.
    Is there any setting exists in the file adapters ? Please provide me possible solutions.
    Thanks
    Faheem

    Hi all,
    Many thnz for the response.
    There is one more way of doing this as well. Just now i found that.
    In the runtime workbench - Communication channel monitoring , Select the automatic control for the comminucation channel to make active or inactive .
    there are options for our comm channel to run specfic date and time.
    Thnz
    Faheem

  • XI adapter status

    Hi All,
    Is it possible to see the proxy adapter status somewhere in RWB or ABAP stack
    Thanks

    Yes, if you made the correct settings in the proxy he will serf-register him self in to the SLD and into the Domain and you will see the status of if from the component monitor of RWB
    Refere to offical docu:
    http://help.sap.com/saphelp_nw04s/helpdata/en/3e/e3fb40f17af66fe10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/5e/f85141196ff423e10000000a155106/content.htm
    Regards,
    Sandro

  • DVI to Video adapter CRT Broadcast Monitor? Is there a better option?

    I am a freelance motion graphics artist, and I use Final Cut Studio, After Effects, Photoshop, etc.
    I need a CRT monitoring solution for checking my color grades, etc.
    SD resolution is fine, and i've got my eye on a JVC TMH-150CGU broadcast monitor from B&H. It has an S-Video (Y/C) input.
    I'm thinking of using the Apple DVI Video Adapter hook up to it via S-Video.
    I have a Pantone Eye-One that I can use to calibrate the monitor.
    Would this setup work ok in the above applications? Will it support Digital Cinema Desktop Preview in Final Cut?
    I have the 30" Apple display. Will connecting the CRT via DVI steal 256mb of my video memory???? That seems drastic considering it's already driving a 30" display AND running after effects!!
    I've thought about FireWire monitoring, but I suspect the FireWire/DV 4:1:1 compression will affect the colors.
    I know a CAPTURE CARD would be ideal, with SDI, etc... but I don't really have a need for a full blown capture card at the moment. I don't think use it to it's full potential (ie- to capture). It seems silly spending $$$$ just for a monitoring solution.
    Or is a capture card my only option for pro monitoring? If I was to buy one, i'd want a future proof one should I digitize in the future (ie, HD, with analog support), so that leaves either a Blackmagic Intensity Pro (which I believe is only 8 bit) or a BlackMagic Decklink HD Extreme. And then i'd also need the SDI or Component expansion card for the JVC monitor, and before I know it, i've spent over $1000, just for a decent monitoring solution. Ouch.
    I strongly considered the Intensity Pro card, because I could monitor SD component, and HDMI HD from the same card. But it put me off when I heard it ws only 8 bit. But it is 4:2:2 though.
    What might KILL the Apple DVI adapter option is I have a TON of PAL footage, and I heard the adapter is NTSC only (or a seperate PAL version). So even though the monitor supports both standards, the adapter doesn't. Or so I've heard.
    Very confused. Any other options or advice would be greatly appreciated!
    Thanks!

    Hi,
    From the sound of things you have answered your own question.
    If you wanted a CRT to just check video playback, safe areas and text legibility then a cheap option of monitoring via a deck or camera would suffice.
    You mention a lot of PAL footage just as a FYI this would be 4:2:0 as opposed to 4:1:1 with NTSC under the DV codec.
    You don't mention (and I'm sorry if I missed it) what codec you output to. I had always found when working with DV only that a DV monitoring solution was sufficient for most applications.
    However as you indicate that colour plays a factor in the equation bite the bullet and get a decent monitoring system from the off. I am using the Decklink Extreme and have found it to be excellent especially in real time conversion and monitoring of HD to SD.
    In addition you get the ability to work all the way up to 10bit (drives allowing) and capture over SDI with full deck control.
    You could stagger the cost since the BM card will let you monitor composite out in addition to component so the expansion board for the CRT might not be a must have from the get go for you.
    Whatever route you go you will want to calibrate the CRT using broadcast colour bars rather than a Pantone system, theres plenty of info on the web regarding this . . and why.
    Message was edited by: Steve Mizen

  • Use sender from payload: Sender not in payload

    Hi,
    I am currently facing problems with a IDoc -> XI -> Proxy(XI) sceanrio.
    The Idoc is received by XI without any problems. No message mapping is required for this scenario. However, the message keeps getting stuck in the Inbound queue (SMQ2). The status text says "Use sender from payload: Sender not in payload".
    Can anyone help me out on this?
    Thanks,
    Krishneel

    Check this related problem:
    ATTRIBUTE_IDOC_METADATA : Sender not in payload
    Regards,
    Abhishek.

  • File receiver adapter with the same filename than sender

    Hi guys,
    I am experiencing a problem when I use the <b>Adapter Specific Message Properties</b> to be able to receive a file with the same name as the sender.
    I've been following the example of Michal Krawczyk (XI: The same filename from a sender to a receiver file adapter - SP14) but i get a problem  related with the content converter parameters. 
    The error I receice in the File  Adapter is the next:
    <i>Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters!</i>
    I have been trying to do all the combinations with the content conversion parameters but the result is allways the same, MORE FIELDS FOUND IN XML ....
    My XML structure is the next:
    <ns0:MT_MDFranceN xmlns:ns0="urn:s-n:HR:MasterDataFrance">
       <lines>
          <line>  
             <header/>    1..1
             <data/>       0...unbound
          </line>
       </lines>
    </ns0:MT_MDFranceN>
    In the header I write the name of the file with the code provided by SAP and Michal, so the name of the file is stored there.
    any help?
    Thanks!!!!!

    I have changed the XML because, as you said, there is no need to introduce the filename inside the payload. Now the  structure is the next:
    <i><?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_MDFranceN xmlns:ns0="urn:s-n:HR:MasterDataFrance">
       <lines>
          <line>
             <data/>
          </line>
       </lines>
    </ns0:MT_MDFranceN></i>
    Record Structure: lines,line
    line.addHeaderLine   0
    line.endSeparator     'nl'
    lines.fieldSeparator   'nl'
    line.fieldFixedLengths  1300
    A sample of the payload is the next:
    - <ns0:MT_MDFranceN xmlns:ns0="urn:s-n:HR:MasterDataFrance">
    - <lines>
    - <line>
      <data>EDI_DC40_U5300000</data>
      <data>E2HR_HD001 530000000000007802</data>
      <data>E2HR_KY001 530000000000101TS 20070104000010 20070129</data>
    000000601</data>
      </line>
      </lines>
      </ns0:MT_MDFranceN>
    And.....   I still have the same problem, the same message in the file adapter:
    <b> 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters</b>
    Any idea of what can be the problem?
    thank you very much!!!

  • How can i access filename from file (sender)

    hi All,
    can anybody tell me
    how can i access filename from file (sender)?
    thank u
    swari

    See:
    "SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean"
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    "Accessing Adapter-Specific Attributes through User Defined Function"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

Maybe you are looking for