Split and concotenate

hi huys,
how  to split the value and concotenate the value...
for eg.
i hvave the value like 4.549,50 but i want 4,549.50 like this.
Thanks & Regards,
praveen

Hi,
  You can use the following code for this,
DATA: str1 TYPE string,
      str2 TYPE string,
      str3 TYPE string,
      itab TYPE TABLE OF string,
      text TYPE string,
l_no type String value '4.549,50' .
SPLIT l_no AT '.' INTO: str1 str2 .
SPLIT str2 AT ',' INTO: str2 str3 .
concatenate str1 str2 into str2 separated by ',' .
concatenate str2 str3 into str3 separated by '.' .
write /: str3.
You can do this by using REPLCE also
replace all occurences of ',' in l_no with '.'.
replace first occurence of '.' in l_no with ','.
write : l_no.

Similar Messages

  • StringTokenizer vs. split and empty strings -- some clarification please?

    Hi everybody,
    I posted a question that was sort of similar to this once, asking if it was best to convert any StringTokenizers to calls to split when parsing strings, but this one is a little different. I rarely use split, because if there are consecutive delimiters, it gives empty strings in the array it returns, which I don't want. On the other hand, I know StringTokenizer is slower, but it doesn't give empty strings with consecutive delimiters. I would use split much more often if there was a way to use it and not have to check every array element to make sure it isn't the empty string. I think I may have misunderstood the javadoc to some extent--could anyone explain to me why split causes empty strings and StringTokenizer doesn't?
    Thanks,
    Jezzica85

    Because they are different?
    Tokenizers are designed to return tokens, whereas split is simply splitting the String up into bits. They have different purposes
    and uses to be honest. I believe the results of previous discussions of this have indicated that Tokenizers are slightly (very
    slightly and not really meaningfully) faster and tokenizers do have the option of return delimiters as well which can be useful
    and is a functionality not present in just a straight split.
    However. split and regex in general are newer additions to the Java platform and they do have some advantages. The most
    obvious being that you cannot use a tokenizer to split up values where the delimiter is multiple characters and you can with
    split.
    So in general the advice given to you was good, because split gives you more flexibility down the road. If you don't want
    the empty strings then yes just read them and throw them away.
    Edited by: cotton.m on Mar 6, 2008 7:34 AM
    goddamned stupid forum formatting

  • I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    video
    What version of Premiere Elements do you have and on what computer operating system is it running?
    Please review the following workflow.
    ATR Premiere Elements Troubleshooting: PE11: Project Assets Organization for Scene and Highlight Grabs from Collection o…
    But please also determine if your project goal is supported by
    a. format of your source
    and
    b. computer resources
    More later based on details that you will post.
    ATR

  • Unicode export:Table-splitting and package splitting

    Hi SAP experts,
    I know there are lot of forums related to this topic, but I have some new questions and hence posting a new thread.
    We are in the process of doing unicode conversion in our landscape(CRM 7.0 system based on NW 7.01) and we are running on AIX 6.1 and DB2 9.5. The database size is around 1.5 TB and hence, we want to go in for optimization for export and import in order to reduce the downtime.As a part of the process, we have tried to do table-splitting and parallel export-import to reduce the downtime.
    However, we are having some doubts whether this table-splitting has actually worked in our scenario,as the export has exeucted for nearly 28 hours.
    The steps followed by us :
    1.) Doing the export preparation using SAPINST
    2.) Doing table splitting preparation, by creating a table input file having entries in the format <tablename>%<No.of splits>.Also, we have used the latest R3ta file and the dbdb6slib.o(belonging to version 7.20 even though our system is on 7.01) using SAPINST.
    3.) Starting with the export using SAPINST.
    some observations and questions:
    1.) After completion of tablesplitting preparation, there were .WHR files that were generated for each of the tables in DATA directory of export location. However, how many .WHR files should be created and on what basis are they created?
    2.) I will take an example of a table PRCD_CLUST(cluster table) in our environment, which we had split. We had 29 *.WHR files that were created for this particular table. The number of splits given for this table was 36 and the table size is around 72 GB.Also, we noticed that the first 28 .WHR files for this table, had lots of records but the last 29th .WHR file, had only 1 record. But we also noticed that, the packages/splits for the 1st 28 splits were created quite fast but the last one,29th one took a long time(serveral hours) to get completed.Also,lots of packages were generated(around 56) of size 1 GB each for this 29th split. Also, there was only one R3load which was running for this 29th split, and was generating packages one by one.
    3.) Also,Our question here is that is there any thumb rule for deciding on the number of splits for a table.Also, during the export, are there any things that need to be specified, while giving the inputs when we use table splitting,in the screen?
    4.) Also, what exactly is the difference between table-splitting and package-splitting? Are they both effective together?
    If you have any questions and or need any clarifications and further inputs, please let me know.
    It would be great, if we could get any insights on this whole procedure, as we know a lot of things are taken care by SAPINST itself in the background, but we just want to be certain that we have done the right thing and this is the way it should work.
    Regards,
    Santosh Bhat

    Hi,
    First of all please ignore my very first response ... i have accidentally posted a response to some other thread...sorry for that 
    Now coming you your questions...
    > 1.) Can package splitting and table-splitting be used together? If yes or no, what exactly is the procedure to be followed. As I observed that, the packages also have entries of the tables that we decided to split. So, does package splitting or table-splitting override the other, and only one of the two can be effective at a time?
    Package splitting and table splitting works together, because both serve a different purpose
    My way of doing is ...
    When i do package split i choose packageLimit 1000 and also split out the tables (which i selected for table split)  into seperate package (one package per table). I do it because that helps me to track those table.
    Once the above is done i follow it up with the R3ta and wheresplitter for those tables.
    Followed by manual migration monitor to do export/import , as mentioned in the previous reply above you need to ensure you sequenced you package properly ... large tables are exported first , use sections in the package list file , etc
    > 2.) If you are well versed with table splitting procedure, could you describe maybe in brief the exact procedure?
    Well i would say run R3ta (it will create multiple select queries) followed by wheresplitter (which will just split each of the select into multiple WHR files)  ...  
    Best would go thought some document on table spliting and let me know if you have specific query. Dont miss the role of hints file.
    > 3.) Also, I have mentioned about the version of R3ta and library file in my original post. Is this likely to be an issue?Also, is there a thumb rule to decide on the no.of splits for a table.
    Rule is use executable of the kernel version supported by your system version. I am not well versed with 7.01 and 7.2 support ... to give you an example i should not use 700 R3ta on 640 system , although it works.
    >1.) After completion of tablesplitting preparation, there were .WHR files that were generated for each of the tables in DATA directory of export location. However, how many .WHR files should be created and on what basis are they created?
    If you ask for 10 split .... you will get 10 splits or in some case 11 also, the reason might be the field it is using to split the table (the where clause). But not 100% sure about it.
    > 2) I will take an example of a table PRCD_CLUST(cluster table) in our environment, which we had split. We had 29 *.WHR files that were created for this particular table. The number of splits given for this table was 36 and the table size is around 72 GB.Also, we noticed that the first 28 .WHR files for this table, had lots of records but the last 29th .WHR file, had only 1 record. But we also noticed that, the packages/splits for the 1st 28 splits were created quite fast but the last one,29th one took a long time(serveral hours) to get completed.Also,lots of packages were generated(around 56) of size 1 GB each for this 29th plit. Also, there was only one R3load which was running for this 29th split, and was generating packages one by one.
    Not sure why you got 29 split when you asked for 36, one reason might be the field (key) used for split didn't have more than 28 unique records. I dont know how is PRCD_CLUST  split , you need to check the hints file for "key". One example can be suppose my table is split using company code, i have 10 company codes so even if i ask for 20 splits i will get only 10 splits (WHR's).
    Yes the 29th file will always have less records, if you open the 29th WHR you will see that it has the "greater than clause". The 1st and the last WHR file has the "less than" and "greater than" clause , kind of a safety which allows you to prepare for the split even before you have downtime has started. This 2 WHR's ensures  that no record gets missed, though you might have prepared your WHR files week before the actual migration.
    > 3) Also,Our question here is that is there any thumb rule for deciding on the number of splits for a table.Also, during the export, are there any things that need to be specified, while giving the inputs when we use table splitting,in the screen?
    Not aware any thumb rule. First iteration you might choose something like 10 for 50 GB , 20 for 100 GB. If any of the tables overshoots the window. They you can give a try by  increase or decrease the number of splits for the table. For me couple of times the total export/import  time have improved by reducing the splits of some tables (i suppose i was oversplitting those tables).
    Regards,
    Neel
    Edited by: Neelabha Banerjee on Nov 30, 2011 11:12 PM

  • Can we split and fetch the records in Database Adapter

    Hi,
    I designed a Database Adapter to fetch the records from oracle Database. Some time, the Database Adapter need to fetch around 5000, or 10,000 records in single shot. In that case my BPEL process is choking and getting error as
    java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    Could someone help me to resolve this?
    In Database Adapter can we split and fetch the records, if number of records more then 1000.
    ex. First 100 rec as one set and next 100 as 2nd set like this.
    Thank you.

    You can send the records as batches useing the debatching feature of db adapter. Refer documentation for implementation details.

  • 1:n Message split and Abap Proxies??

    Hello,
    Can I not use Message split and Abap Proxy together? My scenario is MDM->File ->XI->Proxy->BI.
    I am getting a single file syndicated from MDM and in XI If I use message mapping to do 1:n split in the message mapping, can I use it with Abap Proxies? As per the link below, XI adapter is not present in the list..We are on PI 7.0 SP14. Thank you..
    http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/frameset.htm
    Thank you for any suggestion..

    Hi Thanujja,
    If you see the message from Raj, I dont think we can split the messages for the proxy. This is beacause the splitting of messages take place at the Adapter Level only for the adapters on the Java stack.
    As suggested by Guru, you can try splitting the messages in the inbound proxy instead of using a BPM, in that way you can acheive good performance.
    Thanks,
    Srini
    Edited by: srinivas kapu on Mar 27, 2008 9:09 AM
    Edited by: srinivas kapu on Mar 27, 2008 9:10 AM

  • BPM Split and Merge

    Hi...
       I want to do scenario like file split and merge using BPM.
    for that i have used,
    1.Receive
    2.Transformation(1:N)
    3.Block(ForEach)
    4.Control
    5.EndBlock
    6.Transformation(N:1)
    7.Send.
    while executing the scenario, the message is going to the queue. In that it is showing the status as "Running".
    can you please tell if i did wrong in my scenario?

    > 1.Receive
    > 2.Transformation(1:N)
    > 3.Block(ForEach)
    > 4.Control
    > 5.EndBlock
    > 6.Transformation(N:1)
    > 7.Send.
    U are using an empty infinite block and hence it is in running state always. You dont need a block at all. after 1:n transformation, use the n:1 transformation and send. I know you must be doing a sample scenario. In reality you will have a send step usually for sending to another system line by line. That when you will need a block.
    VJ

  • Splitting and Collecting Messages

    Hi,
    I have a scenario in which I get a message from SAP. In this message their are multiple item structures and 1 header structure. Now I have to sent these items to a WS seperately and collect the messages  from the WS response in one message with a header.
    Something like:
    Receive Message -> split message (message mapping) -> send all to WS / receive response for everyone -> collect messages from response in a new message -> send the new message to another WS
    How can I do this in BPM?

    Hi Chris,
    Your design should be like this:
    Start --> Receive --> Transform1 (Do the split and multimapping) -->  Send Step1 (Synchronous) --> Send 2 (Send Response from send1 to the output) --> Stop.
    Regards,
    ---Satish

  • Splitting and Allocating Capacity in the enhancement CY190001

    Dear All
    How can we split and allocate Capacity in the enhancement CY190001 -
    Capacity Planning: Change order operation.
    Can You indicate the steps to process to split and allocate Capacity in
    enhancement CY190001?
    Can You indicate other enhancement to use to split and allocate
    Capacity?
    Best Regards
    Thanks in advance.
    Pedro Miguel Rodrigues

    Hi Raftiman,
    What do you want to set in the system?
    You dont want next available capacity to be used up?
    If that is the requirement then you can mention as overload % in the work center -capacity header
    Revert for further discussion
    Regards,
    SVP

  • Output from dbms_output.put_line splits and move to next line

    Hi All,
    I am printing out a list using dbms_output.put_line its like
    One or more of following Required Parameters are missing:
    1. Primary Field
    2. Structure Field
    3. Structure
    Table
    4. List File Name
    5. Query Directory
    6. Query String
    but I don't know why third option is splitting and moving to second line. any idea? its not that long even then.
    thanks

    set linesize 150
    or set it as per your requirement

  • Doc splitting and new Gl a/c

    Hi All,
    can any one tell me the difference between doc splitting and new gl concept. and explain me how will it useful in preparing profit center wise balance sheet.
    and pls explain me the configuration steps.
    Thanks In advance
    Sarayu

    Hi
    Document splitting enables a complex display of documents. Line items are split here for selected dimensions. This ensures that you can draw up complete financial statements for the selected dimensions at any time. Below example would further clear :-
    Suppose a vendor invoice containing the following items is entered:
    Posting Key Account Segment Amount
    31 Payable 100.00-
    40 Expense 0001 40.00
    40 Expense 0002 60.00
    Document splitting then creates the following document in the general ledger view:
    Posting Key Account Segment Amount
    31 Payable 0001 40.00-
    31 Payable 0002 60.00-
    40 Expense 0001 40.00
    40 Expense 0002 60.00
    Settings for Splitting are as follows :-
    In the IMG, choose Financial Accounting (New)->General Ledger Accounting (New)-> Business Transactions-> Document Splitting.
    1. Classify G/L Accounts for Document Splitting - You need to classify the individual document items so that the system knows how to handle them. You do this by assigning them to an item category. The item category is determined by the account number. In this IMG activity, you need to assign the appropriate accounts.
    2. Classify Document Types for Document Splitting - Every business transaction that is entered is analyzed during the document splitting process. In this process, the system determines which splitting rule is applied to the document. To enable the system to determine the splitting rule, you need to assign a business transaction variant to each document type.
    3. Define Zero-Balance Clearing Account - Here you define a clearing account for account assignment objects for which you want to have a zero balance setting when the balance is not zero.
    4. Define Document Splitting Characteristics for General Ledger Accounting - Here you specify to which document splitting characteristics document splitting applies, for example, profit center or segment. The characteristics that you specify should be maintained in at least one of your ledgers. You determine which characteristics are maintained in your ledger by assigning scenarios or customer fields to your ledgers.
    You also define how this characteristic is to be handled by specifying, for example, whether you want to apply a zero balance setting, whether the field is a required entry field, and the appropriate partner field.
    5. Define Document Splitting Characteristics for Controlling - Here you specify which additional characteristics you want to apply in document splitting. The additional characteristics are not relevant for General Ledger Accounting. Instead, they are relevant for components in Controlling that use documents transferred from General Ledger Accounting.
    6. Define Post-Capitalization of Cash Discount to Assets - Here you define whether the cash discount that is applied in the payment of an asset-relevant invoice should be capitalized to the asset. When you select this setting, the cash discount amount is not posted to the cash discount account in the payment document, but instead directly to the asset.
    7. Edit Constants for Nonassigned Processes - Here you define default account assignments (for example, a default segment) for specific line items in processes for which it is not possible to derive the correct account assignments at the time when the document is posted. This is the case if the required information is not yet available when the posting occurs.
    8. Activate Document Splitting - In this IMG activity, you activate document splitting. The splitting method used is that delivered by SAP as standard, which contains the splitting rules for the different business transactions. If this splitting method does not meet your requirements, you can first define and then select your own method in Customizing for document splitting (see the next step).
    Settings for Extended Document Splitting
    Here you define your own rules for document splitting and make the necessary settings so that the system applies the rules you defined and not the SAP standard rules.
    9. Define Splitting Method - Here you define your own method for document splitting. A splitting method contains the rules governing how the individual item categories are dealt with.
    10. Define Splitting Rule - Here you define the splitting rules for document splitting. You assign one or more business transaction variants, the account key for the zero balance setting, and the leading item categories for cross-company code transactions to a splitting method.
    11. Assign Splitting Method - Here you assign the splitting method to be used for document splitting after activation. If you want to activate your own splitting method, replace the standard method with your own method.
    12. Define Business Transaction Variants - Here you can define business transaction variants for the business transactions in document splitting.
    Regards,
    R.Ramakrishnaraj

  • INVOICE SPLIT AND CONSOLIDATION

    Hi Everyone!
    Do you happen to know any site that I can search for information on invoice split and consilidation? Or perhaps you can share with me some of the documents you have.
    I'll promise to reward points for those who'll give me answers. Thanks!!

    Hi Clarey,
    Invoice Split by Item Category-
    In trx VTFA (if your billing is sales order based) choose your billing type and SO type, there select your item categories and there select the field VBRK/VBRP data. In that field you will see the currently used routine. With the help of your ABAP guy create a copy of that routine under a different number and add your lines of code. Let's say you use routine 001. 
    FORM DATEN_KOPIEREN_001.
    Header data
    VBRK-xxxxx = ............
    Item data
    VBRP-xxxxx = ............
    Additional split criteria
    DATA: BEGIN OF ZUK,
    MODUL(3) VALUE '001',
    VTWEG LIKE VBAK-VTWEG,
    SPART LIKE VBAK-SPART,
    END OF ZUK.
    ZUK-SPART = VBAK-SPART.
    ZUK-VTWEG = VBAK-VTWEG.
    VBRK-ZUKRI = ZUK.
    ENDFORM.
    This is how it should look after modification:
    Header data
    VBRK-xxxxx = ............
    Item data
    VBRP-xxxxx = ............
    Additional split criteria
    DATA: BEGIN OF ZUK,
    MODUL(3) VALUE '001',
    VTWEG LIKE VBAK-VTWEG,
    SPART LIKE VBAK-SPART,
    PSTYV LIKE VBAP-PSTYV,    <- New line
    END OF ZUK.
    ZUK-SPART = VBAK-SPART.
    ZUK-VTWEG = VBAK-VTWEG.
    ZUK-PSTYV = VBAP-PSTYV.   <- New line
    VBRK-ZUKRI = ZUK.
    ENDFORM.
    After this routine is created and activated place it as the default copy control routine instead of the old ones.
    REWARD POINTS IF U FINDS THIS AS USEFUL...
    Regds
    MM

  • Why GL balance  is splitting and displaying Bus. Area wise in F.01

    Why GL balance  is splitting and displaying Bus. Area wise in F.01, eventhough I have selected Bus. Area summarization 3 under output control tab.

    Hi Paul,
    Even after selecting 3 in output control under BA summarization it is dispalying same as earlier.  Even i have tried by selecting for both Company code summarization and BA summarization as 3, it is not displaying correct.

  • Workflow Components : how to use SPLIT and JOIN ?

    Dear all,
    Because a Transition does not have any return of result, do you know how to use SPLIT and JOIN components ?
    <activity name='"xyz">
    <Transition to='act1'>
    </Transition>
    <Transition to='act2'>
    </Transition>
    </activity>
    In this above example, the second transition towards act2 is never called (i.e. there is no condition for the first transition) because there is no return of result for the first transition.
    Unfortunately, I didn't find any documentation about the SPLIT and JOIN workflow components. Do you have some information about these components ? How to use them ?
    Thanks a lot.

    <activity name='"xyz" andSplit='true'>
    <Transition to='act1'>
    </Transition>
    <Transition to='act2'>
    </Transition>
    </activity>
    The "andSplit='true'" will cause it transition to both act1 and act1.

  • PE-11: when adding music to a program the video splits and if it is draged back together the music s

    PE-11: when adding music to a program the video splits and if it is dragged back together the music splits.
    How can I get around this problem?

    Glenda,
    As a test, try dragging, while holding the Ctrl/Cmd modifier key, that "music" to Audio Track 2, and the "bird sounds" SFX file to Audio Track Audio Track 3. There have reports from other users, where the Fixed Audio Tracks, Narration and Soundtrack have caused problems. Those problems seem to be Project-specific. If your Timeline does not have Audio Tracks 1 - 3 already, you can use Add Tracks. The use of the Ctrl/Cmd key, changes how PrE handles existing files on the Timeline, when adding Assets. This usually comes into play, when one is adding Video, or Stills, and should not really affect those, when only adding Audio, but remember, this is only a test.
    Good luck,
    Hunt

Maybe you are looking for