‎2006 Jul 15 7:25 AM
hi to all,
pla help me in this issue
in final internal table iam having to currency field
i want to pass to sequential file but it is going to dump
it is giving this error
Only character-type data objects are supported at the argument
position "f" for the statement
"TRANSFER f TO ...".
In this case, the operand "f" has the non-character-type "ZPAYREF". The
current program is flagged as a Unicode program. In the Unicode context
type X fields are seen as non-character-type, as are structures that
contain non-character-type components.
plz help how to passs amount final currency field like character so that i can move to sequentail file.
Thanks and Regards
Kranthi
‎2006 Jul 15 8:29 AM
Hi,
Data : l_qty(16) type c,
l_value(13) type c,
l_dec(3) type c.
loop at itab.
split itab-qty at `.` into l_value l_dec.
concatenate l_value `.` l_dec into l_qty.
Move l_qty to l_file.
Transfer l_file.
endloop.
close dataset.
Best regards,
Prashant
‎2006 Jul 15 8:39 AM
data : v_curr(21) type c,
V_DMBTR TYPE DMBTR. "YOUR curr field
first write your currency value to a char variable.
WRITE : V_DMBTR To v_curr.
use this V_CURR character field in your concatenate.
and try to give your F also as CHAR.
data : v_line type string.
v_line = f.
here you are copying the contents to another character variable.
now use TRANSFER V_LINE TO file.
regards
srikanth