Using SHeaderFROM in mailsender CC and in receiver determination

Hi
I am using a mailsender adapter where I need to send messages from one particular sender adress to one folder and messages from other senders to an other folder.
In my mailsender communication channel I am using the AF_Modules/PayloadSwapBean module as the message comes as an attachment. In my receiver determination I am using the SHeaderFROM in this fashion:
SHeaderFROM u2260 8716867999 xxxorg
SHeaderFROM = 8716867999 xxxorg
However, that is not working and even though I select the "Set Adapter Specific Message Attributes" in the mailsender communication channel I cannot see the SHeaderFROM value in the ABAP monitor under "DynamicConfiguration".
What can I do?
BR Mikael

Hi,
you can use UDF in mapping, like this
   //write your code here
     //Fabio Boni:- UDF for generating the mail parameters from & to
  String valueFrom = "XXXXXX.com";
  String Mail_address_to = "XXXXXX.com";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail",  "THeaderFROM");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail",  "THeaderTO");
DynamicConfigurationKey key3 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key1, valueFrom);
conf.put(key2, Mail_address_to);
conf.put(key3,Attachment_name);
  return  "";
and then in CC put "XHeaderName1" in MailAttributeFrom and "XHeaderName2" in MailAttribute2.
Flag ASMA e Variable Transport Binding in tab Advanced.
go through this:
filling Mail subject , to en from using a user defined function
Edited by: Fabio Boni on Apr 5, 2011 2:23 PM

Similar Messages

  • I just installed the Lion operating system, basically to upgrade my iPhone. I didn't realize that my Microsoft Office 2004 application would no longer work. I have been using Word for my writing and I receive most of my emails with Word attachments. I hav

    I just installed the Lion operating system, basically to upgrade my iPhone. I didn't realize that my Microsoft Office 2004 application would no longer work. I have been using Word for my writing and I receive most of my emails with Word attachments. I have been using Apple products for years, always touting their reliability and customer service. I am not a techie, I just want to be able to do what I do on the computer and Apple always fulfilled my needs. Now I am told because of some operating system gobbledygook, I have to go out and purchase new software to use Word. This is despicable. I see no particular benefit to using Lion, but I do see a lot of detriments. Apple now seems to have turned into Microsoft, making software obsolete so they can make more money and to **** with the customer. You can be sure that my next computer will be a PC. I have completely lost confidence in Apple.

    I seem to never tire of saying this. It was for Apple when they first announced 10.7 to disclose this. Yes, it was widely reported -- or rather, rumored -- but not by Apple. And many people who have gotten caught by this assumed that Apple itself would have told them beforehand about the loss of this very important feature which they had come to rely on. As far as I know, not even in fine print, does this appear anywhere on the Lion announcement or any of its links.
    I am not saying Apple had to continue Rosetta in Lion, or forever, just that if it was going to be dropped, it should have been made known.
    As relative "insiders" we should not forget that many people don't have the time, habit or interest to do this kind of research. I think it is a breach of trust that Apple has never directly made this announcement or given people the opportunity to decide beforehand if giving up their PPC apps for a new OS is a worthwhile tradeoff.

  • Integrtion Scenario using BPM with two sender and multiple receiver

    integrtion Scenario using BPM with two sender and multiple receiver
    How many Application Components are required?

    Hi Vinod,
    1) In integration repository you can have one or many software components it depends on your landscape orchestration
    2) In integration direcory you need at least one service for bpm and one or many for each system in your bpm
    also each connection between systems and bpm must have receiver determination and so on.
    Advice: Please treat BPM as a separate system.
    best,
    Wojciech

  • Using substring in the XPATH expression for Receiver Determination

    Hello, I need a little help please.  In my receiver determination, I have a condition and I need to do a "not like" check.   Basically, if the first three positions of the source field does not start with a specific code, then I need to execute the condition.   The condition editor does not support a "not like" operand, so I went to the XPATH expression editor.  I tried to used the XPATH substring function to get the first three characters and then do a "not equal" operand, but it doesn't appear to work.  There are not any runtime errors, but the condition is not executing.  Any ideas on this?  Does the XPATH expression support the substring function?

    Hi Jesse,
    Can you please explain what is the meaning of http:// in the statement
    /p1:PRODUCT/MATNRhttp://not(substring(.,string-length(.) - 2) = '123')
    Please explein, I am having same issue. It is not working here.In My case it is
    /p1:ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR[http://not(starts-with(.,\"D\"))]
    also tried with
    /p1:ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR[http://not(starts-with(.,'D'))]
    Thanks in advance!

  • You have attempted to access a secure page without the appropriate authorization. I have used this website every week and today received this error message. I can access it with Internet Explorer.

    I received an error message after attempting to log in to a website. Access prohibited. You have attempted to access a secure page without the appropriate authorization.
    I access this website at least twice a week and now I get this error message. I am able to access this website through Internet Explorer. Is there something I can do to fix this problem, so I can use Firefox?

    Maybe:<br />
    Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • ENHANCED INTERFACE AND RECEIVER DETERMINATION

    1)what is the use of enhanced interface determination and enhanced receiver determination and in scenarios we will use them and in what conditions ,and what differentiates it from standard interface/reciever determination?

    1. <b>Standard receiver determination</b> to specify the receivers of the message (and optionally routing conditions) manually.You can specify receiver parties and receiver services. To specify the receiver in more detail, you have the following options:
    &#9679;     Select the receiver from the Integration Directory
    &#9679;     Specify a constant value for the receiver
    1.2You also have the option of specifying the conditions to be applied when forwarding a message to the receiver(s) in a receiver determination.
    Generally, a condition relates to the contents of a message; if a specified condition is fulfilled for a particular payload element (the corresponding element has a certain value, for example), then the message is forwarded to the specified receiver(s).
    <b>Enhanced receiver determination</b> to have a mapping program determine the receivers of the message dynamically at runtimeInstead of creating the receivers in the receiver determination manually, you assign a mapping to the receiver determination and this returns a list of receivers at runtime.
    A typical usage case is if you do not yet know the names of the receivers at configuration time. In this case, you can define a mapping program, for example, which reads a list of receivers from a table or from the payload of the message at runtime.
    2.<b>Standard Interface Determination</b> :You can specify to which inbound interface at the receiver the message is to be sent at runtime. You also have the option of specifying a mapping and (when multiple inbound interfaces are defined) a condition for each inbound interface.
    2.1 n an enhanced interface determination, you do not enter the inbound interfaces manually, but first select a multi-mapping. You get the inbound interfaces from the target interfaces of the multi-mapping. The inbound interfaces are determined at runtime during the mapping step.
    You typically use an enhanced interface determination if the source message has an element with occurrence 0 ... unbounded (for multiple items of a data record) and you want multiple messages (for the individual items) to be generated at runtime.
    for receiver determination try this link also
    http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm
    Regards,
    Mandeep Virk
    *Reward if Helpful*

  • INTERFACE DETERMINATION AND RECEIVER DETERMINATION DOUBTS???

    Hi Team
    I am having doubts regarding the Interafce Determination and the receiver determination. In pur landscape in our objects, some times i am seeing a Condition is being defined in the Interafce Determination  and sometimes  am seeing a Condition is being defined in the receiver determination . could you please let me know the differences between the above two.
    thanx in advance.

    Hi Nabhinav,
    Condtions in receiver determination - These conditions are evaluated and executed to determine the receivers for this incoming message.
    Condtions in Interface determination - These conditions are evaluated and ececuted to determine the Interface mapping to be called in order to map the source message to the target message.
    Please take a loot at these links for more details:
    http://help.sap.com/saphelp_srm50/helpdata/en/26/5ccd3bb4560f01e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce2a8e3a8e5430e10000000a42189b/content.htm
    Also, search the SDN before posting you query.
    Regards, Gaurav.

  • File name based routing in Receiver determination

    Hi experts,
    I have a requirement to do receiver determination based on file names which are dynamic.To put it clearely, i will be having two files in my source File location and i need to route it based on the file name to two target systems.
    The file name are like Month(changes everymonth)_TargetSys1 and month_targetSys2.
    I dont need any conversions ,so i am not using any IR objects.
    To pick files i kept *.txt in sender channel, and in receiver determination  condition i was trying to use context object called 'Filename'.But it doesnt work asthe file name changes every month.
    Is there any option to take substring from the input file name (say targetSys2 from month_targetSys2.) and put it as a condition for receiver determination.
    There is not DT or structure of the incoming file , as there are no modification to be done with the content.
    Regards,
    Anika

    you need to have the structure in case you want to route it via the xpath.
    Else another option is to code the enhanced receiver determination and using a java mapping with dynamic configuration read the filename and then dynamically create the receiver determination.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm

  • Receiver Determination Step For Synchrnous Send  in BPM

    Hi,
    How to use BPM Receiver Determination step for a synchronous send step?
    My scenario is to send a request to multiple receivers synchronously and get the response.How can i achieve this using Receiver Determination step in BPM.
    Regards
    Divia

    Hi Sreedivia,
    As far as use of synchronous message is concern with receiver determination step, it wont allow you to use Abstract Synchronous message interface in it.
    Even you cannot give multiple receivers without specifying any condition while creating Receiver determination  in integration directory.
    Regards,
    Sami.

  • Interface Mappings are not   displayed in Receiver Determination

    Hi  friends,
       I'm doing Enhanced Receiver determination..   but in this  if i select  <b>Extended</b>  radio button in the receiver determination .. I'm not gettting  any  search help for  selecting my  Interface mappings..
    what misteqe  i did.. for getting those interface mappings  does we need to do..any special things   .
    i followed the bellow blog.. but like that  i'm not getting...  and how many interface mappings do we need to create for this..
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    plz suggest me..
    thanks
    BABU

    Hi  Prabhu..
       Thank you   for ur spontenious respnose ..I Mentioned the  receiver  business services in the  user defined function  which i creted in the message mappings ..  is there any other place also do we nned to mention..
    actuvally  , i have one source struturce that   and Two Receiver strutures..
    <b>1) Sendor_DT</b>
       PERSON
            NAME
            AGE
           ADRESS
    <b>2) Receiver_DT_1  ( this is for Male person details )</b>
       PERSON
            NAME
            AGE
           ADRESS
    <b>3) Receiver_DT_2 (this is for  Female Person Details</b> )
       PERSON
            NAME
            AGE
           ADRESS
    for this.. i created  Three message mappings.. ( one for soource to first recevier )
    and   next for ( source to  second  receiver)
    and for third for  source to  RECEIVERS   ( MESSAGE TYPE FROM SAP -BASIS  component )
    in the mapping
    i created one user defined function  and i map that to  split message..
    in that  user defined function i wrote  the bellow  coding
    int i;
    int mr=0;
    int ms=0;
    for(i=0; i<a.length;i++)
           if( a<i>.substring(0,2).equals("Mr") && mr==0)
                 result.addValue("AATRNG_TEST_4_BS_IB1");
                 mr=1;
          if( a<i>.substring(0,2).equals("Ms") && ms==0)
                 result.addValue("AATRNG_TEST_4_BS_IB2");
                 ms=1;
    </textarea>
    and i created two  interface mappings .. and i  created  three business services.. three communication channels. and two recever aggriments.. and two  interface determinations .. and  one sendor aggriment   and <b>receiver determination</b> with <b>EXTENDED</b> . and  i used those interface mappings  in   recever detrmination ....
    but  why file was not loaded into receiver side..
    thanks
    Babu

  • ACK for receiver determination with 2 interface determination

    Hi Forum,
    I have a XI scenario, with a BPM, where i have a Send step,
    this send step corrsponds to a receiver determination in Configuration,  and this receiver determination has 2 interface determination,
    because the send step is like,
    BPM to Receiver1, through sender message interface MI_Sender1, but there are 2 different receiver message interface namely MI_receiver1, and MI_receiver2,
    .......hence 2 interface determination and 2 interface mappings accordingly,
    and now when in BPM, i choose "transport acknowledgement" for this send step, my BPM stucks while waiting for the acknowledgement, but...in MONI, i am receivng both the acknowledgement, but in PE, workflow descrition, it waits for acknowledgement and finally fails,
    what's the reason,

    check the workitems of both sender/receiver (ack) in moni (problem might be in BPM config).

  • Problems with Receiver Determination

    Hi everybody.
    I have started as XI developer 2 weeks ago.
    I'm trying to replicate de tbit40 exercises in our company system. when i try to make the 'Receiver Determination' somethings happen. It doesn't appear the part to write the system receiver.
    This is my scenario : file->XI->IDOC.
    I've defined in the SLD the hardware, including one PC, the XI server and the SAP 4.6c server.
    This is only a test in order to check the connectivity between the PC and SAP R3. I haven't configured yet the part of the IDOC in the R3 system. Is this necesary to view the 'subwindow' of system receiver?
    Thanks.

    Hi everybody,
    I'm having some problems with the sender agreement and the receiver determination, let me explain you the scenario: i'm trying to translate inbound plain text files to XML to a outbound interface for MDM.
    An XI consultant (expertise) has successfully created the inbound - outbound interface mappings for vendors catalog, it has worked good since he set it up, but now that i'm trying to create the materials mapping according to the manuals step by step, and when i try to create the receiver determination settings, i can't find my interface mappings, the pop-up window return 0 objects for interface mappings (that i have already created and linked with msg types).
    So what can i do? Do you have any idea?
    Regards.
    Gerardo.

  • Help! I received a message on my iPhone that "phone Number Added to iPad4 [NAME of IPAD] is now using [PHONE NUMBER] for FaceTime and iMessage" and it is not my iPad!! What do I do, how do I shut them out??

    Help! I received a message on my iPhone that "phone Number Added to iPad4 [NAME of IPAD] is now using [PHONE NUMBER] for FaceTime and iMessage" and it is not my iPad!! What do I do, how do I shut them out??

    Use a strong password and set up Two Step Verification on your account.
    http://support.apple.com/kb/ht5570

  • I am trying to uninstall itunes and I received a message: The feature you are trying to use is on a network resource that is unavailable.

    I am trying to uninstall itunes and I received a message: The feature you are trying to use is on a network resource that is unavailable.

    Refer this link here:
    https://discussions.apple.com/thread/4029492?tstart=0

  • I received a new IMac for Christmas and set up a new .me account and I'm using this on my IMac and IPhone4S.  how do I transfer my music from my old Windows iTunes account to my new Mac account?

    I received a new IMac for Christmas and set up a new .me account and I'm using this on my IMac and IPhone4S.  how do I transfer my music from my old Windows iTunes account to my new Mac account?

    You can red this article about transfering your tunes - http://www.myfirstmac.com/index.php/mac/articles/how-do-i-move-my-itunes-library -from-pc-to-mac-and-keep-my-settings-intact
    MJ

Maybe you are looking for