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

Change document and triggering workflow

Former Member
0 Likes
896

Hi,

There's a z-table in ERP. The requirement is to send a notification to the Java server whenever there is a change in the data content of this table.

Can anyone describe the steps to be followed.

Thank you.

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
856

You can triger the workflow by creating a Change Document Object in SCDO and then you can trigger the workflow by selecting the option On Chaging

5 REPLIES 5
Read only

bpawanchand
Active Contributor
0 Likes
857

You can triger the workflow by creating a Change Document Object in SCDO and then you can trigger the workflow by selecting the option On Chaging

Read only

Former Member
0 Likes
856

hi,

Fulfill the basic pre-requisite by choosing the change document flag at the data element level (in the further characteristics of data element)

Maintain the setting for triggering work flow with respect to change document entry.

link: [Change docu. + Workflow|http://help.sap.com/saphelp_nw04/helpdata/EN/c5/e4af16453d11d189430000e829fbbd/content.htm]

Thanks

Sharath

Read only

0 Likes
856

Hi Pavan, Sharath,

Now that I understand the concept of change documents, I have doubts about it's utility. I mean I did not find it to be a very good feature. The reason I say that is that one has to code for everything. It becomes the developer's responsibility to get the old record and the new record and pass these to the WRITE_CHANGE_DOCUMENT function. In addition, the developer also has to pass an indicator representing what kind of change is it - insert, update, delete.

The only utility I see is when you have maintain an archive of the changes that happened in a table's content over a long period. In that case, you could refer to the CDHDR and CDPOS tables and find out what change occurred on which date.

Your comments would reinforce my understanding of the concept.

Thank you.

Read only

0 Likes
856

hi,

yeah what you said is right....

but in change document we are doing the same thing, but its just a automation. In our change document configuration too, whatever the changes made they are being stored to CDHDR and CDPOS.

Hence referring to them will help us in keep track of changes in the system

Regards

Sharath

Read only

0 Likes
856

Hi Sharath,

Thanks for the quick reply. Perhaps, there was some misunderstanding. What I meant to say was that change documents don't offer much automation. Everything is being done by the developer. The only thing that happens automatically is writing data to CDHDR and CDPOS tables.

Don't you agree?