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


Please Help Members By Posting Answers For Below Questions

How to find Kernal badi ?

1159


What are the update types possible? : abap data dictionary

558


hi.. sap sd is installed in my PC .i m unable to start becoz ,i have given wrong password many times and it's locked.please tell me how can i open SAP logon. tell the process at my id dst.noida@rediffmail.com please advance thanx

1514


Explain what are the events used in interactive reports?

495


what is the t-code to link technical and functional operation?

1976






the problem is that , while i am undergoing with my practice session, i am creating too many new programs.they are occupying much space in my hard-disk. how to delete un-necessary programs completely from my data- base........... plz help me with this .....

1570


What are different types of parameters?

608


What is match code? : sap abap hr

646


What are the techniques involved in using sap supplied programs?

605


Can a transparent table exist in data dictionary but not in the data base physically? : sap abap data dictionary

618


can anybody give me functional specification (or table name & field names) of stock analysis report, work in progress report,generating vendor detailed list

1515


What is the syntax for call transaction? : abap bdc

603


What is smart forms? : abap hr

602


What is value table? : abap data dictionary

643


Table events aNd table maintains generation

993