2005 Jul 13 8:31 AM
Hi All,
I'm facing problem with Unicode & non-unicode conversion. I have created the BAPI which takes the Unicode as a input in a structure format.
But i need to convert this data into Non-unicode so that SAP can understand. Could anybody tell me how to convert it to non-unicode struture. Through Class CL_ABAP_CONV_IN_CE, i can convert only one field at at time. i am looking for some input how to convert the whole struture in single step conversion.
And I promise to return and reward the answers.
Raja T
2005 Jul 13 8:50 AM
Hi Raja,
probably there is no structure conversion function - because general conversion is not supported (there might be numbers inside!) and field for field access on structures is a 'higher' function.
If no one finds a function, just do it on your own:
do.
n = sy-index.
assign component n of structure l_source to <f1>.
assign component n of structure l_target to <f2>.
if sy-subrc ne 0.
exit.
endif.
call conversion... <f1> <f2>.
enddo.
Regards,
Christian
2005 Jul 13 8:50 AM
Hi Raja,
probably there is no structure conversion function - because general conversion is not supported (there might be numbers inside!) and field for field access on structures is a 'higher' function.
If no one finds a function, just do it on your own:
do.
n = sy-index.
assign component n of structure l_source to <f1>.
assign component n of structure l_target to <f2>.
if sy-subrc ne 0.
exit.
endif.
call conversion... <f1> <f2>.
enddo.
Regards,
Christian