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
What are the aggregate objects in the dictionary? : abap data dictionary
How do you retrieve the data for repetitive structures ? : abap hr
Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.
Explain about Recording Function?
How will you insert record in a sorted table
what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary
Is it possible to pass data to and from include programs explicitly?
What are smart forms?
What is a table attribute?
java script for push button in adobe forms.
What is synchronous update?
What has to be done to the packed fields before submitting to a BDC session.
What are differences between at selection-screen and at selection-screen output?
What is logo in sap script?
SM35 transaction, How to automate BDC ?