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: 

truncate the field of table in exit

Former Member
0 Kudos

Hello All, I have one scenario, in which the field of description has 35 character which is SAP Standard and data which is passing is 40 char. So 5 char is not visible. There is one customized exit , in which the field value has been move into that field. There is one table it_data which has structure type CATS_COMM, so in the table one of the field PRPOST1 has 40 character, I need to truncate the this field and than assign into it_data internal table. as this is 40 char , need to truncate the 5 char so it will be 35 char which can accommodate into screen. So before looping the table it_data , need to truncate the PRPOST1 and assign the field with 35 char again to it_data. so can we use any variable of 35 char used it out or there is some other way.please help . Thanks

1 REPLY 1

Ibrahem
Participant
0 Kudos

PRPOST1 = PRPOST1+0(35).


I think this code will solve the problem.