in start of selection if we perform validation ,what happens?

Answer Posted / nehruu g

Use "at selection-screen" to perform validation

Example :

at selection-screen on s_bedat.
if s_bedat ne '00000000'.
data1 = s_bedat-low.
data2 = s_bedat-high.
data3 = ( data2 - data1 ).
if data3 > 367.
MESSAGE 'Date interval should be 1 year period.'
TYPE 'E'.
endif.
endif.

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which particular scenario we use sorted table and which particular scenario we use standard table?

1024


What are authorization objects and what statement is used to perform an authorization check in an abap program?

565


Can there be more than 1 main window in sap script?

621


What are the user groups?

572


What are the components of sap scripts? : abap hr

589






Different types of luws. What are they?

622


In the `select' statement what is group by ?

1521


How do you convert non-char field into char type fields ?

1749


What is pass by value and what is pass by reference? Which is better?

836


What is the meaning of table buffer? This buffer is used by which type oftable?

771


Does sap handle multiple currencies?

606


Explain what are the problems in processing batch input sessions? How is batch input process different from processing on line?

587


What is the difference between leave transaction and call transaction?

613


How can you distinguish between different kinds of parameters?

553


How will you transfer data into a file in application server?

595