2007 Dec 14 12:25 PM
hello gurus ,
hw can I convert 20,00- into 2.0 % its urjent .
thanks in advance .
2007 Dec 14 7:34 PM
try this..
DATA: lv_qty TYPE ekpo-menge.
DATA: lv_text(20) TYPE c.
lv_qty = '2000-'.
lv_qty = lv_qty / 1000 * 1.
MOVE lv_qty TO lv_text.
replace '-' with '%' into lv_text.
WRITE: lv_text.
2007 Dec 14 3:34 PM
Hi Joy,
You can achive do this with the help of coding.I can tell you the steps.
Eg : You first divide your no by 100.
Then take that no in a character string, decide the length of the string acc to your requirement.
Then use SEARCH STRING command to search for '-' sign and replace this with Space.
Then concatenate '%' with your charcter string.
Rewards Points if helpful.
Regards
Sourabh Verma
2007 Dec 14 7:34 PM
try this..
DATA: lv_qty TYPE ekpo-menge.
DATA: lv_text(20) TYPE c.
lv_qty = '2000-'.
lv_qty = lv_qty / 1000 * 1.
MOVE lv_qty TO lv_text.
replace '-' with '%' into lv_text.
WRITE: lv_text.