2013 Jun 10 1:17 PM
The following code is run in 2 different systems (Both are ECC 6.0).
TABLES: bape_vbap.
DATA: gw_extensionin TYPE bapiparex.
MOVE bape_vbap TO gw_extensionin-valuepart1.
***In one system, we are getting an error message like below***
gw_extensionin-valuepart1 and bape_vbap are not mutually convertible in unicode program:.
***In the other system, we are getting a warning message like below***
after a structure enhancement, assignment or comparison may not be permitted.
Can anyone tell me why is this difference?
Regards
Tanmoy
SAP Consulting
2013 Jun 10 1:28 PM
2013 Jun 10 1:28 PM
2013 Jun 10 1:59 PM
Hello Raymond!
Thanks for the quick response!
First of all, both the systems are unicode.
Secondly,
The structures are not identical in nature.
The system that gives warning message has length > 254.
The system that gives error message has length < 254. I have also tried with a length > 254; but then also it gives me an error message.
Regards,
Tanmoy
2013 Jun 10 2:24 PM
Are there not-character type fields in any of the structure, as it is no longer allowed to MOVE those in Unicode, and how is the length > 254 managed in the current MOVE statement(s)
Better convert now to Unicode coding, with either same tool than SAP (*) look in the include I provided or find it with where-used on BAPI extension structure as Uwe Fetzer wrote, or directly using some ASSIGN CASTING for both structure to field -symbols of type c or x before moving from one fs to the other.
Regards,
Raymond
(*) methods cl_abap_container_utilities=>read_container_c and fill_container_c
2013 Jun 10 1:43 PM
See how SAP is working with these kind of extensions now in an UC system:
CALL METHOD cl_abap_container_utilities=>fill_container_c
EXPORTING
im_value = da_bape_vbap
IMPORTING
ex_container = us_extensionout+lenstruc(da_length_bape_vbap)
EXCEPTIONS
illegal_parameter_type = 1
OTHERS = 2.
(ie. search in a "where used" list for BAPE_VBAP)
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |