Skip to Content
author's profile photo Former Member
Former Member

Non-character-type structure need to be written in ASCI File in Unicode sys

Hi Gurus,

I am trying to write a structure into a ASCI file iapplication server.

My code is as follows.

data : ls_header type BBP_PDS_CTR_HEADER_D ,

lv_filename TYPE rlgrap-filename VALUE '/interface/AEE/IN/kalandi'.

CALL FUNCTION 'BBP_PD_CTR_GETDETAIL'

EXPORTING

I_OBJECT_ID = '4000000196'

IMPORTING

E_HEADER = ls_header.

open dataset lv_filename for output in text mode encoding default .

if sy-subrc = 0.

transfer ls_header to lv_filename.

close dataset lv_filename.

endif.

but it ives a dump .

Error is :

"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

"BBP_PDS_CTR_HEADER_D". 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.

Thanks a lot in advance.

Points will be awared for appropriate Answers.

Regards

kalandi

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 11:58 AM

    Hi,

    I think here ls_header and lv_filename are not compatible to transfer the data.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.