Application Development 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: 

Line incomaptibilty betwwen RAW and CHAR data types in SAP Unicode System.

Former Member
0 Kudos

Hi Gurus,

I am working in SAP Unicode system.

We have transferred the standard programs for Non-Unicode to Unicode system.

In one standard function module, <table name> is defined in TABLES parameter as a type of TLINE structure, which has two fields - one is 132 length CHAR and other is 2 length CHAR.

In the same function module , one subroutine is being called, for which <table name> is passed.

But in the FORM of subroutine, this table is defined as a type of HLINE, which has only one field - 134 length RAW data type.

So due to confilct in data types ( CHAR and RAW ) , I am getting an error that both data types are not line compatible.

Do i need to use casting concept to remove the error.

Please suggest me the way to handle this.

1 REPLY 1

Former Member
0 Kudos

hi,

declare the table as same data type.

dont go for any other types.

if you still want the form table as HLINE, then before the form call declare a varibale with TLINE data type pass the values to HLINE.

i think this will be little complex, because again it will be type incompatablity.

we can forcefully pass the values to HLINE with a class.

but i think no need, declaring with same data type might be easy.

Thanks

Vinod