How to Right Align the output of amount with currency?

Hi,
I have the following SQL query, which basically is the duplication of the SAP standard Item List.  The only difference is, the stock on hand is only for Warehouse 01.
In the output, I manage to display eg: AUD 1321.00.  However, it is aligned to the center.  Is there a way that I can make it right align like the standard report?  Appreciate your help.
SELECT T0.[ItemCode], T0.[ItemName], (select T100.OnHand from OITW T100 where T100.ItemCode=T0.ItemCode and T100.WhsCode='01') as 'InStock',T0.[CodeBars], T1.[ItmsGrpNam], T2.[FirmName], T0.[InvntryUom],
('AUD'+ replicate(' ',16-len(T0.[LstEvlPric])) + Convert (char(18),(cast ((round(T0.[LstEvlPric], 2)) as decimal(16,2))))  ) as 'Last Eval Price', (T0.[LastPurCur]+ replicate(' ',16-len(T0.[LastPurPrc])) + Convert (char(18),(cast ((round(T0.[LastPurPrc], 2)) as decimal(16,2))))  ) as 'Last Pur. Price',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=1 and T200.ItemCode=T0.ItemCode) as 'L 1',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=2 and T200.ItemCode=T0.ItemCode) as 'L 2',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=3 and T200.ItemCode=T0.ItemCode) as 'L 3',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=4 and T200.ItemCode=T0.ItemCode) as 'L 4',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=5 and T200.ItemCode=T0.ItemCode) as 'L 5',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=6 and T200.ItemCode=T0.ItemCode) as 'Price List 6',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=7 and T200.ItemCode=T0.ItemCode) as 'Price List 7',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=8 and T200.ItemCode=T0.ItemCode) as 'Price List 8',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=9 and T200.ItemCode=T0.ItemCode) as 'Price List 9',
(SELECT T200.[Currency] + replicate(' ',16-len(T200.Price)) + Convert (char(18),(cast ((round(T200.[Price], 2)) as decimal(16,2)))) FROM ITM1 T200  INNER JOIN OPLN T201 ON T200.PriceList = T201.ListNum where T200.PriceList=10 and T200.ItemCode=T0.ItemCode) as 'Price List 10'
FROM OITM T0  INNER JOIN OITB T1 ON T0.ItmsGrpCod = T1.ItmsGrpCod INNER JOIN OMRC T2 ON T0.FirmCode = T2.FirmCode

Thanks. 
But, does that mean the the right alignment in SAP Item list was done through UI? 
Another question is:
Normally, in an SAP query, when click Ctrl + left click the mouse at the bottom, I can see the total.
However, with the query that I have created, it seems to cut off the first number.  Eg: The total should be AUD 231,123.00, but it is showing me AUD 31,123.
Can you see how I can fix that?

Similar Messages

  • How to right align the buttons in JOptionPane?

    Hi,
    I am using JOptionPane in my code.
    I want all the default buttons that are created by any of the JOptionPane methods (e.g. JOptionPane.showMessageDialog()) be right aligned. Currently all the buttons are shown center aligned.
    Here is the only code that I have to display the dialog:
    JOptionPane.showMessageDialog(getInstance(), msg, "Deprecated components", JOptionPane.WARNING_MESSAGE);
    Can someone tell me how to achieve this?
    Regards,
    ParagJ

    Build your own JDialog

  • How do I right align the component af:navigationPane?

    First I should say that I use Jdeveloper Studio Edition Version 11.1.1.0.1.
    I have a template that in one place in the template contain these components
    <afh:cellFormat halign="right">
    <af:navigationPane>
    <af:commandNavigationItem/>
    <af:commandNavigationItem/>
    <af:commandNavigationItem/>
    <af:commandNavigationItem/>
    </af:navigationPane>
    </afh:cellFormat>
    I want to right align the cellformat and navigationPane which has the hint property set to bar. I have tried to set the Halign property of the cellFormat to right and if I have an outputText inside the cellformat it gets right aligned so I guess that works but I cant get the commandNavigationItems to right align inside the navigationPane. I have tried to set the the text-align:right; in the navigationPane but that doesn´t work. The only thing that seems to work is to set the width of the last cellformat but since the width of one of the commandNavigationItems varies it isnt a good solution either. Can´t right alignment be done with a navigationPane? Should I choose some other component instead? In case I could use another component instead, which component has similar functionality and can be right aligned?
    Atlantic Viking
    Edited by: Atlantic Viking on Feb 3, 2009 7:22 AM

    Hi,
    I have tried the sample for this :
    <af:panelGroupLayout id="pgl41" layout="horizontal" halign="right">
    <af:navigationPane id="np1" hint="tabs">
    <af:commandNavigationItem id="cn1" text="Test1"/>
    <af:commandNavigationItem id="cn2" text="Test2"/>
    <af:commandNavigationItem id="cn3" text="Test3"/>
    <af:commandNavigationItem id="cn4" text="Test4"/>
    </af:navigationPane>
    </af:panelGroupLayout>
    It works fine.
    Is it af:navigationPage(new tag) or af:navigationPane.

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • How to right align text in JTextArea

    Can u plz tell me how to right align text in JTextArea

    what do you mean by align text in java you mean you have a default text that align in the center is it?
    can you please explain ur question clearly
    Thanks

  • How can i retrieve the output of procedure using a select statement ?

    Hi every one.
    this mite be dumm ?
    how can i use the output of the a procedure containing multiple rows of data in a select statement ?

    This is not  a SQL Developer question. You should ask it in the SQL and PL/SQL forum.
    The short answer is you can't.  Sounds is if you are trying to use MSSQL techniques in oracle. Learn oracle techniques

  • How can i see the output of a form

    I am having one driver program and form.From these two how can i see the output.

    Hi Sunny
    You might already know; but for the driver program; a smartform is just a function module.
    (In the smartform; this function module name can be found in the menu tab Environment -> Function Module Name.)
    Note: The FM 'SSF_FUNCTION_MODULE_NAME' is obviously the correct way of getting the FM name from the smartform name !!
    So all you need to do is call this function module passing any variable / tables you need to pass to the smartform from your driver program.
    Hope it helps
    Neer

  • How to set up the output device in output determinatin with customer master

    Hi,
    I am doing the output determination using customer master and not conditions technique.  Can anybody please let me know how to set up the output device . I have done the following:
    1)  assigned output determination procedure DB00001 to acct group 0001
    2)  added output type BA00 to customer master documents tab with print as the medium.
    3)  On creating a sales order and changing it its giving the message
    BA00     515     No printer defined for output BA00
    Please provide me with some suggestions , how to resolve this issue.
    thanx
    Jayant

    1. tcode V/30 -> check BA00 type -> goto  "print" tab -> what's set in the "print param." field?
    2. IMG ->SD -> basic functions -> output control -> define print parameters -> V1 output -> for BA00 output type -> Assign a default printer. This is related with the "print param." set in step 1.
    For example: if "print parame." is set to '1' in V/30, then the default printer is assigned to sales organization.
    You can check F4 search help on the "print param." field (in V/30) to see what options you have.
    If you want to specify printer by customer account, you may need to use userexit.
    Edited by: Harry Wu on Jun 23, 2010 9:18 AM

  • How do you get the album pictures displayed with the right songs on my iphone 5

    how do you get the album pictures displayed with the right songs on my i phone 5?

    I have the same problem but i only have iphone 4s its only jsut started in the last 2 weeks or so

  • MG3100 scanner- can I control digital rights on the output pdf to enable comments?

    MG3100 scanner- can I control digital rights on the output pdf to enable comments?
    Solved!
    Go to Solution.

    Hi fassettj,
    Enabling comments on PDFs created with your PIXMA MG3100 is not supported using the software bundled with your printer.  For these features, it is recommended that more full featured PDF creation software is used, such as Adobe Acrobat.  For more information, please use the following link:
    http://www.adobe.com/products/acrobatstandard.html
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to right align JTextField content

    Is there a way to right align the content of a JTextField?

    In the JDK1.4.2 API for JTextField, the are 7 methods that start with "set...". It shouldn't be to hard to guess which one would be used for right aligning the contents of the JTextField.

  • How do you load the Output Mod in Bridge

    How do you load the Output Mod in Bridge?

    I downloaded the AOM_Mac zip file from Adobe and copied the contents 1
    Adobe Output Module and 2 Adobe output Module workspace to
    Library/AppSupport/Adobe/BridgeCCExtensions.  When I open Bridge the Output
    Module shows in preferences under Startup Scrips, but not in the menu bar
    or in the Window/workspace bar.  So I can not access it.  I'm thinking of
    just not using bridge and just going with Lightroom and photoshop, as I
    think I can do more in Lightroom than bridge anyway.  cheers~photoick

  • How can I disable the output of the domain name after a getent request?

    I use an iPlanet DS 4.13 to resolve the hostnames to IP-adresses in my company network. I have several scipts in use which use the getent command to resolve name to IP, but if I do a 'getent hosts hostname' I get an output like this:
    123.123.123.123 hostname.domainname
    How can I disable the output of the domainname? I just want to get back the IP-adress and the hostname?!
    Help, please?!

    The enrty in Ur DS for name to ip resolution might
    have been given in the format "hostname.domainname" for the hostname.so if U remove the domainname it would resolve to the host name only.Check the attribute field in Ur directory server where U've entered the hostname.

  • How we can get the Trial balance in other currency -USD now.

    Hi All,
    I have an issue reg: My client  had gone live in 2005 and only One Currency is defined u201CINR u201D as company code currency and Controlling area currency.
    Controlling area settings are maintained as: Controlling Area Same as Company Code and Currency Type maintained is: Company code currency u2013 INR.
    Even in OB22, No parallel currencies (Group currency, Hard currency, Index based currency, Global company currency) are defined.
    Now, my client is asking to have the Trial Balance (F.08) in currency u201CUSDu201D,but at present we are getting it is "INR" only.
    Is it possible to get the Trial balance (F.08) in USD , for the previous posted document values(They did all the postings in INR only)
    How we can get the Trial balance in other currency -USD now.
    Please suggest and guide.
    Thanks in advance
    Regards,
    Sudha.

    Hi,
    First you need to enter USD as HARD CURENCY for your company code's country settings.
    Then in OB22, for your Company code, enter Currency type 40 as additional local currency (LC2)
    Legal Valuation
    Exch rate type M
    Sour Curr 1
    TRs Date Type 2 ...and now save.
    By making these changes, you will be getting F.08 in USD by specifying currency type as 40 in the selection screen of this report.
    The only thing you wont get here is that.............you cannot determine USD values for documents, which are already posted into the system.
    For the time being...you can use report S_ALR_87012279 - Structured Account Balances....in this selection screen enter USD as output currency, tran key date and exch rate type M....to get the LC values to be converted into USD during this report only. (this is as good as fast food)
    As suggested above, use of special purpose ledger is all together a different concept....you dont need to go for it.
    Regards,
    Srinu

  • How do I change the email Address associated with my FF forum userid?

    I am new to the FF help forum and I can't find an appropriate place to post this. How do I change the email address associated with my FF help forum registration? I tried to use my personal email address but somehow it says it's already registered - but it won't give me the userid. I used a business email address to register now but I want to try to get it over to my personal email address - if FF forum will let me do that.
    thank you

    If you are logged on to the SUMO site then you should see a "Welcome, ffuserX" message in the side bar at the right with a link to go to your profile.<br />
    Click the "Edit My Profile" button and you have a "Change" button next to your current email address.

Maybe you are looking for

  • Magic Mouse will not scroll in Windows 7 boot camp, but works fine in Mac OS

    I have a Magic Mouse that was working fine it would scroll and everything, then one day it just randomly stopped working in my Windows 7 bootcamp partiontion. I went to the Mac OS to see if there was anything wrong with the mouse, but it works fine i

  • Does JBoss has allow-concurrent-calls like in Weblogic for recursive method

    I have my problem listed at http://jira.jboss.com/jira/browse/JBAS-1443 My problem is that i am using Recursive function and so I need to have my Stateful bean accessed through remote interface but such access is blocked due to EJB specification. The

  • How to use third party components?

    I have downloaded a third party component. Please tell me how to use it. Which file/folder am I suppose to place in the libs folder. Where can I find this .svc file in the component folder. Thanks in advance. Regards, Pooja

  • Creating external files (.txt, .json, etc)

    Hello everyone, I'm currently trying to find out how to create external files from a SWF/exe/app file created in Flash. Essentially I'm building a program to create templates for levels in a game. The SWF will be run locally (e.g. not online) and wil

  • How find out type of resource (folder/doc) ...

    Hi all! I need to classify KM resourses in a taxonomy and I don't know how can I find out type of the resourses (whether the resourse is folder or document). Is the type stored in any indexable property? Thanks in advance for any idea! Regards Zbynek