SLMANAGER from org unit..
is there any way to get all SLAPPROVER from org unit based on the user name. there is an attribute 'SLApproverList' in BUS4101 , when i given input as user name an instance , the above attribute get filled those who are all SLAPPROVER for that user.
now i have to implement the same logic from Badi. from Badi i will pass creater name and i need all SLAPPROVER list, this is my requirement. can you please give me some hints for this.
how to get SLAPPROVER from Badi.
Pras Durafe replied
Sorry for delayed reply.
To get SLAPPROVER from BADI. Try this -
DATA : l_bus4101 TYPE swf_bor_object.
DATA : l_limit TYPE bbp_spers_sl-spending_limit.
DATA : l_approver TYPE swf_bor_object.
swc_get_property l_bus4101 'SLAPPROVER' l_approver.
swc_get_property l_bus4101 'SpendingLimit' l_limit.
It should be alright now. Please go through documentation on business objects and check SWC_GET_PROPERTY / SWC_SET_ELEMENT / SWC_CREATE_CONTAINER etc.
If you get error with l_approver, please check correct type for it.
Hope this will help.