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 to short

marcin_cholewczuk
Active Contributor
0 Kudos

Hi all,

When I try to activate report I'm getting error that it's imposible to create screen.

It looks like this

SELECTION-SCREEN BEGIN OF BLOCK

PARAMETER pa_flo_9 TYPE data_type.

SELECTION-SCREEN PUSHBUTTON 70(10) flo_9 USER-COMMAND FLO_9.

SELECTION-SCREEN END OF BLOCK

If I try to put button more on right then I'm getting error "The specific offset is too large (maximum 75)"

Problem is that there is not enough place in line. I've tried using

SELECTION-SCREEN: BEGIN OF LINE

.......

SELECTION-SCREEN: END OF LINE

I'm not getting this error but my comments are below other components and I can't see them at all. Does anybody know how to increase width of line?

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

Hi..

Try this way...

SELECTION-SCREEN BEGIN OF BLOCK

PARAMETER pa_flo_9 TYPE data_type.

SELECTION-SCREEN PUSHBUTTON 50(10) Text-B01 USER-COMMAND FLO_9.

SELECTION-SCREEN END OF BLOCK

Here Text-B01 is the Text element you have to create for giving the Label.

<b>reward if Helpful.</b>

8 REPLIES 8

Former Member
0 Kudos

SELECTION-SCREEN PUSHBUTTON <b>70</b>(10) flo_9 USER-COMMAND FLO_9.

THE 70 IS THE PROBLEM.. REDUCE IT AND TRY AGAIN ...

Former Member
0 Kudos

Hi Marcin,

Specify BLOCK name with FRAME option.

Check the code in BOLD.

SELECTION-SCREEN BEGIN OF BLOCK <b>B1 WITH FRAME TITLE TEXT-001</b>.

PARAMETER pa_flo_9 TYPE data_type.

SELECTION-SCREEN PUSHBUTTON 70(10) flo_9 USER-COMMAND FLO_9.

SELECTION-SCREEN END OF BLOCK <b>B1</b>.

Thanks,

Vinay

varma_narayana
Active Contributor
0 Kudos

Hi..

Try this way...

SELECTION-SCREEN BEGIN OF BLOCK

PARAMETER pa_flo_9 TYPE data_type.

SELECTION-SCREEN PUSHBUTTON 50(10) Text-B01 USER-COMMAND FLO_9.

SELECTION-SCREEN END OF BLOCK

Here Text-B01 is the Text element you have to create for giving the Label.

<b>reward if Helpful.</b>

0 Kudos

I think that you don't understand my question. I know that 70 before pushbutton is problem but I want to make 70 work ok. For that I need to widen line on selection screen and I don't know how. Adding frames won't solve the problem

0 Kudos

I think you've run into a hard limit of the system, as the report selection screen is generated you're bound by the framework SAP provides. In the release I'm working on the limit imposed by the syntax check is 83.

You may need to build your own screen and attach this to your program.

Regards,

Nick

Former Member
0 Kudos

hi,

Try this way.

SELECTION-SCREEN BEGIN OF BLOCK <b>blk1 WITH FRAME TITLE text-001.</b>

PARAMETER pa_flo_9 TYPE data_type.

SELECTION-SCREEN PUSHBUTTON 70(10) flo_9 USER-COMMAND flo_9.

SELECTION-SCREEN END OF BLOCK <b>blk1.</b>

reward if useful.

Former Member
0 Kudos

Hi,

I had no problem with the report below.

John

REPORT YJNM_SELSCR_PLAY3.

SELECTION-SCREEN BEGIN OF BLOCK b.

PARAMETER pa_flo_9 TYPE data_type.

SELECTION-SCREEN PUSHBUTTON 76(10) flo_9 USER-COMMAND FLO_9.

SELECTION-SCREEN END OF BLOCK b.

initialization.

flo_9 = '0123456789'.

Former Member
0 Kudos

Go to Utility->setting-> abap editor -> Editor

and check the Downward-Comp Line Length(72)