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

selection screen

Former Member
0 Likes
739

hi all,

we have a requirement in our project where in selection screen we have to display

month and year as select-options, but in this format.

from month year to month year. here month is taken as one field and year is taken as one field.

we are getting as one below the other but not one beside the other.

help us out.

Thanks in advance.

Anitha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
722

Hi Anitha ,

Use the command SELECTION-SCREEN BEGIN OF LINE .

To design your selection screen as per the said requirement.

Please go through the help of the command for more info.

Regards

Arun

8 REPLIES 8
Read only

Former Member
0 Likes
723

Hi Anitha ,

Use the command SELECTION-SCREEN BEGIN OF LINE .

To design your selection screen as per the said requirement.

Please go through the help of the command for more info.

Regards

Arun

Read only

Former Member
0 Likes
722

Hi

in selection screen if you want to put 2 fields in a row or 2 radiobuttons in a row then use

<b>SELECTION SCREEN BEGIN OF LINE.

SELECTION SCREEN END OF LINE</b>

in between what ever code you write that will be in one line

<b>example</b>

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

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : R1 RADIOBUTTON GROUP G1.

PARAMETERS : R2 RADIOBUTTON GROUP G1.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B2.

if you want to comment that then that will be done by like this

SELECTION-SCREEN COMMENT 3(10) TEXT-002 FOR FIELD R1.

in between the begin of line and end of line

specify the comment possition exactly so that those 2 can't overide each other

<b>reward if usefull</b>

Read only

former_member404244
Active Contributor
0 Likes
722

Hi,

try like this..

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION 1.

SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD BUY.

PARAMETERS: BUY RADIOBUTTON GROUP A1.

SELECTION-SCREEN POSITION 16.

SELECTION-SCREEN COMMENT 16(10) TEXT-002 FOR FIELD SELL.

PARAMETERS: SELL RADIOBUTTON GROUP A1.

SELECTION-SCREEN END OF LINE.

in place of matnr and werks give month and year.

Regards,

Nagaraj

Read only

Former Member
0 Likes
722

Hi Anitha,

Try with the below code.

SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME.

SELECTION-SCREEN: Begin of line.

SELECTION-SCREEN comment 1(5) text-001.

PARAMETERS: p_month1 LIKE t247-mnr.

PARAMETERS: p_year1(4) type n.

SELECTION-SCREEN comment 30(2) text-002 for field p_month2.

PARAMETERS: p_month2 LIKE t247-mnr.

PARAMETERS: p_year2(4) type n.

SELECTION-SCREEN: end of line.

SELECTION-SCREEN: END OF BLOCK blk1.

*Note text-001 = From

*Note text-002 = To

Read only

vallamuthu_madheswaran2
Active Contributor
0 Likes
722

Hi Anitha,

if you want one by one use the below coding

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

parameters: p_date like bkpf-monat. "==> month only 2 char

parameters: p_year like bkpf-gjahr. "==> year four char

SELECTION-SCREEN END OF BLOCK D1.

if you want ranges.

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

select-options: s_date for bkpf-monat. "==> month only 2 char

parameters: s_year for bkpf-gjahr. "==> year four char

SELECTION-SCREEN END OF BLOCK D1.

good regards,

vallamuthu.M

Read only

Former Member
0 Likes
722

hi,

use SELECTION-SCREEN BEGIN OF LINE.

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

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

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

SELECTION-SCREEN END OF LINE.

EX: SELECTION-SCREEN BEGIN OF LINE.

SELECT-OPTIONS: YEAR TYPE C,

MONTH TYPE C.

SELECTION-SCREEN BEGIN OF LINE.

FOR MORE HELP PRESS F1 BUTTON ON ANY REPORT PROGRAM WHICH CONTAINING WORD SELECTION-SCREEN.

IF HELPFUL REWARD SOME POINTS.

WITH REGARDS,

SURESH ALURI.

Read only

Former Member
0 Likes
722

Hi..

Hi,

<b>selection-screen begin of line.</b>

selection-screen comment 1(8) date1.

parameters:date(2) type n.

selection-screen comment 15(8) year1.

parameters:year(4) type n.

selection-screen comment 59(8) date2.

parameters:dateh(2) type n.

selection-screen comment 75(8) year2.

parameters:yearh(4) type n.

<b>selection-screen end of line.</b>

<b>initialization.</b>

date1 = 'DATE1'.

year1 = 'YEAR1'.

date2 = 'DATE2'.

year2 = 'YEAR2'.

Read only

Former Member
0 Likes
722

Hi all ,

Thank you all.

The query is resolved.

Thanks

Anitha