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 is asynchronous and synchronous update?
How can you find the field/data underlying a transaction?
In order to upload purchase order details, how you handle multiple values for a single field?
Can a filed occur in several field groups? : abap modularization
Explain the structure of a bdc sessions?
what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.
How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?
What are system fields for secondary lists?
How can end-of-selection be used?
What are the different abap/4 editors?
Give 3 scenario of reporting due to which you require reporting help of ABAP consultant?
what is the t-code to link technical and functional operation?
how 2 create the normal form by using functional module
What is going life actually? What is the role of a functional consultant in it? : sap abap hr
What are the data types of the external layer?