‎2007 Jun 20 9:42 AM
Hi,
I am getting the vlaue like this(59.00-).
Now i want to convert like this (-59.0).
please let me know how i can convert this.
thanks in advance.
vij.
‎2007 Jun 20 9:53 AM
Hello,
You could:
CONCATENATE '-' zpayment INTO zpayment.
CONDENSE zpayment NO-GAPS.
SHIFT zpayment RIGHT DELETING TRAILING space.On the other hand, you could do the calculation before moving the amount to zpayment.
Or use the FM
<b>CLOI_PUT_SIGN_IN_FRONT</b>
VAsanth
‎2007 Jun 20 9:43 AM
Hi,
Use Shift Circular.
Try This,
DATA: T TYPE F VALUE '56.00-',
NUM LIKE T.
NUM = T.
SHIFT NUM BY 1 PLACE CIRCULAR.
WRITE / NUM.
Regards,
Padmam.
‎2007 Jun 20 9:45 AM
well in SAP-Script the solution is:
&value(<)&
Message was edited by:
Florian Kemmer
‎2007 Jun 20 9:46 AM
hi ..
u can use the <b>SHIFT</b> statement..
for example:
<b>shift string by 1 places circular.</b>
Thnks Ashu
‎2007 Jun 20 9:47 AM
Viji,
CLOI_PUT_SIGN_IN_FRONT.You can use this Fn Module.
K.Kiran.
‎2007 Jun 20 9:53 AM
Hello,
You could:
CONCATENATE '-' zpayment INTO zpayment.
CONDENSE zpayment NO-GAPS.
SHIFT zpayment RIGHT DELETING TRAILING space.On the other hand, you could do the calculation before moving the amount to zpayment.
Or use the FM
<b>CLOI_PUT_SIGN_IN_FRONT</b>
VAsanth
‎2007 Jun 20 10:07 AM
Hi friend ....
before passing it to the fields catalog append please use this finction module and tehn pass to fields cataol and appned it
suppose you pass 105.00- the o/p is -105.00
Fm -.
CLOI_PUT_SIGN_IN_FRONT
fc_tmp-reptext_ddic = 'Price'.
fc_tmp-fieldname = 'STPRS'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-datatype = 'CURR'.
fc_tmp-just = 'R'.
fc_tmp-outputlen = '15'.
fc_tmp-decimals_out = '2'.
fc_tmp-col_pos = 4.
fc_tmp-do_sum = 'X'.
CLOI_PUT_SIGN_IN_FRONT
changing
value = imara-stprs.
.
modify imara.
.so that you problen will be solved ....
if data has Minus END ...IT WILL BE DISPLAYED IN FRONT .... if no minus then no minus in Display ..
reward points if it is usefull ...
Girish