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
Can we use flow logic control key words in abap/4 and vice-verse?
What is a data dictionary? : sap abap data dictionary
What is the differences between abap and ooabap. In which situation we useooabap?
What is meant by write lock? : sap abap data dictionary
Is it possible to bring select option in module pool screens?
Sy index and sy tabix
What are the different types of parameters? : abap modularization
What is lock object ? : abap data dictionary
What are the function of the transport system and workbench organiser? : abap data dictionary
How will you read from internal table records in a given value range (without using loop)
What are the commands used for interactive reports?
Of the two call transaction and session method, which is faster?
Explain what are the various types of selection screen event?
What are the steps in creating screen ?
Explain how many types of tables exist and what are they in data dictionary?