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 a screen in another program

Former Member
0 Likes
12,417

Hi

I have a program PRG1 that has screen 1000.

I want to load this screen from the program PRG2.

thanks

Murugesh

1 ACCEPTED SOLUTION
Read only

Former Member
5,110

Hi Murugesh,

You have to create a transaction for the program you want to call using transaction SE93. The starting screen should be mentioned as 1000. You can call this transaction from your program using CALL TRANSACTION statement.

With Regards,

Nelson

10 REPLIES 10
Read only

Former Member
5,111

Hi Murugesh,

You have to create a transaction for the program you want to call using transaction SE93. The starting screen should be mentioned as 1000. You can call this transaction from your program using CALL TRANSACTION statement.

With Regards,

Nelson

Read only

0 Likes
5,110

Thanks Nelson.

But,my constraint is that i don't want to create a transaction for this program

Read only

Former Member
0 Likes
5,110

Hi,

You can use Submit command.

In the program PRG2 use :

SUBMIT PRG1 via selection-screen and return.

Best regards,

Prashant

Read only

hymavathi_oruganti
Active Contributor
0 Likes
5,110

DATA: bdcdata_wa TYPE bdcdata,

bdcdata_tab TYPE TABLE OF bdcdata.

CLEAR bdcdata_wa.

bdcdata_wa-program = 'PRG1'.

bdcdata_wa-dynpro = '1000'.

bdcdata_wa-dynbegin = 'X'.

APPEND bdcdata_wa TO bdcdata_tab.

CALL TRANSACTION <TCODE> USING BDCDATA_TAB.

NOTE: TCODE IS THE TRANSACTION OF PRG1.

Read only

0 Likes
5,110

what is the problem in creating a transaction for u?

if u want to call a selection screen u can call by using

submit rep using selection-screen dynnr.

but if u want to call a screen, u have to go for option

call transaction as i told before or call screen ijn the same program.

Read only

Former Member
0 Likes
5,110

Hi,

Try this out,

SUBMIT <Rep_Name> USING SELECTION-SCREEN <Scr_#>

Regs,

Venkat Ramanan

Read only

0 Likes
5,110

Thanks for your response.

OK there is a mistake on my part, the PRG1 is a Module pool program.

Is it possible now??

thanks

Murugesh

Message was edited by: Murugesh Karunamurthy

Read only

0 Likes
5,110

yes , do now like below. it will surely work. it worked for me.

DATA: bdcdata_wa TYPE bdcdata,

bdcdata_tab TYPE TABLE OF bdcdata.

CLEAR bdcdata_wa.

bdcdata_wa-program = 'PRG1'.

bdcdata_wa-dynpro = '1000'.

bdcdata_wa-dynbegin = 'X'.

APPEND bdcdata_wa TO bdcdata_tab.

CALL TRANSACTION <TCODE> USING BDCDATA_TAB.

Read only

0 Likes
5,110

Thanks.

As I mentioned before,my constraint is that i don't want to create a transaction for this program (PRG1)

I don't want people getting this screen using this transaction..

Read only

0 Likes
5,110

then u cant do it because, calling a screen in another report which is not a selection screen means , the calling report and that screen will be in SAP memory but not in ABAP memory. so we cant do by SUBMIT. the only way is by CALL TRANSACTION