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: 

Problem about screens (sy-dynnr) and programm name (sy-repid).

Former Member
0 Kudos

Hi guys!!

My problem is about screens (sy-dynnr) and programm name (sy-repid).

I have a transactional programm called ZMY_PROGRAM.

Here I have a dynpro sy-dynnr = 0100 and sy-repid = ZMY_PROGRAM.

In my dynpro I have a button which it calls to another transaccion 'VX13N' [+CALL TRANSACTION 'VX13N' and skip first screen+.] (sy-repid = SAPMV86E and sy-dynnr = '0601') but inside the program SAPMV86E I call a subscreen (sy-repid = SAPXAKK and

sy-dynnr = '0200') so I stay in sy-repid = SAPXAKK and sy-dynnr = '0200'.

When I stay inside VX13N and push button 'BACK' I go to sy-dynnr = '0599' and sy-repid = SAPMV86E . Now I can see the inicial screen of VX13N (where I can put the 'AKKP-LCNUM'), so I push button 'BACK' .

and leave the programm . (I'm in SESSION_MANAGER).

How can I come back to ZMY_PROGRAM instead of leave programm? I think that my code loss the reference, because I have another button that goes from ZMY_PROGRAM to SAPLSRMCLFRM2 (only 1 step) and when I push 'BACK' come back well to ZMY_PROGRAM.

Sorry, but it's difficult to explain.

Thanks in advance.

Ana

10 REPLIES 10

Former Member
0 Kudos

Hi,

I hope if you use "AND RETURN" after your Call transaction

like Call transaction XXXXX and return.

0 Kudos

Hi Sai Kumar B ,

Sorry but it doesn't exist. (CALL TRANSACTION XXXX AND RETURN)

Thanks .

Edited by: Ana Marí on May 19, 2009 4:18 PM

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Try this:

SET screen 100.

Leave to screen.

0 Kudos

Hi Sandeep Kumar ,

SET screen 100.

Leave screen.

It doesn't work because the dynpro 100 only exits in ZMY_PROGRAM and

the back selection is in SAPMV86E.

Thanks.

Ana

0 Kudos

Hi Sandeep Kumar ,

SET screen 100.

Leave screen.

It doesn't work because the dynpro 100 only exits in ZMY_PROGRAM and

the back selection is in SAPMV86E.

Thanks.

Ana

0 Kudos

Hi Sandeep Kumar ,

SET screen 100.

Leave screen.

It doesn't work because the dynpro 100 only exits in ZMY_PROGRAM and

the back selection is in SAPMV86E.

Thanks.

Ana

Former Member
0 Kudos

leave to screen 0.

Former Member
0 Kudos

Hi Sandeep Kumar ,

SET screen 100.

Leave screen.

It doesn't work because the dynpro 100 only exits in ZMY_PROGRAM and

the back selection is in SAPMV86E.

Thanks.

Ana

Former Member
0 Kudos

Solved problem by myself

0 Kudos

Hi,

I would like to know how did you solve this problem, because, now I have the same problem with this transaction (VX13N).

Thanks!