09-28-2007 11:52 AM
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?
09-28-2007 12:01 PM
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>
09-28-2007 11:56 AM
SELECTION-SCREEN PUSHBUTTON <b>70</b>(10) flo_9 USER-COMMAND FLO_9.
THE 70 IS THE PROBLEM.. REDUCE IT AND TRY AGAIN ...
09-28-2007 11:57 AM
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
09-28-2007 12:01 PM
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>
09-28-2007 12:14 PM
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
09-28-2007 12:24 PM
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
09-28-2007 12:12 PM
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.
09-28-2007 12:29 PM
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'.
09-28-2007 12:29 PM
Go to Utility->setting-> abap editor -> Editor
and check the Downward-Comp Line Length(72)