Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

parameter text not visible

Former Member
0 Likes
1,774

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,102

Hi,

Try to give ur comment using the offset in the selection screen.

Prabhu Rajesh.

Read only

Former Member
0 Likes
1,102

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.

Read only

Former Member
0 Likes
1,102

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.