cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi all,

I have a requirement in KM Workflow -

I have defined steps for an approval of a document in KM. Now when a user finally approves a document and the status of the document becomes released,

1. I want to at runtime read that approved document.

2. Pick up a supplier number from that document.

3. Execute a BAPI in R/3 .

Can anyone please let me know, if this is doable and help me to move forward in the right direction.

If we can achieve this, can you please let me know the approach which I need to take to meet my requirement.

Regards,

Vivek

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

I would not use a repository service for this, as I am not sure if an "approved" event is possible. You might have to register for all events and write code to check the workflow status property. Furthermore, I believe that repository services are only effective if your documents are created via KM.

This is how I would do it:

- Documents are indexed via TREX

- Create a scheduled task application to run once a day (after hours to reduce potential performance issues)

- Using TREX, search for documents that have been approved for that day

- get the supplier number from documents

- run bapi for document