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

Not mutually convertible

Former Member
0 Likes
756

Hi experts,

I have an issue with the following code in BW. what i am trying to do is to create a new record with a new value

PRCTR = '9999999' and then add it to DATAPAK which is the data packet.

DATA: l_s_datapak_line type TRANSFER_STRUCTURE,

        l_s_errorlog TYPE rssm_s_errorlog_int.

  l_s_datapak_line-PRCTR = '9999999'.

  append l_s_datapak_line-PRCTR to DATAPAK.

* abort <> 0 means skip whole data package !!!

   ABORT = 0.

I am getting the following error:

E:A line of "DATAPAK" and "L_S_DATAPAK_LINE-PRCTR" are not mutually

convertible in a Unicode program. Unicode program.

Is therie any workaround?

Thanks.

amine

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

3 REPLIES 3
Read only

Former Member
0 Likes
661

Read only

0 Likes
659

Hi,

  Problem here  is you are appending a field of the work area to the internal table (possible to append a work area to internal table  )

  append l_s_datapak_line-PRCTR to DATAPAK.

instead if you use

 

append l_s_datapak_line to DATAPAK   not mutually convertible error can be avoided ,but i dont knw whether it will fulfill your requirement .

Read only

0 Likes
659

Hi Juneed,

It worked fine. I had additionnaly to fill the other fields of my structure.

Amine