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 reports

Former Member
0 Likes
746

hi,

can anybody tell what's the purpose of below statement.that is i dont understand when we use 'INITIAL'.why is it used.urgent

IF ( s_vbeln IS INITIAL ) AND ( s_wadat IS INITIAL ).

7 REPLIES 7
Read only

Former Member
0 Likes
725

Hi,

If ur using initial u r checking whether the field hav any value or not.

IF ( s_vbeln IS INITIAL ) AND ( s_wadat IS INITIAL ).

In the above if s_vbeln and s_wadat doesnt have any value it will go inside the if satement.

Regards,

Umasankar.

Read only

Former Member
0 Likes
725

hi kiran,

This statement tells when the the sales order number and date is initial ie) no data exists, then v have to process a set of statements.

Initial means that has no data. to check the values for the field name or table v use this initial

Regards...

Arun.

Reward points if useful.

Read only

Former Member
0 Likes
725

HI.

"is initial "means,when it has no values in that local variable(s_vbeln,s_wadat).then only thids IF condition will be work.

rewards all helpfull answers.

regards.

Jay

Read only

Former Member
0 Likes
725

dear Kiran

Is initail is used when we want to check if the variable is assigned any value or not.

like

data: a .

if a is initial.

write 'A is empty'.

a = 'a'.

endif.

if a is not initial.

write 'Now a is filled'.

endif.

Regards

Sarath

Read only

Former Member
0 Likes
725

Hi,

The statement means if s_vbeln and s_wadat (both) have no values.

This is particularly used for initialization purpose or giving proper messages.

Suppose your requirement is if both fields are empty- it should display an error message.

Or your requirement can be if both fields are empty - s_vbeln should have value 00001.

Hope this helps.

Regards,

Richa.

Read only

Former Member
0 Likes
725

HI KIRAN,

WE WILL BE CHEKING WHETHER ANY DTA IS PRESENT IN THE TABLE OR VARIABLE WITH THE HEALP OF KEY WORD IS INITIAL .IN YOUR CASE YOU ARE VERFINING FOR SALES DETAILS ACCORDINGLY IF BOTH THE VARIABLES ARE EMPTY THEN YOU WILL EXECUTE THE STATEMENTS IN THE IF STATEMENT

Read only

Former Member
0 Likes
725

Hi Kiran,

It means... <b>if both s_vbeln and s_wadat are not holding any value except default value.</b>

Regards

--

Sasidhar Reddy Matli.