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

Help on error - not mutually convertible in a unicode program

Former Member
0 Likes
548

I am trying to implement a badi - badi_matmas_ale_cr. I want to take contents of sdata to i_marc but getting this error ...any workaround for this. I thought of defining structure of marc with all char fields but that is almost 218 fields so thought if there is anyother way of doing this.


DATA : wa TYPE LINE OF edidd_tt,
         i_marc type line of MARC_UEB_TT .
  LOOP AT t_idoc_data INTO wa.

    CASE wa-segnam.

      WHEN 'E1MARCM'.
        MOVE wa-sdata TO i_marc.
        IF i_marc-compl+0(1) NE '9'.
          DELETE t_idoc_data INDEX sy-tabix.
        ENDIF.
      ENDLOOP.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
411

try this


call method cl_abap_container_utilities=>read_container_c
exporting
im_ container = wa-sdata 
importing
ex_ value = imarc
exceptions
illegal_parameter_type = 1
others = 2. 

Check for reference.

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
412

try this


call method cl_abap_container_utilities=>read_container_c
exporting
im_ container = wa-sdata 
importing
ex_ value = imarc
exceptions
illegal_parameter_type = 1
others = 2. 

Check for reference.

Read only

0 Likes
411

Thanks Keshav for all your help