‎2007 Jul 05 8:27 AM
HI.. I'd like to know how to make it possible..
[X] ---stand for radiobutton
[ ] Yes
[X] No
I want to make that ..the shipment date range input field is appeared..after choosing "Yes"
[X] Yes (in the same row) Shipment Date ________ to __________ ( select-options: sp_fkdat for vbrk-fkdat. )
any advices?
Thx
‎2007 Jul 05 8:30 AM
hi,
u can use loop at screen,
if yes,
secreen-active = '1'.
else.
screen-active = '0'.
endif.
reward points if helpful,
regards,
seshu.
‎2007 Jul 05 8:30 AM
at selection-screen output.
if r_radio = 'X'.
loop at screen.
if screen-name = 'S_DATE'.
screen-active = '0'.
endif.
modify screen.
endloop.
endif.
regards,
Amit
Reward all helpful replies.
‎2007 Jul 05 8:32 AM
use selection-screen output event.'
there you can put a check on the value of radiobuttons and modify the screen as per your liking.
regards
vijai
reward pnts if useful
‎2007 Jul 05 8:37 AM
Hi,
To display it in the same row,Define the radio button and shipment date within Begin of line and end of line statement.
Selection-screen:Begin of line.
<radio button>Declaration
select-options: sp_fkdat for vbrk-fkdat.
Selection-screen:End of line.
and to hide and show the shipment date use loop at screen statement as mentioned by Experts.
‎2007 Jul 05 8:52 AM
Use the following code for ur requirement :
REPORT zrjntrial_tree LINE-COUNT 65
LINE-SIZE 80
NO STANDARD PAGE
HEADING.
*********************************************************************
TABLES : vbrk.
PARAMETERS : p_radio AS CHECKBOX USER-COMMAND opt1.
SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,
s_fkdat FOR vbrk-fkdat.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'S_FKDAT-LOW' OR screen-name = 'S_FKDAT-HIGH'
or screen-name = '%_S_FKDAT_%_APP_%-TEXT' or screen-name = '%_S_FKDAT_%_APP_%-OPTI_PUSH'
or screen-name = '%_S_FKDAT_%_APP_%-TO_TEXT' or screen-name = '%_S_FKDAT_%_APP_%-VALU_PUSH'.
IF p_radio IS NOT INITIAL.
screen-input = 1.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ELSE.
screen-input = 0.
screen-output = 0.
screen-invisible = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Regards,
Himanshu
‎2007 Jul 05 9:30 AM
Here is the Code ...
report zaseqa .
tables: vbrk.
parameter : R1 radiobutton group G1 ,
R2 radiobutton group G1 DefaULt 'X' .
SELECT-OPTIONS : sp_fkdat for vbrk-fkdat .
at selection-screen output.
if R1 = ' '.
loop at screen.
if screen-name = 'SP_FKDAT-LOW'.
screen-active = '0'.
ELSEif screen-name = 'SP_FKDAT-HIGH'.
screen-active = '0'.
endif.
modify screen.
endloop.
endif.reward points if it is usefull ...
Girish