‎2008 Jun 09 11:27 AM
hi, plz let me know what is:
SELECTION_SREEN : BEGIN OF LINE????
BEGIN OF BLOCK???
BEGIN OF COMMENT ???
give me more idea on selection screen and what is the purpose of each commands.
reward will be given for good reply.
mahesh
‎2008 Jun 09 11:31 AM
Hi,
These are different ABAP statements used in defining a selection screen
SELECTION_SREEN : BEGIN OF LINE(to define a line)
BEGIN OF BLOCK(to define a block in a selection screen)
BEGIN OF COMMENT (To write a comment)
You can give parameters,parameters(Check boxes,radiobuttons,Pushbuttons) in the selection screen
Hope it helps you.
Reward points if helpful.
Regards,
Mukul
‎2008 Jun 09 11:31 AM
Hi,
These are different ABAP statements used in defining a selection screen
SELECTION_SREEN : BEGIN OF LINE(to define a line)
BEGIN OF BLOCK(to define a block in a selection screen)
BEGIN OF COMMENT (To write a comment)
You can give parameters,parameters(Check boxes,radiobuttons,Pushbuttons) in the selection screen
Hope it helps you.
Reward points if helpful.
Regards,
Mukul
‎2008 Jun 09 11:37 AM
Here my friend is the explanation you need,
The Line clause will pu all elements ( parameters / select options / check box / radio etc ) that you define in between the begin and end to appear in 1 line.
It is generally used when you have a big selection screen and want all to appear in 1 block.
the begin of block and end makes a virtual grouping of all fields in a block then you can use AT Slection-screen on block statment to validate all of them to-gether.
The comment is generally ised to give comments to push button or text boxes......
Reward points if it helps CHEERS
‎2008 Jun 09 11:33 AM
Hi,
Check this out:
SELECTION-SCREEN BEGIN OF BLOCK block.
1. ... WITH FRAME
2. ... TITLE title
3. ... NO INTERVALS
Effect
The system opens a logical block on the selection screen. If you use the WITH FRAME addition, the block is enclosed in a box. You can only use the TITLE title addition in conjunction with WITH FRAME.
Addition 1
... WITH FRAME
Addition 2
... TITLE title
The title title can be defined either statically or at runtime (see also the COMMENT, PUSHBUTTON and SELECTION-SCREEN BEGIN OF SCREEN variants).
At runtime, the event AT SELECTION-SCREEN ON BLOCK block is triggered in the PAI phase for each block of the selection screen. (In database-specific blocks, the PAI routine is started in program SAPDBldb, passing the parameters FNAME = BLOCK_block and MARK = SPACE). If an error message is output, the fields in this block are ready for input.
You can nest blocks. The maximum depth for blocks in boxes is five levels.
Addition 3
... NO INTERVALS
Effect
All SELECT-OPTIONS within the block are displayed in simplified form on the selection screen without a 'to' field (corresponds to the " NO INTERVALS " addition for the SELECT-OPTIONS statement). The frame for the block (if applicable) is made smaller accordingly.
Note
The "NO INTERVALS" attribute is not inherited by blocks without boxes nested deeper. However, if the blocks are in boxes, the attribute is inherited, since a smaller box is generated, in which there is no room for the 'to' field.
SELECTION-SCREEN BEGIN OF LINE.
This enables you to arrange several parameters, comments, pushbuttons or underline blocks, included between the SELECTION-SCREEN BEGIN OF LINE and SELECTION-SCREEN END OF LINE statements, in a single line. The automatic new line after each PARAMETER is suppressed. Furthermore, the system does not output selection texts for parameters.
SELECTION-SCREEN COMMENT fmt name.
Extras:
1. ... FOR FIELD f
2. ... MODIF ID modid
3. ... VISIBLE LENGTH vlen.
Effect
Generates a comment on the selection screen.
You can define the content ( name) either statically or at runtime (as in the BEGIN OF BLOCK, PUSHBUTTON and SELECTION-SCREEN BEGIN OF SCREEN variants). If you use the FOR FIELD addition, you can omit name (see below).
When you use comments, you must always specify a format fmt.
Addition 1
... FOR FIELD f
Effect
The comment is assigned to either a parameter or a select-option f. When the user displays help, the documentation for the reference field of the parameter or select-option is displayed.
The comment is hidden if the reference object is set to 'invisible' in a selection variant.
Example
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(20) TEXT-001
FOR FIELD PARM.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS PARM LIKE SAPLANE-PLANETYPE.
SELECTION-SCREEN END OF LINE.
The comment appears with length 20 in the normal position (POS_LOW, and in the same line as the parameter. If the user presses F1 for either object, the system displays the documentation for SAPLANE-PLANETYPE
‎2008 Jun 09 11:33 AM
Hi,
once go through this link, i hope u get the max info.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dba66935c111d1829f0000e829fbfe/frameset.htm
‎2008 Jun 09 11:34 AM
Begin of line:
will put the selection screen fields in one line.
Begin of block will put the selection-screen fields under one block with a frame.
comment : u can write the text u want in the selection screen.
regards,
madhu
‎2008 Jun 09 11:39 AM
Hi,
SELECTION_SREEN : BEGIN OF LINE???? ==> if you want to declare more than object of screen in one line ( e.g : 4 Pushbutton )
BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
selection-screen : BEGIN OF LINE,
PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
END OF LINE,
BEGIN OF LINE,
PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
END OF LINE,
END OF SCREEN 500.
BEGIN OF BLOCK??? ==> If you want to create a frame with a title
selection-screen begin of block b1 with frame title 'text-001'.
parameters: p_fic_pc like rlgrap-filename default 'C:\' obligatory.
selection-screen end of block b1.
BEGIN OF COMMENT ??? ==> If you want to insert a comment before or after a declaration of checkbox (for e.g)
selection-screen comment (27) 'text-002'.
Rewards ponts if helpful.
Mustapha
‎2008 Jun 09 11:41 AM
hi,
begin of block is used when you want to have all elemnets in one block like parameters or select options..and by using block you can perform like make all the elements visible or not ..like if you want to make visible all the elements then by using that block you can do it.
begin of comments..is used when you want to write some texts with your parameters or select options..like notes or some warnings.
thx,
twinkal.
‎2008 Jun 09 11:45 AM
and begin of line will put all the elements like parameters selectoption or commnets in one line..
you can refer http://www.sapdevelopment.co.uk/reporting/selscr/selscr_sameline.htm link..here example is given so that you can understand behaviour of it.
thx,
twinkal.
‎2008 Sep 30 1:44 PM