cancel
Showing results for 
Search instead for 
Did you mean: 

SLMANAGER from org unit..

Former Member
0 Kudos

Hi,

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.

regards,

john.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi John,

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.

Regards.

Pras

Former Member
0 Kudos

hi pras,

thank you, i have found soluction myself, but the one which u given is more efficient. thank you. we will discuss further coming issue.

thank you,

John.

Former Member
0 Kudos

Hi pras,

the one i found is not more efficient. i think which you given is more efficient, but i don't know how to implement your logic. can you please give me some more hints like how to use those macros and which macro use to get user name as an input.

regards,

john.

Former Member
0 Kudos

hi pras,

thank you, yes i have found the soluction with your hints given last post.

thank you,

regards,

john.

Answers (0)