Application Development and Automation 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: 
Read only

SHIFT command

Former Member
0 Likes
1,096

Hi all. i am using shift command to delete trailing spaces of a character using

SHIFT IT_DOCU-NO right DELETING trailing SPACE.

it is working and deleting trailing spaces successfully. after that i am sending iternal table data to ALV for out put . but value for which i have deleted trailing spaces not getting effected. that is value is printing with trailing spaces. i.e shift is not getting effected in alv out put. pls help me to print data by deleting trailing spaces.

Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
988

no in alv it wont affect for that you have to use justification....

ifieldcat-just = 'R'.

for that field

regards

shiba dutta

7 REPLIES 7
Read only

Former Member
0 Likes
988

Did you MODIFY the itab to update each line before sending to ALV. It sounds like you have updated the header without updating the line in question.

Regards

Gareth

Read only

Former Member
0 Likes
988

hi,

after deleting the value using shift command modify that value in internal table. otherwise it wont get affected as it takes value from internal table only.

ex: modify field index sy-tabix.

if helpful reward some points.

with regards,

Suresh.A

Read only

Former Member
0 Likes
988

HI.

We cant change in internal table because that fileds has same length .So you need change field length.dont worry about that in internal table.we need to delete unwanted space when it will display ,it will work fine.No problem.

Reward all helpfull answers.

Regards.

Jay

Read only

Former Member
0 Likes
989

no in alv it wont affect for that you have to use justification....

ifieldcat-just = 'R'.

for that field

regards

shiba dutta

Read only

0 Likes
988

Thank u very much Shiba. i got the solution.

can i have u r mail id pls. if any queries i am having i will consult u.

Kumar.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
988

Has the field a conversion exit (from domain), it may reverse your updating. If so remove the exit from the field catalog.

Regards

Read only

Former Member
0 Likes
988

sorry kumar as per my company policy i cant access any external mail.

regards

shiba dutta