on 10-17-2008 8:12 AM
Hi ALL,
I have a Basic doubt. How many ways Agents can be maintained in Workflow? In My requirement One User is leaving Instead of that User I need to maintain another User.But In my requirement Not maintained by RULE and PD ORG (using PPOM)..
Regards
RKA
I think you can either use Position Id or Organization Unit whatever is suitable for you.
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arghadip,
I am using Commissions Approval Workflow. When ever Packet is launched the workflow will trigger.Now one of the Approver(User) is leaving ,Inplace of that user need to assign another user. where i need to do this
we are using this FM
CALL FUNCTION 'Z_EWF_GET_COMM_APPROVER'
EXPORTING
lyear = object-key-packetyear
lmonth = object-key-packetmonth
lcompany = object-key-companycode
lrep = object-key-customer
lapprlevel = lapprovallevel
TABLES
actor_tab = agents
AGENT_LEVELS = levelstable
EXCEPTIONS
nobody_found = 1
OTHERS = 2.
Get approver for level
If 01 level, get 1C and 1R approvers also
if lapprlevel = '01'.
SELECT zapprover_name zapproval_level
FROM zew_comm_approve
INTO CORRESPONDING FIELDS
OF TABLE zappr
WHERE zpacket_year = lyear AND
zpacket_month = lmonth AND
zpacket_company = lcompany AND
zpacket_rep = lrep AND
( zapproval_level = '01' OR
zapproval_level = '1R' OR
zapproval_level = '1C' ) AND
zaction_code NE 'APPROVED'.
else. "Just get exact level passed in
SELECT zapprover_name zapproval_level
FROM zew_comm_approve
INTO CORRESPONDING FIELDS
OF TABLE zappr
WHERE zpacket_year = lyear AND
zpacket_month = lmonth AND
zpacket_company = lcompany AND
zpacket_rep = lrep AND
zapproval_level = lapprlevel AND
zaction_code NE 'APPROVED'.
endif.
IF sy-subrc = 0.
LOOP AT zappr.
actor_tab-otype = 'US'.
actor_tab-objid = zappr-zapprover_name.
APPEND actor_tab.
Fill up levels table to correspond to agents in agent table
agent_levels-zapproval_level = zappr-zapproval_level.
append agent_levels.
Validate username
SELECT SINGLE bname FROM usr02 INTO usr02-bname
WHERE bname = zappr-zapprover_name.
IF sy-subrc <> 0.
zinvalid-zusername = zappr-zapprover_name.
zinvalid-zlevel = zappr-zapproval_level.
APPEND zinvalid.
ENDIF.
ENDLOOP.
ENDIF.
Creating the enrty table zew_comm_approve ? is it correct?
Regards.
RKA
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.