How to do message mapping in IDoc or RFC to file transfer ?

Hello guys. I have a doubt. I know how to do an IDoc to file or RFC to file scenario. But how to do mapping in an Idoc to file or RFC to file scenario ? As I understand mapping is done in the sender. But IDoc or RFhas no interface as its used for SAP. So where do we need to perform mapping ?

Hi,
You dont need the Data type and message type for IDOC's, RFC's and for external definitions. so u just create one DT,MT for your File structure and you need 2 message interfaces, one for file and one for the Idoc/RFC. You can use them in your mapping program.
Regards,
Kumar.
P.S: Reward Points if Helpful!!!!!!!!!

Similar Messages

  • Message Mapping of IDOC "MATMAS.MATMAS05"

    Hi!
    I would like to execute the following message mapping for  IDoc
    MATMAS05 <--> MATMAS05.
    What are the recommended fields to map?
    Is the a button to automatically map the fields with the same names?
    Thank you very much!
    regards
    Thom

    Hi,
    you could use the button "Map Selected Fields and Substructures if Names Are Identical"
    it's explained here:
    http://help.sap.com/saphelp_nw04/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/frameset.htm
    Or if you do it without a mapping:
    simple IDoc to IDoc scenario with SAP PI
    Regards
    Patrick

  • How to "get" message mapping from XI scenario

    Hi guys!
    Is there a way, how to export message mapping description in some way from PI? In XI 3.0 it was possible, but what about PI 7.0? Hope you understand me:)
    We need it to save this mm description as documentation.
    Thanx a lot!
    Olian

    Hey Oilan,
    with the message mapping open, hold ctrl + shift and right-click in the data-flow editor (the part of the screen where the function boxes and links go).
    a different menu will pop-up. just follow "export tools, export" or something like that. It is pretty straightforward.
    It will save the mapping in a .mte (or something like that) extension file. It is nothing but an XML. Good thing is that you can also import this .mte file in another message mapping (of course, with same source and target messages, or it won't be able to reference the links).
    Regards,
    Henrique.

  • Do we need to create message interfaces for idocs and rfcs thatare imported

    do we need to create message interfaces for idocs and rfcs thatare imported
    from sap server
    in scenarios from sap system to file or vice versa
    i knew that we need not create message types
    do we also skip creating message interfaces

    hi,
    you create an abstract message interface for IDOC only if you want to use
    them in a BPM (integration process)
    for more about IDOCs have a look at my book:
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    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>

  • How-to in Message Mapping?

    Hi,
    XI is getting data from SAP in IDOC's and sending this data to Database.
    Now i want to capture(in XI) how many segments(records) XI has sent to database and map it to a field in database.And i want to send XI creation date&time to DB.
    We not using BPM. Have to do it in message-mapping.
    Any suggestion/help would be helpful
    Thank you
    Navin
    I think I have to write user-defined function (just like we write to get Message-ID), if anybody can tell me how to write user-defined function for the above requirement it would be great.
    Message was edited by: navin kumar

    Hi,
    you can do it with abap mapping for example
    add an abap mapping as a second mapping in your interface mapping and inside this abap mapping
    check how many records does the message contain
    and put it in a normal table (from abap mapping)
    then the next message will just add the number
    and so on...
    later on you can get the number from the table using the abap mapping again
    Regards,
    michal

  • CIDX Standard Message Map to IDoc

    Hi,
    I am looking for CIDX standard message for mapping to SHPMNT05 IDoc. I want to know the standard CIDX standard message and the repository to find such standard messages when Standard IDocs available in SAP are known.
    Regards,
    Suraj Kumar

    Hi Michal and Shabarish,
    Thanks for providing the required information. I am stuck up with a issue which is explained below.
    Sample xml downloaded from http://www.cidx.org/ is different from the required message.
    Sample ShipNotice xml downloaded is as follows....
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ShipNotice>
    - <Header>
    - <ThisDocumentIdentifier>
      <DocumentIdentifier>12345678</DocumentIdentifier>
      </ThisDocumentIdentifier>
    - <ThisDocumentDateTime>
      <DateTime DateTimeQualifier="On">2002-04-01T20:55:13Z</DateTime>
      </ThisDocumentDateTime> ......
    But what is required as per the business scenario is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <PlannedShipment>
       <PlannedShipmentIdentifier>191919</PlannedShipmentIdentifier>
       <ShipDirection>Outbound</ShipDirection>
       <FreightTerms>Pre-Paid</FreightTerms>
       <CarrierSCAC>SEFL</CarrierSCAC>
       <FreightForwarder/>
       <EquipmentType>ODY CODE HERE</EquipmentType>
       <EquipmentNumber>TRL2096</EquipmentNumber>
       <CarrierTrackingNumber>100283534</CarrierTrackingNumber>
       <LoadList>
          <Load>
             <PlannedLoadIdentifier>125656</PlannedLoadIdentifier>
             <TransportationOrderIdentifier>1230987</TransportationOrderIdentifier>
             <Schedule>
                <ScheduledPickupDate timezone="EST">2004-03-19T15:35:00</ScheduledPickupDate>
                <RequestedDeliveryDate timezone="EST">2004-03-22T15:35:00</RequestedDeliveryDate>
                <ScheduledDeliveryDate timezone="EST">2004-03-22T15:35:00</ScheduledDeliveryDate>
             </Schedule>   ..........
    In this case, How should I proceed?
    Kindly help me out.
    Thanks & Regards,
    Suraj Kumar

  • Error in message mapping of IDoC Invoic02

    Hi,
    i have imported the invoic02 idoc into PI system. i have mapped the required field os idoc with standard XSD which is imported through ED. I'm able to most of the fields with idoc and XSD. however, some of the node in xsd are repaeting.
    so here the part of xsd with which i'm mapping.
    (first_node)ListOfTaxSummary                      0..1
    (second_parent_node)TaxSummary                   1..unboubed
    (child_node) tax                                 1..1
    (element)TaxAmount                                0..1
    (element)TaxCategoryCoded                         0..1
    here the i have mapped  ListOfTaxSummary    with the idoc node E1EDS01
    TaxSummary  with E1EDS01
    tax with E1EDS01.
    i tried all possibilities with different mapping. but i'm able to get the tax node under taxsummary with the element. the problem its been repeated as  E1EDS01 idoc repeats.
    please help us in solving this problem.
    Thanks
    Kind regards,
    Lalitkumar.

    Could someone tell me is there any relation for the above error in XML messages and to the message mapping?
    The error mentions that you have used an IDOC in your mapping program which is not found in the ESR....you need to check if the IDOC is present in the ESR and is present under the correct SWCV.
    Once you have done the check do some dummy change to the mapping and activate it (if in DEV) and then check the CACHE.

  • How to monitor message mapping in BPE

    Hello all,
    I use an integration process to do several mapping after each other.
    When I try to check the result of the first mapping in the BPE Log, I get the message "No message available for slection".
    I can open the input message from the Container without any problem. But not the output message.
    For both (Input and Output Message) it shows that there is one message.
    Do I have to increase the trace level of the BPE? How? (Trace level in SXMB_ADM is 3)
    We use 2004s SP12 (new workflow log).
    Any help appreciated.
    Jürgen

    Hi Prabhu,
    Thank you for the reply. I know this document, but it doesn't help.
    As I described, I know how to check a message mapping in BPE.
    But when I try to open the MESSAGE_OUT, as described on page 9
    I get an error message "No message available for this selection".
    Although it shows that there is one message in the table (MESSAGE_OUT <1 Entry>)
    Any other idea?
    BR,
    Jürgen

  • How to test message mapping in XMLSPY if two receive message types exist?

    Hi gurus,
    In our message mapping, we have one send message and two receive messages, the testing is ok in message mapping test tool in ESR. While in XMLSPY, it gave the error because of the reason as follows:
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
    Even after we added those statments, the error was still there.
    How can I resove this problem? Thanks in advance.

    Hi,
    In the source XML message you may find some extra tags being included.
    Just remove those extra tags, then it will work fine.
    For example:
    If your source XML message is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_FileToFile_MultiMap_Src xmlns:ns1="http://FileToFile/MultiMap">
    <Input>
    <Name>ab</Name>
    <EmpId>123</EmpId>
    </Input>
    </ns1:MT_FileToFile_MultiMap_Src>
    </ns0:Message1>
    </ns0:Messages>
    remove the extra tags and then it will look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_FileToFile_MultiMap_Src xmlns:ns0="http://FileToFile/MultiMap">
    <Input>
    <Name>ab</Name>
    <EmpId>123</EmpId>
    </Input>
    </ns0:MT_FileToFile_MultiMap_Src>
    i hope this will help you,
    regards,
    ganesh.

  • How do the Message mapping below issue

    Hi all.
            I am doing interface is Siebel to SAP Customer Creation and Update. While mapping source side Siebel pass the Customer Account Group are Sold to Party, Goods Recipient, Payer and Bill to Party based on these parameters .My Target side we want like Z001, Z002, Z003 and Z004.
    1) If Source side Customer Account Group is Sold to Party then my target side is Z001.
    2) If Source side Customer Account Group is Goods Recipient then my target side is Z002
    3) If Source side Customer Account Group is Payer then my target side is Z003
    4) If Source side Customer Account Group is Bill to Party then my target side is Z004
    So each time source Siebel send one Customer Account Group based on that we want target side as Z001, Z002, Z003, and Z004. So pls help to me <b>how do this issue on message mapping or user defined function (UTF)</b>
          please help me out .....
    Regards,
    Ramesh

    the best way to do it will be via value mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    in this case in future any change comes only your value mapping table needs to be altered unlike editing your UDF.
    Also ref: https://www.sdn.sap.com/irj/sdn/developerareas/xi?rid=/webcontent/uuid/a680445e-0501-0010-1c94-a8c4a60619f8 [original link is broken]
    to get value mapping on SDN TV.

  • How to enable message mapping tools in design integration buldier?

    Hi,
    The message mapping tools like 'Map selected fields and substructures if names are identical', 'Clear mapping', 'Data flow editor', 'Text Preview', 'Dependencies', etc are not enabled in our PI. The version of PI is PI_BASIS 2005_1_700 and the java version installed on PI server is 1.4.2. Is it something to do with compatibility or options to be enabled in some settings? Please help.
    Regards,
    Priyanka S

    Hi Priyanka,
         Uninstall Java 1.4.2 and try to reinstall again it should work.
    Regards,
    Naveen

  • MESSAGE MAPPING FROM SQL TO RFC(BAPI)

    Hello Guys,
    Im just new here in SAP XI version 7.0 . Can anyone teach me how to map objects using IR (design) between sender (data coming from sql 2005) and receiver (using Bapi_Salesorder_Createfromdat2)?
    there are only specific fields i need to transfer the data like the followings :
    do i need to map all fields from sender to receiver?tell me how..
    *ORDER_HEADER_IN
    -DOC_TYPE = ZTRV
    -SALES_ORG =4000
    -DISTR_CHAN =40
    -DIVISION=41
    -SALES_OFF=4101
    -SALES_GRP=411
    -PURCH_NO_C='TEST TPL1' (MUST BE UNIQUE)
    -PMNTTRMS =Z015
    -PURCH_DATE=09/04/2008
    *ORDER_PARTNERS
    -PARTN_ROLE= AG
    -PARTN_NUMB=1100074
    Thanks in advance
    aVaDuDz

    Hi,
    Create :
    1. Source & Target Data Types
    2. Messge Type (for source & target data types)
    3. Two Message Interface for using above message types
    4. One Message mapping using source & target message Type
    5. One Interface mapping.
    In message mapping just map those field which you require. You can leave rest of the fileds un mapped at source which are not required to map.
    Regards,
    Sarvesh

  • Message mapping transformation error for RFC calls

    Hi,
    I am having a weird problem. recently client migrated the server and we started getting all possible errors in XI which we are able to fix. Now we have a strange problem in quality system alone where the bapi calls are made from QA11 and MIGO. The bapi call from MIGO is sucessfull but from QA11 it fails with below error
    com.sap.aii.utilxi.misc.api.BaseRuntimeException
    thrown during application mapping
    com/sap/xi/tf/_MP_RFC_PROXY_GOODS_RECEIPT_:
    RuntimeException in Message-Mapping transformatio~
    I checked in development system and production where it is sucessfull but in quality its failing. I checked the cache and refreshed for confirmation and checked the trace and log files but couldt find any solution. The call made from a test report is also sucesfull but only bapi calls from QA11 are failing.
    Note: i am using same bapi in MIGO and QA11 and the integration is same as well. There is no difference in data between 2 transaction just the trigerring point is differenct.
    I tested my message mapping, interface mapping and configuration as well with sample payload and they are working fine.
    I checked SDN and saw that similar issue is faced by others but no solution is provided.
    Regards,
    Jayaram
    Edited by: JAYARAM MAGANTI on Jun 9, 2009 1:14 PM

    Hi all,
    Has anyone ever faced this issue?
    i tried all the options that i think of and as a last attempt even restarted XI engine though it makes no sense. but still i am having the same issue.
    If anyone had come across similar kindly update the solution
    Jayaram

  • Message Mapping fails because of RFC

    Guys,
    1) I have some messages failed in SXMB_MONI because message mapping for those interfaces was not executed successfully. In trace I can see the following:
    "com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=121.12.2.15 SYSNR=02 GWHOST=121.12.2.15 GWSERV=sapgw02 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner not reached (host ?, service ?) TIME Wed Jul 11 07:20:27 2007 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 COUNTER 1024</Trace>"
    I realize it is a network connection problem, but..
    Any ideas?
    2) Actually, in my mapping programs I have to perform many RFC's to both XI and target/source SAP systems, in order to get some information. The techique that I am using for RFC's is through Java's com.sap.mw.jco.* package. And I connect to systems by giving the IP address, system number, username and password of the systems and then I execute the remote enabled function modules.
    However. when I have many RFC's some of them fail, maybe because the maximum number is reached. And then I have to manually restart them from SXMB_MONI and they are successfully processed.
    Any ideas?

    But you said you call many RFCs inside XI, right?
    The proper way of doing it is not using JCo directly, but using Mapping Lookup API instead. In this way, you won't need to maintain the connection details inside the code, but in the communication channels.
    Check this out: https://help.sap.com/javadocs/NW04S/current/pi/index.html (lookup api).
    There are some code examples within the classes (for example, RfcAcessor).
    I think there is also a SDN documentation by Michal Krawczyk regarding RFC Lookups.
    Just search for it.
    Regards,
    Henrique.

  • XML message mapping considering idoc message variant

    Dear Experts,
    I am very new to PI. I am working on a scenario where I need to map VGON_OUT xml message from SNC system to ORDRSP.ORDERS05 inbound idoc of ECC 6.0 system.
    The issue is :
    In the inbound partner profile in ECC there are two ordersp message types. one with message variant SMI and another without any message variant.
    Both of them are using different process codes for processing.
    So my question is how to map the VGON_out xml message in PI?
    Please note: the key difference is the idoc message variant.
    There is no way to merge both of these message types as their function is serving two different purposes.
    I have attached the xml file and the screenshot of the partner profile here.
    Any suggestion or reference link or document would be deeply appreciated.
    Thanks in advance.
    Praty

    Hi Pratyusa,
    Did you try with different partner profiles for each ORDRSP?
    Regards,
    Krupa

Maybe you are looking for

  • SOLUTION to your HP printer going offline and/or constantly disconnecting from the network

    If you are having a problem printing, scanning or faxing with any HP Printer because of it going offline and constantly disconnecting from the network, here is the fix! I figured this all out after many unsuccessful attempts with HP Support, my Inter

  • ORA-02263 when creating Report on Web Service Result

    Hi, I'm using Application Express 4.2.1.00.08 and I'm having problems creating a report on web service result. This is the tutorial I'm using: http://docs.oracle.com/cd/E14373_01/appdev.32/e13363/web_serv.htm (yes, I realize it's intended primarily f

  • Update problems from 10.7.5 upwards

    Hi, i have an Imac 27inch, Mid 2011. processor: 3.4 GHz intel core i7 memory: 8GB Storage: 2TB Currently on operating system Mac OS x Lion 10.7.5. i have a big issue from where when i try to do a software update it says "software update can't check f

  • Break out of a while loop from outside the loop

    Hello, I have an application where I have some nested while loops. Is it possible to break the innermost loop from a control that is outside of the inner loop? My inner loop is running a scan and read operation on the serial port and is reading data

  • Illustrator freezing my computer/ overworking my fans

    I'm having serious problems with Illustrator (part of Creative Suite 5.5) freezing on me (usually when I try to open a file) and making the fan on my Mac (OS 10.7.5) run hard, (sometimes in the extreme), and often freezing my whole computer. After tw