‎2009 Feb 23 2:17 PM
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
‎2009 Feb 23 2:24 PM
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
‎2009 Feb 23 2:30 PM
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 !!
‎2009 Feb 23 2:39 PM
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
‎2009 Feb 23 2:47 PM
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
‎2009 Apr 04 3:12 PM
I got the solution for above problem.
Actually it was the header line we were dealing with.