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 / sunil kumar gautam

This example will be help full for this problem.
PARAMETERS check1 AS CHECKBOX USER-COMMAND check.
select-OPTIONS regio for kna1-regio MODIF ID mad.
select-OPTIONS kunnr for kna1-kunnr MODIF ID kad.
AT SELECTION-SCREEN .
"LOOP AT SCREEN.

if check1 = 'X'.
if kunnr is INITIAL.
Message 'Customer is manditory' type 'E'.
endif.
endif.

if check1 is INITIAL.
if regio is INITIAL.
Message 'Region is manditory' type 'E'.
endif.
endif.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use flow logic control key words in abap/4 and vice-verse?

575


What is a data dictionary? : sap abap data dictionary

558


What is the differences between abap and ooabap. In which situation we useooabap?

721


What is meant by write lock? : sap abap data dictionary

600


Is it possible to bring select option in module pool screens?

545






Sy index and sy tabix

974


What are the different types of parameters? : abap modularization

623


What is lock object ? : abap data dictionary

612


What are the function of the transport system and workbench organiser? : abap data dictionary

567


How will you read from internal table records in a given value range (without using loop)

982


What are the commands used for interactive reports?

574


Of the two call transaction and session method, which is faster?

711


Explain what are the various types of selection screen event?

567


What are the steps in creating screen ?

1469


Explain how many types of tables exist and what are they in data dictionary?

621