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
What does the extract statement do in extract datasets?
Where the payroll results are stored
Value table VS check Table.
How to create any functions? How to go about it?
What are the different types joins?
How do you find the information on the current screen?
What is tcode se16? For what is it used.
What is the difference between a substructure and an append structure? : abap data dictionary
How is time management and payroll is integrated? : sap abap hr
How can you manipulate the presentation and attributes of interactive lists?
Which transaction code is used executing a report (type 1 program)? : abap data dictionary
How do you work with semi colon se[arated files in BDC ?
What is the difference between a pool table and a transparent table?
How to handle errors in call transaction bdc method without using bdcmsgcoll internal table? : abap bdc
hi..i hav developed an interactive report in which alv list display in basic list and 1st secondary list in alv grid display.I want to get summation(total) of the columns in the secondary list.I hav used 'do_sum' but i couldnt get.is there any other way to get summation(total) in secondary list which is an alv grid display