Help needed in message mapping

Hi,
We have a Flat file message coming in with the structure mentioned below: The segments *Record, ItemData1 and ItemData2* are flat structures of the *Recordset*.
Recordset - Occurs 1
-- Record    - Occurs N
-- ItemData1 - Occurs N
-- ItemData2 - Occurs N
Ex:
Recordset
--REC1
--IDATA1R11
--IDATA1R12
--IDATA1R13
--IDATA2R11
--IDATA2R12
--IDATA2R13
--REC2
--IDATA1R21
--IDATA1R22
--IDATA2R21
--IDATA2R22
This needs to be mapped to a nested structure mentioned below. The *Itemdata1 and Itemdata2* segments are part of *Record*
Recordset - Occurs 1.
-- Record  - Occurs N
ItemData1 - Occurs N
ItemData2 - Occurs N
Ex:
--REC1
IDATA1R11
IDATA1R12
IDATA1R13
IDATA2R11
IDATA2R12
IDATA2R13
--REC2
IDATA1R21
IDATA1R22
IDATA2R21
IDATA2R22
The problem we have is we donot have a key linking the ItemData1 and ItemData2 with the Record and we need to fillup the nested structure based on the values coming .
Any idea how we can achive this.
Regards,
Arunava

Hi Arunava,
If you dont have any key field in ItemData1 and ItemData2 in the incoming flat file, then you have to insert a keyfield in both the ItemData1 ,ItemData2 .
For this ,you need to use ItemData1.keyFieldValue and ItemData2.keyFieldValue in your FCC parameters.
Also, need to mention the keyFieldName in both ItemData1 ,ItemData2.(ex:ItemData1.fieldNames).
Hope the below blog would help you.
/people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
Regards,
Swetha.

Similar Messages

  • A little help needed in message mapping

    a little help needed in message mapping
    I have to map one of the idoc header segments as many times as it occurs to each Idoc when using the split message funcionality
    let us say we have the segment seg1 and there is a QUALF in it
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    then we use the vbeln to split the idoc into 2.
    so if we have
    <vbeln> 1 </vbeln>
    and
    <vbeln>2 </vbeln>
    then 2 Idocs should be created like this
    <Idoc>
    <vbeln> 1 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    <Idoc>
    <vbeln> 2 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    it is easy to create the segment by using createif with the QUALF field but my problem how to map the qualf twice for each idoc
    Thanks.

    UseOneAsMany is the function you need to use.
    It takes three parameters:
    1 --- The node you want to duplicated
    2 --- How many times you want to duplicated
    3 --- The context you want to place for it.
    Regards
    Liang

  • Help Need in Graphical Mapping.

    Hi
    Can you do help for mapping between my file structure to BAPI structure..this is auctully  file would call BAPI for 1: N(file having various headers and line items, each header and associated line items would able to call BAPI in target side).
    Now i am just trying to do test using following map...but following error came when i am checking in IM. But when i am doing test this map in MM editor using Duplicate subtree it is working fine.
    <b>ERROR: Mapping program Message Mapping MM_request | urn:testing does not match the interface mapping. The number or frequencies of source or target messages for the message mapping are not identical to the number or frequencies of source or target interfaces.</b>
    I thought some where i made wrong..!but it is difficult to find out for me! i dint find any wrong in my mapping.
    map like this:
    Sourcefilestructure:       TargetBAPI
    Messages (1:1)            Message(1:1)
    Message1(1:1)             Message1(1:1)
      MT_Request(1:1)  
       Recordset(0:U) -->     BAPI_INCOMINGINVOICE(0:U)
        HDR   (0:1)            HeaderData(1:1)
         Filed(0:1)   -->       filed1(0:1)
         Field(0:1)   -->       field2(0:2)  
                    HDR--->   GLACCOUNTDATA(0:1)
         LINEITEM(0:U)--->      item(0:U)    
           field1(0:1) --->       field(0:1)
           field2(0:1) --->       field2(0:1)
    Thanks,
    Regards
    Sankar!
    Message was edited by: Sankar

    Hi,
    You have this error message when inside your Interface Mapping you uses occurences which are NOT these one defined in your Message Mapping.
    In your Message Mapping, look at tab "Message" and keep in mind the occurence.
    Then in your Interface Mapping, do the same action and compare both occurence.
    Mickael
    Message was edited by: Mickael Huchet

  • Help me on message mapping

    Hello,
    Plzz help me how do i map if below condition arise.
    REFAJ123
    REFCD432
    here REF is Record  with 2 fields 1)REF01  2)REF02
    I want to  mapping this REF record to output side record. 
    Query is:   If REF01 field is AJ then i need to map REF02 field(123)  is to be map output side field. else ignore that record.
    Output,
    I need only value of 123 beacause( REF01 has value AJ) i dont want below REF data in Output.
    Thanks,
    Singh.

    Ok fine,
    Spend 5 more minutes for this.
    In input file i am getting REF record 3 times.
    i.e. REFCR!23
    REFAJ234
    REFDF345
    IN output side Record has 2 field REC1 and REC2
    I need output in Record REC1 has value = AJ
    REC2 has value = 234.
    I dont want to display 1 and 3 REF records in output.
    Now in the same UDF do these things.
    1. Change the code in UDF as
    for(int i=0;i<REF01.length;i++)
    if(REF01<i>.equals("AJ"))
    result.addValue(REF02<i>);
    2.in mapping change the context of REF01 and REF02 to message type.(top of records)
    Right click on the REF01 and change the context on editor... same for REF02.
    3.Now when mapping to Record, i.e
    IN output side Record has 2 field REC1 and REC2
    take REF01 and REF02 as input to UDF and out put of UDF to the Record(Target node)
    Note:change context of REF01 and REF02 to message type.
    2.When map to REC2...
    take REF01 and REF02 as input to UDF and out put of UDF to the REC1(Target Element)
    Note:Change the context here also as above.
    3.When map to REC1
    take REF01 and a REF01 as input to UDF and out put of UDF to the REC2(Target Element)
    Note:Change the context here also as above.
    Yes u r correct: when u r mapping to REC2.. u r giving REF01 as both inputs... it's just a work around.
    Now Test the mapping..
    This should work....
    If still prblm do post..
    Babu

  • Help Needed in Message Driven Beans

    Hi,
    I am using JMS and MDB for an asynchronuous communication. I configured the JMS on Sun App server successfully. But I am getting a error message for JNDI Naming. It is not able to find the MDB bean in the JNDI. So it is throwing a NameNotFoundException. Can anybody help me out here. What do I need to put in the Web.xml and Sun-web.xml for getting the reference from JNDI. Please help. My session and Entity beans are working fine. Only having problem in MDB.
    Thanks
    Amit

    Just want to get the terminology straight. I assume you mean you have a web component that wants to produce a JMS message that is consumed by a message-driven bean? In that case, what you want to focus on is the name of the queue/topic that will be used. It's not that you're looking up a "message-driven bean" from your client component. You'll need to look up a queue/topic. That same queue/topic will need to be associated with the message-driven bean so that it consumes from the right place.
    To set up the client-side configuration, create a resource-env-ref in your web.xml. Then, in the sun-web.xml, map the resource-env-ref to the global JNDI name of the queue/topic JMS resource you created using the admin tools. Your client code will do a lookup under the java:comp/env namespace for the resource-env-ref.
    Refer to the JMS portion of the J2EE tutorial for more information :
    java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    Kenneth Saks
    J2EE SDK Team
    SUN Microsystems

  • Help needed in Message Control - very urgent

    Hi Experts,
    I have one requirement where in the customer wants to stop creation of IDOC which posts Invoice using message control and message control status should be changed to RED color and also the message should be populated in the processing log saying 'IDOC processing failed, External customer numbers not maintained'.
    Could you please let me know any user exits or customer exits available for this purpose.
    I have searched all the possibilities.
    I have chanked the program RSNAST00 which picks up the data from table NAST and looks into table TNAPR to get the processing porgram for th selected output and also this program checks the partner profile and gets the process code which creates an inoice IDOC. I searched for user exits and customer exits to popolate the required messages and stop IDOC creation.
    I am an ABAPER and i know i need to write code to do validation, but could not find the exact place where to write? I any ABAPERS looking at this post, please reply me.
    Can anyone please advise me how to go about solving this issue?
    Thanks
    Srinath

    Hi,
       I am sending the requirement.
      Please send me the solution.
    Requirements:
    1.     EDI Invoice requires populating bottle UPC number not case UPC in IDOC and also populates customer PO number when invoice billing type is a credit.  These changes need to be reflected on EDI invoice (Idoc INVOIC02).
    Investigation:
    Requirement 1. EDI invoices are populating segment E1EDP19 qualifier 003 based on the unit of measure in the line item.  If shipment unit is CSE then it populates CSE upc, if shipment unit is EA then it populates Bottle UPC. 
    a.     It was found that the UPC populated on the EDI invoice was being read from material master – Additional data tab.  (Field SMEINH-EAN11).  For the EDI invoice, the customers expect the bottle UPC on this column.
    Requirement 2.  Need to always populate Segment E1EDK02 Qualifier 001 (customer PO) on the INVOIC02 idoc.  Standard SAP populates this information only when the billing type is F2 (regular invoice) and if the customer PO was entered in the Sales Order.
                                a) Premier requires this information to be populated in the idoc if the billing type is G2, RE, L2 also.
    Solution:
    Requirement 1.
           IDOC_OUTPUT_INVOIC function module needs to be changed to always populate the UPC number for the bottle UPC in segment E1EDP19 qualifier 003, field IDTNR.  This number is found on the material master – Basic data 1 view.  Field name is MARA-EAN11.   Please see screenshot of where in the material master to find the bottle UPC. 
         a. This change applies to all billing types (F2, G2, L2, RE etc).
           Requirement 2.
                 Change IDOC_OUTPUT_INVOIC function module to always populate customer PO information in Segment E1EDK02 qualifier 001, field BELNR.
    If billing type is equal to G2, L2, RE and VBRK-XBLNR not equal blanks then make BELNR = VBRK-XBLNR.
    Segment:  E1EDK02
                                  Field:  QUAL = 001
                                  Field:  BELNR = VBRK-XBLNR
    Please help me how to move a step ahead.
    Waiting for your immediate response.
    Thanks,
    Chandra.

  • Help Needed Regarding Messaging URGENT

    hello everyone, i am new to this discussion ...can any one help me? i want a nokia handset with the message memory of 20 thousand sms.... because i recieve lots of messages and i dont want to delete them.. kindly help me out...
    thanks
    regards
    UNIMAN

    Keeping so many messages is going to cause a phone to be very slow and potentially unstable whilst using the messaging app.
    The only nokia's that have a chance of doing it are recent smartphones like the N82, N95, N78, N79, N85, N96, E51, E63, E66, E71 & E90. You will need to set the phone to store the messages on a memory card, not the phone memory.
    The only limitation I can see is that you are limited to 999 for the number of sent messages that you can keep. Received is unlimited if you have a lot of free space from what i've seen.
    The most sensible option would be to transfer your messages to a PC for permanent storage & archiving.

  • 6110 Help needed for new maps!

    Hello,
    I have a 6110 Nav with pre-loaded, maps of Greece and the Balkans on the supplied 512mb card, but I need maps of Italy, France, Germany, UK as well. Is there a package you would recommend I download from Nokia or Route66 for this need? How do I do this??
    Also, I have a new 1 Gig MicroSD card, will I need a bigger one?
    Lastly, Will I still be able to use my maps for Greece and Balkans if I download additional maps?
    Thank you in advance,
    Jasvox

    it IS true. the maps are there. install route 66 sync software (delivered with your mobile phone on a dvd), it will ask for an update, install that, select in the route 66 sync software "r66 store", select maps, go to europe, and there you get the "Western Europe" map (costs 99,99 euro, 1,64gb, withouth nordics!) or "Western Europe with Nordics (also costs of 99,99euro, 1,78gb, with nordics). so better get with nordics. you will need at least 2gb card anyway...
    but currently route 66 got problems, as they did not link the maps correctly last friday. the "Western Europe with Nordics" is in fact the map without nordics (1,64gb, download interrupted at 92-94%), not clear yet what the map "Western Europe (without nordics)" really is.
    as western europe with or without nordics does NOT include greece and baltics, you may also need to get that map, or it may work with your old map together (therefore, i guess you need a card larger than 2gb, or you get western europe without nordics, i do not know the size of the greece/baltics map). but that may fit on a 2 gb card. cards of size up to 8gb are supported (and more)
    anyway, to make those maps work, you need to update your mobile phone to firmware 4.22.
    guess route66 will fix those wrong linked maps soon.
    Message Edited by laxlex on 04-Feb-2008 10:11 AM

  • Help needed ! Message sending failure in Nokia N73

    HI I am using nokia n73 for almost 2 years,
    From last one week i am unable to send messages, as soon as i send a message, in the outbox it changes to resend and when i resend it and after four times it moves to failed state.
    I have tried the sim in different mobile and messages are working fine, there are no issues with the n/w provider. I have formatted the memory card, phone and even then my problem still persists.
    Can anyone please help me .

    Though you have mentioned that you have formatted the phone.. did you restore the data back ? Why the question ..because if that is the case and if you have a very large no. of messages stored in the phone.. then delete as many as possible to see if that makes any difference..

  • Help needed in XSLT MAPPING with RFC function module

    null
    Edited by: Ram Kishore on Sep 25, 2009 1:09 PM
    Edited by: Ram Kishore on Sep 25, 2009 1:10 PM

    Hi Arunava,
    If you dont have any key field in ItemData1 and ItemData2 in the incoming flat file, then you have to insert a keyfield in both the ItemData1 ,ItemData2 .
    For this ,you need to use ItemData1.keyFieldValue and ItemData2.keyFieldValue in your FCC parameters.
    Also, need to mention the keyFieldName in both ItemData1 ,ItemData2.(ex:ItemData1.fieldNames).
    Hope the below blog would help you.
    /people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
    Regards,
    Swetha.

  • Help needed with message received from BAPI_BUPA_FS_CREATE_FROM_DATA2

    Hi experts,
    I'm creating Business Partners(type Organisation) using BAPI_BUPA_FS_CREATE_FROM_DATA2, however, I receive an error message from the BAPI return table that I don't understand. The message is "Data set BUT100 for BP 0000000108 maintained time-dependently,despite inact.time dep."..... can anyone help please?
    Thanks in advance,
    Chris

    Implement note
    Note 1691224 - HRALX: Error message R11 349 when creating BP for org.unit

  • Help needed for Graphical mapping.Tag only once produces

    Hello experts,
    I have a problem in my graphical mapping.This is the example:
    from each segment A in IDOC has to be made Tag A or Tag B in output XML.
    Segment A has a field USER_STATUS and if it is X than Tag B has to be made otherwise Tag A.
    Segment A is 0..9999999. occurence
    Tag A  0..unbounded
    Tag B 0..unbounded.
    I made a mapping
    mapping for Tag A:
    USER_STATUS -> mapwith default(empty)->length->EqualsA (with Constant =0)-> createif->Tag A
    for Tag B as following:
    USER_STATUS -> mapwith default(empty)->EqualsS (with Constant =X)-> createif->Tag B
    The problem is that in output XML, I have only one Tag A or B (depending on field USER_STATUS in first occurence of the segment) while in inbound IDOC 5 segments are with different value of the field: USER_STATUS.
    Does anyone idea to solve this problem!
    Thank you very much for your effort.
    King regards,
    Danijela Zivanovic

    HI,
    CAn you try this way,
    Use Maping Node UseOneAsMany for Tag B
    and pass 3 inputs as
    Constant[]----
    >
    USER_STATUS -> mapwith default(empty)->EqualsS (with Constant =X)----
    >
    USER_STATUS -> mapwith default(empty)->EqualsS (with Constant =X)----
    >
    Same way try for Tag A also.
    Thanks
    Swarup

  • Urgent help needed: RFC messages from R3 system are not arriving to the XI

    Hello,
    We have a RFC to RFC scenario in which when we execute a function module it sends a message to XI through a sender RFC communication channel but the message is not coming to XI.
    I checked the TCP IP connection between R3 and XI the test connection is working fine.
    This scenario was working fine so far but since yesterday we are facing this problem.

    Hi Rajeev,
    in r/3 in transaction sm58 see the entries and see what error is happening to your RFC entries.
    in XI in RWB in comm channel monitoring, just check your sender RFC adapter......i think your sender rfc comm channel is in error.........rectify this comm chnnel error in ID...........save and activate everything..............then from r/3 reexucute your SM58 entry for RFC.
    Regards,
    Rajeev Gupta

  • Help needed with message: "Exception creating new Poolable object"

    In r12.1.3 EBS users occasionally instead of getting the login screen will see the following message *"Unable to generate forwarding URL. Exception: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object"* Restarting the applications usually resolves the issue but it happens so infrequently that we've been unable to diagnose the problem or recreate the problem at will.
    Any assistance would be greatly be appreciated in diagnosing the problem.
    We've logged an SR with Oracle Support and they recommended turning on OC4J Debugging which they advised would create large log files. Since we can replicate this issue at will we would like to avoid turning on debugging and creating the large log files.

    user6035136 wrote:
    In r12.1.3 EBS users occasionally instead of getting the login screen will see the following message *"Unable to generate forwarding URL. Exception: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object"* Restarting the applications usually resolves the issue but it happens so infrequently that we've been unable to diagnose the problem or recreate the problem at will.
    Any assistance would be greatly be appreciated in diagnosing the problem.
    We've logged an SR with Oracle Support and they recommended turning on OC4J Debugging which they advised would create large log files. Since we can replicate this issue at will we would like to avoid turning on debugging and creating the large log files.Can you find any details about the error in the application.log and Apache log files file when the issue happens?
    Do you have the patches in these docs applied?
    Connection Leak On Login [ID 1462034.1]
    Connection Leak: Find LeakedConnectionException Reported in AOLJ Database Connection Pool Test [ID 1177093.1]
    Connection Leaks From fndgfm (fndgfm.java, fndgfm.jsp, _fndgfm.java) [ID 1231393.1]
    Please also see these docs.
    Got Error "Exception: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object" When Login EBS [ID 1485112.1]
    R12: On a cloned target the logon screen reports 'HTTP error 500 Internal server error' [ID 1335176.1]
    Upgrading From 11.510 To R121.3 and Encountered HTTP 500 Internal server [ID 1360410.1]
    Concurrent Requests (Java Based) Failing With NoClassDefFoundError 'Could not initialize class javax.crypto.SunJCE_b' [ID 1423414.1]
    Oracle.Apps.Fnd.Common.Poolexception: Not Able To Create New Database Connection [ID 1434807.1]
    Thanks,
    Hussein

  • Single Line Data Type to Collection Data type, Problem in Message mapping

    I have a csv file, the file has the following lines
    hdr1
    line1
    line2
    lineN
    hdr2
    line1
    lineN
    I want it to map it to an object with the ff structure
    root object 1..1
    object 1..1
    subobject 0...n
    hdr 1..1
    line 1...n
    How is the mapping of the said data types?  Is it possible?  Please help....thanks in advance

    Hi Raymond,
    as you have two different strutures:
    - HEAD
    - ITEM
    and the occurences of the structures are not fix (say: e.g. HEADER occurs always 3 times), you need a key-field, which identifies each row as HEAR or ITEM.
    If you do not have a key-field, you must design a "generic structure" that fits to both:
    HEAD & ITEM. After the conten-conversion into this generic structure you need a message-mapping that identifies your HEADs and ITEMs.
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards Mario

Maybe you are looking for

  • Macbook pro retina 15" mid 2014 external display flicker randomly black

    external display: Acer k272HUL 1440p display. tested ports: Hdmi, Mini displayport, displayport, thunderbolt to HDMI, situation: The monitor goes black randomly and recover after several flickers. workaround: I have a external gpu connected by thunde

  • GetURL(javascript) not working in flash player 9

    This action works well in flash player 8 but it doesnt in flash player 9 can someone please help me, its very urgent. getURL(javascript:openNewWindow(' http://www.macromedia.com','thewin', 'height=400,width=400,toolbar=no,scrollbars=yes'));

  • Searching for simple document and picture viewer.

    Hello, I've looking for a viewer which supports all of the common picture formats, such as gif,jpeg,bmp and can also display all kind of office documents. If i look for viewer with these options, I all end up with great complicated client-webserver m

  • Data Tab missing in Report Manager

    I have Desktop Intelligence XI installed but in Report Manager, the Data Tab is missing.  The Map Tab is there.  Anyone know how to get this back?

  • Splitting file contents ....Help!!

    I have a file that contain several records of the same pattern. For example: Name: John Mark Adress: 2380 Blue St LA Phone#: 8675 3099 SSN: 8999900000 Age: 2001 Name: Denis Mary Address 5050 Red st WA Phone# 1010 30303 SSN 000111222333 Age 8899 This