Mail to proxy scenario with condition

Hi Experts,
I am using mail to proxy scenario.
The mail box is having differnt files suppose:
BOOKING_REF_DELIVERYNO_WB.pdf
BOOKING_REF_SALESORDER_WB.PDF
BOOKING_REF_CUSDECNO_WB.PDF
DELIVERYNO_WB.pdf
SALESORDER_WB.PDF
CUSDECNO_WB.PDF
BOOKING_REF_WB.pdf
BOOKING_REF_DELIVERYNO_BOLCOPY.PDF
BOOKING_REF_SALESORDER_BOLCOPY.PDF
BOOKING_REF_CUSDECNO_BOLCOPY.PDF
BOOKING_REF_BOLCOPY.PDF
DELIEVERYNO_BOLCOPY.PDF
CUSDECNO_BOLCOPY.PDF
SALESORDER_BOLCOPY.PDF
BOOKING_REF_AWB.PDF*
DELIVERYNO_AWB.PDF
SALESORDER_AWB.PDF
CUSDECNO_AWB.PDF
Depending upon the file name in the mail box, the file needs to be attached via proxy with particular code:(x for case 1, y for case 2 , z for case 3)..for attachment abap code wrtiiten for proxy.
how to compare the file name from the mail?
DO i need to write a UDF..mapped with filename field of the sender XSD?How to do that?
Please suggest.
Thanks,
Sushama

You can use the other UDF
public String Get_Input_File_Name(Container container) throws StreamTransformationException
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String SourceFileName = conf.get(key);
return SourceFileName;
the previous one was for XI 3.0 , may be some differnt requiement I am not sure.
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
regards
Ninad

Similar Messages

  • Mail to Proxy scenario with attachment. AF channel error.

    Hi,
    We are running SAP PI 7.1. I am experiencing the following problem in a Sender Mail adapter.(POP3).Mail to Proxy Scenario.
    I have configured a sender mail adapter channel as POP3. This channel is configured to use the Mail Package and to Keep attachments. When I send a mail with an attachment to the mailbox that is being monitored by this channel, then the channel collects it from the mailbox.
    In channel monitoring it indicates that the message was successfully delivered. However when I click on the message ID the view the audit Log it gives an error: u201CTransmitting the message to endpoint http://HOSTNAME:8101/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error transmitting the message over HTTP. Reason: java.io.IOException: Error writing to server.u201D The message never arrives at the integration sever to be view in sxmb_moni.
    Also when I sent a message without an attachment the message does go through. Or if I send a message with a text attachment the the message goes through, but not the attachment.
    Any help would be most welcome.
    Regards
    Willie Hugo

    Hi Willem,
    I'm coming back to your original problem: "com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error transmitting the message over HTTP. Reason: java.io.IOException: Error writing to server.u201D
    Actually I had the same problem here and found a solution for it. In this case it was a file to Proxy scenario. The file send was large. After structure conversion the file size was more then 100 MB as indicated in the Audit Log of the message "2009-03-02 09:27:06 Information Send binary file "<File_Name>" from ftp server "<ftpuser>", size 106706248 bytes with QoS EO.
    The ICM restricts all HTTP requests larger then 102 MB via the parameter icm/HTTP/max_request_size_KB which has a default value of 102400 (100 MB). Therefore it rejects the requests and your error is thrown.
    There are two ways of avoiding this:
    1) Increase the parameter:                                         
    Increasing the parameter implies a risk since large messages can overload the system (e.g. during the mapping). Therefore it is good to have these safety measurement in place.                                                                               
    2) Split the request:                                                    
    Depending on the scenario it might be possible to split the request  to restrict the max. number of records for a given file. This is the prefered option because it ensures better stability of the system and also better performance.                                                           
    I think this situation applies to you as well - but I'm not sure since you did not specify the request size and the size of the attachement.
    Best regards,
    Mike

  • Mail to proxy scenario design

    Hello,
    In the new requirements, i need to set up mail to proxy scenario in sap PI. The mail comes in with a txt attachment. I can set up a sender mail adapter to fetch the mail and attachment. There are 5 columns in this file attachment. I need to read and map each record to the target message in message mapping. How do I do it? Any helpful answer would be really apprecaited.
    Cheers,
    Bai

    This piece of java code will remove the TAB
       //write your code here
      StringTokenizer st = new StringTokenizer(record,"\t",false);
      String t="";
      while (st.hasMoreElements()) t += st.nextElement();
      return t;
    Edited by: Bai Li on Dec 17, 2010 4:49 AM

  • Filter mail account in MAIL to PROXY scenario

    Hi all,
    I have a MAIL to PROXY scenario, and i would like receive emails only from specific adress.
    I try using Mail Package and add a condition in the receiver determination but it doesn´t work.
    Is there any way for do this?
    Regards,

    use xpath in RD to allow only the mail address you want to follow through.
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

  • XML file to Proxy Scenario with BPM - ID Steps

    Hi Guys,
    Any one can help me to find  about the scenario XML file to ABAP Proxy with BPM, ID steps please. Any link or logical routing, receiver determination and interface determination idea. Please correct me,
    I have created Business Service as sender to send one xml file to BPM, BPM is sending a message to SNC system. I have created 2 receiver determinations, but I am confusing in interface determination, where to declare OM?
    Please can any one respond bit quicker.
    Thanks  in advance
    Regards
    San

    ES Repository
                         *Service Interfaces*
    Create one outbound service interface for XML file.
    Create one Inbound synchronous Interface for SNC system.
    Create one Abstract Asynchronous interface ,same message type as you used for outbound service interface .This is for Integration process receive step.
    Create one Abstract async interface for receiving the response from SNC system in Integration process.
    Create one Abstract synchronous interface to be used in the Integration process for Send sync step.
    Create on inbound asyn service interface for sending the response from integration process (received from SNC system) to the Receiver System.
                  Operation Mapping.
    Create an Operation Mapping using Abstract sync interface and inbound syn interfaces.
                  Integration Process
    start--->receive Step---->send Synchronous step----->send step.
    Create two container elements
    first with abstrat async interface for the XML request.
    second for abstract asyn interface with the XML response structure (asyn receiver system structure)
    In the send sync step select your abstract syn interface from the F4 help.and select the corresponding request and response message from the container element you defined earlier.
    Integration Directory.
    Create one sender File adapter Communication channel for XML file reading.
    Create two receiver communication channel for sync system(receiver XI adapte for ABAP PROXY) and other for asyn receiver system .
    Create 3 receiver determination
    1.from sender to Integration process.
    2.from Integration process to SNC system.
    3. from Integration process to Asyn Receiver System.
    Create 3 Interface determination.
    Specify Operation mapping while you are creating interface determination from Integration Process to Syn BS.
    Create one sender agreement
    Create two Receiver agreement.
    Regards
    Kubra Fatima.

  • Idoc to proxy scenario with an acknowledgment

    Hi ;
    I have to implement a IDoc to abapProxy scenario but an application acknowledgment must be return so IDOC status will be set.
    How can i understand whether an application error exists while abapProxy is executing or not in status of IDOC?
    Do I need to create and sent back new IDOC to the sender system in abapProxy code?
    Thanks.

    Hi,
    See if you just want the ack for your IDOC coming from r/3 to XI, then you can use ALEAUD01 IDOC and you can configure it by running report IDX_NOALE in XI system..........
    But if you want status change for appl error occuring in ABAP proxy system, then i think you will have to use a BPM for it.........you will have a recive step for getting your IDOC, then a transforamtion step for IDOC to proxy mapping, then a synch send step for sending proxy req and getting proxy response, then a transformaton step for mapping the proxy response to SYSTAT01 IDOC in r/3 for changing the IDOC status depending on success or error for your proxy response, then a send step to send this IDOC to r/3 system...............keep teh IDOC number in proxy req and proxy response so that you can use it in SYSTAT01 IDOC for sending it to r/3 and changing your IDOC status.
    Regards,
    Rajeev Gupta

  • Proxy to Proxy Scenario with sender and receiver on same instance

    Hi,
    I have a scenario to integrate Erecruit to HR system usng standard content. Both the Erecruiting and HR are on same instance so my sender and receiver is the same system. Standard ABAP proxies are provided.
    Now I need some help in how to configure the channels and the agreements as both the sender and receiver are on same instance. Do i need to use parties?
    do i have to create a sender communication channel?
    Please let me know the stps required in configuration for this scenario.
    Thanks in advance.

    Hey
    It does not matter if your sender and receiver are same system or different systems,the configuration steps will be the same.
    In your case you would need
    1 Receiver determination
    1 interface determination
    1 receiver agreement
    1 receiver communication channel(of type XI adapter,this will connect to HR system).
    No party or sender communication channel or sender agreement are required.
    You need to have configured 1 business system for HR system in SLD though.
    Thanx
    Aamir
    Edited by: Aamir Suhail on Jul 23, 2008 7:36 PM

  • WSDL to Proxy scenario

    Hi!
    I would like to implement the WSDL to Proxy scenario with SAP XI 7 for SAP ECC system
    Can some one recommend a real good url or documentation that describing step for step the technical steps?
    Also the information for other scenarios will be very appreciated.
    Thank you very much!
    regards
    Holger

    HI Holger,
    Create new External defination in IR , select the  wsdl as category and select the file the specified loaction and save.
    Then create the Message type by using the external definition which is created in the previous step.
    After that proceed the same normal steps like creating MI, MM and IM.
    Regards
    Goli Sridhar

  • SOAP- Proxy scenario, issue with WS adapter

    Hi guys,
    i've set up a soap->abap proxy scenario (on 7.1) and want to use the new WS adapter. unfortunately I'm facing some issues. The proxy has been generated properly and I also set it up in soamanager. I tested it from XML Spy and it works fine. So there shouldn't be any problem with it.
    But when I try to run the scenario, I get following error:
    WS_ADAPTER_SYS_ERROR
    <sap:ExceptionChain xmlns:sap="http://www.sap.com/webas/710/soap/runtime/abap/fault/system/SystemFault"><sap:ChainedException><Exception_Name>CX_SOAP_FAILURE</Exception_Name><Exception_Text>SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_CONNECTION_FAILED")</Exception_Text></sap:ChainedException><sap:ChainedException><Exception_Name>CX_SOAP_CORE</Exception_Name><Exception_Text>SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_CONNECTION_FAILED")</Exception_Text></sap:ChainedException></sap:ExceptionChain>
    System error while calling Web service adapter: <sap:ExceptionChain xmlns:sap="http://www.sap.com/webas/710/soap/runtime/abap/fault/system/SystemFault"><sap:ChainedException><Exception_Name>CX_SOAP_FAILURE</Exception_Name><Exception_Text>SRT: Processing error in Internet Communication Framework: ("ICF Error when processing Web service
    I checked the /sap/xi/engine service on both - PI & ECC and it is activated.
    Any hint, what could be wrong?
    Thanks a lot,
    Olian

    Hi,
             "ICM_HTTP_CONNECTION_FAILED" this error is relaed to ICM. Does your Type H connection "INTEGRATION_SERVER_HMI" works fine.And check integration engine configuration in SXMB_ADM.
    And here is a similar thread.
    Re: HTTP to Enterprise Services.
    Regards,
    Reyaz

  • File to mail scenario with zip file as an attachment

    Hi experts,
    I have a file to mail scenario.The mail contains a zip file as an attachment.
    The file in the input folder is a zip file. I want to send this zip file via email using mail adapter.How can i achieve this?Please help me to solve it out.
    Regards
    Divia

    Hi Narath,
    Do check the below link it will be helpfull
    Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway
    Thanks
    Sampath

  • File To Mail Scenario With An Attachment

    Hi All,
    I Want to Implement a FileXI--Mail Scenario With An Attachment
    I Want to Send a Text File From the File System As An Attachment to the Mail.
    Can We Do this With out Doing JAVA Or XSLT Mappings in this ???
    Please Give me the Steps That I Have to Follow
    Regards
    Babu

    Babu,
    I am not sure how complex is your file sturcture and the mapping. But we can also achieve without java or xslt mapping also. Please check these weblogs:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Also you have to use module swap for sending the attachment as txt file. Please check this weblog for this:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5992
    Regards,
    ---Satish

  • File to mail scenario with dynamic email addess

    Hi All,
    I am doing a file to mail scenario with attachment(mail package is used), where i need to pick a file from folder and based on the file name(Country code is provided in file name. for eg. Collections_UK02_20091210.txt. here UK02 is the country code), i need to send an email to dynamically. I am using value mapping for country code with email address. please provide me suggestions like how can i pick the file based on the country name and send to the corresponding email address.
    Regards,
    Mahakrishnan T.

    Hi Mahakirshanan,
    >>how can i pick the file based on the country name and send to the corresponding email address.
    You cannot do this.. better will be to make a generic interface which will pick the file and based on its filename it will make the to field
    Follow these steps:
    1 Read the file using communication channel (check the adapter specific identifiers)
    2. Using dynamic mapping read the filename and based on the name of file decide the To address and update it to the To field of mail package. You can use value mapping to decide what the targetvalue can be.
    Regards
    Suraj

  • File to Proxy scenario message failed in ECC with staus SYSFAIL

    Hi All,
    We are working on File to proxy scenario,  PI  able to send message successfully to ECC, but  In ECC , message got  stuck in queues with the status 'SYSFAIL',
    when I read the error message it is showing Address Invalid.
    when I run the LUW, it is giving 'Function module does not exist or EXCEPTION 'raised message.
    I'm using PI 7.1 EHP1 , ECC 6.0, can anyone suggest the trouble shooting guidelines for this issue?
    Thanks,
    Venu.

    when I run the LUW, it is giving 'Function module does not exist or EXCEPTION 'raised message.
    in your code, there seems to be an invalid statement.
    check the proxy code.

  • ABAP Proxy Sync scenario with error No Implementing class registered error

    I am working in a ABAP proxy to Proxy scenario. The connectivity is between SEM and PI systems(SEM->PI->SEM). Outbound synchronus interface is used to create proxy (Client Proxy) its a SAP standard interface. This scenario is configured as below,
    1) Sender and receiver business system is the same for SEM with same client.
    2) No Message and Interface mapping is used.
    Please let me know, if the configuration is correct. if then, how to solve this error?
    Regards,
    User PI.

    >>The connectivity is between SEM and PI systems(SEM->PI->SEM).
    SEM->PI->SEM makes no sense. Why do you need PI here?
    Any way, the error message implies the server proxy is not implemented (or activated) correctly.

  • File-xi- mail scenario with attachements

    Hi
    Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
    thanks
    kumar

    Hi,
    >>>>Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
    yes: your application puts order data into a file and generated a PDF file with it
    XI takes both and send order file in mail and PDF in mail attachment
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for

  • MSI GTX 670 completely freezes please help

    Hi. I posted my problem on the nvidia forums and they suggested I RMA my graphics card and get it replaced... I thought I would post it here to see if anyone could help me... This issue has started about a few days ago and it has been bugging me beca

  • Condition step issue in a workflow

    Hi Gurus, I have a condition in my workflow which checks for an attribute value of he business object if its equal to 'X' based on which it takes two different paths for 'yes' or 'no'. I find it always takes the 'no' path irrespective of what is the

  • Importing NEF files

    I recently experienced a very hard crash on the hard drive that contained all of my imported files for Lightroom.  I have the original files on a separate drive, mostly in a .NEF format (Nikon's proprietary format).  I opened a new catalog in LR and

  • How to set Non-valuated sales order stock ??

    Hi.. Type of matrial A0001 is HAWA. I made a sales order(S/O) and then generated Purchase requisition(P/R) automatically. But, G/L acccount of the P/R was for BSX. I want G/L account for GBB. As I Know, if non-valuated stock ==> GBB, if valuated stoc

  • Uninstall and shortcut in extensions

    Hi all! I've been working with JWS since one week and I'm trying to deploy an application in some computers and I don't found a way to uninstall them correctly. The application will need to install some resources in the computer like images, xml and