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 ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps to be followed to set lockobjects? : sap abap data dictionary

620


In Table Field when display the Name, whose first charecter should be capital letter and rest will be small letter.

1588


1 . how do u design technical documentation in abap ? 2 . what u currently devloped in sap abap ?

2560


Can a domain, assigned to a data element be changed? : abap data dictionary

540


On which event we can validate the input fields in module programs?

588






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

829


How table control cn be generated using bdc? : abap bdc

566


How to use messages in lists?

599


What are dml commands in abap?

639


WHY CLUSTER TABLE CALLED AS CLUSTER TABLE.

1630


Explain the use of insert and append statement in sap abap?

584


What is sql trace? : abap data dictionary

664


Hi All , Would be providing online trainings for SAP ABAP , guidance with real time experience examples , guidance in profile prepartion . Any one intrested please contact on 8978890047.

1965


Workbench request are client dependent or client independent

550


What is the use of a pretty printer?

601