i have a requirement.there are 2 fields and one check box
on my selection screen.initially first field sud be
mandatory, when we click on check box the first field which
was mandatory sud now be optional and second field sud be
mandatory?please provide me the solution asap.Thank you
Answer / rinzy deena mathews
Declare the parameters with modification ID, and at the At
selection screen event, use screen-required to make the
fields manually mandatory.
Following is the code for this
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-
002.
PARAMETERS : fname(20) TYPE c MODIF ID f1,
lname(20) TYPE c MODIF ID l1.
PARAMETERS : check1 AS CHECKBOX DEFAULT 'X' USER-COMMAND
usc.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
IF check1 EQ 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'F1'.
screen-required = 1.
MODIFY SCREEN.
ELSEIF screen-group1 = 'L1'.
screen-required = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF check1 NE 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'L1'.
screen-required = 1.
MODIFY SCREEN.
ELSEIF screen-group1 = 'F1'.
screen-required = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Is This Answer Correct ? | 13 Yes | 0 No |
how to navigate to report from report? note: no transaction code created to report.
what are the events in Module pool Programming?
18 Answers HCL, Mahle, TCS, Wipro,
Difference between transparent tables and pooled tables? : abap hr
What is foreign key relationship? : abap hr
Is it possible to run host command from SAP environment? How do you run?
Explain chain end chain?
Can we create Enhancements of our own, i.e. customer defined?
What is the full form of spro? : sap abap hr
How to decide whether we can use BDC (OR) LSMW for a given transaction?
Write the bdc table structure? : abap bdc
Some one is running a program in Foreground which has to be run in Back ground. How you are going to instruct to do in Back ground?
What are pooled tables?