How to show value and unit in different columns

Hi All,
I need ABAP help for the below requirement in BI7.0
Data source contains  the field Amount in local currency (Data source is flat file of CSV format)
Amount in local currency
       1000  INR
       2000  INR
       1000  GBP
       2000  EUR
I have to get this value in target like below( value and unit should be in different columns)
Amount in local currency              0currency
       1000                                           INR
       2000                                           INR
       1000                                           GBP
       2000                                           EUR
Can any one help me how to declare the data type for  Amount in local currency and how to show this value in two columns in the target.
Thanks,
kishore.

TYPES:BEGIN OF ty_stru,
  s1 TYPE string,
END OF ty_stru,
BEGIN OF ty_stru1,
  s2 TYPE string,
  s3 TYPE string,
  END OF ty_stru1.
DATA:itab TYPE TABLE OF ty_stru,
      wa LIKE LINE OF itab.
DATA:itab1 TYPE TABLE OF ty_stru1,
     wa1 LIKE LINE OF itab1.
START-OF-SELECTION.
"--Input--
In input 1000 and USD having space
  wa-s1 = '1000 USD'.
   APPEND wa TO itab.
  wa-s1 = '1000 INR'.
   APPEND wa TO itab.
  wa-s1 = '1000 EUR'.
  APPEND wa TO itab.
"--Input--
  LOOP AT itab INTO wa.
SPLIT wa-s1 AT space INTO  wa1-s2 wa1-s3.*------> split command
APPEND  wa1 TO itab1.*---------------->splited value store into another internal table
  ENDLOOP.
"--Display--
  LOOP AT itab1 inTO wa1.
    WRITE: wa1-s2,
           wa1-s3.
  ENDLOOP.
"--Display--
Output:
1000 USD
1000 INR
1000 EUR
This is simple prgram for split a string into two different string based on space
regards
Dharma
Edited by: dharma raj on Aug 19, 2009 2:01 PM

Similar Messages

  • How to show value of COUNT_QUERY in a text Item?

    please tell me how to show value of COUNT_QUERY in a text Item?

    If you look a bit further down the thread Rosario posted, you might find the method DanielLiang posted to be easier to implement for you.
    you can use calculation:
    example :
    Database Data Block: block1 ( Query All Records : Yes )
    not Database Data Block : block2 (Single Record : Yes)
    block2 has a text item (number) ,it calculation property :
    calculation mode : summary
    summary function : count
    summarized block : block1
    summarized item : item1(block1's item)

  • How to Show floders and documents as a tree structure from path only

    sir,
    I am doing system side project using Java..
    so i want to know how to show folders and documents as tree structure format..
    plz give your idea regarding this?

    See for example Tree taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm

  • How to create User and Database in different Table spaces

    How to create User and Database in different Table spaces using oracle 10g
    Regards
    daya

    I am sorry but your question does not seem to make much sense.
    Can you please rephrase your question?

  • How to use javasetters and getters in different classes

    how to use setters and getters in different class so that the setvalue in one class is effect in second class for getting

    If i got your question right,
    make sure your classes are in the same package
    make sure your getters are public/protected
    make sure your code calls the setter before calling the getter
    Kind regards

  • How to show module and SFP information include hardware serial number on Nexus switch?

       How to show module and SFP information include hardware serial number on Nexus switch?                 Thanks.

    Hi,
    The show inventory command will give you details of the Nexus chassis, power supplies, Supervisor, Fabric, I/O modules (including FEX if you have them) etc. To get the details of the installed SFP/SFP+ then you'll need to use the show interface transceiver command.
    Regards

  • Balancing Segment Value set Does't show values and Giving error Page.

    In R12,LOV of Balancing segment, doesn't show values and giving error page while creating Retained Earnings Account in Ledger Options Page.
    If once the ledger options finished, and it gets the status completed, can't we modify the Ledger options in future.
    By mistake we finished. can i delete Primary ledger from Accounting stucture?
    Thanks in advance,
    VRC Murthy

    Turn on the dynamic insert for your chart of account structure.
    Make sure you have at least one value in each of the value value set attached to COA segments. Make sure retained earning account value exists in your Account value set.
    Now you will be able to pick your retained earnings account in Accounting Setups screen.
    After completing your ledger setup you will be able to modify some options like suspense account, reversal set, future enterable periods etc.
    I have explained the GL setup in detail in my online training videos at http://handsonerp.com
    Regards
    Edited by: user2648997 on Nov 13, 2009 11:50 AM

  • Good night,  I ended up making a purchase at Apple, but my credit card operator called me to confirm the values ​​and was told different values ​​than bought.  Purchases appeared as:  $ 159.70 (protocol 604627) $ 137.00 (protocol 604538) $ 105.39 (protoco

    good night,
    I ended up making a purchase at Apple, but my credit card operator called me to confirm the values ​​and was told different values ​​than bought.
    Purchases appeared as:
    $ 159.70 (protocol 604627)
    $ 137.00 (protocol 604538)
    $ 105.39 (protocol 604468)
    $ 0.01 (protocol 615633)
    Could you check what is happening? Because I had to cancel my card for security.
    Sincerely,

    np33td33 wrote:
    My purchases were:
    macBookPro
    office 2011
    iwork
    ilife
    and these purchases did not appear in the system credit card
    Call Apple at 1800MYAPPLE.  We just deal with MacBook Pro issues, and we have nothing to do with Apple.  Please read what others have posted.

  • How to set value to dimension1,2,3 column in AP Invoice?

    Dear All,
    I have a problem when creating AP Invoice using SAP B1 2005 B DI/API. The problem is when i can not find dimension1, dimension2, and dimension3 properties in oDraft.Lines. (oDraft is my variable for object  oPurchaseInvoices).
    How to set value to dimension1,2,3 column in AP Invoice using DI/API ?
    Regards,
    Herfin J.

    Hi! Yatsea,
    I am working with 2007B, In the order reference of B1WS, I found only CostingCode and COGSCostingCode provided:
    OrdersService.DocumentDocumentLine.CostingCode() As String
    OrdersService.DocumentDocumentLine.COGSCostingCode() As String
    Where are the rest 4 dimensions for both of them?
    Plus, I also got the XML from DI server, with only one CostingCode exposed.
    Thanks
    Constantine

  • How to show values with initial sort asc/desc in 11.5.10 iProcurement page?

    (Logged Bug 12902576 with OAFramework DEV, but OAF DEV closed the bug and advised to log the issue here in the forum)
    How to have values sorted in ascending order when user first navigates to the page?
    Currently the values are unsorted, and are only sorted after the user clicks the column heading to sort the values. We expect the users should not have to click the column heading, but instead that the values should be sorted in ascending order when the user navigates to the page. This issue occurs on an OAFramework based page in iProcurement application.
    PROBLEM STATEMENT
    =================
    Receipts and Invoices are not sorted in iProcurement Lifecycle page even after implementing personalization to sort ascending on Receipt Number and Invoice Number. Users expect the receipts and invoices to be sorted but they are not sorted.
    STEPS TO REPRODUCE
    1. Navigate to iProcurement
    2. Click the Requisitions tab
    3. Search and find a requisition line that is associated to a Purchase Order having multiple receipts and multiple invoices.
    4. Click the Details icon to view the lifecycle page where the receipts and invoices are listed
    - see that the receipts are not sorted, and the invoices are not sorted
    5. Implement personalization to sort in ascending order for Receipt Number and for Invoice Number. Apply the personalization and return to page.
    - the receipts and invoices are still not sorted.
    IMPACT
    Users need the receipts and invoices sorted to make it easier to review the data. As a workaround, click the column heading to sort the results
    Tried workaround suggested by OAFramework DEV in Bug 12902576 but this did not help.
    TESTCASE of suggested workaround
    NAVIGATION in visprc01
    1. Login: dfelton / welcome
    2. iProcurement responsibility / iProcurement Home Page / Requisitions tab
    3. Click the Search button in the upper right
    4. Specify search criteria
    - Remove the 'Created by' value
    - Change 'Last 7 Days' to 'Anytime'
    - Type Requisition = 2206
    5. Click Go to execute the search
    6. Click the Requisition 2206 number link
    7. Click the Details icon
    8. In the Receipt section, click the link 'Personalize Table: (ReceivingTableRN)'
    9. Click the Personalize (pencil) icon
    10. Click the Query icon for Site level (looks different than the screenshots from OAFramework team, because this is 11.5.10 rather than R12
    - Compare this to the Table personalization page show in the reference provided by OAFramework team -
    http://www-apps.us.oracle.com/fwk/fwksite/jdev/doc/devguide/persguide/T401443T401450.htm#cust_persadmin_editperprop
    11. See on the Create Query page
    Sorting
    No sorting is allowed
    The Query Row option becomes available in personalize after setting the Receipt Number row to Searchable. However, even after clicking the Query icon to personalize, it is not possible to specify sorting. There is a Sorting heading section on the personalization page, but there is also a statement: No sorting is allowed
    The workaround mentioned by OAFramework team in Bug 12902576 does not work for this case
    - maybe because this is 11.5.10 rather than R12?
    - maybe similar to Bug 8351696, this requires extension implementation?
    What is the purpose of offering ascending/descending for Sort Allowed if it does not work?
    Please advise if there is a way to have the initial sort in ascending order for this page.

    I´m sorry that you couldn´t reproduce the problem.
    To be clear:
    It´s not about which symbol should seperate the integer part from the fraction.
    The problem is, that i can´t hide the fraction in bargraph.
    The data im showing are integers but the adf bar graph component wants to show at least 4 digits.
    As I´m from germany my locale should be "de" but it should matter in the test case.
    You can download my test case from google drive:
    https://docs.google.com/open?id=0B5xsRfHLScFEMWhUNTJsMzNNUDQ]
    If there are problems with the download please send me an e-mail: [email protected]
    I uploaded another screenshot to show the problem more clear:
    http://s8.postimage.org/6hu2ljymt/otn_hide_fraction.jpg
    Edited by: ckunzmann on Oct 26, 2012 8:43 AM

  • How to show Date and Time with TimeZone

    Dear All,
    I have to show Date and Time with TimeZone abbreviation,
    for example:
    1) 31 March 2011 2:30 in india standard time - it should show in screen 31 March 2011 2:30 IST.
    2) 31 March 2011 2:30 in Australia/New Zealand - Eastern time zone it should show in screen 31 March 2011 2:30 AEST.
    how can i show *Australia/New Zealand - Eastern time zone to AEST*,
    I tried with format DD MMM YYYY HH:MM zzz, and i looked time zone API too.
    Appreciate your help
    Thanks
    Daya

    Dayananda wrote:
    ok, than i have to use zzzz format, as z won't help in my case, so i have to use zzzz which display descriptive value like, Indian Standard Time i.e. ISTPer the javadocs there is a very specific reason why that is a problem especially if you intend to support many timezones in one application.
    "+For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them+."
    Thus you have one single case where there can be many and moreover it can change (twice a year I believe.)
    There is a standard source for this information although when I tried it it appears to not work.
    If the app only needs to display one zone then provide a configuration value that allows a user to overload the display value.
    If the app needs to display many values then you MUST inform business users of the problem because there are duplicates and they, not you, need to decide specifically what happens in those cases.

  • List Box showing Value and Display members?

    Ok this is a CONCEPT problem (the code is not professional, just read it for the concept, though it does compile and run).
    Right, I have asked many people on IRC and no one is giving me a straight answer lol so maybe some professionals can help me.
    I am trying to use a Datasource property for my combobox. This is so I can just pass an entire KeyValue pair with indexes and values to be shown in the listbox.
    Creating the keyvaluepair as a WHOLE and passing that to datasource property works perfectly.
    Creating a keyvaluepair PROCEDURALLY (in a loop or w/e) ends in the datasource property ToString()ing it, list box items show BOTH value AND display members in square brackets as an entire option.
    NOTE: Getting the lsitbox.value results in ONLY the valuemember being returned even though the listbox shows both the valuemembers AND the displaymember? it knows they are different?
    Now, I dont want any alternatives or comments about the quality of the code, all I want to know is WHY is it doing this, it seems compeltely illogical that the same TYPE and Values and can different Effects within the datasource property? Its like it knows
    it was built procedurally?
    Anyway here is some code for reference:
    // Windows Form
    namespace skbtInstaller
    public partial class frmMainWindow : Form
    public frmMainWindow()
    InitializeComponent();
    // coxArmaPath = Combo Box (simple drop down)
    this.cBoxArmaPath.ValueMember = "Key";
    this.cBoxArmaPath.DisplayMember = "Value";
    public void addServerPathItem(String Key, String Value)
    this.cBoxArmaPath.Items.Add(new KeyValuePair<String, String>(Key,Value));
    // This works fine, only the "DisplayMember" is displayed and the "ValueMember" is hidden.
    // This acts differently with the same types???
    public void setServerPathDatasource(List<KeyValuePair<String, String>> source)
    this.cBoxArmaPath.DataSource = new BindingSource(source, null);
    public class skbtServerControl
    private frmMainWindow frmMainWindowHandle;
    public void refreshformWindow()
    // Clear Drop Box (empties drop box)
    this.frmMainWindowHandle.clearPathBox();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in CoreConfig.getServerConfigList())
    // Populate Drop Box
    this.frmMainWindowHandle.addServerPathItem(pair.Key, pair.Value.getTextualName()); // this works as intended
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // This works absolutely fine. ValueMembers are hidden.
    public void refreshformWindowWithSTATICDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>()
    new KeyValuePair<String, String>("testKey1", "somevalue1"),
    new KeyValuePair<String, String>("testKey2", "somevalue2"),
    new KeyValuePair<String, String>("testKey3", "somevalue3")
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // ** HERE IS THE PROBLEM?? **
    // This creates a type that seems different to the above function which works fine...
    public void refreshformWindowWithDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in CoreConfig.getServerConfigList())
    pathDataSource.Add(new KeyValuePair<String, String>(pair.Key, pair.Value.getTextualName()));
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like [asjAETJQ5785d45,Some Display Text], [asawfgQ5785d45,Some Display Text], [asjAhrrQ5785d45,Some Display Text]
    // ????? surely this function should act exactly like the function above??
    Thanks!
    (I have posted on codeproject too, will condense any replies).
                 

    Thanks Michael!
    I did debug this and it turns out when i set a new BindingSource to the combo box, indeed the DisplayMember gets reset. Oddly though, the ValueMember stays the same.
    I have fixed this with setting the Members before every new bindingSource is set to the combobox, strange that only the displaymember is reset?
    For reference, the new resolved code: (this compiles albeit with designer components placed)
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    namespace etstapp1
    public partial class Form1 : Form
    private skbtServerControl sc;
    public Form1()
    InitializeComponent();
    this.sc = new skbtServerControl(this);
    // coxArmaPath = Combo Box (simple drop down)
    this.cBoxArmaPath.ValueMember = "Key";
    this.cBoxArmaPath.DisplayMember = "Value"; // This doesnt seem to stick after the first datasource set??
    public void addServerPathItem(String Key, String Value)
    this.cBoxArmaPath.Items.Add(new KeyValuePair<String, String>(Key, Value));
    // This works fine, only the "DisplayMember" is displayed and the "ValueMember" is hidden.
    // This acts differently with the same types???
    public void setServerPathDatasource(List<KeyValuePair<String, String>> source)
    this.cBoxArmaPath.DisplayMember = "Value"; // fix datasource problem
    this.cBoxArmaPath.ValueMember = "Key"; // fix datasource problem
    this.cBoxArmaPath.DataSource = new BindingSource(source, null);
    public void clearPathBox()
    if(this.cBoxArmaPath.DataSource == null){
    this.cBoxArmaPath.Items.Clear();
    else
    this.cBoxArmaPath.DataSource = null;
    private void btnStatic_Click(object sender, EventArgs e)
    this.sc.refreshformWindowWithSTATICDatasource();
    private void btnNormal_Click(object sender, EventArgs e)
    this.sc.refreshFormWindow();
    private void btnDynamic_Click(object sender, EventArgs e)
    this.sc.refreshformWindowWithDatasource();
    public class skbtServerControl
    private CoreConfig CoreConfig;
    private Form1 frmMainWindowHandle;
    public skbtServerControl(Form1 f){
    this.frmMainWindowHandle = f;
    this.CoreConfig = new CoreConfig();
    public void refreshFormWindow()
    // Clear Drop Box (empties drop box)
    this.frmMainWindowHandle.clearPathBox();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in CoreConfig.getServerConfigList())
    // Populate Drop Box
    this.frmMainWindowHandle.addServerPathItem(pair.Key, pair.Value.getTextualName()); // this works as intended
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // This works absolutely fine. ValueMembers are hidden.
    public void refreshformWindowWithSTATICDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>()
    new KeyValuePair<String, String>("testKey1", "somevalue1"),
    new KeyValuePair<String, String>("testKey2", "somevalue2"),
    new KeyValuePair<String, String>("testKey3", "somevalue3")
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // ** HERE IS THE PROBLEM?? **
    // This creates a type that seems different to the above function which works fine...
    public void refreshformWindowWithDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in this.CoreConfig.getServerConfigList())
    pathDataSource.Add(new KeyValuePair<String, String>(pair.Key, pair.Value.getTextualName()));
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like [asjAETJQ5785d45,Some Display Text], [asawfgQ5785d45,Some Display Text], [asjAhrrQ5785d45,Some Display Text]
    // ????? surely this function should act exactly like the function above??
    public class CoreConfig
    public Dictionary<String, skbtServerConfig> getServerConfigList(){
    return new Dictionary<string, skbtServerConfig>()
    {"somekey1", new skbtServerConfig("somename1")},
    {"somekey2", new skbtServerConfig("somename2")}
    public class skbtServerConfig
    private String name;
    public skbtServerConfig(String name)
    this.name = name;
    public String getTextualName()
    return this.name;
    Talking with someone it seems logical that every time I set a new BindingSource the component will not know if I want to keep the same member values so it resets them, but why it only resets displaymember? very strange to me.
    Thanks again.

  • How to display values and new char line (blank line)

    Hi,
    In database, one field contains values followed by new character lines (blank lines) after blank lines there is no values. Finally, I would say the field contains values and blank lines. Every thing is fine in database.
    In Crystal Reports the field is displaying only values. Need to display values and blank line.
    User is asking after values new character lines (blank line) to be shown. They enter like that in an application. The user doubt is why report is not showing what they enter in the application.
    In detail explanation, front end tool is ASP.NET and backend is SQL Server.
    User enter some values in note field, after that they hit enter button in the same field, cursor will go next line...user may hit u2018enter buttonu2019 more than 5 times. So note field contain values and some blank lines which are created by after hitting enter button.
    If user opens the application, they could see values plus blank lines in the note field.
    They are fine with the application.
    In Crystal Reports, the note field shows only values.
    User is questioning that why we could not see in report we enter.
    I checked in .Net application and SQL server database it is fine. It is displaying values and blank line.
    Please help me out how to display values followed by blank lines in Crystal Reports - the way they enter in the application.
    Thanks and Regards,
    Manjunath N. Jogin

    Hi,
    Sharonmat,
    I tried as you suggested. It is still displaying only values.
    I would like to explain again.
    it is not exactly null values.
    In .Net application it is called 'new char line'.
    it shows those many lines look like null.
    it is working fine in database.
    Why it is not working in Crystal Reports? I am wondering...
    Thanks for your suggestion.
    Debi,
    User may enter any number of blank lines or they may not enter blank lines.
    That is the reason I can not always give more height or blank text object.
    Thanks for your suggestion.
    Please suggest me some more suggestions,
    Thanks and Regards,
    Manjunath N. Jogin

  • How calculate original value and accumulated depreciation ?

    recently,FI department let me develop a report about fixed
    assets,which need show original value , accumulated depreciation. but
    my problem is I can not fix where I can draw out the correct data ,ANLC
    or ANLP ? FI key user told me that the T-code aw01n can show original
    value and accumulated depreciation ,infact ,it is true,but I don't know
    how T-code aw01n calculate that? specially, I can not fix the
    item 'value ajust' . can you give me a correct calculate formula?

    use logical database ADA - table anlcv
    or use fm FI_AA_VALUES_CALCULATE (look docu)
    hope that helps
    Andreas

  • How to get values and not index in case of SOC?

    I have created a SOC and i need the values in the bean on valuechange event which are present in the dropdown(i.e 20,50,100). But in this case instead of value me getting the index value(i.e 0,1,2)
    How can i get the values and not the index value.
    Query which returns the value is as follow:
    SELECT Id,CODE FROM table_name WHERE TYPE = 'ROWS' AND NVL(DISABLED_FLAG,'N') !='Y' ORDER BY TO_NUMBER(CODE)
    <af:selectOneChoice value="#{bindings.Row.inputValue}"
    label="#{uiBundle.ROWS}"
    required="#{bindings.Row.hints.mandatory}"
    shortDesc="#{bindings.Row.hints.tooltip}"
    id="soc5" autoSubmit="true"
    valueChangeListener="#{pageFlowScope.Bean.rangeChanged}"
    binding="#{pageFlowScope.Bean.row}">
    <f:selectItems value="#{bindings.Row.items}" id="si5"/>
    </af:selectOneChoice>
    Thanks in advance.

    See if it helps:
    http://mjabr.wordpress.com/2011/03/19/reading-the-selected-value-of-a-select-list-in-java/

Maybe you are looking for