Application Development 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: 

aligning blocks to right hand side in simple report

Former Member
0 Kudos

Hi Experts,

I have to make two blocks adjacent to each other on the selection screen.

Kindly tell me the keywords with the help of which I can specify the coordinated for the blocks to be specified on the screen.

thanks in advance.

6 REPLIES 6

Former Member
0 Kudos

Hi,

SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.
  selection-screen begin of line.
    parameters: p_type radiobutton group grp1.
    selection-screen comment 4(15) text-010 for field p_type.
    selection-screen position pos_low.
    parameters: p_tinput like p2001-awart.
  selection-screen end of line.
  selection-screen begin of line.
    parameters: p_reason radiobutton group grp1.
    selection-screen comment 4(17) text-010 for field p_reason.
    selection-screen position pos_low.
    parameters: p_rinput like p2001-umsch.
  selection-screen end of line.
SELECTION-SCREEN END OF BLOCK out.

Former Member
0 Kudos

Hi,

I think we can not create two blocks alligned at the same level on selection screen.

But you can create two parametes and select options aligned to each other at the same level by using

SELECTION-SCREEN: BEGIN OF LINE.

SELECTION-SCREEN: END OF LINE.

Regards,

Raj Gupta

Former Member
0 Kudos

Hi, try this code

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

SELECT-OPTIONS : S_CUSTNO FOR KNA1-KUNNR, "input range for customers

S_ORDNO FOR VBAK-VBELN. "input range for orders

SELECTION-SCREEN END OF BLOCK B1 .

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.

PARAMETERS : STOT AS CHECKBOX,

GTOT AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK B2 .

Regards,

Vijay

Former Member
0 Kudos

Hi,

As told it is not possible to allign two selcetion-screen blocks in the same line side-by-side like parameters or select-options. Though you can use selction-screen blocks within another selection-screen block


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : p_kunnr TYPE kna1-kunnr.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS : p_vbeln TYPE vbak-vbeln.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN END OF BLOCK b1.

Regards,

Vik

Former Member
0 Kudos

Hi,

selection-screen begin of line.
 parameters session radiobutton group ctu. "create session
 selection-screen comment 3(20) text-s07 for field session.
 selection-screen position 45. parameters ctu radiobutton group ctu. "call transaction
 selection-screen comment 48(20) text-s08 for field ctu.
 selection-screen end of line.

 selection-screen begin of line.
 selection-screen comment 3(20) text-s01 for field group.
 selection-screen position 25. parameters group(12). "group name of session
selection-screen comment 48(20) text-s05 for field ctumode.
 selection-screen position 70.
parameters ctumode like ctu_params-dismode default 'N'. "A: show all dynpros "E: show dynpro on error only "N: do not di
 selection-screen end of line.

 selection-screen begin of line.
 selection-screen comment 3(20) text-s02 for field user.
 selection-screen position 25.
parameters: user(12) default sy-uname. "user for session in batch
 selection-screen comment 48(20) text-s06 for field cupdate.
 selection-screen position 70.
 parameters cupdate like ctu_params-updmode default 'L'. "S: synchronously "A: asynchronously "L: local selection-screen end of line.

 selection-screen begin of line.
 selection-screen comment 3(20) text-s03 for field keep.
 selection-screen position 25.
 parameters: keep as checkbox. "' ' = delete session if finished "'X' = keep session if finished
selection-screen comment 48(20) text-s09 for field e_group.
 selection-screen position 70.
 parameters e_group(12). "group name of error-session
 selection-screen end of line.

 selection-screen begin of line.
selection-screen comment 3(20) text-s04 for field holddate.
selection-screen position 25.
parameters: holddate like sy-datum.
 selection-screen comment 51(17) text-s02 for field e_user.
 selection-screen position 70.
 parameters: e_user(12) default sy-uname. "user for error-session

 selection-screen end of line.

selection-screen begin of line.
 selection-screen comment 51(17) text-s03 for field e_keep.
 selection-screen position 70.
 parameters: e_keep as checkbox. "' ' = delete session if finished "'X' = keep session if finished
selection-screen end of line.

 selection-screen begin of line.
 selection-screen comment 51(17) text-s04 for field e_hdate.
 selection-screen position 70.
parameters: e_hdate like sy-datum.
selection-screen end of line.
 selection-screen skip.

 selection-screen begin of line.
selection-screen comment 1(33) text-s10 for field nodata.
 parameters: nodata default '/' lower case. "nodata
 selection-screen end of line.

selection-screen begin of line.
selection-screen comment 1(33) for field smalllog.
 parameters: smalllog as checkbox. "' ' = log all transactions "'X' = no transaction logging
selection-screen end of line

Thanks & regards,

ShreeMohan

Former Member
0 Kudos

Hi Udit,

Firstly i would like to tell u the width of a selection screen selection screen width lies from 1 to 83 Ch, CH is characters, by default it prints 10 characters per IN .

U want to right align some selection screen elements in a line.

for that u have to do some calculations first.

lets take an example if u want to print some thing like this right alligned--->>>

see if this is ur selection screen and ic sales and credit allowed are ur two check boxes u want to make right aligned,

................................................................................IC Sales [ ] Credit Allowed [ ]

to do this calculate from back for a check box length is 1 CH after that there is a space of 1 CH and then " Credit Allowed" if of length 14 CH.

again then take the sapce between the 2 Check boxes as 5 CH.

then there ia another checkbox of lenth 1 CH, a space of 1 CH and IC Sales text length is 8

so if we total of all then the total is 11145118 = 31.

so its 31 from right and from left it would be 83( the total legnth of selection screen) - 31 = 52.

so start entering selection screen elements from position 52.

now the code for above screen would be----->>>

SELECTION-SCREEN BEGIN OF BLOCK F WITH FRAME TITLE TEXT-014.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 52(8) text-017. "this is Text symbol for IC sales text

PARAMETERS : P_IC AS CHECKBOX.

SELECTION-SCREEN COMMENT 67(14) text-018.

PARAMETERS : P_CA AS CHECKBOX.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK F.

hope this would resolve your issue.

Regards,

Akash Rana