06-18-2015 8:20 AM
Hi all,
I have an issue in concatenating '000'. When i give any other number instead of '0' then its gets printed but zeros alone are not getting printed.
If i add dot infront of zeros for eg '.000' then the zeros gets printed. can anyone help in this regard.
Regards
Sam.
06-18-2015 8:47 AM
Hello Sam,
Declare the variable of type STRING and concatenate the result into that variable.
Tyr printing that variable.
Hope it helps !!!
Regards,
Deepan Swaminathan
06-18-2015 8:54 AM
Hi Samuel,
When You concatenate datatype should have only character.
Final result only shall be a numeric data.
Eg:-
DATA: a type C LENGTH 3 VALUE '0',
b type c length 3 VALUE '000',
c type c LENGTH 10,
d type p DECIMALS 3.
CONCATENATE a b into c SEPARATED BY '.'.
d = c.
write: c, d.
06-18-2015 10:17 AM
06-18-2015 10:27 AM
Hi Samuel,
At where you are printing,
If it is report program, kindly check whether in field catalog NO_ZERO= 'X' is enabled, if the attribute is set, system won't show the zero in ALV report for the appropriate field.
If form, kindly check whether any condition is mentioned in Condition tab for the text element
Regards
Rajkumar Narasimman
06-18-2015 11:30 AM
hi,
it depends on the type of your variable. e.g. numc values always are filled with leading 0.
regards
Stefan Seeburger