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

regarding initial value

Former Member
0 Likes
783

Hi

in the condition

ERFMG = initial value

and ZLDAT = initial value.

this condition i hav to write in the select query where condition how can i ?

what it mean initial value.

6 REPLIES 6
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
761

Hi,

You can as well check as ERFMG IS NULL.

Or you can declare same type variabe and check

<b>DATA: ERFMG_INIT TYPE ERFMG.

CLEAR ERFMG_INIT.

In the select use WHERE ERFMG = ERFMG_INIT.</b>

Regards,

Sesh

Read only

Former Member
0 Likes
761

Hi Ramesh,

Try This,

If ERFMG is initial and ZLDAT is initial.

Perform read.

Endif.

Form Read.

Select -


> here you can write your select querry.

EndForm.

Thanks.

Read only

Former Member
0 Likes
761

where ERFMG = ''

and ZLDAT = '0'." if zldat is a date field ...

else

where ERFMG = ''

and ZLDAT = ''.

regards

shiba dutta

Read only

Former Member
0 Likes
761

Hi Ramesh,

Try this.

Select ....
  WHERE  ERFMG IS INITIAL 
          and ZLDAT IS INITIAL.

Read only

varma_narayana
Active Contributor
0 Likes
761

Hi...

you can write like.

SELECT <Fields> from <DB TABLE> into table <itab>

where ERFMG is INITIAL

and ZLDAT is INITIAL .

regards.

Read only

Former Member
0 Likes
761

<b>select <some fields> into <table> from <database table>where ERFMG = initial value

and ZLDAT = initial value.

</b>

Regards,

Pavan.