Sample Code For Selection Screen
Output
I have created two radiobutton & I have two field
where I have to put file path. Whenever I check one radio button I want
to only activate only one field and other field should be deactivated.
I am trying by using at seelction-screen output. but I'm not getting desired
output.
By: Hari
Here is the sample code for your requirement.
selection-screen :begin of block test with frame title
text-001.
parameters:p_rad1 radiobutton group one user-command
test,
p_rad2 radiobutton group one.
selection-screen:end of block test.
selection-screen:begin of block test2 with frame title
text-002.
parameters:p_file(10) TYPE C MODIF ID TL,
p_file1(10) TYPE C MODIF ID TT.
selection-screen:end of block test2.
AT SELECTION-SCREEN OUTPUT.
IF P_RAD1 = 'X'.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'TT'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
IF P_RAD2 = 'X'.
LOOP AT SCREEN.
CHECK
SCREEN-GROUP1 = 'TL'.
SCREEN-INPUT
= '0'.
MODIFY
SCREEN.
ENDLOOP.
ENDIF.
ABAP Related:
Get help for your ABAP problems
Do you have
a ABAP Question?
ABAP Books
ABAP
Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference
Books
ABAP Tips and Tricks
ABAP Forum for Discussion
and Samples Program Codes for Abapers
Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
All product names are trademarks of their respective
companies. The site www.erpgreat.com is in no way affiliated with
SAP AG.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
The content on this site may not be reproduced
or redistributed without the express written permission of
www.erpgreat.com or the content authors.
|