cancel
Showing results for 
Search instead for 
Did you mean: 

Limit tax code on item data tab in SRM 70

Former Member
0 Kudos

Hi SRM guru's,

We are on SRM 70 EHP1 and would like to limit the tax codes displayed on Item Data tab of Shopping cart.

We need to only display tax relevant for company/country code in cart.

Is there a standard way to limit the display ?

Right now we see all tax codes listed in Tax codes for enterprise buyer.

Any suggestions or help is greatly appreciated.

Thanks

Kim

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member208675
Active Contributor
0 Kudos

Hi,

You can specify a tax code for country and product category in following Path:SAP Supplier Relationship Management-> SRM Server-> Cross-Application Basic Settings-> Tax Calculation-> Determine Tax Code for Country/ Product Category

Regards,

Former Member
0 Kudos

Thanks Vinay,

We have config. set in Determine Tax Code for Country/ Product Category & it's working nicely. Our issue is when shopper needs to change the default tax code set they drop down show's all country tax codes, they only want to see tax codes relevant to country the order is being placed for.

Have you experienced this ? how did you address it ?

Regards,

Kim

former_member208675
Active Contributor
0 Kudos

Hi,

Check BAdi BBP_DET_TAXCODE_BADI if it can get you distribution of tax codes according to company.

But it looks like you get precise tax code any case. I don't think you can determine tax code without customizing as per company.

Regards,

Former Member
0 Kudos

Thanks Vinay,

The Det taxcode badi doesn't provide filtering which is what we are looking for.

Default tax code is provided through config.

Any suggestion on what Badi could be used to apply filter on tax code based on company code ?

Former Member
0 Kudos

Hi,

You can create a customised search help to select the tax code based on your criteria and use the BBP_DOC_CHECK_BADI for restriction as per your requirement.

With Regards,

Malay

Former Member
0 Kudos

Hi, Can you share your solution on how did you restrict the Tax Codes based on Country/Comp.Code?

Thanks Very Much!

Harsha.

Former Member
0 Kudos

Hi Harsha,

Here is what was done by our developers.  We are using classic scenario.

1.) Create Enhancement Implementation Z_SRM_SEI_LIMIT_TAX_CODE.
2.) Create a post-exit for method /SAPSRM/IF_CLL_MAPPER~REFRESH
      in class /SAPSRM/CL_CH_WD_DODM_SC_I_BD. This class is responsible
     for displaying Shopping Cart item data.
3.) Tax codes (in dropdown) need to be filtered based on company code’s   country.  SRM does not maintain country specific tax data. So an RFC
needs to be created in ECC 6.0 and will be called by SRM.
4.) Create an RFC enabled FM named Z_SRM_GET_TAXCODES_BY_BUKRS in ECC.
5.) Within the FM call BAPI_COMPANYCODE_GETDETAIL for reading Company code's country.
6.) Get the tax procedure value from table T005 based on country.
7.) Select all tax codes form table T007A based on tax procedure.
8.) This RFC will be called within the post-exit of method /SAPSRM/IF_CLL_MAPPER~REFRESH of class /SAPSRM/CL_CH_WD_DODM_SC_I_BD.
9.) After calling the RFC, table ET_TAX_CODES will be filled with
company code specific tax codes. Now delete the records form
MT_TAXCODES which are not available in ET_TAX_CODES.
Version 5.0A
In SRD, with transport SRDK900505 extended the structure to take Tax Text and REMOVED tax code filter logic using tax codes in SRM. Current and valid tax codes will come from R/3.
Version 5.0A
extended logic to get Tax codes from table T007S (text table for T007A) and adding Tax Type ‘V’ to where clause of T007A.
Version 5.0B
Added code back to consider tax codes available in SRM. Loop thru SRM codes, check for equivalent tax code in ECC to get text.
Version 6.0:
1.)  Post-Exit of method /SAPSRM/IF_CLL_MAPPER~REFRESH of class /SAPSRM/CL_CH_WD_DODM_SC_I_BD needs to be modified.
2.)  Check if shopping cart item data lead selection is initial. If so return.
This will avoid the dump which occurs when deleting a line item from
Shopping cart.
core_object->mv_item_guid = core_object->mo_parent_bo_mapper->items_get_lead_selection( ).
IF core_object->mv_item_guid IS INITIAL. " this may occur when (last) item was deleted
RETURN.
ENDIF.


  Thanks,

Jeff

Former Member
0 Kudos

Hi Kim,

You can use the Badi BBP_F4_READ_ON_EXIT to restrict the entries.

Regards

Azad

Former Member
0 Kudos

Thanks, but this BADI is obsolete and it doesn't pull tax code field.

Do you know of any BADI's for 7.0 which would help filter tax code based on company/country code?