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 collect statement is different from append?

539


On abap: did you set up a workflow? Are you familiar with all the steps for setting up a workflow?

582


Difference between transparent tables and pooled tables? : abap hr

557


What are the abap/4 commands that link to a layout set?

879


What do you mean by cluster tables in sap abap? Also explain what do you mean by table cluster? : abap data dictionary

520






What are the techniques involved in using SAP supplied programs? Do you prefer to write your own programs to load master data? Why?

712


Explain what are the events in screen programming?

576


What will happen when we use single buffered selected?

624


What are aggregated objects

567


Can a filed occur in several field groups? : abap modularization

662


How do you execute the payroll

2104


What is the different between abap and ooabap? Why do we use ooabap?

637


Explain get cursor field?

674


GUYS any one please can u post questions in sap a bap webdynpro questions.. please i need to know some technical questions regarding webdynpro and ADOBE forms ?

1439


Can we make use of flow logic control key words in abap/4 and vice-versa?

599