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 |
Can I craete a Field without a Data Element ? How
singleton class
How will you know which BADI is being, if there are multiple implementations of BADI in the same project.
Where the data captured data is stored in ALV Interactive Reports using usercommand?? I_callback_usercommand
what is the code for basic list to 2ndry list?
which institute is best in hyderabad for abap which is a module in sap.please suggest ur valuable information
I am having an internal table with field name 'type' which consists of values 'a' 'b' 'c' 'a' 'a'.Now i used 'at new fieldname' control statement on this field so what could be the output
In events, start-of-selection is a default event. When we have to use this event explicitly? Why?
Prepare a Report for last month Last Date- First Date?
Hi all Could u please tell me the answers for following questions, Why we need IDocs...? What is the purpose of IDocs...? Thanks in Advance, Sanjeev.K
In Smartforms or ADOBE Forms Can we get text from standard table in verticle form? if yes, How?
"I want to access one record, I don't know any key figures.How to do that"