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: 

internal table fields to blank

Former Member
0 Kudos

hi to all,

how to set internal table fields to blank.

thanks in advance

kiran kumar

1 ACCEPTED SOLUTION

former_member404244
Active Contributor
0 Kudos

Hi kiran,

if u have declared the internal table with work area then

do like this.

clear :itab-field1,

itab-field2.

modify itab .

if u have decalred the internal table without header line, then do like this.

clear: wa-field1,

wa-field2.

modify itab from wa transporting field1 field2.

Regards,

Nagaraj

5 REPLIES 5

Former Member
0 Kudos

Use <b>CLEAR</b> statement.

Kind Regards

Eswar

gopi_narendra
Active Contributor
0 Kudos

Use the refresh statement.

Refresh : itab.

Regards

- Gopi

0 Kudos

Hi,

i need to make blank only two fields of the internal table and further change the database table.

thanks in advance

kiran kumar

0 Kudos

clear: wa-fld1, wa-fld2.

modify itab from wa transporting fld1 fld2.

Kind Regards

Eswar

former_member404244
Active Contributor
0 Kudos

Hi kiran,

if u have declared the internal table with work area then

do like this.

clear :itab-field1,

itab-field2.

modify itab .

if u have decalred the internal table without header line, then do like this.

clear: wa-field1,

wa-field2.

modify itab from wa transporting field1 field2.

Regards,

Nagaraj