‎2005 Dec 07 5:58 AM
Hi All,
Iam designing Layout for ME41(Create Quotation) and ME42 (Change Quotation) in the same layout.Here my doubt is how can i can check which transaction is called for the Layoutset(i.e., how will i know which transaction is entered by user to display the output).I have to print different output for ME41 and ME42.
Any clarrification mail me.
Waiitng for your response.
Thanx,
Veeru
‎2005 Dec 07 6:03 AM
Veeru,
can u make use of sy-tcode...?
i hope u can make use of this to identify the txn and to provide appropriate output...
Regards,
Raja.
‎2005 Dec 07 6:16 AM
Hi Raja,
I will try with sy-tcode and i will let you know.
thanx,
Veeru.
‎2005 Dec 07 6:27 AM
you can check the vlaues declare two variable assign two tcodes to them and check with sy-tcode ..
that will do ..
vijay
‎2005 Dec 07 6:08 AM
Hi veeru,
u can get the screen number of the particular execution and check inside ur code whether is it from ME41 or from ME42.
if Screenno = 1000.
Write:/ 'From ME41'.
elseif Screenno = 1001.
Write:/ 'From ME42'.
endif.
Hope this helps u,
Regards,
Nagarajan.
‎2005 Dec 07 6:15 AM
Hi Nagarajan,
thanx for your response.
How can i get the screen no in to my layout set.
Bye,
Veeru
‎2005 Dec 07 6:09 AM
Hi Depends up on Transaction you can display the data.
Use sy-tocde to do that check ....in the layout insert the system sybol tcode and check the values of that and accordingly you write...
vijay