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

Calling a stand T-code in report

Former Member
0 Likes
919

hi all ,

through my report i am calling a standard t-code

when i go to the 2nd screen of the stand t-code and come back to first screen of stand t-code and now when i press back

i shld come 2 my report screen again but i am getting out of the program??

any solution?

9 REPLIES 9
Read only

Former Member
0 Likes
887

hi,

try this at where you declear pf status write the code


when back
leave program

pankaj

Read only

0 Likes
887

Hi,

try this.

when Back.

leave to screen 0.

reward if useful.

Read only

Former Member
0 Likes
887

If you are calling the Transaction for display purpose then 'skip first screen' and try.

Sudheer. A

Read only

Former Member
0 Likes
887

use Call transaction to call the std. transaction instead of leave to transaction in your report program

Read only

0 Likes
887

hi

please use below code

set PARAMETER ID 'XYZ' field v_value.

call transaction 'TCODE' and skip first screen.

I hope this will work.

regards,Pranav

Read only

Former Member
0 Likes
887

Hi,

call transaction 'MM01' AND SKIP FIRST SCREEN.

WHEN 'BACK'.

SET SCREEN 0.

Regards,

V.Balaji

Reward if Usefull...

Read only

Former Member
0 Likes
887

Hi,

Let me provide you an easy solution of coding it.

Since you are navigating standard transaction, you may not be able to write separate code for 'BACK' function code.

Step1) Get the standard program name of your standard transaction code by executing the transaction and going to System --> Status

Step2) In your program write the following code to call:

SUBMIT <standard program name obtained above>

[VIA selection screen]

AND RETURN.

Regards, Tapas

<Pls reward pts if very useful or answered>

Read only

Former Member
0 Likes
887

If it is a module pool prog then in set pf-status of pbo module write

when 'Back'.

Leave program.

else if it is normal interactive report, in

set pf-status go to function keys and write BACK in the

back icon of standard tool bar.

check whether u r calling the transation in the follwing way.

eg for va03 tcode.

At user-command.

WHEN 'SDOC'.

SET PARAMETER ID 'AUN' FIELD WA_VBAK-VBELN.

CALL TRANSACTION 'VA03'. " AND SKIP FIRST SCREEN.

Read only

0 Likes
887

hi,

DATA: carrier TYPE spfli-carrid,

connection TYPE spfli-connid.

START-OF-SELECTION.

SELECT carrid connid

FROM spfli

INTO (carrier, connection).

WRITE: / carrier HOTSPOT, connection HOTSPOT.

HIDE: carrier, connection.

ENDSELECT.

AT LINE-SELECTION.

SET PARAMETER ID: 'CAR' FIELD carrier,

'CON' FIELD connection.

CALL TRANSACTION 'DEMO_TRANSACTION'.

regards,

Sindhu