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
What are the steps to be followed to set lockobjects? : sap abap data dictionary
In Table Field when display the Name, whose first charecter should be capital letter and rest will be small letter.
1 . how do u design technical documentation in abap ? 2 . what u currently devloped in sap abap ?
Can a domain, assigned to a data element be changed? : abap data dictionary
On which event we can validate the input fields in module programs?
What is pass by value and what is pass by reference? Which is better?
How table control cn be generated using bdc? : abap bdc
How to use messages in lists?
What are dml commands in abap?
WHY CLUSTER TABLE CALLED AS CLUSTER TABLE.
Explain the use of insert and append statement in sap abap?
What is sql trace? : abap data dictionary
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.
Workbench request are client dependent or client independent
What is the use of a pretty printer?