‎2006 Feb 02 6:43 AM
Hi
I have a program PRG1 that has screen 1000.
I want to load this screen from the program PRG2.
thanks
Murugesh
‎2006 Feb 02 6:49 AM
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
‎2006 Feb 02 6:49 AM
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
‎2006 Feb 02 6:52 AM
Thanks Nelson.
But,my constraint is that i don't want to create a transaction for this program
‎2006 Feb 02 6:54 AM
Hi,
You can use Submit command.
In the program PRG2 use :
SUBMIT PRG1 via selection-screen and return.
Best regards,
Prashant
‎2006 Feb 02 6:57 AM
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.
‎2006 Feb 02 7:08 AM
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.
‎2006 Feb 02 7:12 AM
Hi,
Try this out,
SUBMIT <Rep_Name> USING SELECTION-SCREEN <Scr_#>
Regs,
Venkat Ramanan
‎2006 Feb 02 8:21 AM
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
‎2006 Feb 02 8:29 AM
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.
‎2006 Feb 02 8:34 AM
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..
‎2006 Feb 02 8:39 AM
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