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

Step Loops in subscreen

Former Member
0 Likes
2,761

I'm trying to place a step loop in a subscreen and I'm not getting any vertical scroll bars. Any idea why?

I'm trying to place a step loop in a subscreen and I'm not getting any vertical scroll bars. Any idea why?

16 REPLIES 16
Read only

Former Member
0 Likes
2,635

Hi Carlos,

In the screen, after placing the field which you are going to display in the form of a step loop.

select all those field and the edit -> grouping -> steploop -> define.

then activate and then you will get the scroll bars.

Regards

Abhii

Read only

Former Member
0 Likes
2,635

Hi,

A step loop can extend more than one line on the screen. A vertical scroll bar is automatically created to show step loops on the screen.

You create step loop in the screen painter t.code SE51. First we define the screen elements that will be part of the step loop on the screen and they may extend to more than one line. Select all elements as one group.

Goto Edit menu and select Grouping->Step Loop->Define.

To define a step loop as variable or fixed goto Edit->Grouping->Step Loops->fix or Variable.

Regards,

Nihad

Read only

0 Likes
2,635

Hi, thanks for responding so quickly.

I already created the steploop, and it works fine, but the scroll bar didn't appear. I have worked with steploops before and never had this problem... the only difference this time is that I'm placing the steploop in a subscreen. Do you think that may be the problem?

Read only

0 Likes
2,635

Hi

But I don't remember a step loop can have a vertical scrol bar: are u sure about this?

Max

Read only

Former Member
0 Likes
2,635

yes, I'm sure. You get a scroll bar, not one like the one in the table control, but you get one in the main window.

Read only

0 Likes
2,635

As Max, it surprises me too. I think a step loop doesn't have a scroll bar, as I can see in DEMO_DYNPRO_STEP_LOOP program.

Do you know an example of step loop where there is a vertical scroll bar?

Maybe you are talking about table controls ?

Read only

0 Likes
2,635

here's an example of what i'm talking about_

[IMG]http://i45.tinypic.com/kebtpl.jpg[/IMG]

Read only

0 Likes
2,635

Hi

But that scroll bar is not for the steploop, but for the screen: if the size of the screen exceeds the size of the video, a vertical scroll bar will be active.

The size depends on the element placed on the screen: if you place a steploop, the steploop will be an element of the main screen, if u place a subscreen, the subscreen will be the element of the main screen.

So if you need to active a vertical scroll bar, the size of your subscreen should be as much big as to exceed the size of the video

Max

Read only

0 Likes
2,635

thanks Max, but not quite right. That is the way it works with steploops, when you have too many registries in your steploop, the systems activates a scrollbar so you can navigate through all of them. In the pbo you'll have something like this:

loop at itab cursor v_index.

perform 'XXX'.

endloop.

if you set v_index to 2, then the first item displayed in the steploop in the screen will be the second item on the table.

When i tried to implement a steploop in a subscreen, i could only see the first 3 or 4 items because i didn't have the scroll bar.

Read only

0 Likes
2,635

this is what i found on a steploop tutorial:

"A step loop can extend more than one line on the screen(see Table Control).A vertical scroll bar is automatically created to show step loops on the screen."

My problem basically is that when i created my steploop in a subscreen the vertial scroll bar never appeared.

Read only

0 Likes
2,635

Hi

Probably u're right, I'll try to create a steploop...

but I think the system can create a scroll bar in the mai screen, if you place the steploop in a subscreen, probably the system can't feel it as element of the main screen so it can't active the scroll bar.

I used the steploop many years ago, and I always implemented the buttons in order to scroll it

Max

Read only

0 Likes
2,635

I agree with Max, the vertical scroll bar belongs to the screen, and not to the step loop. It appears because the step loop is higher than screen height. I reproduced the same behavior.

The text you mentioned does not contradict our point of view.

Read only

0 Likes
2,635

Sandra:

If that were the case, when i scroll down, then the whole windows would scroll. In this case when i scroll down only the step loop is affected by the scroll. Besides this is a 'variable' steploop so its size depends on the size of the screen. If you have the time try creating a steploop and you'll see what i mean.

Read only

0 Likes
2,635

Carlos, I apologize, yesterday I had created a fixed size steploop. Today I created a variable steploop with LOOP AT itab CURSOR cursor, and could reproduce what you say.

Within a subscreen, I could reproduce what you say too, but I couldn't find a way to display the scrollbar.

It seems that steploop and subscreen cannot be used together: I created a narrow subscreen with data on the right of the subscreen, and the steploop was displayed OUTSIDE the subscreen and overwritten by the text on the right of the subscreen.

As steploops are obsolete, I suggest that you migrate to table control as soon as possible.

sandra

Read only

0 Likes
2,635

yeah... I only use steploops because they don't force me to display my table fields side by side like table controls. In steploops you can use more than one row for the same item of a table.

Anyway, thanks for taking the time to help me.

Read only

0 Likes
2,635

Dear Carlos Pacheco ,

Did u resolve this issue finally ? I am facing with same sought of problem. Is there any solution to make scroll bar appear in the Sub screen

Please let me know

Regards,

Praveen