Skip to Content
author's profile photo
Former Member

Urgent - Convert 9,999.00 to 9999.00

Hello All,

I am working on a SAPscript and I wrote a perform to do some calculation before passing the values to the form.

I am passing BSEG-DMBTR to in_tab-value which comes in as 9,999.00. Now I need to convert it to 9999.00 and do some calculation:

Can any one tell me how I can convert 9,999.00 to 9999.00

Thanks

Pavan

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Oct 03, 2005 at 04:12 PM

    just do a WRITE BSEG-DMBTR TO IN_TAB-VALUE NO-GROUPING.

    Add comment
    10|10000 characters needed characters exceeded

    • You should do a write of BSEG-DMBTR not your internal table field. It will work only with numeric source field and a character target field. If your source field is also character then do this.

      translate in_tab-value using ', '.<-- there is a comma and space here
      condense in_tab-value no-gaps.
      l_dmbtr = in_tab-value.
      

      Srinivas

  • author's profile photo
    Former Member
    Oct 03, 2005 at 04:31 PM

    Hi

    REPLACE ',' WITH SPACE INTO in_tab-value.

    CONDENSE in_tab-value no-gaps.

    MOVE in_tab-value to BSEG-DMBTR

    Max

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 04:37 PM

    Hello,

    Do a SPLIT at ',' and then CONCATENATE. This should also solve your problem.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded