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

transaction check

xt_inergo
Participant
0 Likes
464

Hi,

I have added a module in an existing abap program.

The module checks if a field has some values. The probelm is that I want this checks to run only from a specific transaction. What statement do I have to add to my IF statements so that my checks run from a specific transaction (XD01)?

Thanks in advanced.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
438

Hi,

check system field

If sy-tcode = 'XD01'.

ur logic

endif.

Hi,

I have added a module in an existing abap program.

The module checks if a field has some values. The probelm is that I want this checks to run only from a specific transaction. What statement do I have to add to my IF statements so that my checks run from a specific transaction (XD01)?

Thanks in advanced.

2 REPLIES 2
Read only

Former Member
0 Likes
439

Hi,

check system field

If sy-tcode = 'XD01'.

ur logic

endif.

Read only

Former Member
0 Likes
438

Hi

IF SY-TCODE = 'XD01'.

do something

ENDIF.

Max