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: 

short dump while using call selection-screen mdynnr

Former Member
0 Kudos

Hi ALL,

I need your help and information.

In programmes, We are using the statament " CALL SELECTION-SCREEN MDYNNR "

and passing the screens dynamically into variable mdynnr.

And the programme is going to dump after executing 50 times.

When we

can we use any other statement instead of CALL SELECTION-SCREEN MDYNNR.

Your information helps us lot.

Thanks in advance.

Srinivasa Reddy.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

what dump u r getting.. check whether it is calling invalid selection screen while you populate screen dynamically?

13 REPLIES 13

Former Member
0 Kudos

Hi,

what dump u r getting.. check whether it is calling invalid selection screen while you populate screen dynamically?

0 Kudos

Hi,

Thanks For your Quick Response.

I am Getting the error like "LIST_TOO_MANY_LPROS".

Thanks in Advance

Srinivasa Reddy.

Former Member
0 Kudos

Hi,

I believe you are calling the selection screens nested manner, this is limited to max 50.

0 Kudos

Yes, we are calling in the same manner and we are getting the short dump after exceeding the limit of 50.

Thanks in Advance

Srinivasa Reddy

Former Member
0 Kudos

Hi Tangirala,

Instead of using "CALL SCREEN" use "LEAVE TO SCREEN".

Hopes it will help you.

Ali

0 Kudos

Hi,

We are using the statement like CALL SELECTION-SCREEN MDYNNR

we are passing the variable mdynnr dynamically.

we can not pass a variable in the statement leave to screen or leave screen.

please advise.

Thanks in Advance.

Srinivasa Reddy.

former_member376453
Contributor
0 Kudos

Hi,

I suggest you to use a function module for this and add the screen in this function module. Then you can call the FM more that 50 times and it will work properly. hope fully this will help you.

Thanks,

0 Kudos

Hi,

Is there any other statement instead of FM and call selection-screen mdynnr.

Thanks inadvance.

Srinivasa Reddy.

0 Kudos

u want to call a selection screen or a normal screen?

0 Kudos

I want to call selection-screen

0 Kudos

Hi,

As you know Call Screen is the statement, but you will get the problem if you are going to call it in the same LUW repeatedly. So, FM is the only convenient way to do it. This is very easy. Just create a FM and replace you statement with this FM. Hopefully this will solve your problem.

Check this comment " When you call a new main program in order to use a screen sequence (for example, using CALL TRANSACTION), a new SAP LUW begins. This may be an undesired effect, especially when you are trying to modularize a transaction that updates the database.

An alternative to this is to use an external procedure, whose main program is linked to a screen sequence, and which contains the corresponding dialog modules. Procedures run in the same SAP LUW and internal session as their calling program."

Thanks,

0 Kudos

Hi Everybody,

please help me on this issue.

Thanks in advance

Srinivasa Reddy.

hymavathi_oruganti
Active Contributor
0 Kudos

hi, if u want to call selection screen, u have to use

call selection screen <scrno>.

if u want to call noraml screen

u have to use

call screen <scrno>.

which screen u r calling?