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: 

DDIC Table with INT4 column

uwe_isenmann2
Participant
0 Kudos

Hello,

It seems that there is an error in SAP DDIC when you want to display the length of an table in the "runtime object" view.

Please insert the following table (in an unicode system):

- Column 1: INT4

- Column 2: CHAR1

=> The table length when displaying the "runtime object" is 8 which is wrong. The offset of column 2 is 4 + 2 bytes for char 1 should be 6.

If you insert the following table with Char2 it works:
- Column 1: INT4
- Column 2: CHAR2

=> The table length is now 8. Offset of column 2 is 4 + 4 bytes is 8

Is there a hint - unfortunately could not find one?
Best regards

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert

Looks and feels like alignment.

2 REPLIES 2

horst_keller
Product and Topic Expert
Product and Topic Expert

Looks and feels like alignment.

uwe_isenmann2
Participant
0 Kudos

Hello Horst,

That could be a possible reason.

But in this case the DDIC makes some errors when it displayes the "offset" of the columns and the "overall length".

The real problem we have with the SAP function module:

CHANGEDOCUMENT_MULTIPLE_CASE

It seems that the function module read the "overall length" => headerlength

If the headerlength is wrong - as in this case - we get a short dump DATA_OFFSET_TOO_LARGE in line 94

<f_field_x> = <f_area_x>+headerlength(gs_par-charlengthx).

Best Regards