Alignment required in to display the  Amount field

Hi Friends,
kindly help me facing problem in to display the amount using decimal places also
nedd to display the Pretax and aftertax amount for that purpose
written below code . 
it is picking amount fields but the amount is printing like this
pretax                  aftertax
$ 34.67               $     0.00
$ 21.64               $   120.90->
I need to display amount fields in order like, thens, hundreds, thousands like.
read table lt_final into ls_final with key bplan = 'PRD'.
   if ls_final-pretx = 'X'.
     pretax = ls_final-eecst.
     write pretax to lv_pre.     "#EC UOM_IN_MES
     concatenate c_dollar lv_pre into lv_dollar.
      shift lv_dollar right deleting trailing space.
*Pretax totals
     lv_pretax = lv_pre.
     read table out_pay1 with key name = 'PRETAX'.
     check sy-subrc = 0.
     out_pay1-value = lv_dollar.
     modify out_pay1 index sy-tabix.
     clear out_pay1.
   else.
     aftertax = ls_final-eecst.
     write aftertax to lv_after. 
     concatenate c_dollar lv_after into lv_dollar1.
      shift lv_dollar1 right deleting trailing space.
Aftertax totals.
     lv_aftertax = lv_after.
     read table out_pay1 with key name = 'AFTERTAX'.
     check sy-subrc = 0.
     out_pay1-value = lv_dollar1.
     modify out_pay1 index sy-tabix.
     clear out_pay1.
   endif.
Thanks,
Sai

Hi Daya,
I would like to print two amount values with decimals.
like :  like Pretax      after tax
                               $      0.00
      $   3.45             $  120.67
      $   0.00             $      0.00
I created using right justification one paragraph format with two tabs
60.00              ch           Right
68.00              ch           Right
But my program output is comming like this.
any one please help me.
Program output:
Pretax               after tax
                               $    0.00
      $   3.45           $  120.67
      $   0.00             $    0.00
Thanks,
Sai

Similar Messages

  • How make display only the amount field in table control(infotype 0008)

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

  • The bill document printed from a contract is not displaying the amount at i

    When we execute the print layout form a bill document from a contract is not displaying the amount at item level however the total amount of the document is correctly displayed in the button of the document.
    Thank you and best regards.

    Hi Alberto
    please check the field which has been mapped in the SAP Script and the Smart form.
    it must be the header amount field. you can replace it with the VBAP_NEtWR or similar fields like kzw1 if you have mapped the sub totla sot get the amount at item levels
    thanks
    akasha

  • How can I remove u0091*u0092 s and display the amount

    My coding
    T1  TOTAL,,,,,,&REGUD-SWABZ&    &REGUD-SWNES&
    Doubt :
    REGUD-SWNES is the value coming from structure REGUD,
    But the value is coming as **********70.250,92
    But I need to display as 70.250,92
    How can I remove ‘*’ s and display the amount ?

    Not sure why it is coming like that.   Is the field length big enough? 
    I guess, you could try....
    translate REGUD-SWNES using '* '.
    condense REGUD-SWNES no-gaps.
    But again, I have no clue as to why you are seeing this.
    Regards,
    Rich Heilman

  • Regardin the commas appearing in the amount field

    Hi all, 
            I have zfield which is of type CURR16 in a ztable. So this stores the amount in the form of 30,00,000.00 i.e, it is displayed wth comma's for the amount field.
            Now i need to fetch this amount field into a particular cell in the webdynpro component. The amount  is being fetched correctly but the comma's are not being displayed(3000000.00) in the Webdynpro component.  This cell is declared as CHAR10. Can any one suggest like how to make this cell displayed with comma's.
    Regards,
    Kalyan Chakravarthi.M

    Hi
    Declare the cell with the same dataelement which you used for the zfield instead of char10.
    Regards
    Tamil

  • How to club the amount field for the particular customer from file

    Hi ,
    In my BDC i am getting the Amount field which is need to be put in the Header data . For 1 Customer there are more than 5 line in amount field in the Excel file.
    For the Particular Customer , I need to club all the amount ffield and put it into the Heade data for the customer.
    How to do this .
    Thanks

    got answer

  • How to supress sign after the amount field

    Hi All,
    How to suppress the sign after the amount field is it using only no-sign or any other ways are there for doing that?
    Regards
    Mahesh

    Hi,
      Please use the Variable type BSEG-DMBTR, which does not support any sign. <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 20, 2008 2:07 PM

  • Put comma in the amount field

    Hi Experts,
    I need to put the comma in the amount field.
    eg: 3000.00 as 3,000.00.
    Is there any FM which can do this conversion.
    Thanks In Advance
    Asish

    The best way is type casting.
    Ex:
    Data: amount(10) Type p decimals 2.
    Value = '3000'.
    WRITE VALUE TO amount.
    Write amount.  "3,000
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • While displaying the amount

    hi.
    i am displaying the amount in smartform. the amount should be displayed as the percentage. but it is displaying as amount.
    eg : tax% is 4.000% . but it is displaying as 40.00.
    can any one tell me the solution.

    Hi J ,
    while working on conddition, its rates u need to remember that all % will be for 1000 not for 100.
    regards
    Prabhu

  • Hourly rate entered in the amount field of IT0008 calculate wrongly in RT

    Hi All,
    Hourly rate 9.52 entered in the amount field of IT0008. The system calculate /250 salary summary as 9.52 in the Result Table RT.
    Kindly advise on what to configure so that it will calculate correct basic salary in RT.
    Regards
    Vince

    9.52 is the RTE in Infotype 008
    Generally , amount will be maintained and that amount will be divided with number of hours and you will get Salary per day
    in your case maintain RTE as 9.52 in IT08
    and in PCR x013... for Grouping 3 Specification 5....... instead of RTE=TSDIVP maintain RTE*TSDIVP and remove DIVID ARR and check the out put once

  • How to display the editable fields in output of an ALV report?

    Hi all,
    I have a requirement of displaying values in ALV Grid format and above this grid display i have to put some fields , that are editable.
    I know making ALV grid fields as editable, but here requirement is to display some fields before displaying the ALV grid dispaly and to enable these fields editable to user and when printing this the values entered by user also has tobe printed.
    Please help me on solving this problem? Is it possible to do this with ALV function modules?
    Thanks,
    Vamshi.

    Hi all,
    Thanks for your replies.
    But this is not  my requirement. I mentioned in my question that i too know how to edit the fields in ALV grid report.
    Here my requirement is .
                                             name :_____________
                                             amount:____________
    alv grid display
    Like above i need to display.  after name the user can be enter value and after amount also the user can be enter some value at output . But this is not the header of ALV .
    Is this possible in classical ALV or Classical report? If not please specify alternative?
    Thanks,
    Vamshi.

  • Displaying the Amount with seperators

    hello ABAPers,
    i have a field displaying the grand total of amount.here i need seperators(comma's)for large amount(hundreds, thousands  and lakhs).
    PLZ help me with the procedure

    Hi Declare a field as
    wf_amount type konv-kwert
    suppose, currently u have ur amount value in the variable wf_var_amout.
    Then write as
    wf_amount = wf_var_amount.
    When u ll print wf_amount , the format will be picked from SU3 settings.
    The su3 settings can be controlled as below
    Go to transaction SU3>Defaults>there u can change the number type, as per your required format...
    Hope this helps u out..

  • How can I autofill the "Amount" field in my eCommerce form using the "Total" from the shopping cart?

    I've found the tags to display the shopping cart summary elsewhere on the site, so I know there's a way to display the total, but I can't figure out a way to fill in the required "Amount" field in the eCommerce form used to process payments. I'd like that "Amount" field to be filled in automatically using the total in the shopping cart. Can anyone help? Thanks!

    You can use the shopping cart summary tag with custom layout.
    Here's the sample:
    <input type="text" value="{module_shoppingcartsummary template="/ModuleTemplates/Shop/cartsummary.tpl"}">
    Inside the shopping cart summary custom layout is a tag for total amount:
    {tag_currency}{tag_totalAmount} or {tag_totalAmountWithCurrency}

  • DIsplaying WRBTR (AMOUNT FIELD)WITHOUT  DECIMAL PLACES

    Dear all,
    I am facing a problem in displaying amount field  in alv report. I have two currency keys (US dollar and Japan yen). if it is japan yen I should not have to show decimal places and if it is US dollar I should show decimal places.
    How can I do it in a alv report if I have only one output amount field?
    thanks
    Ranjan.

    Hi chittaramjan,
    1. use this kind of funda (just copy paste in new program)
    Important things
    a) one extra field in internal table
      declared in the same exact fashion
    waers LIKE tcurc-waers,
    b) Populate this field
    c) REST THE System will take care
       (based upon country settings)
    2.
    REPORT abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA  : BEGIN OF itab OCCURS 0,
            f1  LIKE P0008-BET01,
            waers LIKE tcurc-waers,
            END OF itab.
    START-OF-SELECTION.
      itab-f1 = '-4.15'.
      itab-waers = 'KRW'.
      APPEND itab.
      itab-f1 = '4.68'.
      itab-waers = 'GBP'.
      APPEND itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name     = sy-repid
          i_internal_tabname = 'ITAB'
          i_inclname         = sy-repid
        CHANGING
          ct_fieldcat        = alvfc.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-repid
          it_fieldcat             = alvfc
        TABLES
          t_outtab                = itab
        EXCEPTIONS
          OTHERS                  = 2.
    regards,
    amit m

  • How to maintain the amount field format after GUI_DOWNLOAD

    Hi everyone.
    I have this problem on my object.
    The format of field ERFMG in table AUFM is 3.921,569.
    After I SELECT it INTO an internal table it becomes like this 3921.569
    I would display this internal table in ALV and its ok. Its format is 3.921,569 The format is also not changed when I download it into an excel file using LIST -> EXPORT -> LOCAL FILE -> SPREADSHEET.
    However my program should automatically download to local if the user tick a checkbox in the selection-screen. It will use function module GUI_DOWNLOAD. When this is used, the format of ERFMG changes to 3921.569 again, since it is using my declared internal table.
    How will I use GUI_DOWNLOAD without changing the format of amount fields like ERFMG? What are my other options to do this?
    The Decimal Notation in my User Profile is already set to 1.234.567,89
    Thank you in advance.

    Hi Cris,
    To get the output in the user format for the decimals, try the following code.
    data: wg_dec(7) type p decimals 2.
    data: wg_dcp type usr01-dcpfm.
    data: wg_dec_str(10) type c.
    wg_dec = '111135.67'.
    select single dcpfm from usr01
            into wg_dcp
           where bname = sy-uname.
    move wg_dec to wg_dec_str.
    if wg_dcp ne 'X'.
      replace all occurrences of '.' in wg_dec_str with ',' .
    endif .
    write:/ wg_dec, wg_dec_str.
    I dont feel there is any other option where you can change the decimals format as per the user profile.
    While giving the output of decimal values in a list, the system automatically displays it in the profile set by the user.
    This code will help you to set the decimal value as '.' or ',' as per the user profile.
    Note: It wont add the unit separator for hundreds and thousands. Again you have to do that manually.
    Hope this proves of some help to you.
    Regards,
    Pulkit

Maybe you are looking for

  • Error while executing webgui service

    Hi All, I have created a R/3 system(system object, system alias) in portal and maintained the ITS properties. When i am testing the connection for the ITS its working fine. When i am trying to execute the servie "webgui" in R/3 system by using the T-

  • Accounting document not generated

    Hi , I have created credit memo request in VA01. i have generate biling documnet (credit memo) VF01 but accounting document not generate. it is giving error message when i am trying to release manuvally. "Reason code SE is not defined" Message no. F5

  • How do I modify the "Number of Pages" setting for an existing Master Page via javascript?

    I'm learning javascripting for InDesign and I have been tinkering with the stock scripts in the tutorials. I'm developing the ability set properties and such, playing with how Javascript works, and I wanted to change the number of pages in a master p

  • Attempted  to burn, folder went poof. What happened and where is it?

    I had a folder called Documents with many files. I wanted to save it on a disc. When I dragged the folder to the disc on the desktop it went poof -- gone. Gone from my home folder. Gone from my hard drive. Fortunately, all on LaCie, and all in Word p

  • Installation of Leo on PowerBook from my MacBook Pro does not work

    Hi there I just wanted to upgrade my old PowerBook with Leo 10.5. Since the CD Drive is defect I just installed it over Firewire from my MacBook Pro. I did a complete new install to clean up everything. The installation worked fine, and I can also st