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: 

Deletion of digit in internal table field

Former Member
0 Kudos

Hi friends,

i have internal table itab.That itab contains the field A the contents of a is

"@01' i want to delete that @ before uploading.Where can i put that logic after uploading function or anywhere? and tell me the best logic to delete that @.

Thanks for all.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

loop at itab.
 replace itab-field1+0(1)  with ' ' into itab-field1.
modify itab.
endloop.

Rgds

Reshma

5 REPLIES 5

Former Member
0 Kudos

hi,

loop at itab.

itab-A = itab-A+1(length of ur field).

modify itab index sy-tabix transporting A.

endloop.

Former Member
0 Kudos

Hi Bharat,

data : temp(20) .

loop at itab.

Temp = itab-A+1(*). "suppose itab-A is having @01 then temp will contain 01

itab-A = Temp.

modify itab.

clear temp.

endloop.

Reward points if helpful.

Regards,

Hemant

Former Member
0 Kudos

hi,

loop at itab.
 replace itab-field1+0(1)  with ' ' into itab-field1.
modify itab.
endloop.

Rgds

Reshma

Former Member
0 Kudos

hi bharat,

do this way.

 loop at itab.
   REPLACE itab-field+0(1) WITH ' ' INTO itab-field.
   CONDENSE itab-field NO-GAPS .
   modify itab index sy-tabix transporting field.
 endloop.

Regards,

Santosh

Former Member
0 Kudos

Hi,

You have to format the file contents to TEXT format before uploading. Even after that if your internal table field contains @ then you have to remove using the below logic.

loop at itab.

if itab-A ca '@'.

replace '@' with ' ' field itab-A.

condense itab-A no-gaps.

modify itab index sy-tabix transporting A.

endif.

endloop.

thanks,

sksingh