Dear Dhinesh,
a.) please check SAP Online help; examples of layouting are provided there
b.) please check: http://scn.sap.com/docs/DOC-41109
Dear Amol
I have found further interesting links etc. May be check (for now and future)
http://www.stechno.net/sap-notes.html?view=sapnote&id=579846
http://www.stechno.net/sap-notes.html?view=sapnote&id=1250868
http://www.stechno.net/sap-notes.html?view=sapnote&id=1328380
http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YP-RELNEHS_SAF_27A_VFG
Further hint not related to WWI:
This "Is else endif" logic is nice and does have great value. To do testing like: is there a data record present to be printed in WWI is only the "last answer" to a problem. The main reason is: after e.g. one year you need "days" (believe me!) to explain why in WWI layout (released report) value "X" has printed but not "Y". Therefore:
In most cases the value assignment type of interest does have a characteristic called "Remark". Now by using e.g. Expert Server rules you could populate the characteristic and now the WWI would have a "easy and simple chance" to retrieve data. E.g. if no data is present (which you are looking for) the expert rule could populate the charactersitc with a phrase like "According to our information there is no indication of..." or "No data available" or something similar so that you can "explain" to customer the data shown / presented.
It is not a "good" idea to use WWI for checking of existance of data. A "better" approach as mentioned, is to populate the property with data which has been generated by e.g. expert rules. This approach does have the further pro: you can search for the data using standard EHS queries and normally the business is supported better (and to is more stable regarding legal aspects).
C.B.
PS: you could may be check further WWI options; we have "blanl compression" and "conditional output"
Conditional output. SAP help provides this hint:
Conditional Output
Use
With this function, you can define conditions that must be fulfilled before a specific text section can be output.
Integration
In blank compression, the system checks only for empty values; in conditional output, it checks for the values you specify.