cancel
Showing results for 
Search instead for 
Did you mean: 

Shop on Behalf restriction.

former_member305388
Active Contributor
0 Kudos

Hi Experts,

I am implementing the BADI BBP_F4_READ_ON_ENTRY method GET_BOBUSER for restricting the user selection. Where can I check the standard functionality code there are various values required like PARTNER,PARTNER_GUID,USERNAME,NAME_FIRST,NAME_LAST,BUILDING,FLOOR which I am not sure as how the values should be retrieved.

I would like to implement the same standard functionality in this badi with some of custom restrictions. Can someone point to standard code which can be reused. Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello ,

You would have to do a SELECT like following:

SELECT   A~PARTNER A~PARTNER_GUID A~NAME_FIRST A~NAME_LAST

                     A~TITLE_ACA1

                     C~BUILDING   C~FLOOR C~ROOMNUMBER C~IH_MAIL

                     C~TEL_NUMBER C~TEL_EXTENS

               FROM BUT000 AS A INNER JOIN ADRP AS B

                 ON  A~PERSNUMBER = B~PERSNUMBER

Please take a look at FM BBP_GET_BOBUSERS_F4 . This is where in standard the list of BUy on Behalf users is prepared.

Look from line 270 onwards. You find couple of SELECT Queries per DB type.

Regards,

Sushil.

Please assign points if you find my answer helpful / solves your issue.