‎2007 Sep 12 6:21 AM
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
‎2007 Sep 12 6:24 AM
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
‎2007 Sep 12 6:24 AM
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
‎2007 Sep 12 6:31 AM
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>
‎2007 Sep 12 6:32 AM
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
‎2007 Sep 12 6:38 AM
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
‎2007 Sep 12 6:40 AM
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
‎2007 Sep 12 6:48 AM
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.
‎2007 Sep 12 7:26 AM
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'.
‎2007 Sep 12 1:36 PM