2006 Oct 25 9:54 AM
hello all!
I need to open a new session on a button click. How shoudl I do it?
Puru
2006 Oct 25 10:05 AM
On standard tool bar, you can see one star symbol button. Using that you can get new session.
Regards,
Chandra
hello all!
I need to open a new session on a button click. How shoudl I do it?
Puru
2006 Oct 25 9:57 AM
on the standard tool bar u have the option for it, Create New Session.
Regards
- Gopi
2006 Oct 25 9:59 AM
2006 Oct 25 10:01 AM
On standard tool bar, you can see one star symbol button. Using that you can get new session.
Regards,
Chandra
2006 Oct 25 10:04 AM
Hi Puru,
Onn Button Click do a
<b> CALL TRANSACTION 'S000'.</b>
Hope this helps.
Mark points if it helps
Cheers
VJ
2006 Oct 25 10:05 AM
On standard tool bar, you can see one star symbol button. Using that you can get new session.
Regards,
Chandra
2006 Oct 25 10:12 AM
Please try with this code:
<b>CALL FUNCTION 'HLP_MODE_CREATE'
EXPORTING
TCODE = 'S000'
* USE_BATCH_INPUT = 'X'
.</b>Kind Regards
Eswar
2006 Oct 25 10:15 AM
Hi,
Its not possible to open new session on a button click. Only way we can create new session is by calling an RFC in NEW TASK or by /o on the command field.
But if you use LEAVE TO TRANSACTION or SUBMIT PROGRAM then the current session is terminated and a new session is started.
Try calling HLP_MODE_CREATE function module with /o as the tcode.
Regards,
Sesh
Message was edited by: Seshatalpasai Madala
2007 Jan 23 11:10 AM
Hi,
if you still need a solution...
Use the fm ABAP4_CALL_TRANSACTION. Example:
DATA: l_sessname TYPE string,
ls_spagpa TYPE rfc_spagpa,
lt_spagpa TYPE TABLE OF rfc_spagpa.
MOVE: 'BUK' TO ls_spagpa-parid,
'0010' TO ls_spagpa-parval.
APPEND ls_spagpa TO lt_spagpa.
l_sessname = 'BLA'.
CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
STARTING NEW TASK l_sessname
DESTINATION 'NONE'
EXPORTING
tcode = 'BLA1'
skip_screen = 'X'
TABLES
spagpa_tab = lt_spagpa
EXCEPTIONS
OTHERS = 1.
As you see, you can use spagpa_tab to transfer SetGet Parameter. A transfer via BDC is possible as well. Check out the fm description...
Andy
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |