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: 

selection screen text - Length

rbharathi123
Explorer
0 Kudos

Dear Expert's,

My requirement is to keep the lengthy text with more 100 character's per line between begin and end of block,

SAP text symbols allows us to keep only 79 characters using Selection-screen comment,

Is there any another way to keep text with more 80 character per line in selection screen.

Regards,

Bharathi

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

A few things are wrong in your question:

  1. "SAP text symbols" is a weird name because the official name "Text Symbols" are not related to selection screens at all.
  2. I guess you refer to 79 characters because of selection screen comment fields having up to 83 characters, further limited to 79 inside first-level Selection Screen Blocks (and 75 in the second level).

If you are using ABAP statements to display fields, no, you can't have fields of more than 83 characters.

The best you can do with simple ABAP statements is to combine two fields with visible length of 83 and 34 characters, and both with a 83 characters text length (hover shows a tooltip with full text):

REPORT.
PARAMETERS dummy.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (83) output_1.
SELECTION-SCREEN COMMENT (83) output_2.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
  output_1 = |{ sy-abcde } { sy-abcde } { sy-abcde } ABC|. "truncates C (83 characters)
  output_2 = |{ sy-abcde } { sy-abcde } { sy-abcde } ABC|. "truncates C (83 characters)
Of course, you may use workarounds: create a normal screen, possibly include it in the selection screen, or combine your selection screen with graphical elements from the Control Framework, etc.

2 REPLIES 2

Sandra_Rossi
Active Contributor

A few things are wrong in your question:

  1. "SAP text symbols" is a weird name because the official name "Text Symbols" are not related to selection screens at all.
  2. I guess you refer to 79 characters because of selection screen comment fields having up to 83 characters, further limited to 79 inside first-level Selection Screen Blocks (and 75 in the second level).

If you are using ABAP statements to display fields, no, you can't have fields of more than 83 characters.

The best you can do with simple ABAP statements is to combine two fields with visible length of 83 and 34 characters, and both with a 83 characters text length (hover shows a tooltip with full text):

REPORT.
PARAMETERS dummy.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (83) output_1.
SELECTION-SCREEN COMMENT (83) output_2.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
  output_1 = |{ sy-abcde } { sy-abcde } { sy-abcde } ABC|. "truncates C (83 characters)
  output_2 = |{ sy-abcde } { sy-abcde } { sy-abcde } ABC|. "truncates C (83 characters)
Of course, you may use workarounds: create a normal screen, possibly include it in the selection screen, or combine your selection screen with graphical elements from the Control Framework, etc.

0 Kudos

Dear Sandra Rossi,

Thanks For Your Answer.

Regards,

Bharathi