cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation of BAdi BBP_F4_READ_ON_EXIT

Former Member
0 Kudos

Hi there,

We are trying to display country specific VAT codes in the 'Tax' drop-down menu in SRM by using the BAdi BBP_F4_READ_ON_EXIT.

For example, an Irish user should only see Irish tax codes.

Has anyone implemented the BAdi BBP_F4_READ_ON_EXIT before and has some sample code for it?

Thank you very much for your help.

Regards,

Jens

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

<u>We have faced a similar situation and got rid of it by applying the following code in the BADI Implementation.</u>

Please try out this. This will surely help.

<b>Go to transaction SE18 and type the BADI name -> BBP_F4_READ_ON_EX

then create an implementation of this BADI named as say -> Z_BBP_F4_READ_ON_EX

Inside this BADI, you need to put the following actual required code.</b>

<b><u>In the method - GET_TAXCODE

<b>GET_TAXCODE</b> Change Determined Record for Tax Codes

and write the following statement there</u></b>

<b>Actual code</b>

method IF_EX_BBP_F4_READ_ON_EXIT~GET_TAXCODE.
* User should not be able to use the shop on behalf of functionality.
* Delete all other Users from the selection list
 delete ET_TAXCODE_LIST where username ne sy-uname.
endmethod.

<b>Please reward full points. )</b>

Hope this will definitely help.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

Thank you very much for your reply.

Just a question for you. Did you use this BAdi to disable the shop on behalf functionality as well? -->

  • User should not be able to use the shop on behalf of functionality.

  • Delete all other Users from the selection list

Regards,

Jens

Former Member
0 Kudos

Hi

<u>Yes .. right

We have done this is one of our past SRM implemenatations.

Please try out this. This will surely help.</u>

<b>Go to transaction SE18 and type the BADI name -> BBP_F4_READ_ON_EX

then create an implementation of this BADI named as say -> Z_BBP_F4_READ_ON_EX

Inside this BADI, you need to put the following code.</b>

method IF_EX_BBP_F4_READ_ON_EXIT~GET_BOBUSER.
* User should not be able to use the shop on behalf of functionality.
* Delete all other Users from the selection list
  delete et_bobuser_list where username ne sy-uname.
endmethod.

Please reward full points, one more time.

Cheers. )

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

I think for the taxcode determination 'username ne sy-uname' might not work and needs a bit more details and work.

Thank you for your help.

Regards,

Jens

Former Member
0 Kudos

Hi

<u>Use the function module BBP_READ_ATTRIBUTES and pass the username to get all the Org attributes of this user.

Like company code, logical system and then based on the user assigned tax code, delete all other tax codes form the et_tax_list[] table.</u>

<b>"delete et_tax_list where taxcode ne user-taxcode."</b>

Hope this will help.

Regards

- Atul

Answers (0)