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

divide a selection screen into 2 sections

Former Member
0 Likes
4,170

hi everybody

i want to divide a selection screen into 2 divisions

I tried using the uline command but its working

is there another solution?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,843

hi,

code like this :

for 1st section.

selection-screen begin of block b1 with frame title-001.

select-options:

parameters:

selection-screen end of block b1 with frame title-001.

for 2nd section.

selection-screen begin of block b2 with frame title-002.

select-options:

parameters:

selection-screen end of block b2 with frame title-002.

click on -001 & -002 , click yes.

maintain title for each section.

these title will appear for each section when u run the prog.

try it

regards

15 REPLIES 15
Read only

Former Member
0 Likes
2,841

Hi,

Take a look at the ABAP help for the statement SELECTION-SCREEN, particularly BEGIN OF BLOCK.

Regards,

Nick

Read only

Former Member
0 Likes
2,841

Hi Anjali,

If you are talking about dividing Selection screen vertically divided in reports then it is not possible. Although you can divide selection screen horizontally in different blocks.

If you requirement demands vertical division then you should use Dialog program to design your screen.

Regards,

VIjay

Read only

0 Likes
2,841

Error post-----

Edited by: Artur Rodriguez Coma on Jul 7, 2009 12:42 PM

Read only

Former Member
0 Likes
2,841

SELECTION-SCREEN BEGIN OF BLOCK B01 WITH FRAME TITLE text-t001.

  • Parameters:

  • Select-options, etc...

SELECTION-SCREEN end OF BLOCK B01.

You can create other blocks inside your block, and put tittles in text-XXX

Read only

Former Member
0 Likes
2,841

Hi,

Check this

[http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba7a135c111d1829f0000e829fbfe/content.htm]

This serves your purpose.

Read only

Former Member
0 Likes
2,841

Hi ,

You can divide your screen using

*SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 *

SELECTION-SCREEN END OF BLOCK b4. statements in your AT SELECTION-SCREEN OUTPUT Event.

Hope it helps

Regards

Mansi

Read only

Former Member
0 Likes
2,844

hi,

code like this :

for 1st section.

selection-screen begin of block b1 with frame title-001.

select-options:

parameters:

selection-screen end of block b1 with frame title-001.

for 2nd section.

selection-screen begin of block b2 with frame title-002.

select-options:

parameters:

selection-screen end of block b2 with frame title-002.

click on -001 & -002 , click yes.

maintain title for each section.

these title will appear for each section when u run the prog.

try it

regards

Read only

0 Likes
2,841

I cant put into 2 blocks because I have 2 radiobuttons and they should apparently be on the same blocks

in fact these radiobuttons dtermine the the 2 blocks

Read only

0 Likes
2,841

Immmm maybe you can put both radiobuttons on the same block and under each one 1 sub-block with the parameters for each one.

The second can be invisible and when the user selects the second one make a loop at screen and put the fist invisible and the second one visible.

Read only

0 Likes
2,841

Hi Anjali

try like this

REPORT  zvenkat_alv_grid.

PARAMETERS:
         r1 RADIOBUTTON GROUP gr1 USER-COMMAND uce,
         r2 RADIOBUTTON GROUP gr1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4 TYPE c LENGTH 10 MODIF ID bl2,
            p5 TYPE c LENGTH 10 MODIF ID bl2,
            p6 TYPE c LENGTH 10 MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b2.

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME.
PARAMETERS: p7 TYPE c LENGTH 10 MODIF ID bl2,
            p8 TYPE c LENGTH 10 MODIF ID bl2,
            p9 TYPE c LENGTH 10 MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b3.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF r1 = 'X'.
      IF screen-name = 'P4' OR
         screen-name = 'P5' OR
         screen-name = 'P6'  .
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
    IF r2 = 'X'.
      IF screen-name = 'P7' OR
         screen-name = 'P8' OR
         screen-name = 'P9' .
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

Thanks

Venkat.O

Read only

0 Likes
2,841

Hi,

Try this way but, i don't that is that the right way.

Copy the program name and open in SE51 Screen painter

Give the screen number as 1000

Warning will come ignore it.

Open the Layout, and drag the radio button 2 lines below

now add a Text between these 2 radiobuttons, and in place of text fot it, give a continious underscore

Save and activate,

Don't change any thing, drag radio button and just add text save and exit.

Now execute the report and see the output.

Note:- first try with a rough program

Regards

Bala Krishna

Read only

0 Likes
2,841

hi,

does tht mean u want two blocks - one containing two radio buttons & other containing parameters which has to change accordingly radio button selected?

if yes - then create two blocks as said before.

in first just put two radio button under same group.

assign user command xyz to one of the radio button.

in second block put all parameters and select-options u want.

now for parameters u want display for particular radio button give modif id as xyz which u declared earlier.

make sure u are assigning xyz to radio button and same modif id to parameters u want to display.

now use event at selection screen on output.

inside this event code using loop at screen - endloop.

u will get two sections based on radio button selected.

regards

Read only

0 Likes
2,841

no in fact i want 2 blocks each containing a separate radio button

Read only

0 Likes
2,841

Hi,

Try with my method which i explained in previous message, with that you can draw a line between 2 radiobuttons.

>

>

> Copy the program name and open in SE51 Screen painter

> Give the screen number as 1000

> Warning will come ignore it.

> Open the Layout, and drag the radio button 2 lines below

> now add a Text between these 2 radiobuttons, and in place of text fot it, give a continious underscore

> Save and activate,

> Don't change any thing, drag radio button and just add text save and exit.

>

> Now execute the report and see the output.

>

> Note:- first try with a rough program

>

>

Regards

Bala Krishna

Read only

Former Member
0 Likes
2,841

Hi,

You can achieve the division horizontally by inserting your elements in separate blocks enclosed within a frame.


selection-screen begin of block b1 with frame title text-001.
  parameters : ebeln type ekko-ebeln,
                       ebelp type ekpo-ebelp.
selection-screen end of block b1.
selection-screen skip 2.
selection-screen begin of block b2 with frame title text-002.
  parameters aedat type ekko-aedat.
selection-screen end of block b2.

Hope this helps.

Regards,

Sachin