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

Similar Messages

  • 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.

  • A little help needed with AppleScript

    Hi:
    I need a little help with AppleScript.
    I created an AppleScript application to copy some files to a LAN disk that I always have mounted. The application works fine, except that it creates some sort of a lock that prevents me from doing other work with the Finder until the copy process is completed.
    If anyone has any ideas for how I can disable this lock, please let me know. I have included the source code of my script below.
    Thanks,
    -AstraPoint
    ===== source code =====
    with timeout of 1500 seconds
    tell application "Finder"
    activate
    set current_date to (do shell script "date '+%Y-%m-%d at %H-%M-%S'") as string
    set name_p to "Personal Data " & current_date & ".dmg"
    set name_d to "Documents " & current_date & ".dmg"
    (* copy the target files to another local disk - to create an extra backup *)
    duplicate file "Personal Data.dmg" of folder "File Backups" of disk "Macintosh HD" to folder "Ad Hoc Backups" of disk "Macintosh HDx" replacing yes
    set the name of file "Personal Data.dmg" of folder "Ad Hoc Backups" of disk "Macintosh HDx" to name_p
    duplicate file "Documents.dmg" of folder "File Backups" of disk "Macintosh HD" to folder "Ad Hoc Backups" of disk "Macintosh HDx" replacing yes
    set the name of file "Documents.dmg" of folder "Ad Hoc Backups" of disk "Macintosh HDx" to name_d
    (* mount remote disk/folder using the alias file on our desktop *)
    open alias file "disk HD5"
    (* copy the target files to a remote disk - to create an extra backup *)
    duplicate file name_p of folder "Ad Hoc Backups" of disk "Macintosh HDx" to folder "Bkup" of disk "HD5" replacing yes
    duplicate file name_d of folder "Ad Hoc Backups" of disk "Macintosh HDx" to folder "Bkup" of disk "HD5" replacing yes
    end tell
    end timeout

    Try:
    ignoring application responses
    Documented [here|http://developer.apple.com/library/mac/#documentation/AppleScript/Concept ual/AppleScriptLangGuide/reference/ASLRcontrolstatements.html].
    Message was edited by: xnav

  • 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

  • Little help needed on utl_file

    Hi
    I am trying to write a small stored procedure for recording some information to a text file, and I need a little help. However, beforehand, let me give you what I have done:
    procedure create_record (order_id IN VARCHAR2) IS
    l_dir VARCHAR2(10) 'c:/orders';
    l_filename VARCHAR2(25) := 'orderlist';
    l_datetime DATE := sysdate;
    l_output utl_file.file_type;
    begin
    l_output := utl_file.fopen(l_dir, l_filename, 'w');
    if !utl_file.fopen(l_output) THEN
    utl_file.put_line(l_output, l_datetime || order_id);
    utl_file.fclose(l_output);
    else
    utl_file.fclose(l_output);
    l_output := utl_file.fopen(l_dir, l_filename, 'a');
    end if;
    end;
    Now for questions, firstly, I am not entirely sure that the if statement for checking to see if an existing text file exists is the correct way, and would welcome some help on this, and correction.
    Secondly, I need to add a second statement to the if, which if the file exists and the date on that file is the same as the system date, then to open and append some information to it, else create a new file.
    Unfortunately, for me, I am not sure how to do this.
    Can anyone show me how this can be done?
    Thanks

    Hope you can read my coding correctly.
    ps: not tested
    DECLARE
    myFileExist BOOLEAN;
    myFileLength NUMBER;
    myFileBlockSize BINARY_INTEGER;
    myText VARCHAR2(1000):= NULL;
    myInstr NUMBER;
    l_dir VARCHAR2(10) 'c:/orders';
    l_filename VARCHAR2(25) := 'orderlist';
    l_datetime DATE := trunc(sysdate);
    l_output utl_file.file_type;
    BEGIN
    utl_file.fgetattr(l_dir, l_filename, myFileExist, myFileLength, myFileBlockSize);
    if not myFileExist then -- file not exist
    <ul>l_output := utl_file.fopen(l_dir, l_filename, 'w');
    utl_file.put_line(l_output, l_datetime || order_id);</ul>
    else --file exist
    <ul>
    l_output := utl_file.fopen(l_dir, l_filename, 'r');
    LOOP
    <ul>
    --------------------------------------------------------------------start loop
    UTL_FILE.GET_LINE(l_output,myText) ;
    SELECT instr(UPPER(myText),UPPER(trunc(SYSDATE))) into myInstr FROM dual;
    IF myText IS NULL THEN
    <ul>
    EXIT;
    </ul>
    END IF;
    if myInstr > 0 then
    <ul>
    utl_file.fclose(l_output);
    l_output := utl_file.fopen(l_dir, l_filename, 'a');
    </ul>
    else
    <ul>
    utl_file.fclose(l_output);
    l_filename:='newfilename';
    l_output := utl_file.fopen(l_dir, l_filename, 'w');
    </ul>
    end if;
    --------------------------------------------------------------------end loop
    </ul>
    END loop;
    utl_file.put_line(l_output, l_datetime || order_id);
    </ul>
    end if;
    utl_file.fclose(l_output);
    END;
    Edited by: Lie Ching Te on 12-Feb-2010 12:34 PM
    Edited by: Lie Ching Te on 12-Feb-2010 1:01 PM

  • 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.

  • SDTM Maintenance cycle - little help needed

    Hi all
    I am following the blogs of Dolores Correa (thank you for the blogs) and I have become a little stuck - I am hoping you can help me out.
    I have created an SDTM (test message) during my Test Phase.  In the blog there is a way to assign the project for the test phase (and therefore the MC) - I cannot find where to do this, how do I assign my test message to the correct maintenance cycle?
    Many thanks
    Marina

    Perhaps I am thinking this is more complicated than it is .... if I only have 1 maintenance cycle does the test message get automatically assigned to that maintenance cycle?  and only if I have multiple maintenance cycles do I have to assign  a cycle??
    I guess that there is also no way to have a test message associated with a particular change request - that would be helpful because then the developer would know what the test message is in relation to, but I can't see a way of connecting a SDTM to a SDMJ.
    Any ideas or musings are welcome

  • A little help needed on divs etc

    ok this is my first time building a site using dw tbh and im still getting to grips with it and learning new code etc as i go.
    Ive been asked to design a site for a friend of mines escort business lol kinky i know.
    But im having a few probs aligning things properly, here is the site http://www.oldskoolbeats.com/rach   (using temp domain until i find other hosting)
    the main page is ok as it is i think .. ?
    the aboutus.php page is where im getting a bit stuck i cant seem to get anything in the centre as im wanting to put images down the middle.
    (btw text size is a little diff as it needs changing anyways as its off an older site)
    if anyone can help that will be great.

    Looking at the code on the aboutus page.
    You have links to 2 stylesheets:
    <link href="default.css" rel="stylesheet" type="text/css" />
    <link href="/default.css" rel="stylesheet" type="text/css" /> 
    The above link is probably the one that shouldn't be there.
    You have 2 instances where you use id=pagewrap
    <div id="pagewrap">
      <div id="left">
    and again here:
    <div id="pagewrap">
    <div id="right">
    An ID can only be used once per page.
    I'm assuming that the pagewrap rule is supposed to center all of your page corect?
    In that case, you need to remove both of the pagewrap divs
    and only insert one div and that encloses all of the content
    Like so:
    <body>
    <div id="pagewrap">
    <div id="topnav"><div id="menu-wrap">
    the rest of the code here
    then at the bottom of the page:
    </div> <!-- / pagewrap -->
    </body>
    </html>
    As for the top banner image, there is just too much banding on the actual body of the 'model',
    particularly on her backend. Did you try and over optimise the image to make
    the file size smaller possibly - but this has only degraded the image quality quite a lot by doing so.

  • 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

Maybe you are looking for

  • ASA 5505 initial build - Failed to locate egress interface (Please help :-) )

    Hi, I have just purchased a ASA 5505 and have completed the initial setup via the wizard.  I am currently unable to access services on the outside of the ASA.  The error: 'Failed to locate egress interface for UDP from inside'....  appears when ever

  • Messages in IOS 7.0

    Is there still a way to delete parts of the conversation in messages? I can only see being able to delete the entire conversation.

  • Edge Inspect.app won't open on OSX 10.7.5

    When attempting to open the Edge Inspect app on my mac, the icon briefly appears in the menu bar, then disapears. It never apears in the Force Quit/Running applications window. No prefrence files were created in my Library. I've tried installing from

  • Problem updating Apple TV(screen icon asking lead connection required to iTunes

    Update has caused screen to show connection by cable to iTunes  required and causing indicator light on box to false quickly

  • FCP Project Import

    FCP Project Files do not import at all! My scenario is as follows: I create a Final Cut Pro Project file (.fcp) and try to upload it into FCSVR by dragging the file into the FCSVR window while logged in as admin. This throws an error that says, "Unab