Online Tutorials & Training Materials | STechies.com
Register Login

How to remove commas ,dot and left leading 2 zeros

|| || 4

How to remove commas ,dot and left leading 2 zeros
Stechies

I want to remove commas,dot and left leading zero for field value.

field is PRPS-USR07 and value instead of 7,121,025.00 to 7121025

can you please let me it is possible or not.

I tried Different Set Patterns no helpful.

Thanks & Regards


Comments

  • Shalesh Singh Visen
    18 Aug 2012 8:02 am
    if decimal separator is ".", you may use e.g.

    Set V[x] "7,121,025.00"

    Set V[y] "&V[x]" * 1 decimals=0

    -> V[y] is 7121025
  • Shalesh Singh Visen
    26 Aug 2012 3:59 pm
    i am able to see in debug window but not able to see the change in SAP Screen.

    I wriiten the below.

    Set V[x] "7,121,025.00"

    Set V[PRPS-USR07] "&V[x]" * 1 decimals=0

    and also let me the code without hard coding value.
  • Shalesh Singh Visen
    26 Aug 2012 4:01 pm
    Set V[x] "&F[PRPS-USR07]" * 1 decimals=0
    Set F[PRPS-USR07] "&V[x]"
  • Shalesh Singh Visen
    26 Aug 2012 4:03 pm
    X and PSPR-USR07 getting zero's debug window.