Attachments in DOE 1:n

Hi,
I read the article http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f06f0dc5-f6a9-2c10-f691-821eccc1b198 which was a good starting point for binary data in the DOE.
Now I have the challenge, that I have to implements a 1:n relation between my DOE element and the attchments.
Lets say, I have a DO ORDER with the primary key order id. For this order I want to load ALL documents from ERP which are linked to this order id (so 1:n).
When I understood the tutorial correctly I have to return the binary data in the export structure of the RFC, tables are not supported.
So my question is, how can I create such a functioniality?
Cheers
Jens

Hi,
check this link
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f06f0dc5-f6a9-2c10-f691-821eccc1b198
Regards,
Vikas Lamba

Similar Messages

  • Word document attachments garbled

    When I try to send a Word document to users outside of my ISP they come through as "noname" This does not happen with TextEdit files or with pdf files. It also doe snot happen when sending attachments to other users in my ISP (Road Runner). The folks at Road Runner insist that I have a virus. I ran a virus scan with the most recent virus defs and nothing showed up. I repaired permissions and repaired the hard drive -- no problems found.I have tried using the extension, not using the extension, clicking to open, opening from within the application and it's always the same result. This is what appears at the top of the "noname" file (titled "test file" when sent):
    --Apple-Mail-2-863040009
    Content-Transfer-Encoding: base64
    Content-Type: application/applefile;
    name=test file
    Content-Disposition: attachment;
    filename="test file"
    A string of letters, mostly A's
    --Apple-Mail-2-863040009
    Content-Transfer-Encoding: base64
    Content-Id: <[email protected]>
    Content-Type: application/octet-stream;
    x-mac-type=5738424E;
    x-unix-mode=0644;
    x-mac-creator=4D535744;
    name=test file
    Content-Disposition: attachment;
    filename="test file"
    More computer gibberish.
    I can receive with no problem. Any ideas will be greatly appreciated!

    "It's a virus" can sometimes be loosely translated as "I don't know."
    It could easily be that the Word documents are getting stripped by intervening SMTP servers or firewalls, or by anti-spyware or anti-virus tools. Word documents are common mechanisms for transmitting malware and thus a common target for filtering; the whole family is a particularly hazardous form of file as it can easily contain executable code.
    What you're showing are the MIME section headers of Base64 MIME-encoded mail. With the intervening text that comprises that part of the MIME message.
    The "gibberish" is the message text or the attachment, encoded using Base64. (Base64 is a way to get binary or arbitrary data converted into printable data for transmission, since most mail systems only deal properly with printable characters.)
    When you are sending the message (with Mail.app, I assume?), did you select the "Windows Friendly" option? You can set this Windows Friendly option on a per-message basis, or you can always select it via the (IIRC) Edit menu; to default it. It's generally safe to default it.
    I'd also suggest having the receiver extract the text of the mail message for a look. (If that wasn't the headers from the receiver that you were showing.)
    The MIME headers look to be missing the filename information, which could be the sending mail client, some filter or firewall, or something in the receiving software. A more typical header is:
    --Apple-Mail-2--31415926535
    Content-Transfer-Encoding: base64
    Content-Type: application/applefile;
    name="whatever.doc"
    Content-Disposition: attachment;
    filename="whatever.doc"
    Have you tried sending the mail messages with another mail client? With Thunderbird, for instance.
    And as a test, when you receive the message with the noname file, extract it as you would normally, and name the created file noname.doc, and try opening it using catdoc, NeoOffice, OOo, or whatever you're using to read that file format. (There seem to be a few tools around that will open .doc files.)

  • CRM Sales 2.0 : Attachments are not downloaded to iPad

    Hi Community,
    We are using SAP CRM Sales mobile 2.0.x app on iPad devices. We are facing an issue with attachments.
    When we add attachments to transactions, they are not downloaded to device. I can see the attachment information on the transaction as in the screenshot below but when I click on it, says 'Download in progess' and it never finishes.
    Attachment functionality is enabled for transactions in SPRO, ENABLE_ATTACHMENT_INLINE parameter is set to X in DOE. Size of the attachment is also less than the size set in SPRO Attachment settings.
    What else could be the issue for attachments not downloading to device?
    Thanks
    Narasimha

    Hi Senthil,
    I am facing big problem while setting up the sap crm sales 2.0 with sybase.
    Landscape is as:
    1. CRM 7.0 + MOB_CRMS200
    2. SAP NetWeaver Mobile SP07 
    3. SUP 2.1 with ESD#2
    4. iOS/Windows Laptop.
    I will share the steps which i followed:
    1. Setting up CRM with add-on as per document which came with this application.
    2. setting up the Netweaver Mobile as per document.
    3.In SCC--> Created the Security, Domain and application id as per document.
    4. In ESDMA Bundle i copied the sup-db.xml file and mentioned sup listener url:
    'http://<SUP ip Addr'>:8000/doe/publish'
    and i followed the Note 1655954.
    5. In Utility Command Line its giving the default URL as:
    'iiop://<sup id addr>:2000'
    Clicked enter-->asked for supAdmin password...provided-->then asked for domain-->security-->location of ESDMA Bundle (which we copied and copied sup-db.xml in that)
    then provided the application id as: sap_crm.
    then provided the SAP Technical username and password (which is maintained same in CRM and Netweaver Mobile).
    its showing the deployment successfully.
    But when i register the device in SCC using all this details , the device is not coming online.
    But when i used the default domain, the user is coming online. but its not coming with the domain which we have created.
    Note: As per troubleshoot document the path which is mentioned there its not getting created as follows:
    UnwiredPlatform/InstallLogs/silentInstall/CRM/CRM_ESDMATMP/META-INF.
    My question is what is the  Domain and Security used for, and whatever steps i have followed whether those are correct or not.
    Please help.
    This issue is very critical.
    Urgent Help will be appreciated.
    Thanks & Regards
    SAKET

  • Attachments Function Modules in SAP Netweaver Mobile 7.1

    Google Traslator
    Hi Experts,
    I am currently developing an application on the SAP technology
    Netweaver Mobile 7.1
    I am in the process of setting BACKEND ADAPTER, model
    data fields are used data type STRING and XSTRING. According to the
    documentation, when using such data types, must be implemented
    additional attachment function modules, diferent to Bapi wrappers. They function
    modules are responsible for uploading and downloading of the fields in the
    DOE.
    In SAP Help, forums or on the same system, I can not find this type of function module and I would be very useful that they could send me an example.
    Best Regards,
    JM

    Hi,
    You need to have a separate table to store attachments in the backend.
    In the DOE define the attribute as STRING(tick the text memo) This you have already done .
    In the backend you will need another table where you will be storing the attachments.
    Lets assume you have a notification table : In this define the field for headertext with the data type as CHAR and length 1
    Create another table where you want to store the attachments:
    You can have the fields as NOTIFICATION and HEADERTEXT. This headertext should have a datatype STRING. You can also have a field called attachment type to store whether it is HeaderText or Binary Memo.
    Create a BAPI wrapper for getting the HEADERTEXT with importing parameter as NOTIFICATION and exporting HeaderText and a return parameter:
    Here the source code:
    SELECT SINGLE b~headertext INTO e_headertext
    FROM <notification table> AS a
    INNER JOIN <attachment table> AS b ON
    borderid = aorderid
    WHERE a~orderid = orderid AND
    a~headertext = 'X' and
    b~ATTCHTYP = 'HEDTXT'.
    Now in the DOE : give this function module name in the attachment Function module. SAVE (very important)
    After doing the mapping go to the attachment tab and do the mapping with the attachment function module.
    save and activate the backend adapter.
    execute SDOE_LOAD.
    Go to SE11: there should be a table starting <cds table name>ending with _TM.
    Create an application in the similar way. No extra code required.
    Regards,
    Sunaina Reddy T

  • Candidate attachments

    Hi All,
    I have a question regarding Candidate attachments and questionnaires. My Customer has a requirement to append all Candidate attachments plus data from the Candidate overview smartform plus questionnaire information into one file.
    However performance is an issue.
    Does anyone have experience with a report that includes these data from the Candidate/application?
    Doe anyone have comments on expected performance?
    Thanks
    Malene Sundberg

    Hi Marlene,
    You can have a look at: http://scn.sap.com/docs/DOC-32737 (referenced from How-Tos in ER - ERP Human Capital Management - SCN Wiki)
    Regards,
    Nicole

  • Quicklook downloads attachments to wrong folder

    Tried searching for this but came up empty so I want to try and see if others are wondering why Quicklook in Mail downloads the attachment to a folder different from the one I specified as my Downloads folder, in my case, my Desktop Folder.
    I receive an email with an attachment. I use Quicklook (be it the button on the header, pressing the spacebar, or using the contextual menu) to view the file at which time Mail first downloads the attachment. However, it always downloads it to the User/Library/Mail Downloads folder instead of the Downloads folder I selected in Preferences.
    Does anyone else have this "problem?" If so, is there a setting for this I am not seeing? I hope it can be changed because I habitually use Quicklook now and that Mail Downloads folder can fill up rather quickly without realizing as I download attachments to specific places after the fact, causing double copies on my hard drive. Hope someone can help.

    Andew, thanks for the reply, however, I am with "gumsie" on this one. Like gumsie stated, if I save the attachment using the button in the header or contextual menu, and open the file from there, then there is no real problem. However, if I Open or Quicklook the attachment directly in the Message Window, then Mail does save a copy of the attachment to the /Library/Mail Downloads folder no matter if I saved the attachment before or if I have a Downloads folder set in Preferences. This is what I think is an odd bit of behavior from the software.
    In the end, I think there is really nothing we can do about this and the best thing for me to do is just download the attachment to my set Downloads folder, and Open/Quicklook it from there in order to avoid multiple copies on my drive (I deal with largish files so cumulatively multiple copies just take up too much space on the drive). It's too bad Apple hasn't addressed this.
    Thank you both for your input. At least now I know that A) I'm not alone in this and B) I just have to change my habits.

  • Previewing attachments

    I was previewing attachments, pictures .png files, at least 30 or 40 of them and then all of a sudden I got an error message that
    "this file cannot be previewed. try opening the file in the program in which it was created" and now I can't preview even the pictures I previously did.
    What happened? What can I do?

    Hi,
    This issue can be caused by the temporary files, sometimes Outlook may not handle its temporary file folders well, so cleaning out the folder may solve this issue.
    We can follow the steps in this link to empty the temp folder:
    http://www.howto-outlook.com/faq/securetemp.htm
    Hope this can help you.
    Regards,
    Melon Chen
    TechNet Community Support

  • How can I disable iMessages from archiving messages and attachments?

    I noticed while browsing ~/Library\Messages/ that iMessages has been archiving my messages (Archive folder) and saving attachments (in a separate Attachment folder). Under the settings for iMessages on OS X 10.8.2 Mountain Lion, I don't see any options to disable this. The only thing close to that is already unchecked: Save history when conversations are closed.
    Any ideas why iMessages is saving all this information? How do I disable it? My concern is that it's going to keep accumulating data overtime. I don't want to keep having to go back in there and delete those two folders constantly.

    Hi,
    This somewhat date back to the way iChat's Saved Chats were once Stored.
    At iChat 5 (in Snow Leopard) you could choose to see the last chat - (when opening an new chat with a person you had chatted with before) or parts of the Last Chat in terms of the Last so many IMs.
    Example Pic of iChat 5's Prefs
    Since then the management choices of the Save Chats has changed in both iChat 6 and Messages.
    Messages stores Chats two ways if they are iMessages.
    You can elect to Save them in Messages > Preferences > Messages.
    It also store the chat.db and other databases items which includes the Attachment items
    The chat.db is the bit that fill in the "history" if you iMessage the same person even if you are not saving the Chat in a formal sense in the App's Preferences.
    This is irrespective if your delete the Conversation from the Messages main window.
    How big these Databases get obviously depends on your iMessages usage.
    Striker's link seems to be about a similar issue on an iPhone (I presume it transfers to other iOS devices) but I am not sure that it is relevant in this situation.
    Edit.
    I should have been clear that you cannot change the database behaviour.
    9:49 pm      Sunday; October 6, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)

  • I have OSX Maverick on an iMac using Outlook e-mail.  PDF attachments are included in the e-mail  as the whole document rather than just the PDF icon.  How can i have just the PDF icon as an attachment?

    In Outlook my PDF attachments appear as whole documents and not just the PDF icon.  How can I have attachments included as PDF icons and not the documents?

    For your own viewing, you can of course control-click on the attachment and select "View as Icon".
    For others' viewing, it depends upon their email reader.  To ensure that attachments are not displayed expicitly you can put them all in a zip file (via control click and "Compress") then attaching them, or you can use third party stuff like Attachment Tamer.
    charlie

  • How can I open all attachments in mail at once?

    I use Mail to collect messages from the IMAP server rather than logging in through my university's webmail interface.  I often get mail messages with many attachments that all need to be opened at once (example: an admissions application that has 7 or 8 components for me to review).  Clicking on each of them separately is a pain, particularly since I have repetitive strain issues, and the various applications needed to open the attachments (Word and Adobe Reader for example) want to grab focus after every click, forcing me to keep switching programs.
    Is there any way I can tell Mail to just open all attachments to a message at once?

    Try:
    Select the attachments you want to open. (Use click, shift click, command click, as usual.)  Control-click on (one of) the selected attachments. Then select "Open Selected Attachments".
    charlie

  • Jquery is not working after i enable the attachments in Share Point EditForm

    Hi ,
    I have customized the Edit form .After customization the attachment functionality is not working and resolved the issue by creating the new Edit form .The attachments section only works if i don't push any j query/java script functions.If i comment below
    line two lines the attachment sections works.But i would need to include them .Could you tell me how would i call below script in EditForm.
    //_spBodyOnLoadFunctionNames.push("Test");
    //_spBodyOnLoadFunctionNames.push("checkStatus");
    <script>
    function redirect(offerID)
      var loc = "DispForm.aspx?ID=" + offerID;
      window.location.href = loc;
    function Test()    
    var TitleValue = "Drafting Communication";//$('#ctl00_m_g_1918401d_e6f3_4b9b_9262_dbb4aabcfd12_ff11_ctl00_ctl00_TextField').val();
    alert(TitleValue );
    if(TitleValue =="Drafting Communication")
    $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove();
     else if(TitleValue =="Stage-1 Pre Approval Business")
     $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove();
    else if(TitleValue =="Stage-2  Approval Marketing")
    $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove(); 
    else if(TitleValue =="Stage-3  Approval Director")
     $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 4 – Review")').remove(); 
     else
    $("select[Title='Workflow Stage']").find('option:contains("Drafting Communication")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 2 – Review")').remove(); 
     $("select[Title='Workflow Stage']").find('option:contains("Stage 1 – Review")').remove();
     $("select[Title='Workflow Stage']").find('option:contains("Stage 3 – Review")').remove(); 
      $(".SelectA").hide();
    function getTagFromIdentifierAndTitle(tagName, title) 
      var tags = document.getElementsByTagName(tagName);
        for (var i=0; i < tags.length; i++) {
         var tempString = tags[i].id;
        if (tags[i].title== title) {
        alert(tags[i].title);
          return tags[i].value;
      return null;
    function checkStatus() {
      var selectedId = getField('select','Current Status').options[getField('select','Current Status').selectedIndex].value;
       var docID = 73;
      if(selectedId == 'Approved')
       $("input[value$='Save']").attr('disabled', true); 
    function getField(fieldType,fieldTitle) {   
        var docTags = document.getElementsByTagName(fieldType);   
        for (var i=0; i < docTags.length; i++) {   
            if (docTags[i].title == fieldTitle) {   
                return docTags[i]   
    //_spBodyOnLoadFunctionNames.push("Test");
    //_spBodyOnLoadFunctionNames.push("checkStatus");
    </script>

    Hi,
    According to your post, my understanding is that you failed to use the _spBodyOnLoadFunctionNames.push() function.
    Per my knowledge, the _spBodyOnLoadFunctionNames.push() is SharePoint's version of jQuery's $(document).ready() or $(function(){}).
    I recommend you to add a content-editor-webpart on the page and add the code below on the source editor to check whether it works.
     <script language="javascript">
    _spBodyOnLoadFunctionNames.push("FunctionName");
    function FunctionName(){
        alert(Test);
    </script>
    More information:
    SharePoint JavaScript – Page Load Add function: _spBodyOnLoadFunctionNames
    If it works well, the issues is caused by the functions you created.
    You need to check whether your code are correct.
    In addition, you can make init.js loaded before _spBodyOnLoadFunctionNames.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/93937/spbodyonloadfunctionnames-not-working-on-master-page
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Sender Mail Adapter Configuration - Process Multiple Attachments

    Dear sirs,
    I need to process several attachments at the same mail message as individual payloads.
    In default configuration of sender mail adapter only the body of message is used as payload.
    So I added PayloadSwapBean Module at Processing Sequence and it processed the attachment I set in Module Configuration.  I'm not able to process all attachments available, just one attachment is sent to PI pipeline.
    How can I process all attachments of a single mail message?
    Thank you in advance.
    Fabio Purcino

    Hi Jose,
    We are trying to implement reading multiple attachment in sender mail adapter. 
    Our Requirement is : Reading a mail having multiple .xls files. This should be read and converted to payload .
    package multiswap;
    //import com.sap.aii.adapter.xi.ms.XIMessage;
    import com.sap.aii.af.lib.mp.module.*;
    import com.sap.aii.af.lib.trace.Trace;
    import com.sap.aii.af.sdk.xi.mo.Message;
    import com.sap.aii.af.sdk.xi.mo.MessageContext;
    import com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageOperator;
    import com.sap.aii.af.sdk.xi.mo.xmb.XMBPayload;
    import com.sap.aii.af.sdk.xi.util.PayloadType;
    import com.sap.aii.af.service.auditlog.Audit;
    import com.sap.aii.af.service.cpa.*;
    import com.sap.engine.interfaces.messaging.api.MessageDirection;
    import com.sap.engine.interfaces.messaging.api.MessageKey;
    import com.sap.engine.interfaces.messaging.api.Payload;
    import com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.Locale;
    import javax.ejb.*;
    public class MultiSwapRead
        implements SessionBean, Module
        private static final String VERSION_ID = "$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
    "/aii/af/app/modules/PayloadSwapBean.java#1 $"
        private static final Trace TRACE = new Trace("$Id: //tc/xpi.af/NW731EXT_07_REL/src/_af_application_ejb_module/ejbm/api/com/sap" +
    "/aii/af/app/modules/PayloadSwapBean.java#1 $"
        private static final String SIGNATURE_PROCESS = "process(ModuleContext , ModuleData)";
        protected Hashtable cachedChannels;
        protected SessionContext myContext;
        public MultiSwapRead()
            cachedChannels = new Hashtable();
        public void ejbRemove()
        public void ejbActivate()
        public void ejbPassivate()
        public void setSessionContext(SessionContext context)
            myContext = context;
        public void ejbCreate()
            throws CreateException
        public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
            throws ModuleException
            if(TRACE.beLogged(200))
                TRACE.entering("process(ModuleContext , ModuleData)", new Object[] {
                    moduleContext, inputModuleData
            ModuleData outputModuleData;
            Iterator itr;
            outputModuleData = inputModuleData;
            String chid = moduleContext.getChannelID();
            TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, (new StringBuilder()).append("performing payload swap for channel ").append(chid).toString());
            LookupManager lman = LookupManager.getInstance();
            Channel chan = null;
      try {
      chan = (Channel)LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, chid);
      } catch (CPAObjectNotFoundException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
      } catch (CPAException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
            Direction direction = chan.getDirection();
            String swapkey = moduleContext.getContextData("swap.keyName");
            String keyvalue = moduleContext.getContextData("swap.keyValue");
            Object obj = inputModuleData.getPrincipalData();
            Object pivotedObj = inputModuleData.getSupplementalData("mp.pivoted");
            boolean pivoted = pivotedObj == null || !(pivotedObj instanceof Boolean) ? false : ((Boolean)pivotedObj).booleanValue();
            Message mo = null;
            if(obj instanceof com.sap.engine.interfaces.messaging.api.Message)
                mo = (Message)((com.sap.engine.interfaces.messaging.api.Message)obj);
            } else
            if(obj instanceof MessageContext)
                mo = ((MessageContext)obj).getMessage();
            } else
                TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no message found");
            if(mo != null && XMBMessageOperator.numberOfPayloads(mo) > 0)
               // String midstr = XMBMessageOperator.getMessageId(mo).toString();
                MessageKey auditkey = new MessageKey(((com.sap.engine.interfaces.messaging.api.Message) mo).getMessageId(), com.sap.engine.interfaces.messaging.api.MessageDirection.INBOUND);
                itr = (Iterator) mo.getAttachments();
                if(swapkey != null && keyvalue != null)
                    StringBuffer textSwappingbyBuf = new StringBuffer();
                    textSwappingbyBuf.append("Swap: swapping by '").append(swapkey).append("' ? '").append(keyvalue).append("'");
                    String textSwappingby = textSwappingbyBuf.toString();
                    TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textSwappingby);
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, textSwappingby);
                   while (itr.hasNext()){
                    boolean swappedp = swapPayloads(mo, swapkey, keyvalue);
                    String swappedStatus = swappedp ? "Swap: successfully swapped" : "Swap: no matching payload found";
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.SUCCESS, swappedStatus);
                } else
                    StringBuffer textInvalidBuf = new StringBuffer();
                    textInvalidBuf.append("Swap: parameter missing ");
                    if(swapkey == null)
                        textInvalidBuf.append("swap.keyName");
                    if(swapkey == null && keyvalue == null)
                        textInvalidBuf.append(" and ");
                    if(keyvalue == null)
                        textInvalidBuf.append("swap.keyValue");
                    String textInvalid = textInvalidBuf.toString();
                    TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, textInvalid);
                    Audit.addAuditLogEntry(auditkey, AuditLogStatus.WARNING, textInvalid);
            } else
                String messageEmpty = "Swap: message is empty or has no payload";
                TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, messageEmpty);
            return outputModuleData;
        private static boolean swapPayloads(Message mo, String swapkey, String keyvalue)
            swapkey = swapkey.toUpperCase(Locale.ENGLISH);
            keyvalue = keyvalue.toUpperCase(Locale.ENGLISH);
            int ifound = -1;
            for(int i = 0; i < XMBMessageOperator.numberOfPayloads(mo); i++)
                XMBPayload pldi = XMBMessageOperator.getPayload(mo, i);
                String pldivalue = null;
                if(swapkey.equals("PAYLOAD-DESCRIPTION"))
                    pldivalue = pldi.getPayloadDescription();
                } else
                if(swapkey.equals("PAYLOAD-NAME"))
                    pldivalue = pldi.getPayloadName();
                } else
                    pldivalue = pldi.getContentAttribute(swapkey);
                if(pldivalue == null)
                    continue;
                pldivalue = pldivalue.toUpperCase(Locale.ENGLISH);
                if(pldivalue.indexOf(keyvalue) < 0)
                    continue;
                ifound = i;
                break;
            if(ifound >= 0)
                XMBPayload pldfound = XMBMessageOperator.getPayload(mo, ifound);
                if(pldfound.getPayloadType() != PayloadType.APPLICATION)
                    XMBPayload pldapp = XMBMessageOperator.getApplicationPayload(mo);
                    if(pldapp == null)
                        pldfound.setPayloadType(PayloadType.APPLICATION);
                    } else
                        pldapp.setPayloadType(PayloadType.APPLICATION_ATTACHMENT);
                        pldfound.setPayloadType(PayloadType.APPLICATION);
                    TRACE.infoT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "successfully swapped");
                return true;
            } else
                TRACE.warningT("process(ModuleContext , ModuleData)", ModuleCategories.SAP_MODULE_ROOT, "no matching found");
                return false;
    We couldn't go further. Please have a look in highlighted code.
    Regards,
    Kesava.

  • How to handle Multiple attachments in sender Mail Adapter

    Hi,
         In our requirement is mutiple documents send through mail adapter, In custom java module we read the each document details and do it bussiness process. But now i am not able to read the multiple files at a time. we are able to read single file only. So plz give the solution for that.
    1) How to send multiple attachments(like word, PDF, JPG etc..) using mail apapter.
    2) How to read multiple attachments in custom java module.
    Thanks & Regards
    Vijay

    Hi Vijay,
    Go through this weblog this explains steps to multile attachments.
    /people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems
    Regards,
    Ashwin.

  • How do i save attachments in photo gallery?

    i"ve been trying to save attachments sent from a mobile phone to my documents or photo gallery. the ones i've saved i couldn't open and the rest i couldn't save

    Long press on the photo select save to gallery.
    Good Luck

  • Attachments in pdf Portfolio

    I keep getting the error message:  Acrobat cannot open the file attachment because your PDF file attachment settings do not allow this file type to be opened.
    I have a .exe file within a pdf portfolio.  I have already changed the Trust settings, but it still wont open or extract this file type.  Is there a fix for this?
    Using Acrobat X

    Hi,
    I have Acrobat 9.5 on my machine and I am not able to see any problem in opening non PDF file attachments.
    Please give the exact version of Acrobat you are using ( to see the version go to  Help -> About Adobe Acrobat).
    Update your Acrobat to latest version i.e 9.5.
    As you have mentioned that in Preferences-> Trust Manager-> Allow opening of non PDF file attachment with external applications is grayted out,
    is it a custom installation of Acrobat ?? because in normal installation this option is not grayed out.
    Thanks.

Maybe you are looking for

  • After maverick upgrade on MacBook Pro computer won't boot

    How do I get it to boot Is there a safe mode Can I revert back to my old system It finished installing launched started working on it then it started not seeing files and getting errors System extensions were not installed correctly contact developer

  • I can't unmute my iPad... Help?

    I can't unmute my iPad... Help?

  • Delay video start in Motion 4

    I imported a video into Motion 4. I would like to see the first frame of the video for the first 5 seconds and then I would like the video to start playing. Is this possible? Thanks.

  • How do I turn my iphone into something not useless?

    Hi i'm starting to get very frustrated.  I bought an iphone 5 off craiglist the other day and was not aware of the whole needing the other person to be signed out of the account for the phone not to be complete garbage business.  I thought it would w

  • Mail accounts not showing after restoring a profile backup

    Followed the instructions here https://support.mozilla.org/en-US/kb/profiles-tb#w_restoring-a-profile-backup for manually "Restoring to a different location". Re-stated TB and only "local Folders" show in the home tab. The emails for my previous main