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
10) How to get Item Header in Sales Order?
Are you familiar with all steps for setting up a workflow?
Give examples of transparent table?
What is the difference between Check and Continue?
What is an abap/4 query? : abap hr
What are Table control and tab strip control in dialog programming ?
How do you document ABAP programs? Do you use program documentation menu option?
What is smart forms? : abap hr
What is the function of a data element?
What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?
when run my program in se38 it was showing output, when i take background execution and giving printer details it was shoing out put. but in SP01 when i give the Spool Request Number it was showing not yet processed entire page why it happens i dont know please give me a solution.
Can a domain, assigned to a data element be changed? : abap data dictionary
What are the different window types in sapscript?
What are the user groups?
Can i Have Some Examples on Enhancements.