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

How to analysis Background Job for performance Issue?

939


What is the max no of match code id’s that can be defined for one match code object?

897


How can you find the field/data underlying a transaction?

794


What are the different software packets available in the market? : sap abap hr

803


Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called?

802






Can we define our own match code id's for sap matchcodes ?

800


Is it possible to run host command from SAP environment? How do you run?

804


Explain about drill down report?

8945


What are the restrictions on subscreens?

874


Hat are the different types of mode (run code) in call transaction method?

765


How to upload more than 2GB file from External Source to SAP?

1039


What is macro? : abap hr

809


What is open sql vs native sql ?

2108


How to know if the value entered contains records or not?

756


Difference between /N and /BEND?

1002