Attachment in Mapping

Hi Experts,
I have an attachment in Sender Payload.
Header details are as below :
<Attachment id="1 .abc - Desc.txt" filename="abc - Desc.txt">ATTACHMENT_HEADER</Attachment>
Item details are as below :
<Attachment id="2 .abc - CC.txt" filename="abc - CC.txt">ATTACHMENT_ITEM</Attachment>
I have to map it with (target) receiver RFC structure
IT_ATTACH
--> Item
       -->CLIENT
GUID
P_GUID
LOGICAL_SYSTEM
CLASSNAME
CLASSTYPE
OBJKEY
DOC_ID
DOC_VER_NO
DOC_VAR_ID
DESCRIPTION
URL
TYPE
INTERNAL_IND
DEL_IND
CATEG
CREATIONTIME
LOIO_CLASS
LOIO_OBJID
.INCLUDE
PHIO_CLASS
PHIO_OBJID
PHIO_VERSION_NO
PHIO_MODE
DISP_URL
PHIO_EXT
PHIO_FSIZE
PHIO_MIME
PHIO_FNAME
PHIO_PATH_FILE
PHIO_PS_MIME
PHIO_PS_FSIZE
CHANGETIME
CHANGED_BY
PHIO_CHECKED_OUT
PHIO_CHECKOUT_USER
PHIO_CONTENT
I am not able to understand that in which field I have to pass what value ?
Study SAP

Hi,
The best thing would be to sit with both the functional consultant or abap consultant with the legacy system user. If not possible then go to se37 and open the rfc and see the field description help in import and export parameters. Then you can understand what are the values your rfc is expecting and then may be to map field by field.
Also just worth to first the function module with the values from your attachment in se37 directly and then map it so that you by the time you map you know what is what.
Regards,
---Satish

Similar Messages

  • Proxy to SOAP scenario-With Attachment and Mapping

    I have a scenario to be developed, it is a Proxy to SOAP sceanrio.
    There are about 8 fields coming from Proxy.
    Can we create an attachment from these fields.
    Also we have to do a mapping of this attachment to a field in the target External Defination and also 2 fields of the 8 have to mapped to the other respective fields of the external defination.
    All this has to be posted on a webservice through SOAP with
    the 2 fields in payload and
    the attachment in the attachemnt section of the message
    Could this be achieved?

    In ABAP proxy you create a message with the two fields which you need for main SOAP message.
    The attachment is created exactly how it is requested from web service.
    You create a String with the XML (including tags) and do a codepage conversion to UTF-8 (or whatever is requested)
    Note: The payload is created in UTF-8 automatically, the attachment is treated as binary.
    You can also use a Java mapping for creating the attachment, if you have good Java skills, but I recommend to use program code for one purpose only on one place.

  • Accessing SOAP attachment in mapping

    Hi,
    we need to be able to receive a dynamic payload to a webservice published by XI, the payload will be in XML format, but unfortunately not static. So I think the only solution is to send the dynamic payload as a attachment in the webservice call. Now we need to access this attachment from our mapping. Can this be done, and how?
    Is there an other way to receive a dynamic payload in a SOAP adapter?
    Kind regards
    Mikkel

    Hi MIkkel,
    I have done this before but with a dynamic SOAP body, so the payload of the SOAP envelope always changes.
    You have to import an external definition of the SOAP envelope. After that in your mappings you'll have to use JAVA or XSLT specific mapping to extract/filter out  that dynamic part of the message. Then, in a second mapping (for instance message mapping..) you can have access to the dynamic payload and do whatever you need to do with that part of the message. As Easy as that ...
    Regards,
    Roberto

  • Error in scheduling a mapping with sqlloader ctl file

    Hi everyone,
    I have been trying to schedule a single mapping which generates sqlloader ctl file. but i get the error
    ORA-20001: Begin. initialize complete. workspace set. l_job_audit_execution_id= 20545. ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found ORA-06512: at "USER7.PMAP_TLOG_JOB", line 180 ORA-20001: Please check execution object is deployed correctly. ORA-01403: no data found
    but when i attach this mapping with a process flow it works fine. There is no error.
    so my question is in OWB is it a must that we should attach the mapping which generates sqlloader ctl file to a process flow and then schedule it or can we schedule a single mapping which generates sqlloader ctl file and what should be the process to schedule a single mapping which generates sqlloader ctl file?
    can anyone please help?
    Thanks & Regards
    Subhasree

    Hi Nawneet,
    Any suggestions?
    can anybody else also help me in this error???
    Regards
    Subhasree

  • Excel file(.xls) as attachment and Body(Signature) via Receiver Mail Adapter

    Hi PI Experts,
    I have a requirement File(.txt) - PI(7.4) - mail (.xls attachment and signature in the body). Can anyone pls help me with the best approach to send excel file as mail attachment and signature in the body.
    Thanks,
    Sri

    Hi
    You can try this approach
    1. use mail package and java mapping to populate the mail package.
    inside the java mapping do the following
    a. read the text file and convert it to excel and then set it as additional attachment.
    b. map the signature and body with the field 'content' of mail package.
    2. on the receiver mail adapter check both mail package and keep attachment options.
    Hopefully this will work.
    Reference links
    excel write : Excel and Java - Read and Write Excel with Java - Tutorial
    set attachment: How to save MainDocument as additonal attachment in sender channel?

  • Ns0 prefix not attached in the xml structure generated using Content Master

    Hello Everyone,
    I am parsing a tabdelimited file using the Content Master Studio.
    I am providing the message type xsd as the schema file.
    After writing all the parsing logic the xml file which is getting generated is in the below mentioned format
    <?xml version="1.0" encoding="UTF-8"?>
    <ReadExcel xmlns="urn:readexcel.com">
    <ROW>
    <NAME>Rahul</NAME>
    <AGE>24</AGE>
    <Location>Mumbai</Location>
    </ROW>
    <ROW>
    <NAME>Vinit</NAME>
    <AGE>25</AGE>
    <Location>Mumbai</Location>
    </ROW>
    </ReadExcel>
    but since the ns0 prefix is not getting attached the mapping program is failing in XI.
    <ns0:ReadExcel xmlns:ns0="urn:readexcel.com">
    I guess the people who have used Content master studio might have also faced the similar problem.
    Please suggest me some solution
    Thanks and Regards
    Rahul Nawale

    Hi Rahul,
    the namespace prefic ns0 is only a placeholder for the namespace urn:readexcel.com. This namespace can also be represented by another prefix or even by the empty prefix.
    E.g. the document you have pasted is totally equivalent to the document
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ReadExcel xmlns:ns0="urn:readexcel.com">
    <ns0:ROW>
    <ns0:NAME>Rahul</ns0:NAME>
    <ns0:AGE>24</ns0:AGE>
    <ns0:Location>Mumbai</ns0:Location>
    </ns0:ROW>
    <ns0:ROW>
    <ns0:NAME>Vinit</ns0:NAME>
    <ns0:AGE>25</ns0:AGE>
    <ns0:Location>Mumbai</ns0:Location>
    </ns0:ROW>
    </ns0:ReadExcel>
    However, it is not possible to model this document via a Message type in the Integration Repository. The XML instance from a Message type will look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ReadExcel xmlns:ns0="urn:readexcel.com">
    <ROW>
    <NAME>Rahul</NAME>
    <AGE>24</AGE>
    <Location>Mumbai</Location>
    </ROW>
    <ROW>
    <NAME>Vinit</NAME>
    <AGE>25</AGE>
    <Location>Mumbai</Location>
    </ROW>
    </ns0:ReadExcel>
    Indeed, in the root tag all documents are equivalent (it has name ReadExcel and namespace urn:readexcel.com). But for the subelements (ROW, NAME,...) there is a fundemental difference. In your example (and my first example) these elements have namespace urn:readexcel.com, too. In my second example those elements have empty namespace. Indeed, all XML documents modelled as Message types have an empty namespace for all non-root elements.
    Message types are simply not suitable to model a document as you have posted. However, there is simple help. Just download the schema for the Message type to your local file system. Add attribute elementFormDefault="qualified" to the root tag of that schema. Upload that schema as External Definition. This External Definition will have one External Message. Define your mapping using that schema.
    For more background on that topic I recommend reading the specifications on XML namespaces and XML schema.
    Greetings
    Stephan

  • UDF and Category mapping table name?

    Hi
    I have created UDF on the screen and categorized these UDF for the user convenient. Now i would like to know the table where the system store this mapping.
    Here i am attaching the mapping screen which table i needed. Kindly refer the screen shot it would help to understand my requirement.
    Regards
      Ashish

    Hi Ashish,
    Please check CUFD table.
    Please also check below link.
    SAP Business One 9 - Quick Copy Categories and Copy Methods
    Hope this help
    Regards::::
    Atul Chakraborty

  • Issue in Develop mode for embedding google map

    Hello,
    I am facing an interesting issue in Develop mode for embedding google map html code (screenshot is attached)
    The map rectangle showing almost same size box underneath filled in black, while in preview mode, it is working properly. I could not find the reason, where I am doing something wrong.
    Many thanks .

    Hi Muzeone,
    Its a default behavior with every WYSIWYG HTML Designer or editor,
    Reason :The black box which is appearing in the design view is because you might have tried increasing the size of the iframe thumbnail.
    If you are using Iframe and using Insert HTML feature in MUSE, make sure when you paste the iframe code in MUSE, it creates a thumbnail in design view do not resize it in design view.
    Size does not change the height and width of Iframe in MUSE as its being controlled by the codes that you are inserting.
    The design view will only show you iframe height which is defined in the codes below that it will show a black box.
    Enjoy working with MUSE !!
    Thanks
    Prabhakar Kumar

  • SOAP attachment - module development?

    Hi,
    I have an IDOC -> SOAP scenario where I have to call a webservice that uses SOAP attachment.
    Example:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ueb="IBrokerInterface">
       <soapenv:Header/>
       <soapenv:Body>
          <ueb:TEBIBrokerInterface_PublishWS>
             <aClientId>TEST</aClientId>
             <aMessage>cid:file.xml</aMessage>
             <aDuplicates>0</aDuplicates>
          </ueb:TEBIBrokerInterface_PublishWS>
       </soapenv:Body>
    </soapenv:Envelope>
    The "file.xml" has to be a SOAP attachment.
    If I use a SOAP receiver channel how do I get the IDOC payload moved into a SOAP attachment and still keep the SOAP envelope?
    Can this only be done with module development?
    Thanks Rasmus

    Hi Rasmus,
    You cannot create an attachment in mapping.
    In PI 7.1 there will be a Java Mapping API for working with attachments, but the code will be similar to an adapter module. It will not be possible with XSLT.
    Regards
    Stefan

  • Mapping Error: Mappings are not required for this Integrator

    Hi,
    when I created my upload integrator with the Desktop Integrator Manager (12.1.2) I am not able to attach a mapping to it. I get the following error:
    Mapping Error: Mappings are not required for this Integrator because the ability to download information has not been enabled.
    Does anyone know what I've missed?
    cheers
    Jeroen

    Hi ,
    Without creating the content if you are trying to do mapping this error will come.
    Solution:
    Create the content and then do mapping..
    Regards,
    Sreekanth.S
    Edited by: user12045904 on Dec 9, 2010 10:55 PM

  • Bex map cartography

    Hello BW gurus,
    How can I attach a map into my sales by state query? My query has the 0country info-object and I uploaded the 3 shapefiles (.dbf, shp and shx) in it from ERSI CD.
    I want to use WAD. Also I am not sure about the AXL file. Where do i save it(IGS) and what would be the content? Please can someone help me with this? I have read all the online documentation but cannot make work.
    Thanks for your reply!
    Cesar
    Message was edited by: Cesar DaCosta

    Hello All,
    Please can you help me with this subject? I need to create a report  via web and use maps.
    Thanks for your help!
    Cesar

  • Help converting or reading SOAP XML-attachment instead of payload

    Hi,
    I have to setup a webservice that excepts an xml-file as an attachment and read that xml-file as if it where the main payload of the message.
    The messages we receive holds all the data I need in the attachment instead of the data being in the SOAP-body itself. This isnt something I can change since this is a solution provided by amadeus e-travel and I have no chance of changing how they send data to us.
    I have searched and searched the forums but havent been able to find a solution(that I understand) to how I can access the xml-file either in a mapping-routine or by simply swapping the payload with the attachment all together.
    As of now I have a webservice that is functional and receives the call from the source(amadeus e-travel) without a problem. I can also see the attachment in SXMB_MONI where it looks like a perfect xml-structure. But I have no idea on how to access the attachment so that I can use the data inside it in an abap-proxy in our ECC-system.
    As far as I have read on the forums I cannot use the payloadswapbean in the SOAP senderadapter so that option is out. I have seen mention of a java-class for reading attachements in mapping-routines but sadly I'm not much of a Java-programmer and dont have access to one either at the moment. I would need a detailed explanation in order for a java-program to be a viable solution for me.
    Is there some trick I have missed here or blog that shows how to read xml-attachments in a soap-message?
    Is there any standard Java-code I can use to read the whole xml-structure from the attachment in a mapping-routine?
    Any help would be very much appreciated!
    Thanks in advance ,
    Halvor

    Option-1:
    This might be a crude way, but you can acheive by a 2 step process...
    Step1 (Scenario-1) - Receive XML-Msg + Attachment using SOAP Sender adapter. As we have payloadwaapbean module limitation in sender adapter. Let it be a passthru to receiver SOAP adapter. (Don't do any processing in integration engine, like msg mapping or thything). In Rx SOAP adapter,use payloadswapbean to swap XML msg with Payload and resent it to 2nd integration scenario...
    Step2(Scenario-2) - As you have the Attachment as main-payload, you can continue ur normal msg processing on it.
    Option2:
    SOAP messages can also be processed using AXIS-SOAP Adapter.. you can add XI module in it Check it if it might help you...
    http://help.sap.com/saphelp_nw04/helpdata/EN/45/a4a36de28552f7e10000000a1553f7/content.htm
    Regards,
    Siva Maranani

  • How to map a collection of object in TopLink?

    For (simple) example, I've a XSD that defines:
    <xsd:complexType name="AttachmentType">
    <xsd:sequence>
    <xsd:element name="docID" nillable="false" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="MyDocType">
    <xsd:sequence>
    <xsd:element name="attachment" nillable="true" minOccurs="0"
    maxOccurs="unbounded" type="tns:AttachmentType"/>     
    </xsd:sequence>
    </xsd:complexType>
    This XSD is referenced by a WSDL. Using JDeveloper to generate a Java Web Service using the WSDL and will get the following classes:
    public class AttachmentType implements java.io.Serializable
    protected java.lang.String docID;
    public AttachmentType() {    }
    public java.lang.String getDocID() {        return docID;    }
    public void setDocID(java.lang.String docID) {        this.docID = docID;    }
    public class MyDocType implements java.io.Serializable
    protected AttachmentType[] attachment;
    public MyDocType () {    }
    public AttachmentType[] getAttachment() {        return attachment;    }
    public void setAttachment(AttachmentType[] attachment)
    this.attachment = attachment;
    Now I want to generate a XML document from MyDocType. I use TopLink (JAXB) to do the mapping. However, how to map the 'attachment' of type AttachmentType[]? TopLink seems only allowing List/Set/Collection container options.
    Anyone can help?
    Note: I have to use the classes generated from WSDL.
    Thanks!!

    Thanks. I'm using TopLink Workbench for the mapping
    and have no idea on how to specify the XML
    transformation mapping for array attribute. Can you
    tell me more?I was putting together an example of the transformation mapping but came up with a better way. It turns out that a transformation mapping isn't ideal because you have to take over some of the responsibility for converting XML to objects. A better solution is to intercept the calls to the getter and setter for the AttachmentType[] and convert between an Array and List. Just map the Array as a composite collection in the workbench and customize the attachment attribute mapping in code.
    Each mapping in TopLink has Accessor object responsible for getting and setting values in objects. If you choose method or direct access the mapping will have a different Accessor class. So the solution is to use an Accessor that converts the List TopLink builds into an Array of the correct type on set. On get, the Accessor creates a List from the Array.
    You can introduce a custom Accessor using an After Load method. I've put a complete example up on my googlepages account[1]. The key code is listed below. Note that this code assumes you're using direct instance variable access. Also, this code works with TopLink 10.1.3.2 and the TopLink 11 preview. It won't work with previous versions.
    The After Load class that changes the mapping accessor:
    public class MyDocCustomizer {
         public static void customize(ClassDescriptor descriptor) {
              XMLCompositeCollectionMapping mapping = (XMLCompositeCollectionMapping)
                   descriptor.getMappingForAttributeName("attachment");
              InstanceVariableAttributeAccessor existingAccessor =
                   (InstanceVariableAttributeAccessor) mapping.getAttributeAccessor();
              ListArrayTransformationAccessor transformationAccessor =
                   new ListArrayTransformationAccessor(AttachmentType.class, "attachment");
              transformationAccessor.initializeAttributes(descriptor.getJavaClass());
              mapping.setAttributeAccessor(transformationAccessor);
    }The custom InstanceVariableAccessor subclass:
    public class ListArrayTransformationAccessor extends
              InstanceVariableAttributeAccessor {
         private Class arrayClass;
         public ListArrayTransformationAccessor(Class arrayClass, String attributeName) {
              super();
              this.arrayClass = arrayClass;
              this.setAttributeName(attributeName);
         public Object getAttributeValueFromObject(Object anObject)
                   throws DescriptorException {
              Object[] attributeValueFromObject =
                   (Object[]) super.getAttributeValueFromObject(anObject);
              return Arrays.asList(attributeValueFromObject);
         public void setAttributeValueInObject(Object anObject, Object value)
                   throws DescriptorException {
              List collection = (List)value;
              Object[] array = (Object[]) Array.newInstance(arrayClass, collection.size());
              for (int i = 0; i < collection.size(); i++) {
                   Object element = collection.get(i);
                   Array.set(array, i, element);
              super.setAttributeValueInObject(anObject, array);
    }--Shaun
    http://ontoplink.blogspot.com
    [1] http://shaunmsmith.googlepages.com/Forum-519205-OXM-Array.zip

  • Zoom level in WPF Application consuming Bing Maps Web Services

    Hi,
    I am having trouble in setting the zoom level for the map with 7 pushpins (P1 through P7). The map is centered with point P1. I want all the push pins to show on the map. I have set the zoom level as follows.
    Zoom Level 15 - if the points (P2...P7) are within 1 mile from P1
    Zoom Level 14 - if the points (P2...P7) are between 1.1 and 1.5 miles from P1
    Zoom Level 10 - if the points (P2...P7) are > 1.5 miles from P1.
    If there a better way (like autozoom) to do this?
    Thanks.
    Regards, Venkat

    Rick,
    I have attached the map generated using SOAP services.
    I tried to generate the same map using REST services as follows.
    http://dev.virtualearth.net/REST/v1/Imagery/Map/Road?mapSize=640,480&pp=36.150928,-83.439971;10;S&pp=36.171645820140839,-83.410888686776161;32;S1&pp=36.168693,-83.415779;32;S2&pp=36.185192,-83.435401;32;S3&pp=36.140907,-83.472549;23;L1&pp=36.174339,-83.425415;23;L2&pp=36.17805,-83.433433;23;L3&key=BingKey&format=jpeg
    The REST services map looks like its zoomed in compared to the SOAP services map. However the road/street names are missing. Is there any way to get the road/street names in the REST services map like in the online bing maps? Please advise.
    SOAP SERVICES MAP
    REST SERVICES MAP
    Regards, Venkat

  • Attachment lost in BPM

    Hi Experts,
    we upgraded from PI 7.0 to PI 7.1
    At 7.0 we had one scenario where a message with an attachment was received in a Business Process and later send via ABAP proxy to a SAP ECC. On 7.1 this is not working anymore, we just see the attachment in the incoming message but not in the proxy message (SXMB_MONI).
    My questions:
    - Is it possible to identify attachments in BPM monitoring?
    - Does anybody have an explanation for that 7.1 behaviour?
    - Is there any place to configure bpm/attachment settings?
    Regards,
    Udo

    Hi  Udo,
          My problem is similar to yours. We are on SAP PI 7.1 SP6 I am creating attachement at mapping time and I am able to see attachment at all Integration Server pipeline steps but when I see the message at ECC end using SXI_MONITOR I am unable to see the attachement.  Any help on this? Appreciate for your response.
    Thanks,
    Rao Mallikarjuna

Maybe you are looking for

  • Ship-to party 1600 not defined for sales area 1000 10 20

    Hi Friends, I am making  inquiry(VA11).I am using a material and sales org.combination as (1000/10/00). I have maintained the same sales org. for material also.i am using for example sold to party as 1600 and for this I checked in XD02 the combinatio

  • Oracle User Guides in Foreign Languages

    Does anyone know how to obtain Oracle User Guides a foreign language? We are internationally based. I've had no success on Metalink. Appreciate any guidance, Regards, Kim Brennan [email protected]

  • Fatal error Acrobat failed to connect to DDE Server

    I just purchased the Adobe Acrobat xI Pro & installed. I get a Fatal Error message when I try to open the program. I am running Windows7. What is the problem?

  • Two repairs and still no good! AAAAAARRRRGHH!!!!

    So yesterday the local service center takes my laptop to repair it. New logic board - again. New power inverter for the screen New Super Drive. Thanks to help her it was pinpointed that my SD was busted. SO I'm in the office to burn backups of the La

  • OIM date error while recon

    Hi All, I am using DBUM Connector to recon with JDE i getting following error [APP: oim#11.1.1.3.0] Generic Information: {0}[[oracle.iam.reconciliation.exception.InvalidDataFormatException: Invalid data - 2013-01-01 00:00:00 against Date format yyyy/