11-19-2007 1:59 PM
Hi all,
Some time ago i found a demo program in r/3 system that show how to send data across two gui session.
The program was able to open a new session and the send data to session and finally to close it.
Unfortunately now i can't be able to found it... Does anybody know how can this be done?
I need to write a report (list) and at line selection call a transaction in a previous opened mode.
Thanks in advance.
Emmanuele Prudenzano
11-19-2007 2:14 PM
Hi
Please check the following docs on GUI Scripting or GUIX scripting
<a href="http://www.synactive.com/download/sap%20gui%20scripting/sap%20gui%20scripting%20overview.pdf">http://www.synactive.com/download/sap%20gui%20scripting/sap%20gui%20scripting%20overview.pdf</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9d89c990-0201-0010-56b4-de10f26dc937">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9d89c990-0201-0010-56b4-de10f26dc937</a>
I am sorry that there is no specific information that i have.. hope this helps..
Regards,
Arun
Message was edited by:
Arun Nair
11-19-2007 2:46 PM
Hi, Thank for your answer, but I need to do it via abap coding.
Thanks
Emmanuele
11-19-2007 2:48 PM
Do you want to call another transaction from your line selection than you can do it like this:
AT LINE-SELECTION.
SET PARAMETER ID 'MTN' FIELD W_MATNR.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
Regards,
Naimesh Patel
11-19-2007 3:53 PM
Hi, Thanks,
My scenarios is the following:
1. In the FIRST SESSION there is a transaction with html control,
2. The user press a button and:
3) A new transaction start IN A NEW SESSION
(i can do this by calling function ABAP_CALL_TRANSACTION starting new task)
3. In the FIRST SESSION the user press the button and in the SECOND session i need to start the new transaction.
For now I fixed it closing the second mode and repopen, but is not a good solution. I'd like to keed second session open and send data across session.
thanks
Emmanuele
11-19-2007 4:14 PM
Ok.. for that you can use the EXPORT / IMPORT memory.
TYPES:
BEGIN OF tab_type,
col1 TYPE i,
col2 TYPE i,
END OF tab_type.
DATA:
wa_indx TYPE indx,
wa_itab TYPE tab_type,
cl TYPE mandt VALUE '100',
itab TYPE STANDARD TABLE OF tab_type.
WHILE sy-index < 10.
wa_itab-col1 = sy-index.
wa_itab-col2 = sy-index ** 2.
APPEND wa_itab TO itab.
ENDWHILE.
wa_indx-aedat = sy-datum.
wa_indx-usera = sy-uname.
wa_indx-pgmid = sy-repid.
EXPORT tab = itab
TO DATABASE indx(XY)
FROM wa_indx
CLIENT cl
ID 'TABLE'.
In other report which is open in the other session, you can import memory like:
IMPORT tab = itab
FROM DATABASE indx(xy)
TO wa_indx
CLIENT cl
ID 'TABLE'.
DELETE FROM database indx(XY) ID 'TABLE'. .
Regards,
Naimesh Patel
11-19-2007 5:26 PM
this is a good idea, but how can i start the new transaction in a previus opened mode?
thanks
11-19-2007 5:33 PM