‎2004 Nov 22 8:55 AM
I want to have 2 parameters on the selection screen on the
same line,therefore i use code as follows
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS P_BASTO LIKE SY-DATUM.
PARAMETERS P_BASFRO LIKE SY-DATUM.
SELECTION-SCREEN END OF LINE.
but when i add parameter text,they are not visible,but when the parameters are on 2 different lines they are visible
‎2004 Nov 22 8:57 AM
Hi,
Try to give ur comment using the offset in the selection screen.
Prabhu Rajesh.
‎2004 Nov 22 9:10 AM
Hi Kaushik,
Use the COMMENT statement for your selection text:
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(29) text-s01.
PARAMETERS:
pa_kdatb TYPE kdatb OBLIGATORY.
SELECTION-SCREEN COMMENT 50(5) text-s02.
PARAMETERS:
pa_kdate TYPE kdate OBLIGATORY.
SELECTION-SCREEN END OF LINE.
Regards,
John.
‎2004 Nov 22 10:31 AM
Hello Kaushik,
Here's an excerpt from the SAP Online Documentation :
We can 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.
<b>Example</b>
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.
-
that is to say, the moment you place something within this ABAP statement block, it is entirely your responsibility to do all the formatting.
Hope this information helps you understand the usage of the above statement.
Regards,
Anand Mandalika.