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
Normally how many and what files get created when a transaction program is written? what is the XXXXXTOP program?
Which commands are used for interactive reports?
What are the differences between primary and secondary indexes?
How are BAPI different from Normal function modules ?
What are the different database integrities?
how to capture the errors in bdc Call transaction method?
Does the external program run in the same sap luw as the caller, or in a separate one?
While using extract datasets it is required to have a special workarea for interface. State true or false. : abap modularization
In tm, if a group of employees gets 10 days of annual leave, what will be the time evaluation status? : sap abap hr
What is an authorization in sap?
How to get that a secondary index is attached to a select query?
What is an evaluation path? : sap abap hr
Can you delete data element, which is being used by table fields?
What is processing class, where we do them and why? : sap abap hr
how to update the filed value in SAP in ZAWSYS and create time and date? please tell me the answer