2006 Dec 12 7:34 AM
Hi all,
this is my interview question.
suppose 2 parameters p1 and p2 are there.
i want these two parameters in the same line of selection screen.
is it possible?
and how?
same question for radio button.?
2006 Dec 12 7:41 AM
Yes it can be defined,
chk this
REPORT YCHATEST LINE-SIZE 350.
SELECTION-SCREEN BEGIN OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 5.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN POSITION 35.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
Hi aswin ,
thanks for solving my problem,
2006 Dec 12 7:38 AM
hi vishnu
we can place two parameters in the same line.
check this code
selection-screen begin of line .
parameters p like spfli-carrid.
parameters s like spfli-connid.
selection-screen end of line.
the same implies to radiobutton also.
-Priyanka
selection-screen begin of line .
parameters r radiobutton group rad.
parameter r1 radiobutton group rad.
parameter r2 radiobutton group rad.
selection-screen end of line.
Message was edited by: Priyanka
Priyanka Neelam
2006 Dec 12 7:41 AM
Yes it can be defined,
chk this
REPORT YCHATEST LINE-SIZE 350.
SELECTION-SCREEN BEGIN OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 5.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN POSITION 35.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
2006 Dec 12 7:43 AM
Hi,
Use like this
SELECTION_SCREEN BEGIN OF LINE.
parameters: p1(10).
p2(10).
SELECTION_SCREEN END OF LINE.Regards,
pankaj singh
2006 Dec 12 7:52 AM
HI thanks to all.
iam getting the 2 parameters on the same line.
but it is not displaying the parameter names.
2006 Dec 12 7:56 AM
try this
selection-screen : begin of block sel with frame title text-001.
selection-screen : begin of line .
parameters : it(10),it1(20).
selection-screen end of line .
selection-screen : end of block sel.
double click th text-001... click selection text and give the reqired text.
regards
aswin
2006 Dec 12 7:57 AM
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) txt_01.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN COMMENT 50(10) txt_02.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
txt_01 = 'Text 01'.
txt_02 = 'Text 02'.Regards
Wenceslaus
2006 Dec 12 8:05 AM
Hi gnana,
thanks for solving my question.
but am not able to assign u for points.
bcoz radio buttons r in disabled mode
Message was edited by:
Vishnu reddy
2006 Dec 12 8:11 AM
2006 Dec 12 7:53 AM
Hi vishnu,
Have you checked my solution??
I dont know how Pankajs solution was helpful to u with syntax errors
2006 Dec 12 8:00 AM
Hi chandra sekar,
yaaa pankaj's solution is syntax error.
i had modified and seen it.
2006 Dec 12 8:03 AM
for comments u can check this
REPORT YCHATEST LINE-SIZE 350.
SELECTION-SCREEN BEGIN OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P_VAR1.
SELECTION-SCREEN POSITION 20.
PARAMETERS : P_VAR1(10).
SELECTION-SCREEN COMMENT 40(10) TEXT-002 FOR FIELD P_VAR2.
SELECTION-SCREEN POSITION 50.
PARAMETERS : P_VAR2(10).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
2006 Dec 12 8:10 AM
2006 Dec 12 8:03 AM
2006 Dec 12 8:04 AM
selection-screen begin of line.
<b>parameters : par1(20), par2(10).</b>
selection-screen end of line.
this will provide paramaeters in one line...
2006 Dec 12 8:14 AM
Hi Vishnu ,
This code will gove you the desired result
selection-screen begin of line.
selection-screen comment 10(10) text-001 for field p_chkbox.
parameters : p_chkbox type c as checkbox .
selection-screen comment 25(10) text-001 for field p_chk.
parameters : p_chk type c as checkbox.
selection-screen end of line.Please revert back in case of any further queries.
Regards
Arun
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |