on 12-10-2010 6:14 AM
Dear all ,
I am facing a problem while passing a value retreived from the script.
i.e
read table intab index 1.
i am reading the value from intab and the value is in this format. 1,234.00
when passing this value to the variable defined for the import paramter of FM HR_IN_CHG_INR_WRDS of type PC207-BETRG
i am getting dump. saying 'Unable to interpret "1,234.00 " as a number.
and i tried to eliminate the comma by using
SELECT SINGLE DCPFM FROM USR01
INTO VAR_DCPFM WHERE BNAME EQ SY-UNAME.
IF VAR_DCPFM EQ 'X'.
REPLACE ALL OCCURRENCES OF ',' IN: V_DATA4 WITH ''.
TRANSLATE V_DATA4 USING ','.
ELSEIF VAR_DCPFM EQ ''.
REPLACE ALL OCCURRENCES OF '.' IN: V_DATA4 WITH ''.
TRANSLATE V_DATA4 USING '.'.
TRANSLATE V_DATA4 USING ',.'.
ELSEIF VAR_DCPFM EQ 'Y'.
TRANSLATE V_DATA4 USING ',.'.
ENDIF.
CONDENSE V_DATA4 NO-GAPS.
So that it will be in the format 1234.00
now also whenever we are passing this data to the defined variable for import parameter of FM HR_IN_CHG_INR_WRDS
i am getting dump saying Unable to interpret "1234.00 " as a number
can any one help me out how to solve the problem
Thanks & regards
sreehari
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please check the delcaraiton type of the variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.