p_name is the file name parameter
file = p_name.
OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
Loop through the internal table which has the ECC data and transfer it to the file.
LOOP AT it_final into wa_final.
TRANSFER wa_final to file.
*Close the file.
CLOSE DATASET file.
I'm getting a short dump when the stmt TRANSFER is executed.
The Error Analysis is as follows:
For the statement
"TRANSFER f TO ..."
only character-type data objects are supported at the argument position
In this case. the operand "f" has the non-character-type "TY_ECC2". The
current program is a Unicode program. In the Unicode context, the type
'X' or structures containing not only character-type components are
regarded as non-character-type.
Can someone please help me in this regard.