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 design

Former Member
0 Likes
1,214

Hi all,

could u help let me know,,

i have a requirement like , in selection screen i have a parameter ( ie condition type, check it in TC: VK13). if i select any one condition type ( suppose i select PR00) then click enter Or OK button it will display the details of the PR00 with in the selection screen as a block of radiobuttons. t

Ie what ever text i enter in the parameter text that details only want to display.

Regards,

Naresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,180

TABLES:rv13a.

SELECTION-SCREEN :

PUSHBUTTON 1(20) text-001 USER-COMMAND cli1.

PARAMETERS: p_cond LIKE rv13a-kschl.

SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.

SELECTION-SCREEN: BEGIN OF BLOCK b1 .

PARAMETERS: r1 RADIOBUTTON GROUP g1 ,

r2 RADIOBUTTON GROUP g1,

r3 RADIOBUTTON GROUP g1.

SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 500.

SELECTION-SCREEN BEGIN OF SCREEN 600 AS SUBSCREEN.

SELECTION-SCREEN: BEGIN OF BLOCK b2 .

PARAMETERS: d1 RADIOBUTTON GROUP g2 ,

d2 RADIOBUTTON GROUP g2.

SELECTION-SCREEN: END OF BLOCK b2.

SELECTION-SCREEN END OF SCREEN 600.

THIS IS MY CODE if i select PR00 in parameter text it can display the subscreen 500 with in the main selection-screenie( screen no 1000).

11 REPLIES 11
Read only

Former Member
0 Likes
1,180

Hi,

no one is there

Read only

Former Member
0 Likes
1,180

Hi Naresh,

Can you be a little more clear??

Regards,

Amuktha.

Read only

Former Member
0 Likes
1,180

Hi,

You can use the event AT Selection-Screen Output. and write the code of fetching the details from the table VK13 and displaying it as a block of radiobuttons.

Regards,

Nikhil Kayal

Read only

Former Member
0 Likes
1,180

Hi Narsa,

please check the application vk13 , once you specified the condition type pr00 , it shows three types of radio buttons.. select the appropriate radio button....

Check the application VK13 once.....

Thanks

Siva

Read only

Former Member
0 Likes
1,180

Hi,

Please send your code

Read only

Former Member
0 Likes
1,181

TABLES:rv13a.

SELECTION-SCREEN :

PUSHBUTTON 1(20) text-001 USER-COMMAND cli1.

PARAMETERS: p_cond LIKE rv13a-kschl.

SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.

SELECTION-SCREEN: BEGIN OF BLOCK b1 .

PARAMETERS: r1 RADIOBUTTON GROUP g1 ,

r2 RADIOBUTTON GROUP g1,

r3 RADIOBUTTON GROUP g1.

SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 500.

SELECTION-SCREEN BEGIN OF SCREEN 600 AS SUBSCREEN.

SELECTION-SCREEN: BEGIN OF BLOCK b2 .

PARAMETERS: d1 RADIOBUTTON GROUP g2 ,

d2 RADIOBUTTON GROUP g2.

SELECTION-SCREEN: END OF BLOCK b2.

SELECTION-SCREEN END OF SCREEN 600.

THIS IS MY CODE if i select PR00 in parameter text it can display the subscreen 500 with in the main selection-screenie( screen no 1000).

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,180

Hello Naresh,

if i select PR00 in parameter text it can display the subscreen 500 with in the main selection-screenie( screen no 1000).

Where do you select "PR00" ? I donot understand this ?

Plz clarify.

BR,

Suhas

Read only

0 Likes
1,180

Hi thanks for replay ,

There is parameter like P-COND IN my code for that i will give "PR00' based on 'PR00' I have to get screen 500. if i enter any other , have to display screen 600.

Regards,

Naresh

Read only

0 Likes
1,180

Hi,

Please check this modified code below. It is working fine.

TABLES:rv13a.

SELECTION-SCREEN :

PUSHBUTTON 1(20) text-001 USER-COMMAND cli1.

PARAMETERS: p_cond LIKE rv13a-kschl.

SELECTION-SCREEN BEGIN OF SCREEN 5000.

SELECTION-SCREEN: BEGIN OF BLOCK b1 .

PARAMETERS: r1 RADIOBUTTON GROUP g1 ,

r2 RADIOBUTTON GROUP g1,

r3 RADIOBUTTON GROUP g1.

SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 5000.

SELECTION-SCREEN BEGIN OF SCREEN 6000.

SELECTION-SCREEN: BEGIN OF BLOCK b2 .

PARAMETERS: d1 RADIOBUTTON GROUP g2 ,

d2 RADIOBUTTON GROUP g2.

SELECTION-SCREEN: END OF BLOCK b2.

SELECTION-SCREEN END OF SCREEN 6000.

AT SELECTION-SCREEN ."output.

if p_cond = 'PR00'.

call SELECTION-SCREEN 5000 STARTING AT 50 50

ENDING AT 50 50.

ENDIF.

Read only

0 Likes
1,180

Hi,

Check the below code.

Hi,

Please check this modified code below. It is working fine.

TABLES:rv13a.

SELECTION-SCREEN :

PUSHBUTTON 1(20) text-001 USER-COMMAND cli1.

PARAMETERS: p_cond LIKE rv13a-kschl.

SELECTION-SCREEN BEGIN OF SCREEN 5000.

SELECTION-SCREEN: BEGIN OF BLOCK b1 .

PARAMETERS: r1 RADIOBUTTON GROUP g1 ,

r2 RADIOBUTTON GROUP g1,

r3 RADIOBUTTON GROUP g1.

SELECTION-SCREEN: END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 5000.

SELECTION-SCREEN BEGIN OF SCREEN 6000.

SELECTION-SCREEN: BEGIN OF BLOCK b2 .

PARAMETERS: d1 RADIOBUTTON GROUP g2 ,

d2 RADIOBUTTON GROUP g2.

SELECTION-SCREEN: END OF BLOCK b2.

SELECTION-SCREEN END OF SCREEN 6000.

AT SELECTION-SCREEN .

if p_cond = 'PR00'.

call SELECTION-SCREEN 5000 STARTING AT 50 50

ENDING AT 50 50.

else.

call SELECTION-SCREEN 6000 STARTING AT 50 50

ENDING AT 50 50.

ENDIF.

Read only

Former Member
0 Likes
1,180

Hi Naresh,

As also said by others don't use the subscreen option instead use only screen and call it in at selection-screen event where you can check your conditions when to call that particular screen:

TABLES:rv13a.

SELECTION-SCREEN :

PUSHBUTTON 1(20) text-001 USER-COMMAND cli1.

PARAMETERS: p_cond LIKE rv13a-kschl.

SELECTION-SCREEN BEGIN OF SCREEN 500." AS SUBSCREEN.
SELECTION-SCREEN: BEGIN OF BLOCK b1 .
PARAMETERS: r1 RADIOBUTTON GROUP g1 ,
r2 RADIOBUTTON GROUP g1,
r3 RADIOBUTTON GROUP g1.
SELECTION-SCREEN: END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 500.


SELECTION-SCREEN BEGIN OF SCREEN 600." AS SUBSCREEN.
SELECTION-SCREEN: BEGIN OF BLOCK b2 .
PARAMETERS: d1 RADIOBUTTON GROUP g2 ,
d2 RADIOBUTTON GROUP g2.

SELECTION-SCREEN: END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 600.

AT SELECTION-SCREEN.
  IF p_cond eq 'PR00'.
    CALL SELECTION-SCREEN 500 STARTING AT 50 100 ENDING AT 50 100.
  ELSEIF p_cond ne 'PR00' and p_cond ne space.
    CALL SELECTION-SCREEN 600 STARTING AT 50 100 ENDING AT 50 100.
  ENDIF.

With luck,

Pritam.