Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

getting dump when passing to sequential file

Former Member
0 Likes
421

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

2 REPLIES 2
Read only

Former Member
0 Likes
384

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

Read only

Former Member
0 Likes
384

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