on 03-16-2007 9:57 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.