Reading from UCT9110

Lalitha Sankaran lalisan at gmail.com
Wed Mar 7 09:19:09 EST 2012


Hello All,

I am having an issue reading from the UCT9110 table within an
enhancement point of a standard SAP function module.

We are using the standard workflow template WS75300001 for approval
and posting of documents, the Business object is UCDOC. It is a BW
system. The approval task is TS75300001, This task uses Rule
resolution to retrieve the approvers.
The rule is 75300001 - which uses the "Agent Determination - Function
to be executed"  and the function module used is
"UCT_MDOC_ACTION_AGENT_GET".

The approver is actually pulled up based on configuration, so if there
are 2 approvers that need to approve (A and B, both have to approve
for the doc to get posted) and approver A has a Sub, who has approved,
when the WF flows back to the approval task, it pulls up approval task
,which at this time does not take into account  the approval done by
the Sub, so it pulls up the same 2 approvers.

So to manipulate this, I added an enhancement point to the FM and
trying to manipulate ACTOR_TAB internal table, which contains the 2
approvers.
Table UCT9110 contains the Workflow actions on the document, it stores
the doc number, fiscal year and period along with the actions done on
it.
1- submitted, 3 for approval etc.

So my plan was to read from this table and action 3 (approval) and
check if that userID is a sub for one of the approvers and if it is,
then to delete the approver from ACTOR_TAB. But the select statement
to the table UCT9110 fails, with my user ID also. it never returns any
value, even though I can see the entry in the table in SE12, while I
am in the middle of debugging.

But the same table reads fine in BADI we have implemented for the
substitution logic and it works fine there, so not sure why not in the
enhancement point.

Any help is appreciated.

Thanks
Lalitha


More information about the SAP-WUG mailing list