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


Please Help Members By Posting Answers For Below Questions

Normally how many and what files get created when a transaction program is written? what is the XXXXXTOP program?

645


Which commands are used for interactive reports?

625


What are the differences between primary and secondary indexes?

606


How are BAPI different from Normal function modules ?

1570


What are the different database integrities?

572






how to capture the errors in bdc Call transaction method?

599


Does the external program run in the same sap luw as the caller, or in a separate one?

654


While using extract datasets it is required to have a special workarea for interface. State true or false. : abap modularization

611


In tm, if a group of employees gets 10 days of annual leave, what will be the time evaluation status? : sap abap hr

558


What is an authorization in sap?

603


How to get that a secondary index is attached to a select query?

939


What is an evaluation path? : sap abap hr

551


Can you delete data element, which is being used by table fields?

793


What is processing class, where we do them and why? : sap abap hr

566


how to update the filed value in SAP in ZAWSYS and create time and date? please tell me the answer

1809