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

Activity Corresponds to Sy-tcode

Former Member
0 Likes
1,131

Hi All,

In my user exit, I am writing the condtion that

IF SY-TCODE = 'IE01'

IF SY-TCODE = 'IE02' etc.

But I am not supposed to use this, as I have to use the Activity,

which I think is TACT-ACTVT, whose value is '01' if Create(IE01) and '02' if Change (IE02).

Pls guide me how to use Activity, instead of writing IF SY-TCODE = 'IE01',

means when I am in IE01 T code, is there any run time global field which contains '01' and

if I am in IE02, which is the field which can contain '02'

Pls Guide

Rishi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
877

>

> Hi All,

>

> In my user exit, I am writing the condtion that

> IF SY-TCODE = 'IE01'

>

> IF SY-TCODE = 'IE02' etc.

>

> But I am not supposed to use this, as I have to use the Activity,

> which I think is TACT-ACTVT, whose value is '01' if Create(IE01) and '02' if Change (IE02).

>

> Pls guide me how to use Activity, instead of writing IF SY-TCODE = 'IE01',

> means when I am in IE01 T code, is there any run time global field which contains '01' and

> if I am in IE02, which is the field which can contain '02'

>

> Pls Guide

> Rishi

Please check the variable T180-TRTYP, i'm not sure if this variable is available for all the transactions

t180-trtyp - H - create

t180-trtyp - V - change

t180-trtyp - D - display

Hi All,

In my user exit, I am writing the condtion that

IF SY-TCODE = 'IE01'

IF SY-TCODE = 'IE02' etc.

But I am not supposed to use this, as I have to use the Activity,

which I think is TACT-ACTVT, whose value is '01' if Create(IE01) and '02' if Change (IE02).

Pls guide me how to use Activity, instead of writing IF SY-TCODE = 'IE01',

means when I am in IE01 T code, is there any run time global field which contains '01' and

if I am in IE02, which is the field which can contain '02'

Pls Guide

Rishi

4 REPLIES 4
Read only

Former Member
0 Likes
878

>

> Hi All,

>

> In my user exit, I am writing the condtion that

> IF SY-TCODE = 'IE01'

>

> IF SY-TCODE = 'IE02' etc.

>

> But I am not supposed to use this, as I have to use the Activity,

> which I think is TACT-ACTVT, whose value is '01' if Create(IE01) and '02' if Change (IE02).

>

> Pls guide me how to use Activity, instead of writing IF SY-TCODE = 'IE01',

> means when I am in IE01 T code, is there any run time global field which contains '01' and

> if I am in IE02, which is the field which can contain '02'

>

> Pls Guide

> Rishi

Please check the variable T180-TRTYP, i'm not sure if this variable is available for all the transactions

t180-trtyp - H - create

t180-trtyp - V - change

t180-trtyp - D - display

Read only

0 Likes
877

Rajesh, you are right.

In table T180, we can find activity type for the standard transaction.

But for my T code IE01 ( Create Equipment), this table does not contain entry.

How this table is filled for standard transaction?

Rishi

Read only

0 Likes
877

The corresponding table for IE01 is T370.

What is the interface of your user exit, maybe the activity is passed in some parameter?

Thomas

Read only

0 Likes
877

Hi Thomas,

Thanks for the table name. I got the Activity corresponds to the standard transaction 'IE01' or 'IE02' or 'IE03'.

Mine Enhancement is IEQM0003 and function group is XEQM.

Pls help me to find out the runtime field where activity is stored.

I am writing my code in standard include ZXEQMU02.

Rishi Bhatia