cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_F4_READ_ON_EXIT restrict tax code for ONBHEHALF OF?

Former Member
0 Kudos

Hi,

we have implemented this BADI BBP_F4_READ_ON_EXIT to restrict the tax code display.

Now we have requirement that we are doing cross company code purchase.

We have created shopping cart on behalf of other company code say CHINA and the reuistiner is from USA.

So in shopping cart only US tax code only displaying. Because it is restricting based on the SY-UNAME in the BADI. In this SY-UNAME is requistioner. There is no other parameter for ON BEHALF OF person also in BADI.

Is there any other way to restrict the tax code based on the ON HEHALF OF person?

and This BADI is also called only when i clicked on SHOP and after that it is not triggering.

Please help...

Thanks

Venkatesh P

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

How about putting the restriction on country code/name in the same BADI you have mentioned. it will address the purpose and we used this for same requirement.

Rgds/Kiran

Former Member
0 Kudos

Hi,

But we dont know the country code of the on behalf of person. SO we cannot put restriction.

Thanks

Venkatesh P

Former Member
0 Kudos

You can fetch the data from user attributes 'requisitioner' and org id details and you may also utilise user company code attribute as you have to mention the onbehalf company code too in the user attributes. This will work

Rgds / Kiran

Former Member
0 Kudos

Hi,

Thanks for helpful information,

Can you please let me know..from which table or FM we will get the attributr information.

Any sample code will be more helpful..

Thanks

Venkatesh P

Answers (1)

Answers (1)

former_member195032
Active Contributor
0 Kudos

Function Module : BBP_GET_TAXCODES_F4 can give you tax code based on User ID which should be available to you by shopping on behalf of person ID.

You can get default tax code as well by this function module.

Regards,Nishant