Two message mapping in one interface mapping

hi,
my scenario is idoc to file and i am using java mapping(not UDF) for some fields as well as graphical for rest of the fields.
I want to add these two mapping program in one interface mapping to generate final target, but the problem is it is not creating final file structure, but when i add only one mapping(either one) it works fine. 
I'm doing this because I have to add value mapping, after the value i get through java mapping or is it possible to use static value mapping within the java mapping itself.
Please help.....

Hi,
In addition to what Moorthy said you first test mapping individually and see if it works fine. While testing you make sure you are giving the right input, I mean if Java mapping comes second you need to give the output XML of the Graphical mapping or vice versa.
Hope in Java mapping is done properly and you are returning the expected structure as output. For example if you are using Java mapping as the first one your ouput should be exaclty like that of source structure with the values filled.
Regards,
Prakash

Similar Messages

  • Two Message Mappings in one Interface Mapping without using BPM

    Hello Experts,
    I have this scenario, please help me
    I have to execute two mappings of which one is a java mapping and then the other is a message mapping sequentially.
    The mapping is something like below
    Message1  -> (java Mapping) -> Message2
    Message2
    Message1 -> (Message Mapping) -> Message3
    Based on the value in Message2 I have to map Message1 to Message3
    I am not an expert in java so please give me options that doesn't involve changing of java code.
    The above 2 mappings have to be implemented in only one interface mapping.
    Suggestions please.

    Hi Ravi!
    You say message2 dependes on message1 and message3 is mapped from message1 but using also values from message2? But this means, that whole mapping dependes only on message1!
    So change your mapping and use the one not based on message2, but message1. Put these as a condition in interface determination and based on these values use the correct mapping.
    Peter
    p.s. I'm not sure, if I got your requirement correctly, but your target message dependes only on message1 (since message2 dependes on it too), so this whole mapping can be done as 1. Unfortunately, you'll probably have to change your java part. Bur definetely, Raj is right.
    Edited by: Peter Jarunek on Feb 20, 2008 5:36 PM

  • Why sometimes we have to use two message( ) to display one message ?

    Sometimes one message( ) function is not working properly ? We have to use two message( ) to display one message ? Why ?

    And just to add a little on what dave said:
    You can also detect which button the user has clicked and do some action accordingly.
    DECLARE
    al_id ALERT;
    al_result NUMBER;
    BEGIN
      al_id := Find_Alert('MESSAGE');
      SET_ALERT_PROPERTY(al_id, ALERT_MESSAGE_TEXT, 'your message here');
      al_result := Show_Alert(al_id);
      IF al_result = ALERT_BUTTON1 THEN
         ...  --do some action.
      END IF;
    END;

  • Message splitting-- Queue stopped when no message created for one interface

    Hi all,
    I think you saw one post regarding this issue in SDN, but I can't find the post any more.
    So, I have message splitting (it's multiple mappings to map one outbound msg to multip inbound msgs, not one mapping to map 1 to n. This is because of our own reason, but should not affect the analysis of the issue) to split one message to multiple. It works fine if the outbound message contains data for every inbound interface. However if the outbound message does NOT contain data for any one inbound message, there is an error in MONI and all subsequently splitted messages will not be passed in IE. The error in MONI says Split mapping created no messages, and Queue status turns to be Queue Stopped, and thus all the subsequently splitted messages are stuck in the queue.
    Why this? and how to solve this problem?
    Thanks
    Jayson

    >
    Jayson wrote:
    > Hi all,
    >
    > I think you saw one post regarding this issue in SDN, but I can't find the post any more.
    >
    > So, I have message splitting (it's multiple mappings to map one outbound msg to multip inbound msgs, not one mapping to map 1 to n. This is because of our own reason, but should not affect the analysis of the issue) to split one message to multiple. It works fine if the outbound message contains data for every inbound interface. However if the outbound message does NOT contain data for any one inbound message, there is an error in MONI and all subsequently splitted messages will not be passed in IE. The error in MONI says Split mapping created no messages, and Queue status turns to be Queue Stopped, and thus all the subsequently splitted messages are stuck in the queue.
    >
    > Why this? and how to solve this problem?
    >
    > Thanks
    > Jayson
    Hi Jyson,
    what i analyse from this is you may be using different maapings and different inbound interfaces
    but your receiver is the same and hence you are using only one interface determination with all the   interface mappings specified there...
    if this is the case..i suggest you remove the "maintain order at runtime "
    tick in that interface detemination and it will surely work
    giving points is another way to say thanks
    Edited by: Tarang Shah on Mar 20, 2009 7:18 PM

  • I get two message threads for one contact. One for sms and one for iMessage since I updated to iOS 7. How can I get them both into one thread?

    Ever since I upgraded to iOS7 just two of my contacts I get two message threads for them. One containing their iMessages to me and the other with just regular sms messages. In Contacs, their email and phone number are saved under one name. How can I get the iMessages and sms to come through under one thread in my messaging app again?

    I am having this trouble also, my partner creates a new message to send to me, or sends a picture and it always comes through as an MMS and not using iMessage ...
    will try deleting everything and starting again!

  • Two Message Servers in one System

    Dear all.
    I learned from http://help.sap.com/saphelp_nw04s/helpdata/en/84/54953fc405330ee10000000a114084/content.htm that one SAP system has one central instance which contains one message server. But our system seems to have two message servers.
    Our system ID is "ABC". When I open the SAP Management Console, there are three children nodes under our system: One blue database icon named "ABC" and two green icons named "ABC 14" and "ABC 31". Under "ABC 14", there are nodes "ABAP WP Table" and "J2EE Processes Table". In addition, there's a "Process List" node here. The processes include "msg_server.exe", "disp+work.exe", and "igswd.exe". Under "ABC 31", there's no "ABAP WP Table" or"J2EE Processes Table". There's only one node "Process List". It contains "msg_server.exe" and "enserver.exe".
    My questions are:
    1. What are "ABC 14" and "ABC 31"?
    2. Does "ABC 14" contains at least two instances? One is for Java and another is for ABAP?
    3. What's the role of "ABC 31"? It seems to only contain enque server and message server.
    4. Why are there two message servers in a single system "ABC"? One is under "ABC 14" and another is under "ABC 31".
    Thanks + Best Regards
    Jerome

    Hi Sunil,
    Thanks a lot for the clarification. Just have a little bit confusion left.
    1. Since there're two message servers, may I say that there are two central instances? Or these message servers belong to a single central instance?
    2. There's no "enserver.exe" in ABAP instance. So is the "enserver.exe" in the JAVA instance also responsible for the ABAP enque and deque operations?
    Thanks + Best Regards
    Jerome

  • Message mapping  response error

    Hi..All,
    i am doing RFC-SOAP scenario, in request message mapping i am giving the values at sender side executed, i am getting the fields at target side, in resonse message mapping giving the all fields at sender side,i executed , but in target side not getting any fields, pls suggest me.
    ****for helpful answers i will give points***********
    thanks in advance,
    Pasi

    Hi
    when you do the RFC to SOAP scenario then you have to craete the two message mapping
    one mapping will be b/w both the request messages
    and other mapping will be b/w the response messages.
    in the interface mapping you select the request message mapping in the request tab and response message mapping in the response tab.
    both the message interfaces outbound as well as inbound interface of the synchronous type.
    if u still face the problem please reply me back
    Thanks
    Rinku

  • One Interface - Two different maps - How to define which mapping to execute

    Hi all,
    I have created a SalesOrderCreate soap interface to BAPI_SALESORDER_CREATE to create SalesOrders on ECC600 from a legacy application. Now I have another legacy app that needs to create SalesOrders, but with some different mapping rules, using the same bapi.
    The first think I thought was to create another soap interface. But the principle of Enterprise Services is to use only one interface for each service (so, I was supposed to use the same soap interface). Then I have one soap interface and two different message mappings to the same BAPI.
    The question is how can I define that when the message comes from legacy "A" the mapping "A" would be executed, and when the message comes from legacy "B", the mapping "B" would be executed.
    Thanks!
    roberti

    Hi,
    >>>> But the principle of Enterprise Services is to use only one interface for each service (so, I was supposed to use the same soap interface).
    the concept of Enterprise Services is as you say
    but in your case it means that you need to use the same mapping... <-- as it's a part of your WS!
    you need to use the same soap interface without any changed inside it
    (in your case inside your mappings)
    if you want to reuse your first interface you can do this:
    - create another soap interface from second legacy to first soap interface
    (there you can use another mapping)
    this way you will reuse your previous work
    this is Enterprise Services concept and not changing
    web service logic (in this case mapping) for every new system
    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>

  • PI Message Mapping One Source to create two of the same Target Nodes.

    Hi,
    I have a source node that contacts the following.
    "1234-5678".
    When there is a "-" in the source node then I need to create two target nodes.
    When there is no "-" in the source node then only create one node.
    Since the source structure is a flat structure by on the target side as you can see I am trying to achieve a diep structure.
    Please can you assist in how to do this with PI message mapping.
    Regards
    Willie Hugo

    Hi,
    "1234-5678" only occurs once in the source. There is no source xml node that will occur more that once. The whole structure only occurs once. But on the target side I need one of the node to occur more than once if a hyphen is found in the source field.
    Source Message                      - Always only one data node.
    ==============
    <root>
    <OnceOnlyNode>1234-5678</OnceOnlyNode>                   [1..1]
    </root>
    Target Message                      - Only two text node when "-" in source, else only one text node.
    =============
    <msg>
    <text>1234</text>
    <text>6789</text>
    </msg>
    How can this be done using standard PI message mapping functions. Can it be done?
    Regards
    Willie Hugo

  • How to do message splitting in a two steps mapping?

    Hi,
    I have the following scenario:
    1. about 200~300 rows of results are returned from the JDBC sender adapter;
    2. The messages need to be mapped to an intermediate message type;
    3. The output messages will then need to go through another step of java mapping to become the target messages to the target interface.
    My question is since my interface mapping consists of two steps of mapping (one message mapping and one java mapping), is it possible to implement the multiple mapping in this scenario to split the 200~300 rows of message into multiple small messages and then go through the java mapping?
    Thanks a lot for your help!
    Regards,
    Fay Tang

    Fay Tang,
    If you need to use multiple mappings with in your Interface mapping, then the XML structure formed by the First mapping program should be similar to XML expected by the second mapping program.
    Regards,
    Jai Shankar

  • Query Regarding Multi-Message Mapping in Interface Mapping.

    Hi All,
    I've a query that can we use Multi-Message Mapping in Interface Mapping if:
    One mapping structure is simple one-2-one mapping and
    Second mapping is calling a stored procedure.
    Please give me some links if the answer is YES.
    Thanks in Advance.
    Regards,
    Sreedhar.
    Edited by: Sreedhar Av on Oct 12, 2009 1:26 PM

    Hi,
    Your question not clear buddy..what i understood is..
    If you want execute multiple message mappings in Interface mapping we can ,just add two mapping programs in interface mapping.first mapping program output is input to the second mapping program.
    If first mapping program is very simple,if you want to execute stored procedure in second level mapping write used defned fun ction to conect to data base or create JDMC receiver communication channel ,cal the communictaion channel in udf.write stored procedure in UDF.
    SEARCH for more info in sdn how to perform DBLOOKUPS.
    regards,
    Raj

  • Interface Mapping VS Message Mapping

    What is the meaning of Interface mapping and Message mapping in real business?
    I think it is something like the difference between the class and object. object is an instance of class.
    While talking about the mapping, there are the source interface and target interface. Can two source intefaces map to only one interface, and what about the vs verse? And how about the message mapping?
    Thanks a lot

    Hi -
    First, an Interface Mapping is not only linked with "Message Mappings" (which is the XI term for a mapping created with the XI graphical tool), but any other XI supported mapping type (e.g. XSLT, Java, or ABAP).  So basically, an Interface Mapping is used to link a source interface to a target interface via a mapping (of any of the supported types).  At runtime, you can't have an interface mapping without a mapping and a mapping without an interface mapping - they need each other.
    <i>>>>Can two source intefaces map to only one interface, and what about the vs verse? And how about the message mapping?</i>
    Yes, the ratio of source to target interfaces are n:m.  In those multiple cases, Multi-Mappings are typically involved as mentioned in the previous post.
    Also, remember that in one interface mapping, you are not limited to one mapping.  More than one mapping (of any type) can execute in the sequence you have set up in the Interface Mapping.  However, watch out for performance in these back-to-back(to-back) mappings.
    Regards,
    Jin

  • Two XSLT maps in one senario.

    Please help me with the senario where I want ot use two XSLT maps in one XI senario. The out put of the first map will be input for the second XSLT map.
    - Rajan

    what you have to do is you have to arrange the message mappings in the interface mapping.
    I have scenraios with 4 consecutive mappings it works fine no issues with that
    Interface Mapping
    Source Msg ---  Mapping1 -
    Target Message
                           Mapping 2
                           Mapping 3

  • Data &message types,message interface, interface&message mapping

    hi
    I am very new to XI, i want to know about
    1) Data Types
    2)Message Types
    3)message interface
    4) interface mapping
    5)message mapping
    i am totally confused with eachother, can you please give me the clear definitions for these things
    regards
    pradeep

    Hi Pradeep,
    A data type is a basic unit for defining the structure of the data for a message type and, as a result, for the message to be exchanged
    ->A data type is a basic unit for defining the structure of the data for a message type and, as a result, for the message to be exchanged.
    A data type is an XML Schema Definition (XSD). This definition determines how the valid payload of a message will look. Data types in XML schema are only an abstract description of a structure that you can assign to elements in an XML schema definition. A message type or a fault message type that references a data type determines the name of the root element of a message.
    Ref link
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    2)Message Types
    A message type comprises a data type that describes the structure of a message. At the following points in SAP Exchange Infrastructure you can refer to the message to be exchanged at runtime by using the message type:
    ·        More than one message interface can use the same message type. For example, an asynchronous outbound message interface and an asynchronous inbound message interface can reference the same message type because the request message does not need to be mapped.
    ·        When defining a message mapping you can directly reference message types to map messages from an outbound interface to messages from a receiver interface.
    3)message interface
    You use a message interface to describe a platform-independent or programming-language-independent interface, which you want to use to exchange messages between application components using SAP Exchange Infrastructure.
    4) interface mapping
    Interface mappings register your mapping program for an interface pair in the Integration Repository.
    5)message mapping
    A message mapping refers to a mapping of messages and is supported by a graphical mapping editor. The editor enables you to design a structure mapping between any two XML structures and connect to a value mapping.
    Follow these Ref Link for all answers...
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Ramesh.

  • PI 7.1 Operation mapping - Multiple message mapping - one to many issue

    Dear Experts,
    I am facing this issue in PI 7.1 and I beleive i did similar one in PI 7.0 successfully.
    I have an operation mapping with two message mappings.
    The occurence of source message of operation mapping is 1
    The occurence of target message of operation mapping is 0..unbounded
    Corresponding i configured two message mappings
    For message mapping-1
    Source message occurence = 1  and Target message occurence = 1
    For message mapping-2
    Source message occurence = 1  and Target message occurence = 0...unbounded
    When i test message mappings individually they are working good. But when i test it in operation mapping, the operation mapping is not working..as it is not able to convert single occurence output of message mapping -1 to the second message mapping-2.
    Any suggestions?
    Thanks.

    The message that i get when testing in operation mapping:
    Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_MessageMapping_1_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:MT_MessageMapping_1_TargetMessageType/RECORDSET. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
    My question is, has somebody mapped similar scenario in your environment? If yes, can you please provide details.
    Operation mapping :  1 to 0..unbounded
    Message Mapping1: 1 to 1
    Message Mapping2: 1 to 0...unbounded

Maybe you are looking for

  • Interactive Report and DISTINCT keyword problem

    Hi, I am having a strange problem The following query works fine in SQL Developer and return ONLY 202 records. SELECT distinct "ATT_WARNINGS"."ID", "ATT_WARNINGS"."WARNING_NUM", "ATT_WARNINGS"."ISSUED", "ATT_WARNINGS"."ISSUED_DATE", "ATT_WARNINGS"."S

  • Basic qns on Business Objects

    Hi Experts, I'm new to CRM & ERP thus my question might seem rudimentary to you guys. But that means easy pts to score as well! Business partners and products are types of Business Objects. THe list of B.O. types can be found in SWO1correct? Where (w

  • Service to the customer

    Hi we make the interventions preventative maintenance and cure for our clients to maintain our machines at work eux.on invoice to the customer that we rembourse.on follows the work done, but the problem is that I do not know how to follow on SAP Part

  • Search in google sometimes yields click (GIF Image,1x1 pixels) cusing the browser to fail

    search for Verizon using Google and trying to select a www.verizon.com websire yeilds a page identified as click (GIF Image,1x1 pixels) and no other display is made and blocks any page reference

  • How can I permanently disable Color Correction & Premultiplying of Alphas?

    How can I disable these destructive and needless features in Quartz Composer's (using an image splitter to combine it with automator, so that little checkbox is not there) & Preview? I cannot have these features with the images I'm manipulating, and