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

Document change events (SWEC) problem.

Former Member
0 Likes
754

Hi experts,

My requirement is to do something with specified materials created/changed in MM01/02 t.code. Because material must be created succesfull , there is no any EXIT for that.

Because of that I have configured abap events(SWEC, SWEL) which are triggered after MM01/02 commit.

To be sure that event was triggered by a specific transaction I have made EXPORT TO MEMORY in one of the USER_EXIT - without result (no values was later imported).

Is there any method to check which transaction has trigger the event ?

Also is there any chance get the values in IMPORT FROM MEMORY in event code ?

Really thanks.

Daniel.

Edited by: Daniel Duras on Sep 7, 2010 12:04 PM

Hi experts,

My requirement is to do something with specified materials created/changed in MM01/02 t.code. Because material must be created succesfull , there is no any EXIT for that.

Because of that I have configured abap events(SWEC, SWEL) which are triggered after MM01/02 commit.

To be sure that event was triggered by a specific transaction I have made EXPORT TO MEMORY in one of the USER_EXIT - without result (no values was later imported).

Is there any method to check which transaction has trigger the event ?

Also is there any chance get the values in IMPORT FROM MEMORY in event code ?

Really thanks.

Daniel.

Edited by: Daniel Duras on Sep 7, 2010 12:04 PM

3 REPLIES 3
Read only

Former Member
0 Likes
669

Hi,

I'm not sure if we can capture the tcode which triggered in the events. If for certain materials you would like to trigger, I would assume that it is required to be executed irrespective of the transaction which created / updated the same.

In the objkey you will be getting the material number. Which you can pass to tables ( By now it would have been saved in the database ) and get the relevant information for validation.

You can use INDX table to export and import.

Hope it helps.

Sujay

Read only

JoffyJohn
Active Contributor
0 Likes
669

If in SWELS transaction you have enabled the trace. Then In SWEL transaction you will get the event triggered list

Read only

Former Member
0 Likes
669

In SWEL there is no information which I need .