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

Call transaction

Former Member
0 Likes
2,473

Hi experts,

I have a call transaction in my program with skip first screen. It calls the transaction, but when I want to navigate back with the pushbuttons it doesn't go back to my calling program. How can I solve that?

19 REPLIES 19
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,237

to navigate back what code have you written.

try SET SCREEN 0 or LEAVE TO SCREEN 100, i hope this will work.

Read only

Former Member
0 Likes
2,237

Check whether FCT code is defined for that push button which you have defined when you click on Back.

Cheers!!

VEnk@

Read only

former_member404244
Active Contributor
0 Likes
2,237

Hi,

This question was discussed earlier also in some posts...Please search in SCN you will get the information. I think this may not work. Please give a try in SCN , am sure you will get.

Regards,

Nagaraj

Read only

Former Member
0 Likes
2,237

You need to write ' Leave to screen 0 or Leave to screen100' to go back to last screen.

Regds,

Lalit

Read only

0 Likes
2,237

Thanks for the posts, but my problem is the transaction is not mine. It is a developped one.

I know that I should modify that program, but is there any other way to avoid it.

In the called transaction the navigation buttons handle like this:

when 'EXIT'.

set screen 0.

leave screen.

when 'CANC'.

set screen 0.

leave screen.

Read only

Former Member
0 Likes
2,237

Hello,

You are calling this transaction in a normal report or a module pool program?

Vikranth

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
2,237

Hi,

Just check submit <program_name>....and return is suitable for the requirement.

Read only

0 Likes
2,237

I cannot submit a transcation with type 'M'. It is a modul pool which I want to call.

Read only

0 Likes
2,237

Hi,

You need to make this coding in tcode YJJ4 (It seems it is a custom development not a standard report). You should find the program for this tcode and add the code mentioned above to PAI of that program not to the calling program.

Regards,

Read only

0 Likes
2,237

white..

tell us few things..

1 - from where you can calling this tcode

2 - what tcode are you calling

Read only

0 Likes
2,237

I have an ALV report when I click on a certain field on my ALV it calls a customer developped transaction (actually a modulpool). So when I try to get back from the modul pool to my alv it doesn't work. Instead of going back to my alv list it just go out of the Modul pool and I see only the SAP menu.

Read only

0 Likes
2,237

So you need to change that module pool program in BACK button they used leave program command. You need to put set screen statements in module program which is called via YJJ4 tcode. You have nothing to do with your program or call 'YJJ4' statement.

Read only

0 Likes
2,237

so...

open your custom code(module pool for the tcode )..

here for the BACK button what code you have written??

this must be having some leave commands which kills the flow.. check that..

Read only

Former Member
0 Likes
2,237

Hi Mr White... all depends from where you have called it..

basically call transaction come back to the point from where it is called...

so check from where you are calling,,

Read only

Former Member
0 Likes
2,237

Hi,

Try the following code,

order = '0000245087'.

set PARAMETER ID 'JK1' field order.

call transaction 'JK03' and skip first screen.

BREAK-POINT. u201C see when you hit back it from the above transaction code it stops at the break-point. Here you can write u201CSET SCREEN 0100.u201D Or go ahead with the Program processing.

SET SCREEN 0100.

Hope it helps you,

Regards,

Abhijit G. Borkar

Read only

0 Likes
2,237

I use this code:

SET PARAMETER ID 'YJR' FIELD wa_alv-numb.

CALL TRANSACTION 'YJJ4' AND SKIP FIRST SCREEN.

Read only

0 Likes
2,237

Hi,

if you have a module-pool and calling a transaction code from there then you can simply set the previous screen by using the code

SET SCREEN <screen no.>.

hope it helps you.

Regards,

Abhijit G. Borkar

Read only

Former Member
0 Likes
2,237

I have the solution, without modifying the other program. I just have to call the transaction in BDC mode.

CALL TRANSACTION p_tranz USING bdcdata MODE 'E'.

Before it I should fill the screen with values. When I finished the transaction, so I click on 'BACK' button it will go right back to may ALV

Thanks anyway for posting

Read only

0 Likes
2,237

I am very much in doubt if solution you mentioned will work(button is button and it will do whatever is coded nothing else). Please let us know the result.