‎2007 Apr 25 12:32 PM
Hi Experts,
I am stuck with a problem.
I have created two Z transactions using the same screen.
Now, I am using the Field MARA-MATNR on my screen as an input field in both the transactions. The MARA-MATNR has parameter ID 'MAT' associated with it by default.
Now,in my first transaction, I have created in my toolbar a button having function type as 'Exit command'.
When I click on that button I move on to the second Z transaction created by me.
The problem here is that the Parameter that must have been set for Material entered on the first screen, doesnt gets passed to my second transaction.
What might be the reason for it.
Helpful answers will be surely rewarded.
Regards,
Himanshu
‎2007 Apr 25 12:50 PM
When using LEAVE TO TRANSACTION, the current call sequence is exited completely. .
When calling the transaction, the ABAP program to which the transaction code is linked is loaded into a new internal session. All previous internal sessions are deleted from the stack. At the same time, the ABAP memory is deleted, which means that <b>EXPORT FROM MEMORY or IMPORT TO MEMORY do not transfer data when using LEAVE TO TRANSACTION.</b>
and also SET/GET PARAMETERS
So Use CALL TRANSACTION instead
‎2007 Apr 25 12:36 PM
Hi Himanshu,
Did you use SET in first and GET param in the second screen..
If so It should work properly..
Please tell exactly where r u getting a problem..
regards,
nazeer
‎2007 Apr 25 12:40 PM
Hi Nazeer,
I am using a single screen with two transactions associated with it.
Each transaction shows some of the fields on the screen.
MARA-MATNR is a common input field being used by both the transactions.
Now, if the Parameter gets set in the first transaction, it shud definitely be displayed in the second transaction.
Here I wud like to tell that I am using LEAVE TO TRANSACTION 'XYZ' to switch between the transactions.
Hope I am able to clarify my problem.
Regards,
Himanshu
‎2007 Apr 25 12:41 PM
Hi,
U have to set the parameter id in the program ,it has default id 'MAT' but write the code for it.
Set parameter id 'MAT' field l_matnr.
Regards,
Sonika
‎2007 Apr 25 12:42 PM
‎2007 Apr 25 1:12 PM
‎2007 Apr 25 12:45 PM
<b>have you attached the function type 'E' with pushbutton attached with 'exit command'??</b>
‎2007 Apr 25 12:50 PM
When using LEAVE TO TRANSACTION, the current call sequence is exited completely. .
When calling the transaction, the ABAP program to which the transaction code is linked is loaded into a new internal session. All previous internal sessions are deleted from the stack. At the same time, the ABAP memory is deleted, which means that <b>EXPORT FROM MEMORY or IMPORT TO MEMORY do not transfer data when using LEAVE TO TRANSACTION.</b>
and also SET/GET PARAMETERS
So Use CALL TRANSACTION instead
‎2007 Apr 26 7:50 AM
Hi All,
Thanks a lot for ur replies.
Actually it was a basic mistake that I made.
I forgot to check the SET parameter and GET parameter checkboxes on my screens.
By this means u need not write even a single SET/GET parameter statement in ur code.
A very basic and silly mistake. hehehe.
Anyways thanks a lot 4 ur time.
Regards,
Himanshu