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 Posted / 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 |
Post New Answer View All Answers
After running a BDC program in background, next day morning when you see the results, few records are not updated(error records). What will you do then ?
In sap scripts, how will you link form with the event driven?
Which objects are independent transport objects?
What is the difference between synchronous and asynchronous updates?
Explain what are standard layouts sets in the sap script?
there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?
List the various components of the enterprise structure in systems, applications, and products (sap) in human capital management (him)? : sap abap hr
What is an abap instance?
How do you use structures in the abap programs?
What is asynchronous update?
What is the transaction for recording bdc ? : abap bdc
What is bdc programming? : abap bdc
What primary key and foreign key relationship
Have you set up a back ground job? How to create a background job without a variant ? : abap bdc
Explain buffering concept usage?