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

two parameters to get on same line

Former Member
0 Likes
3,276

Hi Friends,

Hope doing well.

I have 2 fields on selection screen, which they want to display in same line

including the field text.how can i do this, pls help me regarding this issue.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,318

use begin of line.

Hi Friends,

Hope doing well.

I have 2 fields on selection screen, which they want to display in same line

including the field text.how can i do this, pls help me regarding this issue.

10 REPLIES 10
Read only

Former Member
0 Likes
2,319

use begin of line.

Read only

kiran_k8
Active Contributor
0 Likes
2,318

Venkat,

selection-screen: begin of block blk1 with frame title text-001.

parameters: p_werks like t001w-werks obligatory.

selection-screen begin of line.

selection-screen comment (30) text-002.

selection-screen position 33.

parameters: p_cmonth like t549q-pabrp obligatory,

p_cyear like t549q-pabrj obligatory.

selection-screen end of line.

selection-screen: end of block blk1.

K.Kiran.

Read only

sachin_mathapati
Contributor
0 Likes
2,318

Hi Venkat ,

USe F1 help on Begin of Line.

Chech this Code for reference.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(6) text-000 FOR FIELD p1.

SELECTION-SCREEN POSITION 10.

PARAMETERS: p1 TYPE c.

SELECTION-SCREEN COMMENT 20(6) text-002 FOR FIELD p1.

SELECTION-SCREEN POSITION 30.

PARAMETERS: p2 TYPE c.

SELECTION-SCREEN END OF LINE.

Regards,

Sachin M M

Read only

Former Member
0 Likes
2,318

hi ,

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(15) label.

PARAMETERS: p1 LIKE mara-matnr

SELECTION-SCREEN COMMENT 40(15) to.

PARAMETERS: p2 LIKE mara-MEINS .

SELECTION-SCREEN END OF LINE.

Read only

Former Member
0 Likes
2,318

Hi,

Selection-screen : Begin of line.

........................

...................

Selection-screen : End of line.

between this the no. of fields u will put , will be displayed in one line.

Hope this will help u.

Regards,

Aleem.

Edited by: Aleem Mohiuddin on Aug 21, 2008 6:25 AM

Read only

Former Member
0 Likes
2,318

Hi,

We should use Selection-Screen Begin Of Line.... for this purpose.

example :


SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-013.

SELECTION-SCREEN SKIP 1.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(25) text-014.

PARAMETERS p_matnr type mara-matnr.

PARAMETERS  p_bkgpr AS CHECKBOX.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b1.

.

Hope this helps.

thanx,

dhanashri.

Read only

Former Member
0 Likes
2,318

hi,

you can try the begin of line statement


SELECTION-SCREEN BEGIN OF BLOCK b1 . 
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(7) text-000.
PARAMETERS:
                  empID(10) type c,
                  empName(10) type c.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.

Read only

former_member386202
Active Contributor
0 Likes
2,318

Hi,

Refer below code

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-060.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : p_rpt RADIOBUTTON GROUP g1 "Display report

USER-COMMAND radio DEFAULT 'X'.

SELECTION-SCREEN COMMENT 3(40) text-055.

PARAMETERS : p_post RADIOBUTTON GROUP g1. "Post Documents

SELECTION-SCREEN COMMENT 46(28) text-056.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b3.

Regards,

Prashant

Read only

Former Member
0 Likes
2,318

Iam getting 2 fields on same line but iam not getting field text,

i want that too.

Read only

0 Likes
2,318

Hi Venkat ,

Double click on the Text-000 and Create Required Text , to get the field Text .

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(6) text-000 FOR FIELD p1.

SELECTION-SCREEN POSITION 10.

PARAMETERS: p1 TYPE c.

SELECTION-SCREEN COMMENT 20(6) text-002 FOR FIELD p1.

SELECTION-SCREEN POSITION 30.

PARAMETERS: p2 TYPE c.

SELECTION-SCREEN END OF LINE.

Regards,

Sachin M M