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
Can you print decimals in type n? What is difference between float and packed data type?
what will happen if called program is not executable ?
What is the differences between abap and ooabap. In which situation we useooabap?
What are lock objects?
Can you give the Example for the structure of an ABAP program? REPORT... NODES: SPFLI, SFLIGHT. DATA:... INITIALIZATION. AT SELECTION-SCREEN. START-OF-SELECTION. GET SPFLI... GET SFLIGHT... GET SPFLI LATE. END-OF-SELECTION. FORM... ENDFORM.
What is the difference between a structure and a table? : abap data dictionary
Can i have some Realtime Scenarios on Reports.
Can we include customizing include or an append structure with pooled or cluster tables? : abap data dictionary
What are aggregated objects
How can cluster table be created?
Is it possible to pass data to and from include programs explicitly?
What is meant by write lock? : sap abap data dictionary
What are the functional areas? User groups? And how does abap/4 query work in relation to these?
What are number ranges?
Cds views