cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Customization in Approval Process

Former Member
0 Likes
450

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi,

How about this ?

This supplier number can be entered as a custom property of this file ?

if you answer is yes, you can develop a program (command) and fire it from context menu of this file.

This command you can develop using SAP Developer Studio.

Patricio.

Former Member
0 Likes

Hi Partico,

Thanks for the instant response.

Let me explain in more detail -

I have a few documents displayed in KM , thses documents are gerenated from R/3 and are related to a supplier number.

Now whenever these documents get generated from R/3 into a PDF format, the "custom program" in KM should be able to read the document , pick up the supplier number and assign read permission for that document to that particular supplier.Evenyually a notification email should be sent to the supplier.

There has to be no manual intervation, the whole process of creating a document form R/3, to assigning permissions to the appropriate supplier, to sending notifications to the supplier should be automatic.

>>This supplier number can be entered as a custom property of this file ?

I dont think I'll be able to do this, with the kind of requiremet I have, though I dont have much exp in commands.

Please let me know your thoughts on the same.

Regards,

Vivek

Former Member
0 Likes

Hi,

Ok I understood, so if this documents are created in R/3, you need to use DMS connector in order to see from KM Portal.

In your km repository (you can see it if you install dms), you could subscribe your suppliers to this folder. Each time a new document is created automatically an email will be sended to them

Patricio.

I have a few documents displayed in KM , thses documents are gerenated from R/3 and are related to a supplier number.

Now whenever these documents get generated from R/3 into a PDF format, the "custom program" in KM should be able to read the document , pick up the supplier number and assign read permission for that document to that particular supplier.Evenyually a notification email should be sent to the supplier.

There has to be no manual intervation, the whole process of creating a document form R/3, to assigning permissions to the appropriate supplier, to sending notifications to the supplier should be automatic.

Former Member
0 Likes

Hi Partico,

Well we are not using DMS. We generate file documents which will be dumped in a file server. KM will pick up from the file server using CM repository.

The problem is -

Can I read into the documents and then dynamacilly assign permissions, based on the the supplier number present in the document.

Regards,

vivek

Answers (1)

Answers (1)

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