Urgent adding amount field

hi all,
i want to add two amount field.
like field1 = 13,500
      field2 = 1,000
when i run this program
it leds to short dump.
error shows
Unable to interpret " 13,905.04 " as a number.
how can add these fields having comma separator.

Bala,
you have to code like this:
field3 = field1 + field2 .
remember in you case resulting set (field3) is not being decleare as type p.
you have to decleare all three fields as type p.
Amit.

Similar Messages

  • Adding Amount field in BSEG table and display it single line item?

    hi experts,
           I am doing credit / debit form now my requirement is
                                               According to BELNR , GJAHR,BUKRS i want to find credit amount for this selection cretiria.
                         so i want to add all the lines of amount filed for a particular BELNR and display it as single line.
    so i am getting data from print program like this
    SELECTION-SCREEN BEGIN OF BLOCK b0 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 2.
    PARAMETERS: p_belnr LIKE bkpf-belnr OBLIGATORY,
                p_bukrs LIKE bkpf-bukrs OBLIGATORY,
                p_gjahr LIKE bkpf-gjahr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b0.
    SELECT SINGLE *
                   FROM bkpf
                   INTO  i_bkpf
                   WHERE belnr = p_belnr
                         AND ( blart = 'DG' OR blart = 'ZG' )
                         AND bukrs = p_bukrs
                         AND gjahr = p_gjahr.
    IF sy-subrc = 0.
        SELECT  *
              FROM bseg
              INTO  table it_bseg
              WHERE belnr = i_bkpf-belnr .
      ENDIF.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'Z_CREDIT_DEBIT'    " p_name
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        IMPORTING
          fm_name                  = v_form_name
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    CALL FUNCTION v_form_name
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        i_bkpf                     = i_bkpf
        i_bseg                     = i_bseg
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    so my I_BSEG containing all line items of particular BELNR . with the field SHKZG  iam  getting only credit line items .
      now i want to do is add all credited amount and display like this in a table.
    against ref#  (BSEG-REBZG) ! details (BSEG-SGTXT)!  amount
    124569                                   10%discount                950.00(total amount ie sum of all lines amount for a BELNR)
                                                                                    10.00(total tax amt ie sum of   all lines of tax amount for a BELNR)                                                                               
                                                                                    960.00

    hi arun,
             i used collect in smartform my procedure is like this .
                   i am getting data into i_BSEG because i declared like this in TABLES parameter
                      i created a loop .
                             in that i mentioned like I_BSEG into WA_BSEG.
                                   then i created a program lines here i mentioned like this.
                                                  COLLECT WA_BSEG INTO IT_BSEG.
               but because of BUZEI "Number of Line Item Within Accounting Document .it is not same it is varying for every credited time that means for every line of BELNR. thats why it is not adding it is just appending .
    so pls tell me any other chance to find sum .
    because i want to sum up all credted amount and display it in single line
    ie first column REBZG "Number of the Invoice the Transaction Belongs to(against ref) i want to display once .
    And Second column  SGTXT "item text(details) for amount once and for tax amount once
    And Third column Amount first line consists total amount & second line consists total for tax amount
    regards,
    satheesh.
    [email protected]
    any doubts chat me regarding this post.

  • While adding custom field in urgent change-Create new field button in AET is not coming

    Dear All,
    we have requirement to add some custom fields in urgent change document. while adding custom fields using AET, create new field button is not coming.
    Thanks in advance. points will be awarded.
    Rahul

    Hi Jignesh,
    Thanks for your valueble inputs, it really helped me to understand the process.
    I checked in Web UI configuration for urgent change document as you mentioned but still that button is not coming.
    In transaction BSP_WD_CMPWB, i have created enh. set: Z_ENHANCEMENT_SET.
    Can you tell what to selelect in application and page popup which comes after selecting Enhance component button. Actually i tried but i am not able to add new record in conf.
    Thanks in advance.

  • Adding -ve sign to amount field.

    Hi all,
    I have an amount field . I want to add -ve sign to it and then perform addition or substraction using that field.
    I have added -ve sign to the field by declaring another variable as character type, but i am not able to use the field for adition or substraction since its a character field.
    please help.
    Thanks,
    Bharat.

    Hi Bharat,
    In order to put the '-' in front, you must have a character field. The reason for the * is because the field is not big enough to hold the value. So make the character field a length of 12, move the type p to the type c, and use the function module which i have mentioned.
    function module
    CLOI_PUT_SIGN_IN_FRONT
    Reward If helpful.
    Regards,
    Harini.S

  • Urgent :crm_ic web client adding new field - customer external number-BPEXT

    HI
    I want to add the field <b>customer external number(data element- bpext)</b> is available as a standard  field in  <b>bp transaction</b> , under indentification tab I am trying to bring the same field into the <b>identify account-CRM-IC BSP Application</b>
    when I am trying to do this , I nee to know the below information
    <b>Attribute name
    property name
    context class</b>
    can you help me in Identifying this values which I feel is must for adding the field to the bsp application CRM_IC.
    thanks in advance
    Message was edited by: madhu satya rajasekhar bobbadi

    Hi,
    Following are the steps to add new fields to the existing view.
    - Create a new controller class (ZCL..) with original view class as super class
    - Create new BSP application with View and Controller
    - Attach the above Z class to the view and controller created and activate the BSP appln.
    - Go to transaction BSP_WD_WORKBENCH and type your BSP appln.
    - Expand your controller and at the Context class use Wizard to create new context node and bind this to Custom Controller class available.
    This whole process requires complte understanding of View, Controller, Custom controller and basic custom modifications to IC Web Frame work.
    Kunda Krishna Kishore

  • Adding date field in cv01n very urgent

    hye all,
                  can plz anybody send any document or any screen shot or link for adding date field in cv01n(dms).
    mail id      [email protected]
    thanks.

    Hi Ankit,
    check exits for CV01
    Transaction Code - CV01                     Create Document Info Record                                                                               
    Exit Name           Description                                                                               
    CV000001            Check-in enhancement for document management                            
    CV110001            DMS: Enhancements for DMS Dialog (FB: CV110)                            
    CVDS0001            User exits for ALE DMS (DOCMAS)                                                                               
    No of Exits:          3      
    Rewards if useful..............
    Minal

  • Adding up of amount fields in the xml payload

    HI ,
    I have a issue on hand in mapping .
    I am using message mapping to map the source to the target.
    The issue is I have a item data in the source message which contains the Amount field . also it has some charge nodes also under it which also has a amount field.
    what i need to do is to add all the amount fields from the charge item into the amount of the item field and then map it to the target.
    the Source struct is some what as below
    Item
      |->Amount
      |-> ChargeItem
            |-> Amount
      |-> ChargeItem
            |-> Amount
    Item(2)
      |->Amount
      |-> ChargeItem
            |-> Amount
      |-> ChargeItem
            |-> Amount
    The target required is somewhat like below
    Item
    |-> Amount (item(amount) + charge (amount))
    Item (2)
    |-> Amount (item(amount) + charge (amount))
    Hope u can get the issue
    Thanks
    Nikhil

    Hi Bhavesh,
    Thanks for the reply. but i have a question.
    this will deal with the amount of the charge item but what about the amount of the amount field in item.
    how can we take care of that too. as cannot map more than 1 field to the target.
    and more over we have to add that field too to the sum of charge item
    Thanks
    Nikhil

  • Insert asterisk(*) for amount field (Very Urgent)

    Hi all,
    I want to insert asterisk() for amount field REGUD-SWNET(15C) in SAP script. ie suppose amount is 1000.00 rest of the length should be filled by asterisk() infrount of amount. ie ********1000.00 it has display like this.
    Your help ll be rewarded.
    Regards
    Yathish

    hi,
         We can replace leading spaces in a value with a FILL CHARACTER.
    SYNTAX:    <b> &symbol(Ff)&</b>    here f is fill character.
    example:    &REGUD-SWNET&  value is 700.00
                     &REGUD-SWNET(F*)& value printed as ******700.00.
    regards,
    sudheer.

  • MIRO issue (urgent!), amount and quantity fields are not captured from PO

    Hi,
    When we try to post thought MIRO using PO as reference, quantity and amount fields are not captured. We do MIGO first and then MIRO.
    GR based invoice verification in the vendor master is selected and the check mark GR-based in the PO is selected too.
    We're getting this MIRO issue for "all" PO and Service Entry Sheet.
    We'll appreciate your recommendation in order to fix this critical issue as soon as possible.
    Thanks in advance.

    I was looking for copy controls and other functions. Glad this is now resolved. You need to award yourself points!
    Cheers.

  • How to roll up Amount field upto Input Criteria Posting period

    Hi All,
              I have a requirement to create a FI Budget report where the User will give the Posting Period as the input criteria, and based on the entered Posting period, 2 amount fields, "Original Budget" & "Current Month" need to get derived by looking at another amount field called “actual”, by rolling up the Amounts up to the entered Posting period.
    For example, the user gives input as Posting period = 06, which is December because Fiscal year starts from July here. And my Cube has an amount field "Actual" which displays amount for each posting period. Therefore when posting period = 06, then the "Actual" amount value for months July (PP = 01) through December (PP = 06) should be rolled up i.e added and displayed in the "Original Budget field". The “Current month” should only display the amount for the input criteria month.
    How can I do that, any suggestions please?
    Thanks!!

    Hi Sam,
             Is there any way i could do it without the SAP Exit? If yes, how? If no, can u specify in the document you sent, which code i could use as reference for my requirement?
    Thanks

  • Error when displaying amount field in HTMLB Tableview

    Hi all,
       I am displaying some 'X' table in HTMLB Tableview and it has one amount field.But reference(currency) field of that amount field is in other table . I know it gives the error.
    Please tell me there is any other way to resolve this problem with out adding reference(currency)field in the same table?
    Thanks and Regards ,
    Harikrishna .

    Hi Hari,
    But reference(currency) field of that amount field is in other table . I know it gives the error.
    It will not give any error , you can use the currency key field of other table or structure .
    Alternatively you can use  predifined type DEC instaed of CURR  .
    Regards,
    Anubhav

  • Adding form fields breaks tag structure

    I have been teaching workshops at my university on creating accessible PDF forms from MS Word. I am very familiar with PDF accessibility. For the most part, the process of field recognition, marking up tables, writing tooltips, manipulating the tag tree, etc., all goes smoothly. I have noticed something that is creating a lot more work for our people, however.
    After adding forms to the tagged PDF using recognition and the Tools > Forms > Add New Field tool, we adjust the field tab order and add tooltips. Once all of that is in place and we are ready to fine tune, we click the Tools > Accessibility > Add Form Fields to Tags button. Adding Form Fields to Tags does not work consistently if you edit the tag structure manually while in the Forms creation process. You can do some tag remediation prior to entering the Forms tool, but if you edit the tag structure while in Forms, the Adding Form Fields to Tags often does nothing -- this is certainly a bug in Acrobat X but it is not hard to work around.
    The larger problem is that after we click Add Form Fields to Tags button, the tag structure reveals itself to be very much distorted and extreme amounts of tag structure remediation is required. Here are three screen shots that illustrate the point.
    This first image shows the on-screen appearance.
    Below is the expanded tags tree, prior to adding fields to the tag structure:
    The tag structure is clean and elegant. If I were to publish this, no remediation would be necessary.
    And here is the tag structure after adding form fields:
    What has happened is Acrobat has grabbed recognized form fields and other elements in the document and has jammed them into the tag structure. Other things are affected as well. For example, headings in the page have extra, redundant textruns in them.
    This has radically negatively affected the tag structure, requiring the author to do lots of remediation.
    Any recommendations? solutions? similar experiences?
    It seems obvious to me that this is a flaw in Acrobat that needs to be addressed, if accessibility is a goal. Or perhaps I'm doing something wrong??

    Hi Daver1111,
    Nope. No answer and nothing from Adobe.
    I know something is going really really wrong, too: We have a product called CommonLook. It's an enterprise-level PDF accessibility remediation tool. It works well in fixing most structural problems in PDF through a relatively easy to use interface--you just drag textruns and elements around. It also has some tools that automate cleanup for accessibility.
    I have no problem using this tool 99% of the time, but when I use it on forms I have made in Acrobat, the CommonLook plugin hangs when I try to save the PDF. It identifies a "structural error" in the PDF and crashes, leaving the PDF unchanged.
    You can change the PDF in Acrobat by spending time moving around and creating new elements and deleting extra textruns and such, but, wow, what a royal pain in the *** that is!
    Since no one is from Adobe is responding, I'm going to file a bug report.
    Cheers,
    ken

  • Blank space in Amount field

    Hello All,
    I have one clarification.I have one field called amount.Its value is taken as 0.00 from the table. I have to make it as blank.I have made it as blank to that field in display pattern properties by setting as * in adobe designer. This is suitable for print form. In case of interactive form how can this be done to achieve the functionality.If the value is given from the other side to the amount value its not taking since in display pattern it has been set  as *.Can anybody help me out to solve this issue. 
    This is very urgent.I will reward you with points.
    Thanks,
    Swapna

    Swapna,
    Check my reply [here|Adobe Forms --Amount field Problem;.
    Chintan

  • Amount Field format problem

    Hi,
    I am uploading G/L entry using STD program RFBIBL00.
    In input excel file I am getting amount as 1000.1
    When i upload excel to Internal table field (Type C) it is 1000.1
    I am passing this value as it is to BBSEG-WRBTR.
    Program creates BDC Session. But when I execute BDC session in foreground/backgorund, the amount field show 1000,1
    and gives error "Input should be in the form __.___.___.__~,__"
    My current decimal notation at user level is 1,234,567.89
    I tried passing amount to BBSEG-WRBTR in all possible formats but no use.
    If i pass amount without decimal. i.e 1000, it works fine.
    BBSEG-WRBTR is char16 field.
    Any idea, what could be the problem?
    This is very urgent.
    Thanks &  regards,
    Umesh

    I am pasting code.
    Whatever commented, all tried.
    FORM convert_amount  USING    p_dcpfm   TYPE xudcpfm
                                  p_in_amt  TYPE c
                                  p_waers   TYPE waers
                         CHANGING p_out_amt TYPE wrbtr_bi.
    Input amount will be in 99999.99 format
      DATA: lv_amount TYPE wrbtr.
      lv_amount = p_in_amt.
      p_out_amt = lv_amount.
    CLEAR p_in_amt.
    WRITE: lv_amount CURRENCY p_waers TO p_out_amt.
    CONDENSE p_out_amt.
    WRITE p_out_amt TO p_out_amt LEFT-JUSTIFIED.
    CASE p_dcpfm.
       WHEN ''.    "1.234.567,89
         TRANSLATE p_out_amt USING '.#'.
         TRANSLATE p_out_amt USING ',.'.
         TRANSLATE p_out_amt USING '# '.
       WHEN 'X'.   "1,234,567.89
         TRANSLATE p_out_amt USING ', '.
         CONDENSE p_out_amt NO-GAPS.
       WHEN 'Y'.   "1 234 567,89
         TRANSLATE p_out_amt USING ',.'.
         CONDENSE p_out_amt NO-GAPS.
    ENDCASE.
    ENDFORM.                    " convert_amount

  • Converting Normal field into amount field

    Hello Gurus,
    I need urgent help.
    I want to conver the Normal field into Amount filed.
    DATA : AMOUNT(13),
    DATA : WRBTR LIKE BSEG-WRBTR.
    So I want TO Convert Normal field into amount field.
    This is urgent. please help me.
    Thanks in advance.
    Best Regards,
    zubera

    Hi,
    Use FM HRCM_STRING_TO_AMOUNT_CONVERT
    pass the char(amount) and decimal separator, thousand separator.
    you get the char converted to amount/currency
    Regards,
    Satish

Maybe you are looking for

  • IPod touch 5th gen unlock screen GLITCH while music is playing

    Hello, everyone. I am experiencing two, what I believe to be, very annoying software glitches on my 5th Gen iPod Touch 64 GB. I know for certain that I am not the only one because I have read other articles in this forum with people going through the

  • My iTunes library has been erased from my macbook

    my itunes library has disappeared on macbook - still available on iPad and iPhone.  How do I get it back on the Macbook please?

  • Problem while copying layout set

    Hi,     Can anyone please solve my probelm. I have two clents Ct3(330) and Ct2(330). in CT3(330) one layoutset is there called "Z_MEDRUCK_11120" is tehre inEnglish, German and Polish laguages. But in CT3(330)  "Z_MEDRUCK_11120" only having English, G

  • "init failed " error when calling PRIV:UME  privilege for task  Create UME

    Hi All as per the document http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/304280b4-25d0-2b10-b6a4-89c27409dea7&overridelayout=true I  have done all the settings like this and when I call the privilege using PRIV:UME and subsequently the the c

  • Start / Stop Window services

    Hi, I would like to start and stop window services on remote computer. Do you know if there is a package API in java to do it? How can I do it? Thanks, Anat