Concate mutiple input in to Single String.

Hi ,
I need one help .
I want to contcat  the one of the IDOC  fields occurance in a single string.  Please let me know how to user.
For Ex.   I am mapping   one field  of Idoc ex TDLINE --> Extrinsic (0.. Unbounded)in the output side.
In the Input side the TDLINE  fields appears multiple time. in the current mapping I have one to one mapping  between TDLINE and Extrinsic fields.  So it creates the same number of Extrinsic fields as I have TDLINE fields at input side. 
What I want to  do , I want  to create a single Extrinisc  fields at output side for all the TDLINE fields.
For Ex.  At particaular segment  I have  10  fields for TDLine then all  should come  as Single string at out put side. 
Note .  No of Occurance of TD line is 0.. unbounded).
Please  give ur suggestions for the same.

Hi Ram,
i got same problem recently. For this problem there is no standard functions in XI so you must create udf. I wrote that udf and sending with these:
http://allyoucanupload.webshots.com/v/2003800853095440083
http://allyoucanupload.webshots.com/v/2003854577844519372
http://allyoucanupload.webshots.com/v/2003865357113273227
http://allyoucanupload.webshots.com/v/2003828767547920796
Regards,
Sai

Similar Messages

  • Multiple strings input to single string output

    Dear all,
    this program is needed for my demo simulation purposes, I'm creating several string inputs to show into a single string output updating (input strings are shown in each line). i attached the picture below, put 2 output strings w/c both doesn't meet my desired result:
    1.) 1st string output - replace the old string w/ new string. what i need is to maintain also the previous strings. the new string will go to the next line.
    2.) 2nd string output - although i got all the strings i needed, it only appears right after the while loop terminates, so i did not see the string inputs updating.
    i'm using LV 8.5.1., any help is appreciated... posting your correct code will be more appreciated.
    thanks in advance...
    Ivel R. | CLAD
    Solved!
    Go to Solution.

    here's my code for anyone to see the actual difference.
    thanks,
    Ivel R. | CLAD
    Attachments:
    update strings.vi ‏14 KB

  • Parsing a single string

    I apologize if the question is trivial, but I have been working on it for a while.
    I would like to send a single string containing one XML element to the parser. I can't figure out a way to do it.
    Of course, I can easily parse files, but for communication purposes, I need a way to parse just single elements, that are stored in separate strings, and find out their contents.
    Thank you,
    Sol

    Can't your parser accept a Reader as input? Check its API documentation to find that out. If it can, then "whatever.parse(new StringReader(yourXmlString))" is what you want.

  • Concatenate fields on multiple child rows into one single string

    Hi -
    I'm pretty much new to BI Publisher, and I looked through the forums for what I was trying to do below, but couldn't find much on this.
    Here's my data source:
    <BUSINESSES>
    <BUSINESS>
    <NAME>Microsoft</NAME>
    </BUSINESS>
    <BUSINESS>
    <NAME>Apple</NAME>
    </BUSINESS>
    <BUSINESS>
    <NAME>Google</NAME>
    </BUSINESS>
    <BUSINESS>
    <NAME>Yahoo</NAME>
    </BUSINESS>
    </BUSINESSES>
    What I was trying to do is create a single string from the XML data source in the form
    Microsoft,Apple,Google,Yahoo,............
    Here was my plan to do this:
    1. Create a global variable - <?variable:AllNames;''?>
    2. Loop - For each BUSINESS
    2a. Capture NAME - <?variable@incontext:BusName;'NAME'?>
    2b. Concatenate it to the global variable AllNames - <?variable:AllNames;concat($AllNames,',',$BusName)?>
    3. End Loop
    4. Display global variable - <?$AllNames?>
    I get a blank RTF when I run this.
    Can someone please advice me on this? I thought it would be pretty simple to do, but here i am at the end of the day, and ...
    Thank you.

    There are multiple ways to do it..
    one option of using variable, which i would not certainly do is this :)
    <?xdoxslt:set_variable($_XDOCTX,'TESTTEST’,’’)?>
    <?for-each:/BUSINESSES/BUSINESS?>
    <?position()?>: <?NAME?> <?xdoxslt:set_variable($_XDOCTX,'TESTTEST’,  concat(xdoxslt:get_variable($_XDOCTX,'TESTTEST’),’,’ ,NAME) )?>
    <?end for-each?>
    <?xdoxslt:get_variable($_XDOCTX,'TESTTEST’)?>

  • Is there a way in Oracle to return multiple rows as a single string?

    Hi gurus,
    I just got help from your guys fixing my dynamic sql problem. What I am doing in that function is to return a single string from multiple rows and I use it in the select statement. It works fine once the problem was solved. But is there any way in Oracle to do this in the select statement only? I have a table that stores incidents (incident_id is the PK) and another table that stores the people that are involved in an incident.
    Incident_table
    (incident_id number PK);
    Incident_people_table
    (incident_id number PK/FK,
    person_id number PK);
    Now in a report, I need to return the multiple rows of the Incident_People_table as a single string separated by a comma, for example, 'Ben, John, Mark'. I asked the SQL Server DBA about this and he told me he can do that in SQL Server by using a variable in the sql statement and SQL Server will auomatically iterate the rows and concatenate the result (I have not seen his actual work). Is there a similar way in Oracle? I have seen some examples here for some similar requests using the sys_connect_by_path, but I wonder if it is feasible in a report sql that is already rather complex. Or should I just stick to my simpler funcion?
    Thanks.
    Ben

    Hi,
    May be, this example will help you.
    SQL> CREATE TABLE Incident_Table(
      2    incident_id number
      3  );
    Table created.
    SQL> CREATE TABLE Person_Table(
      2    person_id number,
      3    person_name VARCHAR2(200)
      4  );
    Table created.
    SQL> CREATE TABLE Incident_People_Table(
      2    incident_id number,
      3    person_id number
      4  );
    Table created.
    SQL> SELECT * FROM Incident_Table;
    INCIDENT_ID
              1
              2
    SQL> SELECT * FROM Person_Table;
    PERSON_ID PERSON_NAME
             1 John
             2 Mark
             3 Ben
             4 Sam
    SQL> SELECT * FROM Incident_People_Table;
    INCIDENT_ID  PERSON_ID
              1          1
              1          2
              1          3
              2          1
              2          2
              2          4
    6 rows selected.
    SQL> SELECT IT.*,
      2    (
      3      WITH People_Order AS (
      4        SELECT IPT.incident_id, person_id, PT.person_name,
      5          ROW_NUMBER() OVER (PARTITION BY IPT.incident_id ORDER BY PT.person_name) AS Order_Num,
      6          COUNT(*) OVER (PARTITION BY IPT.incident_id) AS incident_people_cnt
      7        FROM Incident_People_Table IPT
      8          JOIN Person_Table PT USING(person_id)
      9      )
    10      SELECT SUBSTR(SYS_CONNECT_BY_PATH(PO.person_name, ', '), 3) AS incident_people_list
    11      FROM (SELECT * FROM People_Order PO WHERE PO.incident_id = IT.incident_id) PO
    12      WHERE PO.incident_people_cnt = LEVEL
    13      START WITH PO.Order_Num = 1
    14      CONNECT BY PRIOR PO.Order_Num = PO.Order_Num - 1
    15    ) AS incident_people_list
    16  FROM Incident_Table IT
    17  ;
    INCIDENT_ID INCIDENT_PEOPLE_LIST
              1 Ben, John, Mark
              2 John, Mark, SamRegards,
    Dima

  • Problem with Set/Get volume of input device with single channel

    from Symadept <[email protected]>
    to Cocoa Developers <[email protected]>,
    coreaudio-api <[email protected]>
    date Thu, Dec 10, 2009 at 2:45 PM
    subject Problem with Set/Get volume of input device with single channel
    mailed-by gmail.com
    hide details 2:45 PM (2 hours ago)
    Hi,
    I am trying to Set/Get Volume level of Input device which has only single channel but no master channel, then it fails to retrieve the kAudioDevicePropertyPreferredChannelsForStereo and intermittently kAudioDevicePropertyVolumeScalar for each channel. But this works well for Output device.
    So is there any difference in setting/getting the volume of input channels?
    I am pasting the downloadable link to sample.
    http://www.4shared.com/file/169494513/f53ed27/VolumeManagerTest.html
    Thanks in advance.
    Regards
    Mustafa
    Tags: MacOSX, CoreAudio, Objective C.

    That works but the the game will not be in full screen, it will have an empty strip at the bottom.
    I actually found out what's the problem. I traced the stageWidth and stageHeight during resizing event. I found out that when it first resized, the stage width and height were the size with the notification bar. So when I pass the stage into startling, myStarling = new Starling(Game,stage), the stage is in the wrong size. For some reason, I can only get the correct stage width and height after the third resizing event.
    So now I need to restart Starling everytime a resizing event happened. It gives me the right result but I am not sure it is a good idea to do that.
    And thanks a lot for your time kglad~I really appriciate your help.

  • Convert the IDOC XML file into single string?

    Hello All,
    I have a scenario, where i need to conver the IDOC XML  into single string, to send it to target.
    Please let me know how can we achive this, I dont know java coding.
    Please help me out to write the java code.
    Thanks and Regards,
    Chinna

    Hi Chinna,
    You can do this in two ways -
    1. Java mapping
    https://wiki.sdn.sap.com/wiki/display/XI/JavaMapping-ConverttheInputxmlto+String
    https://wiki.sdn.sap.com/wiki/display/Snippets/JavaMapping-ConverttheInputxmltoString
    2. XSLT mapping
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Regards,
    Sunil Chandra

  • Single string tag expanded into 100 plc register values

    I found a way to read 100 registers of plc data with a single string tag, if you can guarantee that none of the plc registers are zero. A register value of zero acts like a Null ascii terminator and truncates the string. Define the string tag as 200 bytes and uncheck the text data only box. Use the code in the attached picture to convert the string bytes back into decimal register values.
    Attachments:
    string tag to 100 U16 values.gif ‏2 KB

    Ins't that code exactly the same as typecasting to an U16 Array?
    Message Edited by altenbach on 05-19-2005 07:24 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CastingU16.gif ‏3 KB

  • Convert an array of strings into a single string

    Hi
    I am having trouble trying to figure out how to convert an array of strings into a single string.
    I am taking serial data via serial read in a loop to improve data transfer.  This means I am taking the data in chunks and these chunks are being dumped into an array.  However I want to combine all elements in the array into a single string (should be easy but I can't seem to make it work).
    In addition to this I would also like to then split the string by the comma separator so if any advice could be given on this it would be much appreciated.
    Many Thanks
    Ashley.

    Well, you don't even need to create the intermediary string array, right? This does exactly the same as CCs attachment:
    Back to your serial code:
    Why don't you built the array at the loop boundary? Same result.
    You could even built the string directly as shown here.
    Message Edited by altenbach on 12-20-2005 09:39 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    autoindexing.png ‏5 KB
    concatenate.png ‏5 KB
    StringToU32Array.png ‏3 KB

  • Mutiple commercial Invoicing from single Sales Order

    Mutiple Invoicing from an single SO (Invoicing from SD)
    Refer the requirement posted below
         PO issued by the customer requesting supply in multiple consignment (Multiple Sets)
         Single Set may be delivered by multiple trips  
         Every consignment/trip released accompanies an excise invoice
         When the shipment is completed for one Set then one consolidated commercial invoice is raised, details of
                          excise invoice   number and logistics receipt information are entered 
         Sales order is closed only when all the Sets of materials are completely delivered.

    Hi
    Whats the problem in this case.. This is pretty standard business scenario....
    If you are using Costing based COPA, your COGS would post to COPA upon billing... Hence, total revenue as well as cogs will be posted at same time
    br, Ajay M

  • Many searches on a single string

    I'm working on a problem that involves searching for many keywords in a single document and could use any help you can offer.
    Basically a text string (a document) arrives that ranges anywhere from a few bytes to around 10 MB. I have thousands of users that have pre-setup search criteria to see if they are interested in the incoming string/document. Each user has (possibly) hundreds of search terms resulting in 100,000+ search terms that have to match against each document. The search strings are usually fairly short (1 to 30 bytes usually). Also documents arrive around once a second or faster so I have to be very fast in matching and passing on for delivery. The users can also change their search criteria at any time though they usually don't change more than a search term or two per day.
    Searching around on Google has been fairly useless to me (though I may not know exactly what to search for). Most text searching involves one of two problems - searching for one string in another one string, or searching for one string among many strings. The first being solved by the Boyer-Moore algorithm usually and the second being solved by text indexing like Google or database text indexing ( [Sybase Full Text|http://infocenter.sybase.com/help/topic/com.sybase.help.ase_15.0.verity/verity.pdf] or [Oracle Full Text|http://www.oracle-base.com/articles/9i/FullTextIndexingUsingOracleText9i.php]). My problem is in the other direction (many searches against one string) and faces it's own issues.
    I've tried Boyer-Moore and naive string matching on some sample data (looping through all criteria) and the results were not promising, some times taking minutes to evaluate large messages. Though it took less than a tenth of a second on the smallest messages. This just seems like the wrong way to approach the problem to repeat the same work over and over when it seems like you could make a single pass through the document to do the same work.
    The only two algorithms that I've seen that seem efficient for this problem are the following (though I haven't tested either):
    1) Least frequent trigraph: For each search term, find 3 consecutive characters that are the least likely to occur and then simultaneously search for all 100,000+ trigraphs with each message that comes in using only a single pass through the document. This then (should) reduce the problem set down to something manageable. For each least frequent trigraph found, you keep the location within the message and can then just use a direct comparison of the characters around that match to verify whether or not the whole term matches. Since the search criteria changes infrequently, the database of LFT for each term can be kept and just updated as needed. Also the statistics table to determine which trigraph truly is the least likely to occur can become smarter as time goes on based upon incoming data.
    Seems complex but doable. Efficiency all depends upon how likely the LFT for each term is to be found in each message.
    2) [Suffix Array|http://en.wikipedia.org/wiki/Suffix_array] After doing some pre-computation on the document, you can do O(log n) searches to find any word within it.
    Seems slightly less efficient (and possibly painful on large documents), but still workable and easy to implement.
    Does anyone have some experience with this type of problem? Any other algorithms that you've found that work well with this backwards string matching problem? Is there a version of Boyer-Moore that takes many strings as input?
    Thanks for any help you can offer.

    This multi-pattern search might be an approach - [http://www.google.co.uk/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fwebglimpse.net%2Fpubs%2FTR94-17.pdf&ei=_xeFSq28BKLbjQfqkOyiCw&rct=j&q=Wu-Manber+algorithm&usg=AFQjCNH2OFAym3PHMSbWtp86sYsOSWNbNA&sig2=qMH89k-mekh8BWtCHljuxA|http://www.google.co.uk/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fwebglimpse.net%2Fpubs%2FTR94-17.pdf&ei=_xeFSq28BKLbjQfqkOyiCw&rct=j&q=Wu-Manber+algorithm&usg=AFQjCNH2OFAym3PHMSbWtp86sYsOSWNbNA&sig2=qMH89k-mekh8BWtCHljuxA] .

  • How do I center a text field when input can be single or multi-line?

    I'm creating a form in Adobe Acrobat Pro XI and have almost everything the way I want it.  One of my last problems is trying to get a text in a text field centered.  The input is sometimes a single line and sometimes multi-line.  If I set it up so the multi-line entries are centered, then the single line looks off ... and vice versa.  Is there any way to have the text automatically centered in the text field regardless of whether it's single or multi-line?

    Unfortunately, there's no way to set up a field so that the text is guaranteed to be vertically centered in both cases. If you set it up so that rich text formatting is enabled, it's possible for a user to vertically center, but it's not something you can preconfigure so that it will remain in effect when the field is cleared. For a user to do this, with the focus set to the field they'd have to display the Properties toolbar (Ctrl+E), click the "More..." > Paragraph > Alignment > Text Middle [button]

  • How to display the multiple lines text in a single - String, StringBuffer

    Hi,
    I have a textarea field named Decription which contains more than one line seperated by new line.I need to display those five lines in a single text without breaking. Is it possible? I am getting ArrayIndexOutOfBoundsException while i reached to the end of the line. Plz help me how to align the below code so that i can display the lines as a single line in my excel sheet.
                        if(op.getDescription()!=null)
                            String[] oppDescs = op.getDescription().split("\n");
                            StringBuffer sb = new StringBuffer();
                            for(int i1=0; i<=oppDescs.length-1;++i1)
                                *writeFile(sb.append(oppDescs[i1]), valueWriter);*
                         } else {
                            writeFile(op.getDescription(), valueWriter);
    private void writeFile(java.lang.Object value,PrintWriter valueWriter)
            if(value!=null)
                valueWriter.print(value);   
        }Thanks and Regards

    previous was java1.5
    heres a 1.1 - 1.4 version
    String[] oppDescs = op.getDescription().split("\n");
    StringBuffer sb = new StringBuffer();
    for(int i = 0; i < oppDescs.length : i++){
      sb.append(oppDescs);
    sb.append( '\t' );
    writeFile(sb.toString(), valueWriter );Edited by: simon_orange on 31-Oct-2008 13:02                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to submit data from multiple Input Ports in single SUBMIT button  click

    Hi,
    I am in SPS8.
    What exactly steps I need to perform to submit data from multiple Input Ports.
    I couldn't able to submit One input Form and one Input Table to BAPI data service in single SUBMIT button click.
    I debugged the VC application in SPS8.
    While debugging, I found that when I click the SUBMIT button in the Input Form, Only data in that Input
    form are being passed to the BAPI, But not the Table Form data.
    If I click on the SUBMIT button in another Input Table, Only data from that table is being passed to the BAPI, but not the Input form data.
    Essentially I need to submit both of them in one SUBMIT button.
    Thanks,
    Ramakrishna

    Ramakrishna,
    From the word document that you sent to me the steps you are missing to map the appropriate information into the BAPI is first you are not mapping all data rows into the table input port. To do this double click on the input table view and change your selection mode from single to multiple. Then when you click on your link between the BAPI and your input table you will see a new option appears under data mapping "Mapping Scope" select All Data Rows.
    That's the first part of the problem to get the BAPI to recognize both the inputs coming from the form and the table eliminate the submit button from the form. Drag and drop a link from the output port of the table view to the Input port of the BAPI. Double click on the link between the BAPI and the table view and open the expressions editor for the two fields:
    1/ Automatic Source
    2/ SKIP_ITEMS_WITH_ERROR
    On the hierarchical folder structure on the right expand expand the Data Fields node to find the fields from the form and map them accordingly.
    Now when you hit the submit button on your table it should pass the BAPI all the parameters from both the form and the table.
    Hope this helps,
    Cheers,
    Scott

  • Input Masks and Single Choice Fields (drop down menu) Suggestions

    Here's a few suggestions - I hope this is the right place to post these...
    1. I would like to suggest a pre-filled state single choice field (drop down menu) to be used to get address information.  Or better yet a way to import a csv file to fill the preset fields for an option box.
    2. Input masks that force users to enter the data in the format you prefer.  (000) 000-0000
    3. Ability to enable or disable options depending on other choices.
    4. Option for a list of numbers say 1 thru 100 and as people pick a registration (car number in my case) that choice cannot be picked again by another user for that form.  Load values from a table that can be picked several times or only once could work in both my suggestions.
    Thank You.

    Hello there,
    Thanks for these thoughts! They're all really good (and welcome) suggestions for additions to the FormsCentral service. As you might imagine, we're busily working back here to implement new features; we have big plans for FormsCentral. For these suggestions in particular, I'll do two things:
    1. Send these suggestions to the product team and get them added to the to-do list!
    2. Move the whole thread here into the FormsCentral Ideas sub-forum. That way, your suggestions will be noted as such and well-documented on our end.
    Thanks for the great ideas; let us know if you have any more feedback for us!
    Best regards,
    Rebecca
    Acrobat Services Community Manager

Maybe you are looking for

  • Converting from .xls to .xlsx without losing jpeg image quality

    I am trying to covert .xls to .xlsx. But I have a lot of jpegs in my .xls and I notice the image quality of the original jpegs is severely eroded. How do I preserve that -- click Option, Advanced, Do not Compress? Do I have to do it a file at a time?

  • ITunes keeps crashing when trying to add music! WHY?!

    This is getting annoying!! I uninstalled itunes, reinstalled it. I uninstalled quicktime, reinstalled it. I did the whole path thing where you had to put "C\:program files\apple blah blah" and STILL NOTHING. Every single time I try to add a song onto

  • Authentication with hashed password

    Hi, the user passwords in my iPlanet 5.1 are stored by using SHA. I authenticate a user from a JBoss AppServer by using an LDAPLoginModule which works fine. Now I want to secure this access by no longer sending the clear text password over the networ

  • SQl query construction in VO issue

    All, I want to create a VO with a query like this select columns from table1, table 2 where table1.column1 = table2.column Then i have to create Different View Criteria on them, so end query would be select columns from table1, table 2 where table1.c

  • アップデートの詳細を知りたい

    Photoshopが14.1.1にアップデートされましたが.詳細情報が「-以降に発見された多くのバグを-」となっておりその詳細が分かりません. AdobeBridgeのアップデートの際にも.「ユーザー様から報告された重大なバグを-」で.その「重大なバグ」とはなんなのか全く分かりませんでした. 14.1で追加・変更・修正された内容.14.1.1で修正された内容はどこかにまとまってあるのでしょうか? Adobeサポートの方にお願いしたいのですが.日本法人のPs担当の方に連絡を取ってこちらに詳細リリー