2008 Mar 14 3:37 AM
Hi all,
i want to suprees one digit in field , actually iam storing document number in one filed which is having 10 field lenth , but my number is having 9 digits , so it adding '0' or zero to my document nuber
eg my document number is 800000005
so it is adding 0800000005.
i wnat to supree the zero ..
i wnat the number as it is what ever iam entering ..
how to do ?
anybody help me pls?
Regards,
pandu.
2008 Mar 14 3:42 AM
Hi,
Use FM "CONVERSION_EXIT_ALPHA_OUTPUT"
before passing the value to table.....
Hi all,
i want to suprees one digit in field , actually iam storing document number in one filed which is having 10 field lenth , but my number is having 9 digits , so it adding '0' or zero to my document nuber
eg my document number is 800000005
so it is adding 0800000005.
i wnat to supree the zero ..
i wnat the number as it is what ever iam entering ..
how to do ?
anybody help me pls?
Regards,
pandu.
2008 Mar 14 3:41 AM
hi,
Pass that value in to a character/integer variable to supress ....
i.e, data : v_num(10) type n value '099999999',
v_char type i.
v_char = v_num.
write : v_char, v_num.
Regards,
Santosh
2008 Mar 14 3:50 AM
thank u for ur reply ..
but it is storing same value, i declared one char variable ,but getting the same value.
Regards,
pandu.
2008 Mar 14 3:56 AM
do this way....
REPORT ZABC .
DATA : V_CHAR(10) VALUE '0000001234'.
TRANSLATE V_CHAR USING '0 '.
CONDENSE V_CHAR.
WRITE : V_CHAR.or
REPORT ZABC .
DATA : V_CHAR(10) VALUE '0000001234'.
SHIFT V_CHAR LEFT DELETING LEADING '0'.
CONDENSE V_CHAR.
WRITE : V_CHAR.
2008 Mar 14 3:57 AM
Hi,
One way is that whatever the domain you have give to that field cheange the output length to 9.(If it is customized table .Otherwise lot of other data elements might be used .That will impact other tables.)
SE11>click on domain>change mode>definition tab>
2008 Mar 14 3:58 AM
Hi,
Try this.
shift g_number left deleting leading '0'.
Regards,
Niyaz
2008 Mar 14 3:42 AM
Hi,
Use FM "CONVERSION_EXIT_ALPHA_OUTPUT"
before passing the value to table.....
2008 Mar 14 4:18 AM
2008 Mar 14 3:47 AM
data : ch(10) type c.
*transfer doc no to ch field.
*then use
condense: ch.
Regards
usman
Edited by: Usman Sheriff on Mar 14, 2008 11:48 AM
2008 Mar 14 4:01 AM
Use to FM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = inputchar
IMPORTING
output = inputchar.
All the leading 0 are suppress into the output.
vice versa operation 'CONVERSION_EXIT_ALPHA_OUTPUT'
0 are appended equalling the lenght of the element.
Reward if helpful.
thanks,
Imran.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |