Skip to Content
0
Former Member
May 29, 2008 at 07:35 AM

Dump on OPEN DATASET ; TRANSFER stmt

310 Views

p_name is the file name parameter

FORM APPL_TRAN.

file = p_name.

OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc = 0.

CLEAR wa_final.

  • 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.

CLEAR wa_final.

ENDLOOP.

*Close the file.

CLOSE DATASET file.

ENDIF.

ENDFORM. "APPL_TRAN

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

"f".

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.

Thanks,

FS