‎2009 Feb 06 8:20 AM
Hi,
I have created a module pool program with single screen.
how can i call selection screen of some other program in this screen.
Thanx in advance
Vivek Gaur
‎2009 Feb 06 8:26 AM
Hi Vivek
Try this in the PAI of your screen
SUBMIT <pgmname> VIA SELECTION-SCREEN.Pushpraj
‎2009 Feb 06 8:27 AM
Hi,
You can first create a transaction code for the other program with the selection-screen and then call the transaction from the module pool program in the PAI using the PF-status(for e.g execute) and using the statement CALL-TRANSACTION 'XXXX'.But you must define a PF-Status for the screen because the program must get alteast one user-command to execute PAI.
Hope it helps,
Thanks,
Sandeep.
‎2009 Feb 06 8:33 AM
I think i wasnt able 2 make my question clear.
actually i have a docking container on left hand side with some report names. What i want is wenever i select any report that report selection screen should appear at right hand side. How 2 achieve this.
Thanx
‎2009 Feb 06 8:39 AM
‎2009 Feb 06 8:51 AM
actually selection screen is not a subscreen so we cannot call it here
‎2009 Feb 06 8:59 AM
‎2009 Feb 06 8:29 AM
‎2009 Feb 06 8:31 AM
Hi
The following module is in PAI. It goes to selection screen when I press a button.
MODULE USER_COMMAND_4000 INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE PROGRAM.
WHEN 'GO'.
IF RAD1 = 'X'.
CALL SCREEN 4001.
ELSE.
SUBMIT YSCM_REPORT AND RETURN. "am calling a report having selection screen
ENDIF.
ENDCASE.
ENDMODULE.
The AND RETURN addition allows me to return to screen after I am done with the selection screen.
Hope this helps
Regards,
Jayanthi.K
‎2009 Feb 06 8:33 AM
Hi,
You can use SUBMIT REPORT keyword for this, check this link:-
http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
Check this documentation for various SUBMIT REPORT options, its really helpful
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir
‎2009 Feb 06 8:36 AM
Hi,
You can call a selection-screen of another program by -- SUBMIT <prog_name> VIA SELECTION-SCREEN . But in that case that selection-screen would not be coming in your defined screen .
Regards
Pinaki
‎2009 Feb 06 8:40 AM
Hi,
In PAI you can use SUBMIT <Program> AND RETURN.
Regards,
Joan
‎2009 Feb 06 9:07 AM
Hi,
EX:
CALL TRANSACTION 'SE16'.
Regards
Kiran
Edited by: Kiran Saka on Feb 6, 2009 10:07 AM
‎2009 Feb 06 9:15 AM
Hello Vivek,
1. 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.
2.
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.This will surely work.
Courtesy: Zahackson
‎2009 Feb 07 10:00 AM
hi,
to call selection screen of called program
select-options: s_opt1,s_opt2.
SUBMIT <prog_name>VIA SELECTION-SCREEN
WITH <s_opt1> IN seltab1
WITH <s_opt2> IN seltab2
AND RETURN.
Hope this helps...
Regards,
Mdi.Deeba