cancel
Showing results for 
Search instead for 
Did you mean: 

Data Truncated

Former Member
0 Kudos

Hi Gurus,

I added a field to 0Customer_Attr called SORT1 and its size is 20 chars. I written the logic in user exit which pulls the data from differenct table called ADRC.

I am getting right values in Sort1 but I can see only 10 chars size. It should be 20 chars size.

For example like

Actual Value HOOSIER TOOL & DIE but I can see HOOSIER other part is not displaying.

Could some tell me where is the problem here is my logic in Used Exit.

WHEN '0CUSTOMER_ATTR'.

LOOP AT I_T_DATA INTO STRU2.

L_TABIX = SY-TABIX.

SELECT SINGLE SORT1 INTO STRU2-ZZSORT1

FROM ADRC WHERE ADDRNUMBER = STRU2-ADRNR.

MODIFY I_T_DATA FROM STRU2 INDEX L_TABIX.

ENDLOOP.

Please where I am making mistake

Dave Sam

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Dave,

Check the size of the field ZZSORT1 in structure .

Also check if SORT1 in ADRC table is 20 characters long.

Regards.

Former Member
0 Kudos

Checkif the lenght of your fields definition is 20 char....

Regards

Former Member
0 Kudos

Hi,

most likely your ZZSORT1 is CHAR10, please verify this.

hope this helps...

Olivier.

Message was edited by:

Olivier Cora

Former Member
0 Kudos

1. What's the definition of STRU2-ZZSORT1?

2. The 'loop at' and 'select' combo is not good for performance in a high volume situation.