Application Development 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: 

How to maximise the length of the Parameter text on Selection screen

Former Member
0 Kudos

Hello,

I am putting the text in the selection screen for a Parameter.

Its text is long and it is not letting me to put the whole text in Text Symbol.

In the report

When I click on GOto--> Text Elements --> Selection Texts

I am sure there is a way we can maximise this...

ANy suggestions will be apprecaiated.

Regards,

Kittu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

you can add comment to selection screen fields.

Selection-screen : begin of line.

Selection-screen : COMMENT 4(20) g_text..

parameter : p_val(10) type c.

SELECTION-SCREEN: END OF LINE.

initialization.

g_text ='give your text'.

8 REPLIES 8

Former Member
0 Kudos

hi,

you can add comment to selection screen fields.

Selection-screen : begin of line.

Selection-screen : COMMENT 4(20) g_text..

parameter : p_val(10) type c.

SELECTION-SCREEN: END OF LINE.

initialization.

g_text ='give your text'.

0 Kudos

Hello Avinash,

Thank you for youe quick response.

What is the type of comment..((COMMENT) and what does it mean by 4(20) )

Can you please explain.

Regards,

Kittu

0 Kudos

you should be able to use the code just by copy -paste .

"Comment" is part of SAP command.

4(20) => It means start from position 4 and show text of length 20 characters .

Instead of displaying varaiable g_text /, you can use any text element

0 Kudos

Hi,

You can refer the standard SAP help by pressing F1 on keywords in SE38, that will provide you the entire syntax and usage.

COMMET Statment creates an output field on the current selection screen and enters the content of text in this field. In text, either the name of the text symbol of the program can be specified in the form text-###, where ### is the three-digit ID for the text symbol, or a user-defined name with a maximum of eight characters. If a user-defined name is entered, the runtime environment generates a global variable of the same name with type c and length 83. If the specified text symbol is not found, no text is entered in the output field.

thanks,

Muthu

0 Kudos

Hi,

What is the length of your text ? Is this an input field or just some text that you want to display?

May be you can split it into multiple lines if it's not an input field. But if its an input field, you cannot do much about it. The visible lenght will be standard.

regards,

Advait

0 Kudos

Hello,

Thank you for all your response!

Here is my code :

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.

PARAMETERS : BOTH RADIOBUTTON GROUP RG1,

EXICLASS RADIOBUTTON GROUP RG1.

SELECTION-SCREEN END OF BLOCK B2.

Here for Both, I need to add the selction text as 'BOTH Existing and Non-existing Classifications'

This is a parameter, can any body explain me how to do it with the Parameters.

Any suggestions will be appreciated.......

Regards,

Kittu

0 Kudos

Hi,

Use this,

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : BOTH RADIOBUTTON GROUP RG1.

SELECTION-SCREEN COMMENT 4(40) text-001.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : EXICLASS RADIOBUTTON GROUP RG1.

SELECTION-SCREEN COMMENT 4(40) text-001.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK B2.

In text symbols

text-001 - BOTH Existing

text-002 - Non-existing Classifications

Thanks,

Muthu

Former Member
0 Kudos

Hello,

Thank you for your quick response!

Suggestions were helpful...

Regards,

Kittu