cancel
Showing results for 
Search instead for 
Did you mean: 

Filter in SBWP Transaction per Task

08-11-2016 3:05 PM
2520 views 8 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello experts,


I need to set up a filter for the task for certain users in SBWP transaction, but can not find where or how to do?


I found that the function module " SWL_INBOX_CONTEXT_FROM_MEMORY " is imported a memory content and used to filter the tasks , but can not find where to hold this setting ...


Thank you very much in advance!

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

StephaneBailleu
Active Contributor
0 Likes

Hi Roberto

What do you want to achieve exactly (functional need) as there is already a grouped by task available by default in SWBP ?

So what is the goal of the filter to remove the task from certain inbox  ? or only to show this task ?

Cheers

Stephane

PS: in both cases it would be better not to assign the task to the non relevant user

Former Member
0 Likes

Hi Stephane,


This implementation will serve to certain users involved in the flow at certain times can not "see" the notifications of WorkFlow .


I implemented the BAdI " CL_EX_WF_BWP_SELECT_FILTER " but it only filters out tasks that are with status "READY"


My biggest question is where can I set the tasks that must appear in a user's inbox !


Grateful for your return !

StephaneBailleu
Active Contributor
0 Likes

Roberto,

Which status do you want to filter ? Ready is the normal status for WI waiting for action from a user

Is this a variant you want available for those user all the time or only if they select something ?

If this is always then do not assign it to those user

otherwise please check where they indicate BADI WF_BWP_SELECT_FILTER

Cheers

Stephane

Answers (1)

Answers (1)

Former Member
0 Likes

Stephane,

I implemented the BAdI mentioned , but as described, it only filters the status "READY" , and I would like to filter by job !

I can " simulate " this filter as pictures below:

Again thank you for your help!

StephaneBailleu
Active Contributor
0 Likes

Roberto,

I don't understand, the badi provides the IM_WORKLIST as input parameter

and RE_WORKLIST as output.

You just need to put you own logic inside with your custom code to delete from the IM_WORKLIST the Work item and add the one you want to the RE_WORKLIST

Like checking the role of the SY-UNAME user for this workitem or I don"t know...; but there won"t be anything standard

Is this really workitem you want to filter or only notification mail ?

In which status are the work item you don't want to see ?

As I said I don"t know your functional requirement but if you don't want the user to receive see the workitem why sending those workitem to these users in the first place ?

Cheers

Stephane

Former Member
0 Likes

Yes,

I implemented the BAdI and it only gets workitems with status "READY" .

It turns out that the client possesses several messages generated by IDOC , and today they are sent to all users, I would like to use this solution to work around , avoiding the need to reconfigure the sending IDOC adding agent.

I believe it will be inevitable to create an incident in SAP to receive an opinion regarding this flow !

I appreciate your time and help!

StephaneBailleu
Active Contributor
0 Likes

Roberto

you should have explained your problem before ...

Your issue is not with the workflow it is with the set up of the ALE.

You should have a responsible for the idoc set up in WE20 on the postprocessing agent tab

To know more about ALE-IDOC and workflow please check those two links

Configure workflow notifications for IDocs in error status

That should help

Cheers

Stephane

StephaneBailleu
Active Contributor
0 Likes

Just a small update

Check also this

Workflow for INBOUND IDOC | SCN :

STEP 1.       USE   SALE -> Error Handling                

STEP 2.   Go To  Basic Workflow  Settings.Use Auto-customise button to allow the system to configure most of the options.

STEP 3

  a)Go to SAP MENU -> TOOLS-> BUSINESS WORKFLOW ->

DEVELOPMENT ->DEFINITION TOOLS->TASKS

  b) Create a customised task putting IDOCCLFMAS for example   as object type and    INPUTFOREGROUND  as object method.

c)Associate the triggring event InputErrorOccurred with the standard task.

d)Associate the terminating event InputFinished with the standard task

e) Assign appropiate agent to the customised task. For this GO TO

     Additional data -> Agent assignment -> Maintain

STEP 4  --  Go to transaction WE20.In the partner profile of the message type CLFMAS enter for the post  processing permitted agent.Enter the agent type (Organisational unit,Workcenter,Job,Person,Position or User),agentId and the language.

STEP 5- In case of any error in processing of Idoc a workflow notification is sent to concerned agents.The message is sent to the inboxes of concerned persons which indicates which interface has erred,the associated IDOC number ,status of the IDOC and the date and time of error.

You should solve this issue for futurs workflows

However for the current one after doing all the necessary agent assignment you shoudl recalculate the rule via the admin transaction

Cheers

Stephane