on 01-26-2009 1:29 PM
Hello All,
I am using script for check printing. I am getting the cheque number based on the check lot configuration. If the cheque number is five digits then in my script it should be displayed with six digits by placing 0 in front of the cheque number. The addition of zeros should be dynamic with respect to the cheque number.If it is four digit cheque number then two zeros should be added.
Can anybody help me in this issue.
hi try to implement this logic.
data: str type string,
len type i.
i = strlen( str ).
i = 6 - i.
do len times.
concatenate '0' str into str.
enddo.
кu03B1ятu03B9к
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.