02-01-2007 7:48 AM
I have a field 'Bill No.' of Character(10) type in my dialog program. Once I input and save value e.g. '1' in this it gets saved as 1 but in the internal table it gets stored as '0000000001'. Pls let me know how to remove these leading zeros: perhaps I'll have to use LTRIM but I am not sure.
deepak.
02-01-2007 7:49 AM
Hi
Use the fm CONVERSION_EXIT_ALPHA_OUTPUT.
DATA: P(10) VALUE '0000000001'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = P
IMPORTING
OUTPUT = P.
WRITE P.
Max
02-01-2007 7:50 AM
in internal table for perticular field change data type num to char . tah n it will work.
03-01-2007 9:13 AM
Hi!,
Usually we remove the zeros by the following ;
shift <field_name> left deleting leading zeros.
regards
Purnima.