i have 2 fields on selection screen of a Report along with
a check box.My requirement is initially that first field
sud be mandatory but when we click on the check box the
first field which was mandatory sud now be optional and the
second field now sud be mandatory.Please provide the
solution asap. thank u.

Answer Posted / harsh bansal

you shud code in AT Selectin
screen event

At selection screen.
If p_checkbox is initial.
If first_field is initial.
Message e000(zmsgclass).
Endif.
Elseif p_checkbox eq 'X'.
If second_field is initial.
Message e001(zmsgclass).
Endif.
Endif.

This vl b enuf..

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you display frames (horizontal and vertical lines) in lists?

607


What is the use of the raising exception? : abap modularization

508


What are the differences between interactive and drill down reports?

534


What is the difference between bdc_open_group and bdc_open_dataset. : abap bdc

601


What are the Control levels in internal tables?

580






what is diff between ECC 5.0 AND ECC 6.0

2850


What are the different methods of passing data? : abap modularization

570


What are the list of screen elements?

524


what is sap scriptview ?

1730


What is repository info. Systems?

605


What is the use of at new statement ?

1349


What are the layers of data description in r/3? : abap data dictionary

631


How will you find manager of an employee

847


Which function module would you use to check the user’s authorization to access files before opening a file?

598


What is an evaluation path? : sap abap hr

549