Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Selection Screen Option

Former Member
0 Likes
756

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

6 REPLIES 6
Read only

Former Member
0 Likes
726

hi,

u can use loop at screen,

if yes,

secreen-active = '1'.

else.

screen-active = '0'.

endif.

reward points if helpful,

regards,

seshu.

Read only

amit_khare
Active Contributor
0 Likes
726

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.

Read only

Former Member
0 Likes
726

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

Read only

former_member491305
Active Contributor
0 Likes
726

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.

Read only

Former Member
0 Likes
726

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

Read only

Former Member
0 Likes
726

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