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

Deleting the first space data

Former Member
0 Likes
825

Hi,

In my object i want to transferthe data from flat file and to store in DB table..In flat file some data starting with ***...

I want to delete this star and then only i want to upload into the data base..sometimes there will be three stars,sometimes there will be 10 stars..

So how to delete tht particular star presenting in the place

1 ACCEPTED SOLUTION
Read only

former_member386202
Active Contributor
0 Likes
804

Hi,

Do like this

SHIFT field LEFT DELETING LEADING '*'.

Regards,

Prashant

Hi,

In my object i want to transferthe data from flat file and to store in DB table..In flat file some data starting with ***...

I want to delete this star and then only i want to upload into the data base..sometimes there will be three stars,sometimes there will be 10 stars..

So how to delete tht particular star presenting in the place

5 REPLIES 5
Read only

former_member386202
Active Contributor
0 Likes
805

Hi,

Do like this

SHIFT field LEFT DELETING LEADING '*'.

Regards,

Prashant

Read only

Former Member
0 Likes
804

Hi,

u can modify all the fields having prefix * using the statement REPLACE ALL OCCURENCES OF '*' ... in your program.

regards,

Read only

Former Member
0 Likes
804

Hi,

After the data is retrieved to an internal table, just modify the records by deleting the leading *

Command: SHIFT <itab-fld1> LEFT DELETING LEADING '*' .

You can use this cmmand in a loop and then use the modify statement.

Regards,

Narendra.

Read only

Former Member
0 Likes
804

replace all occurrences of '*' in itab-field1 with ' '.

Read only

Former Member
0 Likes
804

Thanks