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
How to analysis Background Job for performance Issue?
What is the max no of match code id’s that can be defined for one match code object?
How can you find the field/data underlying a transaction?
What are the different software packets available in the market? : sap abap hr
Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called?
Can we define our own match code id's for sap matchcodes ?
Is it possible to run host command from SAP environment? How do you run?
Explain about drill down report?
What are the restrictions on subscreens?
Hat are the different types of mode (run code) in call transaction method?
How to upload more than 2GB file from External Source to SAP?
What is macro? : abap hr
What is open sql vs native sql ?
How to know if the value entered contains records or not?
Difference between /N and /BEND?