cancel
Showing results for 
Search instead for 
Did you mean: 

Need to check for attachments to FIPP in workflow

Former Member
0 Kudos

Hello,

I have a requirement to write a workflow for GL month close park, approve, post. I have reviewed some of the standard approval models that SAP provides, decided I need a custom workflow. One of the features that I need to implement is that an attachment is required before the workflow goes to the approver. Current process is a document is sent to the approver (email or physically given), the approver reviews and approves, then the clerk does the actual entry and posts. New method will be clerk parks the entry, workflow will send to approver, approver will review entry and attached documents, either reject or release and post. I am trying to determine if checking for an attachment is an attribute or a method. I already have the basic logic needed to check to see if an attachment exists for the GL entry, but unsure how to implement as an extension to the FIPP business object. I think I want to check the status, so should be an attribute, but methods can have ABAP code. Can someone point me in the right direction, my searching of SAP shows how to manually attach documents, but not how to add checking if a document exists to a workflow.

Regards,

Steven M Engel

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Anjan and Sankar,

I took Anjan's advice and created a method "CheckAttachment" it looks at the table srgbtbrel for an attachment to the BO FIPP for the document in question. The logic is supposed to set a variable FlagAttachment to "A" if attachment found. I had to add FlagAttachment as an attribute to custom derived object ZFIPP. After calling the method, I have a loop that looks at ZFIPP.FLAGATTACHMENT = A, if true done with loop, if false inform initiator that they need to add an attachment, and check again.

The problem is that even though I have an attachment, and I see that the method sees that there is an attachment, the loop never exits.

How do I debug the workflow to see what value the FLAGATTACHMENT has when being checked by the loop?

Thanks,

Steve

Former Member
0 Kudos

Hello Steven,

Please check if you can make use of generic object services. In this case the documents can be attached directly from the transaction. In this case the transaction would be already linked with FIPP - BO.

Please refer to this link .

Regards,

Sankar

anjan_paul
Active Contributor
0 Kudos

hi,

From my suggestion use method, because method can have mutiple output, based on that you can take decision path