Skip to Content
0
Former Member
Jan 15, 2007 at 06:26 AM

check..numeric and charcter fields.

29 Views

Hi,

iam checking the conditions for numeric and character.if the output is numeric then it can shift to right justify,else if it is charcter left justify.but the following code is not checking for charcter fields.

data:p_input type c.

data: pout type string.

data: htype like DD01V-DATATYPE.

if htype = 'CHAR'.

shift htype LEFT DELETING LEADING space.

else.

CALL FUNCTION 'NUMERIC_CHECK'

EXPORTING

STRING_IN = P_INPUT

IMPORTING

STRING_OUT = POUT

HTYPE = HTYPE.

SHIFT htype RIGHT DELETING TRAILING space.

endif.

plz help me..

thanks