10-28-2007 5:59 PM
Can we give width and height to Selection-screen begin of block block1....
To my knowledge..is it true that we can specify the position by using
selection-screen skip ... and selectrion-screen position...
any command to specify position by using row,column?
Thanks
10-28-2007 9:13 PM
hi Gopi.
you are right....we can position selection screen by using skip
refer following syntax...
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS : all RADIOBUTTON GROUP grp2 DEFAULT 'X'.
PARAMETERS : postpone RADIOBUTTON GROUP grp2.
PARAMETERS : bfor RADIOBUTTON GROUP grp2.
SELECTION-SCREEN : END OF BLOCK b2.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN: BEGIN OF BLOCK b3 WITH FRAME.
PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'J:\Temp\ZMR4'.
SELECTION-SCREEN: END OF BLOCK b3.
10-28-2007 6:05 PM
Hi,
As far as I know,we cannot do that.
On standard selection screens, the size of the block is limited to 79 characters across. This is also the default size for the block. So it is already at the max.
Hope it was useful.
Thanks,
Sandeep.
10-28-2007 9:13 PM
hi Gopi.
you are right....we can position selection screen by using skip
refer following syntax...
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS : all RADIOBUTTON GROUP grp2 DEFAULT 'X'.
PARAMETERS : postpone RADIOBUTTON GROUP grp2.
PARAMETERS : bfor RADIOBUTTON GROUP grp2.
SELECTION-SCREEN : END OF BLOCK b2.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN: BEGIN OF BLOCK b3 WITH FRAME.
PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'J:\Temp\ZMR4'.
SELECTION-SCREEN: END OF BLOCK b3.
10-29-2007 2:58 AM
SELECT-OPTIONS: s_kunnr FOR gs_bsid-kunnr."Payer Number
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
General Selections
SELECT-OPTIONS: s_bukrs FOR gs_bsid-bukrs OBLIGATORY NO-EXTENSION, " Company code
s_bzirk FOR gs_vbrk-bzirk, " Sales District
s_prctr FOR gs_bsid-prctr NO INTERVALS . " Profit center.
SELECTION-SCREEN: END OF BLOCK blk1. " General Selections
SELECTION-SCREEN: BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
Additional selections
SELECT-OPTIONS: s_fkart FOR gs_vbrk-fkart, " Billing type
s_mansp FOR gs_bsid-mansp, " Dunning Block
s_days FOR gs_bsid1-aplzl NO-EXTENSION VISIBLE LENGTH 5," Days Overdue
s_wrbtr FOR gs_bsid-wrbtr NO-EXTENSION, " Open item Invoice value
s_ctlpc FOR gs_knkk-ctlpc NO-EXTENSION, " Risk Category
s_grupp FOR gs_knkk-grupp NO-EXTENSION, " Customer Credit Group
s_sbgrp FOR gs_knkk-sbgrp NO-EXTENSION, " Credit Rep. Group
s_pswsl FOR gs_bsid-pswsl NO-EXTENSION, " Currency
s_konzs FOR gs_kna1-konzs NO-EXTENSION. " Corporate Group
SELECTION-SCREEN: END OF BLOCK blk2.
SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME TITLE text-003.
Output Control
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) text-004.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS : p_days1(5) TYPE n, "#EC * " Days overdue
p_days2(5) TYPE n, "#EC * " Days overdue
p_days3(5) TYPE n, "#EC * " Days overdue
p_days4(5) TYPE n, "#EC * " Days overdue
p_days5(5) TYPE n, "#EC * " Days overdue
p_days6(5) TYPE n. "#EC * " Days overdue
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP 1.
PARAMETERS : p_vat AS CHECKBOX. " With VAT Split or not
PARAMETERS: p_layout TYPE slis_vari. " Layout
SELECTION-SCREEN: END OF BLOCK blk3.
10-29-2007 4:15 AM
Hi,
What you said is true... THERE'S NO WAY to set position in a election screen using row and column... I suggest you can define macro or something to do that using row and column as parameter and translating that into SKIP and POSITION commands.
cya,
dimas.