In XI Mapping multiple fields mapping to single target field.

Hi Friends,
In XI Mapping multiple fields mapping to single target field.
For example my requirement is :
Source Fields:(This RFC BAPI Structure)
Empno                0-1
EmpName           0-1
Address             0-1
Taget Field is:
Details               0-1
The above three fields passed to the Details Field. Here i am using Concat function
But i have one query on that on,Every field having "line Break" required.
Can you please help me out above this requirement.
Thanks in Advance,
Sateesh N.

If you want a line break between the three fields, then try
passing a,b,c to the udf and in the udf you would have
return a+"\n"+b+"\n"+c;

Similar Messages

  • Send Multiple field values to Single Target field in Message Mapping

    Hi,
    My  Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping.
    We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    Is there any way to simplify this requirement or we can use any UDF for this,kindly suggest.
    Regards,
    Madhu

    >>>We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    I don't think it's complex but  just that it occupies more mapping area
    Just write a simple UDF - a one line code and pass all your input variables.
    return var1+var2+var3+var4+...+var15;

  • Issue-Mapping Multiple Source Occurence to Single Target Occurence

    Hi Gurus,
    I have a requirement where the source has occurence 0 to 4 where as the target has occurence 1 to 1 .
    Let the source segment be S where the child elements for S are S1 and S2 .
    S1 takes the values 1 , 2 & 3 .
    S2 takes the values X , Y & Z .
    I need to map S2 to target field T1 if and only if S1 has the value "2" .
    How can we achieve this ? I tried using the node functions but couldn't achive as i want the 2nd value of S2 from the given set of values ( X , Y & Z ) .
    Please help me out in this issue.
    Thanks in advance .
    Regards,
    Sarat

    Hi,
    You can use this mapping:
    S1 --> removeContext --> equalsS --> ifWithoutElse --> removeContext (used to remove suppressed values) --> T1
    constant: 2 -
    > / ____________/
    S2 > removeContext--
    > /
    Hope this helps,
    Edited by: Mark Dihiansan on Nov 11, 2009 1:44 PM

  • How to map multiple source structures to single target structure

    Hi all,
    I have the scenario of 2 input files so i am using BPM for it. I have created the message types of the 3 input files. I have to finally generate an XML file which will contain the data of all the 2 files. That is i have to do 3:1 mapping.
    Source Structure of File 1:
    <b>DT_PWC_Customer</b>
    <i>RECORDSET</i>
      <u>CUSTOMER</u>
       <i><b>REF_NO</b></i>
       <i><b>CUSTOMER_NO</b></i>
    Source Structure of File 2:
    <b>DT_PWC_Customer</b>
    <i>RECORDSET</i>
      <u>METER</u>
       <i><b>REF_NO
       METER_NO</b></i>
    Target Structure of Final Output File:
    <b>DT_PWC_CustomerMeterData</b>
    <i>RECORDSET</i>
      <u>CUSTOMER_METER</u>
       <i><b>REF_NO
       CUSTOMER_NO
       METER_NO</b></i>
    Above nodes i have shown in a heirarchical order..nodes with same indentation are at same level.
    Can anybody tell me how to do this mapping in IR in graphical editor.
    RAJEEV GUPTA

    Hi,
    To elaborate my requirement, I want to tell that since i will be having 2 input files- one for Customer & one for Meter. I want to finally generate one XML file which will have data from both these 2 input files. That is, if Customer file has 3 records(3 REF_NO, 3 CUSTOMER_NO) and Meter file has 4 records(4 REF_NO, 4 METER_NO), the final output XML file  will   have 7 records(7 REF_NO, 3 CUSTOMER_NO,4 METER_NO).
    Thanks,
    Rajeev Gupta

  • Mapping Issue. Parsing problem to target Fields based on condition.

    Hi All,
    File to Idoc scenario.
    My file looks like below.
    HD 89650 28/01/11 "Presciber tan"
    AF "disc-rsn"
    RK "007287001" A
    KE disc-code "007287"
    KE addr-num "001"
    DF fax-num ""
    DF in-out "I"
    DF phone-2 "23221"
    AF "drs"
    RK "007287" A
    KE dr-num "00221"
    KE addr-num "001"
    DF affil "OPSM"
    DF rec-stat "A"
    DF phone-2 "12444"
    AF "disc-rsn"
    RK "dr-addraddress-1 17287|1EN" A
    KE disc-code "008287"
    KE field-name "address-1"
    KE element " 1"
    DF in-out "I"
    DF phone-2 "1232"
    DF post-code "3109"
    DF provider-num "5349201J"
    DF rec-stat "A"
    T         24
    I need to capture and create target segments only for the values "AF "disc-rsn"".And pass all the relavant rows (RK,KE,DF...) which are under "AF "disc-rsn"" to the target fields.
    I'm struggling to parse the value to the output structure as RK,KE,DF will be present under anywhere like "AF drs", "AF disc-rsn" etc.
    I'm able to create the target segments (2 Zdisc segments as 2 "AF disc-rsn" present in the file), but unable to parse the field values to the target fields.
    Ex: DF phone-2 is present in 8th, 15th,22nd row. I need to pass only 8th and 22nd rows to the target fields.
    After content conversion, My Source XML looks like below.
    <?xml version="1.0" encoding="utf-8" ?>
    - <MT_DiscountDetails>
    - <HD>
      <KeyField>HD</KeyField>
      <HDRow>89650 28/01/11 "Presciber tan"</HDRow>
      </HD>
    - <AF>
      <KeyField>AF</KeyField>
      <AFRow>"disc-rsn"</AFRow>
      </AF>
    - <RK>
      <KeyField>RK</KeyField>
      <RKRow>"007287001" A</RKRow>
      </RK>
    - <KE>
      <KeyField>KE</KeyField>
      <KERow>disc-code "007287"</KERow>
      </KE>
    - <KE>
      <KeyField>KE</KeyField>
      <KERow>addr-num "001"</KERow>
      </KE>
    - <DF>
      <KeyField>DF</KeyField>
      <DFRow>fax-num ""</DFRow>
      </DF>
    - <DF>
      <KeyField>DF</KeyField>
      <DFRow>in-out "I"</DFRow>
      </DF>
    - <DF>
    Is there any way I can acheive my  mapping based on the above condition?? Kindly suggest me.
    Thank you for your time.
    Regards
    Deepthi

    Not required. Using Java function. Solved the issue.

  • Mapping Multiple Source fields to Single Target Fields with differnt Values

    Hello Friends,
    I am having a senario  where I have to mapped multiple fileds from source str. to same Idoc Fields with ( differnt default values )
    E.g Source Str.
    - ShopNO
    - OrderTyp
    Has to mapped to Idoc Str E1EDK14-Orgid.
    E.g Mapping:
    So when ShopNo will mapped to E1EDK14-Orgid the default value should be "MOP" & E1EDK14-Qualf should be 019
    and when OrderType will be mapped to E1EDK14-Orgid the default value should be "STD" & E1EDK14-Qualf should be 012
    So I tried of using node "UseOneAsMany".....but there I cant define the vaule of field orgid, and seconly how to specify the values of field Qualf?
    Do i need to write my own specify function ? or I can sovle this issue using standard avaiable functions ?
    Regards,

    Hi Ravi,
    Thanks for your reply....
    I am facing following problem... when I try to duplicate the segment and do mapping....... and then when I save, I got following error msg:
    The source or target structure has been changed or could not be found in the Integration Repository. The mapping definition contains elements or attributes that do not exist in the changed structure. The relevant entries will be deleted
    Target structure has no such path: /ZARVO_ORD/IDOC/E1EDK05[1]/KSCHL. Skipping mapping
    Target structure has no such path: /ZARVO_ORD/IDOC/E1EDK05[1]/KRATE. Skipping mapping
    Any suggestion ?
    in other words, when I do duplicate it creates me the segment, but when I save it, it gets disappered .........
    Regards,
    Edited by: Shah H on Oct 26, 2009 3:17 PM

  • Multiple source values to single target in value mapping

    Hi Experts,
    I have to acheive below thing using value mapping.
    Source                        Target
    ABC                            111
    CBA                            111
    XYZ                             222
    ZYX                             222
    When I am trying to do this in ID, It is not allowing me.
    Is there a way to do this?
    Regards,
    Prasad

    Source            Target
      ABC               111
      CBA               111
      XYZ               222
      ZYX               222
    For the above source and target you have to create 2 value mapping groups.
    In more detail I want to say is,
    1. Just create your value mapping by using Source & target Agency & Schema.
    2. Create your first value mapping group which will return the traget value as '111'.
    3. Create your second value mapping group within the same  Agency & Schema which will return you '222'.
    While creating it If get any warning just ignore it..
    Note: You can add multiple value mapping groups if you have different outputs for different sources.
    Regards,
    Sarvesh

  • 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

  • Mapping multiple source value to one target value in value mapping

    Hello experts,
    In my scenario, i need to map more than one source value to one target value in value mapping. Like:
    1        TenderPickup
    2        TenderLoan
    7        TenderPickup
    101     TenderPickup
    102     TenderLoan
    107     TenderPickup
    But when I enter the same target value for the second time and try to save it, it gives me an error saying value mapping already exists.
    But this should logically be allowed. How can this be done. Please provide a solution.
    Thanks,
    Yash

    Hi Prabhu,
    When i right click on the target field, it gives me only 3 options:
    1) Insert Row
    2) Delete Value Mapping
    3) Value Mapping in all agencies
    I dont see nay option for duplicating rows.
    What I hae done is in ID i clicked on TOOLS and then VALUE MAPPING. I checked the option "Value Mapping Agencies" and gave my source and target agencies detials. Then i clicked on DISPLY and in the next page I have 3 columns - Value for <source agency>, Value for <target agency> and Group name.
    When I give duplicate values in the column Vlaue for <target agency>, it doesnt allow me to and if i right click in this column, i get the above mentioend options.
    Please point out where i m going wrong.
    Thanks,
    Yash

  • Answer and Title for 'Other' field in a single choice field is not shown

    The answer for 'Other' in a single choice field is not shown in email answer and 'Other' title not shown in FormsCentral answer.
    I can send examples if that helps.

    Hi Cathy-1961,
    Thanks for using FormsCentral.
    We are looking into the issues that you reported.  I'll let you know when we address the issues.
    Kind Regards,
    Perry

  • XML Gateway - XGM Mapping - Multiple NOTES Mapping

    Hi
    One of our Inbound transaction having Multiple NOTES. They are coming like below
    <NOTES index="1">PM~#*$PART DESCRIPTION7050-T76511</NOTES>
    <NOTES index="2">CR~#*$FOLLOW-UP COMMENTSMGE16424 17P6W6530-532</NOTES>
    <NOTES index="3">H7~#*$ITEM PURCHASE CLAUSES- GENERAL TERMS </NOTES>
    And notes count is not fixed. They may be starting from 1 to 99.
    As per user requirement they are maximum 5. I want to map these Note values to ATTRIBUTE 1 to 5 field columns.
    When I mapped these columns on condition based like this
    When index = 1 then map to attribute1
    When Index = 2 then Map to Attribute2
    ......like upto Attribute5
    But mapping is only considering last NOTES and populating only last Index NOTES.
    For example: If incoming Inbound having only 3 notes then ATTRIBUTE3 is only getting value remaining ATTRIBUTE1 AND ATTRIBUTE2 is not getting populated.
    How can get values for other ATTRIBUTES also.
    Regards
    Kiran Akkiraju

    Hi
    How can we Map?
    Regards
    Kiran Akkiraju

  • Multiple database fields in a single text field

    hii all
    i am trying to do the follwing
    i have in my database city ,state adn zip
    I want to display them in one field of my tablular form ie the field will have a prompt
    prompt :- City ,State and Zip
    and in the field i will have the corresponding database values for the 3 seperated by commas
    how can i do it ??
    plzz help
    mandar

    Hello,
    Create a non-based item, then populate it with concat in a POST-QUERY trigger.
    Francois

  • Multiple Formats within a Single Form Field

    I really could use some help with this one...
    In a fairly simple pdf form I've created I need a field that handle text and currency formatting....within the same field.  Is this possible?  If so, can you provide the code for this situation?
    Thanks!

    If you have the freedom to change the design/layout, I'd suggest adding a check box to indicate N/A. You can set up the check box to clear the amount field and make it read-only.
    If that's not going to happen, what you want to do is possible, assuming that if the value of the field is a valid number then format it with that currency format, and nothing otherwise. This will require a custom format script. Post again if you really want to go with this approach.

  • LSMW & IDOC - Multiple Constants in the Same Target Field

    Hi,
    I'm trying to create sales orders by using the IDOC ORDERS05 starting from a LSMW.
    The only problem we have right now is that all Org Data in the IDOC is stored in a structure [E1EDK14  IDoc: Document Header Organizational Data] that contains two fields and need to be duplicated with different values.
    I've been able to load from file with a Source Structure Hierarchy but since the 3 entries I want to make are always the same for all Sales Orders, I was wondering if I could do it within LSMW without the need to have data in a external file.
    So Basically, I need for every header these 3 entries :
    Structure E1EDK14
    QUALF - IDOC Qualifier | ORGID - IDOC Organization
    008 | 0010
    006 | 99
    007 | 99
    Is there any way of doing this without development ?
    Thanks in advance !

    Yes you're right, I found it :
    Put this in the __END_OF_RECORD__  section.
    *Sales Organization
    E1EDK14-QUALF = '008'.
    E1EDK14-ORGID = '6720'.
    transfer_record.
    *Sales Division
    E1EDK14-QUALF = '006'.
    E1EDK14-ORGID = '99'.
    transfer_record.
    *Distribution Channel
    E1EDK14-QUALF = '0007'.
    E1EDK14-ORGID = '99'.
    transfer_record.

  • Encode Bytecode in source field to base64 in target field

    Hello,
    I have already posted a similar question regarding base64 encoding of attachment. However now the bytecode is sent in a single field in the source message. This bytecode has to be encoded in base64.
    So far I have not found any solution to do so. I have read about the following API com.sap.aii.utilxi.base64.api.Base64  which should contain two static methods for encoding end decoding.
    However the package cannot be found when trying to import it into an UDF. As this API is not documented, could it be that it is not available anymore on PI 7.1?
    What other possibilites do I have? Do you have any idea? I
    Thank you very much!

    Hi Florian,
    com.sap.aii.utilxi.base64.api.Base64 is no official API, so there is no official documentation on this. Also, if you use this, there can be a possibility that changes might occur in this class without any notice.
    This class has two static methods:
    String encode(byte[]) // binary -> base64
    byte[] decode(String) // base64 -> binary
    Try looking for this class in aii_utilxi_misc.jar, which can be found on PI server - C:\usr\sap\*\*\j2ee\cluster\server0\bin\ext\com.sap.xi.util.misc
    Hope this helps.
    Regards,
    Neetesh

Maybe you are looking for

  • Horrible experience with HP Envy recovery image - Support Feedback

    I've recently had a horrible experience trying to get an HP sleekbook to run an af initial recover reimage. Most of this was because of HP support and them treating me like a criminal. I purchased the laptop at the start of this week and the only thi

  • How can I pop up a Color Selection table?

    When I click on a color box control in the front panel,it will pop up a color selction table.My question is how can I control the pop up of the color selection table in the diagram?for example,if a boolean control is clicked then I want to pop up the

  • Need for Invoice Table

    What are the tables are included for return delivery(T-Code - MIGO)? In that, particularly Invioce of purchase order has Tax code, after click the taxes button it displays condition types, amount and condition value. I need the table name for these t

  • Defining a Logical System

    I'm trying to follow the Best Practices note, "B84: BI Connectivity" for SAP BW 7.0 dated August, 2007. On the second step, 1.2, "Defining a Logical System", I reach the second sub-step, clicking "Define Logical System". After the harmless warning, "

  • Scaling with scale9Grid

    scaling with scale9Grid Hey guys, I'm having more of a math problem than an AS problem ... I have a moiveclip which contains a movie clip of a rectangle picture frame image which is scale9grid enabled (i have the grid staring at the inner corners) an