‎2009 Jul 07 11:27 AM
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?
‎2009 Jul 07 11:35 AM
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
‎2009 Jul 07 11:28 AM
Hi,
Take a look at the ABAP help for the statement SELECTION-SCREEN, particularly BEGIN OF BLOCK.
Regards,
Nick
‎2009 Jul 07 11:32 AM
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
‎2009 Jul 07 11:34 AM
Error post-----
Edited by: Artur Rodriguez Coma on Jul 7, 2009 12:42 PM
‎2009 Jul 07 11:32 AM
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
‎2009 Jul 07 11:35 AM
Hi,
Check this
[http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba7a135c111d1829f0000e829fbfe/content.htm]
This serves your purpose.
‎2009 Jul 07 11:35 AM
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
‎2009 Jul 07 11:35 AM
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
‎2009 Jul 07 11:42 AM
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
‎2009 Jul 07 12:00 PM
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.
‎2009 Jul 07 12:05 PM
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
‎2009 Jul 07 12:08 PM
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
‎2009 Jul 07 12:12 PM
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
‎2009 Jul 07 2:56 PM
no in fact i want 2 blocks each containing a separate radio button
‎2009 Jul 08 6:02 AM
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
‎2009 Jul 07 11:36 AM
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