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 comment..getting error...!

naveen_inuganti2
Active Contributor
0 Kudos

Hi..,

My code:

SELECTION-SCREEN COMMENT 80(2) text-027

Error Which I am getting with above syntax:

The specified offset "80" is too large (maximum:79)

Q: How to slove this? and here I need that text 27 is in greater than 80th position only.

Thanks,

Naveen.I

1 ACCEPTED SOLUTION

Former Member

I realize I'm 7 1/2 years too late to help Naveen, but for those who later do a search on this issue, I found a work-around that's satisfying my purposes, allows me to position the text where I want it, and allows me to keep the BLOCK definitions as well.

My COMMENT line is defined as follows:

SELECTION-SCREEN COMMENT 79(39) text-025.


I've set the offset at the maximum allowed for me to keep my BLOCK statements (79).  The text I'm displaying in text-025 is 12 characters, but the Text Symbols dialog allows one to put leading spaces in front of the text; so in the Text box of the Text Symbols dialog I put 27 leading spaces, then my 12 characters of text, for a length of 39.

20 REPLIES 20

Former Member
0 Kudos

hi,

give the selection screen parameter

Former Member
0 Kudos

Hi,

The maximum length to display text on the selection screen is 80 chars.

0 Kudos

Parameter is one check box , here i am trying to display the text for that.

And,

So we can'nt able to adjust the screen offset here?

--Naveen Inuganti.

0 Kudos

hi,

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(33) text-s04.            " Specify source of input file
PARAMETERS: p_floc TYPE pp0c-test AS CHECKBOX DEFAULT c_x.    
SELECTION-SCREEN COMMENT 38(15) text-s05.           " SAP file server
SELECTION-SCREEN END OF LINE.

0 Kudos

Hi,

Also let me know how to draw a horizontal line in the selection screen block?

Thanks,

Naveen.Inuganti

0 Kudos

SELECTION-SCREEN ULINE.

0 Kudos

Hi Avi,

selectionscreen comment 38(15) text025

not 38!

I need it in 80th position, Is it posible?

---Naveen Inuganti.

0 Kudos

I think it is possible only upto 79.


SELECTION-SCREEN COMMENT 79(2) text-027

0 Kudos

No it is not possible to display the text after the 79th coloumn. Either print before 79th coloumn or in the next line.

0 Kudos

Hi

It is possible.

The following code worked for me.

REPORT  YTEST_JAN29                             .

CALL SELECTION-SCREEN 100.
        "Calling screen 100

SELECTION-SCREEN BEGIN OF SCREEN 100 TITLE TEXT-001.

   SELECTION-SCREEN COMMENT 80(10) T006.

SELECTION-SCREEN END OF SCREEN 100.


INITIALIZATION.

  T006 = 'Bookin'.

But you cant specify 80 when you use a comment stmt inside the Block.

SELECTION-SCREEN Begin Of BLOCK blk1 WITH FRAME TITLE T002.

SELECTION-SCREEN COMMENT 80(10) T007.

SELECTION-SCREEN End Of BLOCK blk1.

Hope this helps

Regards,

Jayanthi.K

0 Kudos

>

> Hi Avi,

>

> selectionscreen comment 38(15) text025

>

> not 38!

> I need it in 80th position, Is it posible?

>

> ---Naveen Inuganti.

Hi, Naveen.

Test the following code it is working with 80th Position

Here you can use MAX of 83rd Position

SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS afix_am TYPE c AS CHECKBOX.
SELECTION-SCREEN: COMMENT 80(31) text-002.
SELECTION-SCREEN END OF LINE.

Hope will Solve out your problem,

Kind Regards,

Faisal

Edited by: Faisal Altaf on Jan 29, 2009 11:57 AM

0 Kudos

>

> The maximum length to display text on the selection screen is 80 chars.

No, You can exceed this limit.I'm able to display the screen text upto 83.

>

> I think it is possible only upto 79.

Which version you are in?

>

> So we can'nt able to adjust the screen offset here?

No, you can set offset upto 83 position.

Just run this below code:

REPORT test.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 83(2) text-005."I have 'To' in text-005 and make sure length is 2
PARAMETERS: p_li AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.

>

> if you use comment statement with in the frame then you can't exceed 79.

> if you use comment statement with in line then you can't exceed 83.

That's true.

0 Kudos

Hi.,

Thank you Friends,

So to get the required text in more than 79th position , I have REMOVE the BLOCK of the (i.e. FRAME)

my selection screen!

Sorry to say I am unhappy to remove that Block , after you people's Great research and Help...

--Naveen Inuganti.

0 Kudos

Glad to help!

Former Member
0 Kudos

Hi

You can specify the width of your selection screen.

Add the LINE-SIZE option to your REPORT.

Hope this helps

Regards,

Jayanthi.K

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

LINE-SIZE is for classical lists!

Former Member
0 Kudos

Hi,

check this...

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: c1 as checkbox.
SELECTION-SCREEN COMMENT 79(2) text-027.
SELECTION-SCREEN END OF BLOCK b1.

if you use comment statement with in the frame then you can't exceed 79.

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: c1 as checkbox.
SELECTION-SCREEN COMMENT 83(2) text-027.
SELECTION-SCREEN END OF LINE.

if you use comment statement with in line then you can't exceed 83.

for horizontal line

with in frame

SELECTION-SCREEN ULINE /79(2).

with in line

SELECTION-SCREEN ULINE /83(2).

naveen_inuganti2
Active Contributor
0 Kudos

I splitted the perticuler text,

and displyed in two lines...as its not possible with in the frame.

---Naveen Inuganti

0 Kudos

>

> I splitted the perticuler text,

> and displyed in two lines...as its not possible with in the frame.

>

>

> ---Naveen Inuganti

Hi, Naveen you can Splite the Lable on two line using Frame too, Please test the following Sample Code.

SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE ftext.
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS p1 TYPE c AS CHECKBOX USER-COMMAND aaa.
SELECTION-SCREEN: COMMENT 10(31) text1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS p2 TYPE c AS CHECKBOX USER-COMMAND aaa.
SELECTION-SCREEN: COMMENT 10(31) text2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK a.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name = 'P2'.
      screen-active = '0'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

INITIALIZATION.
  ftext = 'Frame'.
  text1 = 'Line 1 Lable'.
  text2 = 'Line 2 Lable'.

Kind Regards,

Faisal

Former Member

I realize I'm 7 1/2 years too late to help Naveen, but for those who later do a search on this issue, I found a work-around that's satisfying my purposes, allows me to position the text where I want it, and allows me to keep the BLOCK definitions as well.

My COMMENT line is defined as follows:

SELECTION-SCREEN COMMENT 79(39) text-025.


I've set the offset at the maximum allowed for me to keep my BLOCK statements (79).  The text I'm displaying in text-025 is 12 characters, but the Text Symbols dialog allows one to put leading spaces in front of the text; so in the Text box of the Text Symbols dialog I put 27 leading spaces, then my 12 characters of text, for a length of 39.