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
Explain the advantages of logical databases?
Of the two call transaction and session method, which is faster?
How would you set the formatting options statically and dynamically within a report?
Explain difference between primary key and unique key?
What are the functions of lock objects?
What is the bitwise operator in the sap abap?
What are local objects? : abap data dictionary
Can we set page headers to details lists?
How to determine the attributes of an internal table?
How to debug rfc function module?
Explain the client concept of sap.
could anyone tell me what r real time questions been asked in interviews?i am in urgent need..thanks in advance
A field-groups statement or an insert statement reverses storage space and transfers values. State true or false. : abap modularization
How to create a check box/option button in a list?
What is the length of function code at user-command?