Application Development and Automation 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: 
Read only

report

Former Member
0 Likes
777

I have completed a report but the problem is that in my report I have no select-options or parameters. What do I have to do to have a screen before executing the report, where to write some text? (Now, when executing the program it shows up the final list).

I tried this:

selection-screen begin of block raport with frame title text-111.

selection-screen begin of line .

selection-screen comment (20) text-222 .

selection-screen end of line .

selection-screen end of block raport .

But it's not working.

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
742

Looks like you need to have at least one PARAMETERS or SELECT-OPTIONS statement in order for the selection-screen to be thrown. Here is a work around. Put a display only field at the end of your text line.



selection-screen begin of block raport with frame title text-111.
selection-screen begin of line .
selection-screen comment (20) text-222 .
selection-screen position 79.
parameters: p_check.
selection-screen end of line .
selection-screen end of block raport .

at selection-screen output.

  loop at screen.
    screen-input = '0'.
    modify screen.
  endloop.

Regards,

Rich Heilman

Read only

andreas_mann3
Active Contributor
0 Likes
742

Hi,

so set an dummy-parameter (without function)

'test' at your sel-screen.

Andreas

Read only

Former Member
0 Likes
742

Hi, have you used LSMW? when launch LSMW, you can see a modal screen popup with the introduction content before entering LSMW. (using tcode LSMW)

If you can that effect, you can develop a smiliar effect in your application.

CALL SCREEN <scrn>

STARTING AT <X1> <Y1>

ENDING AT <X2> <Y2>.

<scrn> is a modal screen, and X Y is the axis position for show screen.

You can add it in the Initialize event. With no parameter or select-screen.

Hope it will be helpful

Thanks

Message was edited by: zhenglin gu

Read only

former_member700946
Discoverer
0 Likes
742

Hi,

If you don't have any parameters or selction options or radio buttons... etc.

One way could be, give an information message as a first statement in your start of selection. In that message you can write whatever the text you want to display.

I hope this work out.

All the best.

Bye..

Santala.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
742

Hi,

If you want text area in selection screen,refer this standard SAP program.

SAPTEXTEDIT_TEST_EVENTS

Read only

Former Member
0 Likes
742

Hi George,

Wouldnt it be a good idea to create a screen containing the required static text which you may call at the start of the START-OF-SELECTION event followed by the program logic for your report.

Cheers,

Venkat

Read only

Former Member
0 Likes
742

Hi,

If you dont require a selection screen, why do you want it?

still if you wabt it.. you can add some parameters

and then make them invisible in the event

AT SELECTION-SCREEN OUTPUT.

Regards,

Shashank

Read only

vinod_gunaware2
Active Contributor
0 Likes
742

Hi

Use <b>Initialization</b> event.

Hope it will useful.

Regards

vinod