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

Unicode error while upgrading from 4.7 to ECC 6.0

Former Member
0 Likes
611

Hello all,

I am upgrading our SAP from 4.7 to ECC 6.0. while doing so we had folllowing error in the adjoinig statement of Search.

Error : Table I_VBLS must have a character line type (data type C,N,D,T or string)

Statement :

W_TMP10 = I_VBLS-VBELN.

SEARCH I_VBLS[] FOR W_TMP10 STARTING AT 1

IF SY-SUBRC NE 0.

EXIT.

ENDIF.

Now I tried to remove this error by putting a loop on internal table I_VBLS and inside it concatenating the header line with a Field symbol and after that to a string variable. Then I used SEARCH statement for the same string. but unfortunately this is changing the functionality of the program by large extent. Does anybody know the exact code snippet to replace search Internal Table

Edited by: Aalhad Deshpande on Feb 23, 2009 3:18 PM

Edited by: Aalhad Deshpande on Feb 23, 2009 3:19 PM

5 REPLIES 5
Read only

Former Member
0 Likes
582

Hi,

The length of the field vbeln and w_tmp10 are miss matching. so that only you getting the error like Table I_VBLS must have a character line type (data type C,N,D,T or string). if W_TMP10 is of character type then I_VBLS-VBELN also be character type.

Regards,

Sathish

Read only

0 Likes
582

Hello Satish,

The problem lies with the Internal table I_VBLS which contains the whole structure VBLS.

I can't equate the whole table to sme char like structure as this would not be feasible as far as future enhancements in VBLS are considered.

I have to somehow get I_VBLS into some char/string format but while doing so our functionality got changed to the extremes !!

Read only

0 Likes
582

Hi,

Try to use this method.

CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C

E:G :-

WRITE crlf TO i_linea-linea2.

In this case also their are not mutually convertable. try to use this method and let me know

CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C

EXPORTING

IM_VALUE = crlf

IMPORTING

EX_CONTAINER = i_linea-linea2

EXCEPTIONS

ILLEGAL_PARAMETER_TYPE = 1

others = 2.

Regards,

Sathish

Read only

0 Likes
582

Instead of this Class we can make use of Field symbol TYPE C.

I could convert the table's work-area into the string but after the Search statement the functionality got changed

Read only

0 Likes
582

I got the solution for above problem.

Actually it was the header line we were dealing with.