‎2007 Jun 26 11:00 AM
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 ).
‎2007 Jun 26 11:02 AM
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.
‎2007 Jun 26 11:03 AM
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.
‎2007 Jun 26 11:04 AM
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
‎2007 Jun 26 11:06 AM
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
‎2007 Jun 26 11:08 AM
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.
‎2007 Jun 26 11:08 AM
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
‎2007 Jun 26 11:11 AM
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.