Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

script

Former Member
0 Likes
654

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

6 REPLIES 6
Read only

Former Member
0 Likes
626

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.

Read only

0 Likes
626

Hi Raja,

I will try with sy-tcode and i will let you know.

thanx,

Veeru.

Read only

0 Likes
626

you can check the vlaues declare two variable assign two tcodes to them and check with sy-tcode ..

that will do ..

vijay

Read only

Former Member
0 Likes
626

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.

Read only

0 Likes
626

Hi Nagarajan,

thanx for your response.

How can i get the screen no in to my layout set.

Bye,

Veeru

Read only

Former Member
0 Likes
626

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