Skip to Content
author's profile photo Former Member
Former Member

truncate the field of table in exit

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 16, 2016 at 07:40 AM

    PRPOST1 = PRPOST1+0(35).


    I think this code will solve the problem.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.