‎2007 Jan 17 5:40 PM
Hi ,
Can anybody tell me how to generate a new session by Coding.
Its my requiement
‎2007 Jan 17 5:53 PM
‎2007 Jan 17 5:47 PM
You mean BDC Session?
If yes call FM BDC_OPEN_GROUP
If not,
call transaction 'SESSION_MANAGER'
Eswar Kanakanti
‎2007 Jan 17 5:47 PM
https://forums.sdn.sap.com/click.jspa?searchID=783965&messageID=1847407
u can use FM HLP_MODE_CREATE
if u are talking about a BDC session then u can use
bdc_open_group
bdc_insert
bdc_close_group
award points if found helpful
‎2007 Jan 17 5:48 PM
Hi,
check out this function module:
'SAPGUI_SET_FUNCTIONCODE'.
Ashven
‎2007 Jan 17 5:53 PM
‎2007 Jan 17 6:12 PM
Hi Guys,
Thanks for the prompt reply,
I mean that I have requirement that when the user Clicks on the button then a new Session opens up and inside that session TCode: IW52 executes.
not BDC like things.
I want to open one new session of the Transaction Code: IW52
‎2007 Jan 17 6:15 PM
‎2007 Jan 17 6:16 PM
Thanks Rich,
I can create a new session, But how could i execute a new transaction(TCode: IW52) on the new session.
‎2007 Jan 17 6:16 PM
‎2007 Jan 17 6:19 PM
and now afterwards i want to skip the first screen of this transaction. Then how would i do
‎2007 Jan 17 6:29 PM
You are really making me earn it today, huh? In order to do that, we have to use another function module and say STARTING NEW TASK.
report zrich_0001 .
data: ipid type table of RFC_SPAGPA.
data: xpid type RFC_SPAGPA.
xpid-PARID = 'IQM'.
xpid-parval = '00010004'. "<- Whatever value you want
append xpid to ipid.
call function 'ABAP4_CALL_TRANSACTION'
starting new task 'TestTask'
exporting
tcode = 'IW52'
SKIP_SCREEN = 'X'
* MODE_VAL = 'A'
* UPDATE_VAL = 'A'
* IMPORTING
* SUBRC =
TABLES
* USING_TAB =
SPAGPA_TAB = ipid
* MESS_TAB =
* EXCEPTIONS
* CALL_TRANSACTION_DENIED = 1
* TCODE_INVALID = 2
* OTHERS = 3
.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Rich Heilman
‎2007 Jan 17 6:43 PM
Thanks alot <b>Rich</b>,
Thats your speciality to solve any problem of any extent. Full Credit to you
Thanks alot