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: 

Basic ABAP queries

Former Member
0 Kudos
107

Hi all,

Can any one please provide me with answers for these quoestions :

How many selection screen can we have and how to control them?

If line count is not given will the End-of-Page event be triggered?

What are the different methods to set break point in program ? What is the maximum no of breakpoints can I have in a program?

I created a 2ndry index to ztable. how do I make sure that the query uses it ?

Regards,

Varun

1 ACCEPTED SOLUTION

Former Member
0 Kudos
74

we can have more than 1 selection screen and we can control the same using user command.

End of page will not trigger as line sare not reserved for end of page event.

You can hardcode break point using break userid or break-point statement apart from using breakpoint icon in menu bar. You can has as many break points as you want. I am not sure if there is any restrictions.

For index use in the select, make sure the where clause contains fields specified in the index in the same sequence else you can explicitly add syntax '% hint oracle index' to use 2ndary index.

3 REPLIES 3

Former Member
0 Kudos
75

we can have more than 1 selection screen and we can control the same using user command.

End of page will not trigger as line sare not reserved for end of page event.

You can hardcode break point using break userid or break-point statement apart from using breakpoint icon in menu bar. You can has as many break points as you want. I am not sure if there is any restrictions.

For index use in the select, make sure the where clause contains fields specified in the index in the same sequence else you can explicitly add syntax '% hint oracle index' to use 2ndary index.

0 Kudos
74

Hi Ashish,

I dont understand how we can have more than selection screeens ? Can you explain me with a simple example.

And one more thing, this is my observation :

This is how message type A and E behave in Initialization and start of selection?

Initialization :

W : Appears as Success Message.

E : Appears in a pop up box.

Stat-of-selection :

W and E both appears as error.

Can you please explain the strange behaviour of these A & W message types.

Regards,

Varun.

0 Kudos
74

Check these details -

SELECTION-SCREEN TAB (len) tabname USER-COMMAND ucomm.

Creates a tab page with the name tabname and length len, and

assigns the user command ucomm to it. You can only use this

variant between BEGIN OF TABBED BLOCK ... and END OF BLOCK

....

... DEFAULT PROGRAM prog SCREEN scr.

Use this addition to specify the subscreen that appears by

default when the tabstrip control is displayed. If you specify

SCREEN but not PROGRAM, the system uses the current program as

the default program. If you do not specify a screen, a runtime

error occurs.

You can fill the tab title with text and icons in the

INITIALIZATION or AT SELECTION-SCREEN OUTPUT event. The

assignment of tabs to screens is not static, but can be

changed at runtime. There is a structure with the fields prog,

dynnr, and activetab assigned to each tab block. You can

change the assignment between blocks and the screen and set an

active tab by assigning values to these fields.

SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 14 LINES.

SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1

DEFAULT SCREEN 12.

SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2

DEFAULT SCREEN 2000.

SELECTION-SCREEN END OF BLOCK tabb1.

INITIALIZATION.

tabs1 = TEXT-001.

tabs2 = TEXT-002.

AT SELECTION-SCREEN

CASE SSCRFIELDS-UCOMM.

WHEN 'UCOMM1'.

tabb1-program = 'SAPLSVAR'.

tabb1-dynnr = 100.

tabb1-activetab = 'TABS2'.

ENDCASE.

You can create your own screen and mention.