Item-Level Worklfow ( WS14500015 )..
can you please help me to figure out how to restart workflow when approved change the SC value in item level workflow 'WS14500015'. i know SAP has given OSS notes '777133' for consultants. from this OSS notes i could n't get mach help , so if you have implemented how to restart from '777133' OSS notes , please give me some idea how the table fields and how the logic going to be implement in BADI.
that will help me very lot please,
Pras Durafe replied
For restart logic, you will need to set BBP_WFL_SECURITIES in users personalization using transaction SU01. There are different values like (low, medium, high etc). Please have a look.
I will check OSS 777130 tomorrow and revert on SDN.
To find spend limits for requisitioner / or approval limit for approver, you need to read table
HRP5503. In this table, there is a field called SUBTY , If sub type = 0100 it is spend limit of requisitioner. What you can do, go to PPOMA_BBP ->Extended Attributes -> PO Values -> Enter Spend Limit / Approval limit for your user. Then go to HRP5503 and check using SE16.
One more thing, to get requisitioner or approvers organization details ( org id , object type etc),
there is a function module( can't remember its name at this moment). Search BBPorguser* in SE37. This function module is having import parameter is username and returns all organization details for user which you will require to access HRP5503.
I am attaching my method to get Spend limit for requisitioner. In my current project, there are many currencies involved, so if spend limit is not in US$, I need to convert it into US$ so don't get confused.
Hope this will help.
method GET_SPEND_LIMIT .
data: lw_subrc type subrc,
lw_hrp5503 type hrp5503.
select single limit currency from hrp5503
into (lw_hrp5503-LIMIT, lw_hrp5503-CURRENCY)
where PLVAR = PLAN
and OTYPE = OTYPE
and OBJID = OBJID
and SUBTY = '0100' "Spend Limit
and ISTAT = 1
and BEGDA <= sy-datum
and ENDDA >= sy-datum.
if sy-subrc is initial.
convert Spend Limit to Shopping currency (Carts always in GBP)
if lw_hrp5503-CURRENCY = CURRI.
LIMIT = lw_hrp5503-LIMIT.
convert Spend Limit amt
FROM_CURRENCY = lw_hrp5503-CURRENCY
TO_CURRENCY = CURRI
FROM_AMT = lw_hrp5503-LIMIT
DATE = DATE
TYPE_OF_RATE = RATE
TO_AMT = LIMIT
RETURN = lw_subrc ).
if no exchange rate found, fail safe and set spend limit to 0
if lw_subrc <> 0.
LIMIT = 0.
LIMIT = 0.