2007 Feb 05 7:37 AM
Hi Friends,
I have a requirement of putting Selection screen blocks side by side ....
Say for example.....
I have a code ............
"SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
............
............
SELECTION-SCREEN END OF BLOCK B1. "
The above code will insert a BLOCK in the selection screen and will put the parameters or select-options inside it ......
My requirement is .... like ....
"SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
............
............
SELECTION-SCREEN END OF BLOCK B1. "
and something like
"SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
............
............
SELECTION-SCREEN END OF BLOCK B2. "
Blocks B1 and B2 should come side by side .....
hope i am clear with the question
Expecting replies
thanks in advance ....
Cheers
Kripa Rangachari ...
Hi Friends,
I have a requirement of putting Selection screen blocks side by side ....
Say for example.....
I have a code ............
"SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
............
............
SELECTION-SCREEN END OF BLOCK B1. "
The above code will insert a BLOCK in the selection screen and will put the parameters or select-options inside it ......
My requirement is .... like ....
"SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
............
............
SELECTION-SCREEN END OF BLOCK B1. "
and something like
"SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
............
............
SELECTION-SCREEN END OF BLOCK B2. "
Blocks B1 and B2 should come side by side .....
hope i am clear with the question
Expecting replies
thanks in advance ....
Cheers
Kripa Rangachari ...
2007 Feb 05 7:49 AM
Hi,
We can not create side by side blocks in the selection screen as we cannot have a option to specify the position with the BLOCK statments. but you can do this way, using the below code you can format the fields side by side in a BLOCK
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001.
PARAMETERS: P1(3), P2(5), P3(1).
SELECTION-SCREEN END OF LINE.
You can specify the Position here and the fields in allignment and wirt ethe commnet for every field for the text of that field
regards
Sudheer
2007 Feb 05 7:49 AM
you can try this
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1.
PARAMETERS: P1 LIKE SAPLANE-PLANETYPE, P2(5), P3(1).
SELECTION-SCREEN END OF LINE.
it will give you side by side thing or you can use
SELECTION-SCREEN POSITION pos.
but not sure whether position will place the block side by side or not?
regards
shiba dutta
2007 Feb 05 7:52 AM
Hi Kripa,
YOu cannot do that . YOu can refer the standard include: BDCRECX1 for arragement of screen parameters side by side.
Regards,
Ravi
2007 Feb 05 8:02 AM
Kripa
Use
Comments
To place comments on the selection screen, you use:
SELECTION-SCREEN COMMENT [/]<pos(len)> <comm> [FOR FIELD <f>]
[MODIF ID <key>].
This statement writes the <comm> comment on the selection screen. For <comm>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called. You must always specify the <pos(len)> addition. Only if there are several elements in one line, can you omit <pos>.
The text <comm> will be displayed, starting in column <pos>, for a length of <len>. If you do not use a slash (/), the comment is written into the current line; otherwise a new line is created.
You use FOR FIELD <f> to assign a field label to the comment. <f> can be the name of a parameter or a selection criterion. As a result, if the user requests help on the comment on the selection screen, the help text for the assigned field <f> is displayed.
The MODIF ID <key> addition has the same function as for the PARAMETERS statement. You can use it to modify the comment before the selection screen is called.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1.
PARAMETERS: P1 LIKE SAPLANE-PLANETYPE, P2(5), P3(1).
SELECTION-SCREEN END OF LINE.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |