Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 03, 2005 at 04:12 PM

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

    Add a 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
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

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

    Hello,

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

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.