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

null value

Former Member
0 Likes
810

when i am assigning null value as given below

itab0-vertn = null.

it gives error as

Field null is unknown.

How to assign null to a variabl or internal table field ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
784

HI,

ITAB-VERTN = '0'. IS ENOUGH...

8 REPLIES 8
Read only

Former Member
0 Likes
785

HI,

ITAB-VERTN = '0'. IS ENOUGH...

Read only

JozsefSzikszai
Active Contributor
0 Likes
784

hi,

you can simply try:

itab-vertn = 0.

NULL is used only by WHERE causes

hope this helps

ec

Read only

Former Member
0 Likes
784

Hi,

Move space to the field .Its a NULL value.

Regards,

Balakumar.G

Reward Points if helpful.

Read only

Former Member
0 Likes
784

Hi

If the field is of type char then you need to wrte the same in quotes woth caps

else

declare

constants : c_null type i value '0'.

then assign the same

itab0-vertn = c_null.

regards

Shiva

Read only

0 Likes
784

Just clear that field.

clear itab0-vertn.

Read only

Former Member
0 Likes
784

hi,

just give

itab0-vertn = 0,

try this and null will be mostly used in where classes.

reward if useful

Read only

Former Member
0 Likes
784

Hi Santosh,

use itab0-vertn = 0.

instead of itab0-vertn = null.

or iitab0-vertn eq space.

reward if useful

regards,

sunil kairam.

Read only

Former Member
0 Likes
784

thanks