Reg:tax codes
hi
my client is having 5 different locations and for that 5 locations i have created different tax codes but the users should view only the tax codes that are applicable for their location only how to do this???
Hi,
We have created a UDF on those Master form where we want the filtration as per location :
Sub SetConditionToTax(ByVal FormID As String, ByVal CFL_ID As String)
Try
Dim oRS As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Dim oCFL1 As SAPbouiCOM.ChooseFromList
Dim oCons As SAPbouiCOM.Conditions
Dim oCon As SAPbouiCOM.Condition
Dim emptyCon As New SAPbouiCOM.Conditions
oRS.DoQuery("Select Name from OUDP Where Code=(Select Department from OUSR Where USER_CODE='" & oCompany.UserName & "')")
oCFL1 = oApplication.Forms.Item(FormID).ChooseFromLists.Item(CFL_ID)
oCFL1.SetConditions(emptyCon)
oCons = oCFL1.GetConditions()
oCon = oCons.Add()
If oRS.RecordCount <> 0 Then
oCon.Alias = "Code"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_START
oCon.CondVal = Trim(oRS.Fields.Item("Name").Value)
Else
oCon.Alias = "Code"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "-1"
End If
oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR
oCon = oCons.Add
oCon.Alias = "Code"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_START
oCon.CondVal = "Exempt"
oCFL1.SetConditions(oCons)
Catch ex As Exception
oApplication.StatusBar.SetText(ex.Message)
End Try
End Sub
GRPO Class where we are calling it :
Public Class Purchase_GRPO
Dim GRPO_Form As SAPbouiCOM.Form
Dim oDBs_Head As SAPbouiCOM.DBDataSource
Dim objCombo As SAPbouiCOM.ComboBox
Sub CreateForm(ByVal FormUID As String)
Try
Dim oItem As SAPbouiCOM.Item
Dim oStatic As SAPbouiCOM.StaticText
Dim oEditText As SAPbouiCOM.EditText
Dim oCombo As SAPbouiCOM.ComboBox
Dim oButton As SAPbouiCOM.Button
GRPO_Form = oApplication.Forms.Item(FormUID)
'Me.SetConditionToBPCFL()
'Me.SetConditionToWarehouse()
If (oCompany.UserName <> "manager") Then
''Updated IDs for CFL....
SetConditionToBPCFL(GRPO_Form.UniqueID, "2")
ConditionToTax(GRPO_Form.UniqueID, "26")
End If
Me.SetDefault()
Catch ex As Exception
oApplication.StatusBar.SetText(ex.Message)
End Try
End Sub
Sub SetDefault()
Try
'Me.SetConditionToBranchType("Tax")
SetSequence(GRPO_Form.UniqueID, "88", GRPO_Form.Items.Item("88").Specific.Selected.Description)
Catch ex As Exception
oApplication.StatusBar.SetText(ex.Message)
End Try
End Sub
Sub MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
Try
Dim oForm As SAPbouiCOM.Form = oApplication.Forms.ActiveForm
If oForm.TypeEx = "143" Then
If pVal.BeforeAction = True Then
Select Case pVal.MenuUID
Case "1288", "1289", "1290", "1291"
oApplication.StatusBar.SetText("Navigation is not allowed for this user", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
BubbleEvent = False
End Select
ElseIf pVal.BeforeAction = False Then
Select Case pVal.MenuUID
Case "1281", "1287"
SetSequence(GRPO_Form.UniqueID, "88", GRPO_Form.Items.Item("88").Specific.Selected.Description)
End Select
End If
End If
Catch ex As Exception
oApplication.StatusBar.SetText(ex.Message)
End Try
End Sub
Sub ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
Try
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
If pVal.BeforeAction Then
Me.CreateForm(FormUID)
End If
Case SAPbouiCOM.BoEventTypes.et_LOST_FOCUS
If (pVal.ItemUID = "38" Or pVal.ItemUID = "39") And (pVal.ColUID = "2004") And pVal.BeforeAction = False Then
Dim oMatrix As SAPbouiCOM.Matrix = GRPO_Form.Items.Item(pVal.ItemUID).Specific
If oMatrix.VisualRowCount <> pVal.Row Then
Dim oRS As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRS.DoQuery("Select Name from OUDP Where Code=(Select Department from OUSR Where USER_CODE='" & oCompany.UserName & "')")
If Trim(oMatrix.Columns.Item("2004").Cells.Item(pVal.Row).Specific.Value).Equals(Trim(oRS.Fields.Item("Name").Value)) = False Then
oMatrix.Columns.Item("2004").Cells.Item(pVal.Row).Specific.Value = oRS.Fields.Item("Name").Value
End If
End If
End If
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim CFLEvent As SAPbouiCOM.IChooseFromListEvent = pVal
Dim CFL_Id As String
CFL_Id = CFLEvent.ChooseFromListUID
oCFL = GRPO_Form.ChooseFromLists.Item(CFL_Id)
Dim oDT As SAPbouiCOM.DataTable
oDT = CFLEvent.SelectedObjects
Try
Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
If pVal.ItemUID = "20" And pVal.BeforeAction = False Then
objCombo = GRPO_Form.Items.Item("20").Specific
Dim oRS As SAPbobsCOM.Recordset
Dim strEmp As String
oRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRS.DoQuery("SELECT T0.[Code], T0.[name] FROM OUDP T0,OUSR T2 WHere T2.Department=T0.Code and T2.USER_CODE='" & oCompany.UserName & "'")
Dim strLocation As String = oRS.Fields.Item("name").Value.ToString()
If objCombo.Selected.Description.Equals("") = False Or objCombo.Selected.Description.StartsWith(strLocation) = False Then
Dim s As String = "select SlpName from oslp where memo='" + strLocation.Trim() + "'"
oRS.DoQuery("select SlpName from oslp where memo='" + strLocation.Trim() + "'")
strEmp = oRS.Fields.Item(0).Value.ToString()
Dim Group As String = objCombo.Selected.Description.ToString()
If strEmp <> Group Then
oApplication.StatusBar.SetText("Selected User Does Not Belong to '" + strLocation + "'Location ", SAPbouiCOM.BoMessageTime.bmt_Short,
SAPbouiCOM.BoStatusBarMessageType.smt_Error)
BubbleEvent = False
objCombo.Select(strEmp, SAPbouiCOM.BoSearchKey.psk_ByDescription)
End If
' Return
End If
End If
' SelectEmployee("20", GRPO_Form)
'End If
If pVal.ItemUID = "88" And pVal.BeforeAction = False Then
SetSequence(GRPO_Form.UniqueID, "88", GRPO_Form.Items.Item("88").Specific.Selected.Description)
End If
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
If pVal.ItemUID = "67" And pVal.BeforeAction = True Then
SetConditionToBPCFL(GRPO_Form.UniqueID, "4")
End If
'If pVal.Before_Action = True Then
' If pVal.ItemUID = "1" And pVal.ActionSuccess = False And GRPO_Form.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
' Dim strVal As String = oDBs_Head.GetValue("U_InvType", 0).Trim
' Dim strVal1 As String = GRPO_Form.Items.Item("t_BrnTyp1").Specific.value
' If (strVal = "BT" And strVal1 = "") Then
' oApplication.StatusBar.SetText("Please select the In-transit warehouse", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
' BubbleEvent = False
' ElseIf (strVal = "BT" And strVal1 <> "") Then
' Dim strVendor As String = GRPO_Form.Items.Item("4").Specific.value
' Dim oRS As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
' oRS.DoQuery("Select U_InTransWH from OCRD where Cardcode ='" & strVendor & "'")
' Dim strITrWhs As String = Trim(oRS.Fields.Item("U_InTransWH").Value)
' If (strITrWhs <> strVal1) Then
' oApplication.StatusBar.SetText("Select the correct In-transit warehouse", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
' BubbleEvent = False
' End If
' End If
' End If
'ElseIf pVal.Before_Action = False Then
If pVal.ItemUID = "1" And pVal.ActionSuccess = True And GRPO_Form.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
Me.SetDefault()
End If
'End If
End Select
Catch ex As Exception
oApplication.StatusBar.SetText(ex.Message)
End Try
End Sub
'Sub FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean)
' Try
' Select Case BusinessObjectInfo.EventType
' Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
' If BusinessObjectInfo.BeforeAction = False Then
' Me.SetConditionToBranchType(oDBs_Head.GetValue("U_InvType", 0).Trim)
' GRPO_Form.Items.Item("t_BrnTyp").Specific.Value = oDBs_Head.GetValue("U_BrnType", 0)
' GRPO_Form.DataSources.UserDataSources.Item("U_BrnType1").ValueEx = oDBs_Head.GetValue("U_BrnType", 0)
' End If
' Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD, SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE
' If BusinessObjectInfo.ActionSuccess = True Then
' If Trim(oDBs_Head.GetValue("U_InvType", 0)).Equals("BT") = True Then
' Me.StockTranfer()
' End If
' End If
' End Select
' Catch ex As Exception
' oApplication.StatusBar.SetText(ex.Message)
' End Try
'End Sub
End Class
Similar Messages
-
Hi Gurus,
1) I am creating a PO. It doesnt have a Material as it is a text req converted to PO. I am having 10 plants which uses various Tax codes which will auto populate according to the plants. Now my requirement is i want to populate a tax code (XX) for 8 plants i am using and (YY) for 9th Plant and (ZZ) for 10th Plant.
I dont have a material number. But i am having a Vendor Number, a Plant. We are not creating the PO's manually. This will be done by a Batchjob, so manually entering is also not possible.
2) Also i want to overwrite the Tax code which is populating automatically with the Tax code from PIR. Please advice where we will be maintaining the Config for Tax Code and Plant/Company code.
Please advice on this issue and how to proceed further.Thanks for your help in advance.
Thanks,
SakkithyanHi,
If you want to default the tax code in the purchase order then create info record using transaction ME11..
If you want to default tax code in MIRO then do it using transaction OMR2..
Regards,
Chintan Joshi -
Reg:Tax code validity period
Hi All
For the condition type jmop for the key combination tax code i'm not getting the validity period
I have checked the
1. condition type jmop (val dt from & Val dt To)
2.access secequence
In Fv11 i'm not getting it
Plz guide me> 1. How to check tax code validity period?
No tax code doesn't have any validity period
But when we maintain condition record for tax calculation that condition record has validity period which we maintain in FV11
> 2. Is condition records mandatory for calculation of taxes.
If you are working with TAXINN which is condition record based tax procedure maintenance of Condition record is mandatory
With formula based TAXINJ procedure no need to maintain,
For more on this Topic read
http://wiki.sdn.sap.com/wiki/display/ERPLO/DifferencebetweenTAXINJandTAXINN
If this is mandatory , then how tax calculated for non material master items?
It all depends what access sequence you have assigned to your tax condition type
Lets take an example for Excise duty which is determined at material level
Ex1 >Condition type for Basic Excise duty is JMOP here we assign access sequence JTAX
Now to maintain condition record for JMOP you will find material,vendor.Plant (all defined in access sequence JTAX)
Ex 2>Now Say service tax condition type JSER (or what ever) which is not dependent on Material (as even Po without material master can have service tax)
So for service tax condition type we assign access sequence as MWST
which is defined only at country level
You can find all these settings under T.code OBYZ
I hope it clarifies your doubt at least to some extent
Revert back for any further clarification -
Reg: tax code and tax percentage
hi all,
i have tax code, from that how can i get the tax percentage
is there any table which maintain both tax code and tax %
thanks
sureshHi,
For calculating Tax you need to look into KONV table.
Based on the pricing conditions you need to calculate the Tax percentage.
you can just go the particular transaction for which you want to calculate the tax and there you
can find the prricing conditions declared under the tax based on which you will calculate the tax.
Regards,
Raj. -
Hi Experts,
Some Clients are posting Purchase order based on the Tax code 'CENVAT' for taking printing purpose but while GRPO they are making VAT based posting.
Issue is in 2007 B its not possible add or change tax code in GRPO from CENVAT to VAT code once item is posted.Tax code also not getting displayed .can any one give solution regarding this issue.
By
KartHi,
Actually you cannot post the GRPO of a excisable item without CENVAT tax code if you intend to do so then from the form settigs bring the column "excisable" and set it as "No" during the posting.
To change the GRPO, when you copy it from the P.O. Then go to the tax code field and change the tax code. It will allow you to change the tax code.
But can you please xplain what is the requirement or need to print the P.O in CENVAT and the GRPO with vat. As because logically you need not use a tax code in the P.O. But for excisable items you cannot post GRPO without proper excise postings.
Regards,
Raj -
Reg. Tax code in procedure TAXINJ is invalid
Dear Friends
discournt related condition type is working and the Billing also release but if I use addition related condition the billing is saved but do not get release.
the following error occured
Tax code in procedure TAXINJ is invalid
Message no. FICORE704
Diagnosis
The tax code entered is not defined in the country for this company code.
System Response
Procedure
Check and, if necessary, correct the entry.
Procedure for System Administration
If it is not an input error, check and possibly change the system settings.
To do this, choose Maintain entries (F5).
1. Check whether the required tax determination procedure is assigned to the relevant country. the Procedure field is in the detail screen.
2. Create a new tax code if required. ""
for discount I didn't create any tax code and condition in VK11 but working the same way I using positive type condition, it is not working that is unable to release, no accounting document created.
Pls advice
Rajakumar.KHi,
Please check the following configuration :-
1. Check the Tax code Assigned in the Condition Record of New Condition Type.
2. IMG > Financial Accounting (New) > Tax on Sales/Purchases > > Basic Settings > Assign Country to Calculation Procedure.
3. In FTXP , check the Tax Code assigned to the Country.
Best Regards,
Ankur -
Reg. Tax code in procedure TAXINJ is invalid during Billing release in VF0
dear friends
when I release the billing in VF02 I am getting the bellow error
"" Tax code in procedure TAXINJ is invalid
Message no. FICORE704
Diagnosis
The tax code entered is not defined in the country for this company code.
System Response
Procedure
Check and, if necessary, correct the entry.
Procedure for System Administration
If it is not an input error, check and possibly change the system settings.
To do this, choose Maintain entries (F5).
1. Check whether the required tax determination procedure is assigned to the relevant country. the Procedure field is in the detail screen.
2. Create a new tax code if required.""
and my procedure is
100 0 PR00 Price ERL
350 0 ZMRP MRP Price ERL
400 0 ZMRD Discount % from MRP 350 MWS
450 0 ZBED Basic Excise Duty 400 EXD
500 0 ZECE Education Cess 450 EXD
550 0 ZSHE Sec.Higher Edu.Cess 450 EXD
555 0 CR Price 100
650 0 Sub total 450 550
700 0 ZCST IN A/R CST 555 650 MWS
725 0 ZVAT IN A/R VAT 555 650 MWS
750 0 Total 555 725
800 0 Sales Revenue 750
if there is any logi problem pls advice me.
we enter manualy the MRP Price and doing discount 45% from that.
Thanks in advance
Rajakumar.kHi
There are couple of things you need to check.
1. In FTXP, if rates have been maintained against the AR Condition Types correctly
2. In VK11, you have maintained the settings for condition type UTXJ, which is important for TAXINJ
3. In Customer master, you have assigned the Tax Classification Key in Customer Sales Area data
Regards
Sanil Bhandari -
Reg:Frieght condition & Tax code
Dera experts,
I have an issue regrding frieght conditon.
While raising P.O in that i am including Frieght conditon on Value basis FRB1 i given 200 as a value & i click on detail button for assigning Frieght vendor as xxxx .now i saved the p.o.
Then i had made grn i.e MIGO in this frieght chagre also captured.
Then while doing MIRO system asking TAX code for the Freight ,here i hasd keyed V0 as no tax i.e Zereo tax & i simulated but noe system throwing Error message "Tax code V0 in Country IN does not exist in TAXINN".I had checked all configuration its already assigned to IN ,Company code & TAXINN .Pls suggest me how to solve the isssu.
Thanks In advance
VisuHi,
Please check first in access sequencs assigned to condition typs of TAXES ( not fright)
condition table 03 is inserted.(use Tcode OBYZ)
If it is there then -
Go to FV11
Select any condition type say JMOP.
for selection parametere as tax classification maitain ur tax code V0.
now again check MIRO.
regards,
sujit -
Reg:Condition types in Tax code
Dear all,
I'm Creating a new tax code for which I've to include my own condition type where can i do this juz give me the pathHi
Where are you planning to create Tax code? For PO you can create with the help of Txn code FTXP and assign your own percetange etc inside the condition types already existing.
If it is outside then you have to create a new conditon type, then use Txn M/06 .
Best Regards -
Calculation of tax via tax code
Dears,
There are some concepts about the pricing in PO that I never got it clear. I really appriciate it if someone can help me.
1. What is the base amount for calculate the tax via tax code?
In the invoice verification there often is a tax code in which a tax rate is decided. But what is the base amount of the tax? How does the system get the base amount from all kinds of conditions from purchase order? Does it related to the configuration in the condition type, or in the calculation schema?
I looked into the tax code configuration to find the base amount condition type as BASB without any access sequence. and for India there is a basetype 362 in the pricing schema. I can not understand the code in routine 362, and for example there even isn't a basetype in China. Then how does the system get the proper amount for calculate the tax?You can create the Reg Info with the Plant and this message will not happens...
-
Hi
We hv tax code in PO for an item. We do MIGO. When we try to do MIRO, after giving the PO no in MIRO, the PO line item is coming with the tax code in PO.
But in header data, basic data tab we hv a tx code filed and its not picking the tax code in PO line items. Its showing something diff.
We want the same PO tax code to be displayed here. How to do this?
VijayHi Vijay
In header either we can define a default tax code or else it will be blank if we do not maintain default taxcode when u do MIRO.
Clicking on calculate tax is more important for the tax to be calculated.
Also tax code is mandatory at line item level and it will be fetched from PO .
I suppose it will not get copied from PO in header level as for the same reason u have asked ie; if more than one PO with n number of line items then the logic wont work.
Reg
Raja -
Tax code determination using NAVS (ME21N)
Hi - We have managed to automate tax code determination in the PO line when posting via ME21N
We have a business scenario where some vendors in our German company code have the country (LFA1-LAND1) = CH in the master date(KNB1). However the VAT reg number for these vendors is German (Example: DE123456778)
The issue is we want to treat the purchases of goods/services from such vendors as 'domestic' (Import = 0) However during the PO creation the automatic tax determination is listing this as International (Import =2).
Has anyone come across this issue before? Is it possible to make any changes to the exit which determines the import indicator using T005-XGELD ?
AmarHi, thank you for your replies. Just to recap my issue :
In our German company code we have a vendor with country = 'CH' in the master data with VAT registration number DE1224323543 and supplies goods within Germany. However I investigated a bit further and would like to find out where the goods are dispatched from on the PO line. This brought me to the 'Import' tab on the PO line item under ORIGIN / DESTINATION / BUSINESS section. Where I see that the country of origin is listed as 'CH' instead of 'DE'
I am wondering if anyone knows how this field is populated ? -
Tax code V0 does not exist for jurisdiction code IN00
hi mm
when i am creating a purchase order
After creating the PO
when i go to invoice and enter tax code V0 and jurisdiction code i face the error
Tax code V0 does not exist for jurisdiction code IN00
Message no. FF718
Diagnosis
You have entered tax codes and jurisdiction codes in the G/L account items. The amounts of these items are used as the tax base to check the tax amounts you have entered or to determine the taxes. The system has now determined that one or more of the "tax code / jurisdiction code" combinations do not exist in Customizing.
System Response
Calculation of the taxes or checking of the taxes entered had to be terminated.
Procedure
Check the tax codes and the jurisdiction codes in the G/L account items or asset items. If these are correct, inform your system administrator.
Procedure for System Administration
Change the tax jurisdictions you specified in Customizing under Financial Accounting -> Financial Accounting Global settings -> Tax on Sales/Purchases -> Basic Settings -> Define Tax Jurisdictions
i have dne as per thr need in define Define Tax Jurisdictions
then also i am facing same error
Regards
VinitHi Vinith,
After maintaining the tax jurisdictions maintain/create the tax codes. Pls ensure tht created tax codes having field of jurisdictions code.
You created tax codes after tht you defined tax jurisdiction codes then you will get this kind of errors
Hope its clear still if u hve questions let me know.
reg
Durga
*assign points if the the info is useful -
Hi,
in MIRO we give the separate taxcodes on TAX tab and line items have differnt tax codes , and they are came from PO ,
in this situation syestem will pick the which one ?
from header of the invoice or from the PO ?
please give me an idea in this,
rgdsHi
In MIRO system will calculate tax according to the tax code in PO ie; the tax code in the lineitems in MIRO and also if the taxcodes are diff for the line items then the tax value field will disappear in the header, however taxes will get calculated in the MIRO transaction.
revert with ur comments
Reg
Raja -
Tax Code and Company Code assignment
Dear Experts,
Please let me know, whether is there any mandatory requirement to assign tax codes to company codes
Whereas we are using condition based tax procedure.. TAXINN
What are the implications and necessity to do the same..
Thanks in advance.Hi,
When you are using TAXINN assign the tax codes to company code in CIN settings. If you assign tax codes to company code in CIN, those tax codes we can use for the company code.
Based on country we will define taxcodes, in Company code country is assigned.
Hope its clear.
reg
Durga
*Assign points if info is useful
Maybe you are looking for
-
Bapi for vl01no create outbound delivery without order reference
Hi Guru's, i need help, I'm looking for BAPI VL01NO Any suggestions? Thanks for everything Edited by: GaBo_s Gabo on Sep 22, 2009 8:48 PM
-
Satellite P300 - Replacement mainboard part number
Hi, I recently broke my ac adapter and had it resoldered by my local store who did a poor job and consequently shorted the regulators on my motherboard. It's now dead and I need to find an inexpensive replacement motherboard. Would someone be able to
-
Hi, I have a query with variable, and I want to display a message to the user about the input, something like this (note the hint keyword): select * from emp where deptno = &<name="Department number" hint="Only employees from this department will be
-
I can't install any adobe programs!!!
Dear support! My problem is I can't install the Adobe programs from creative cloud. The story: When I try installing the premiere cs6 family the program dowloading, but not extract. Then I wrote a email the hungarian adobe distributor (designshop.hu)
-
Using prepareStatement for auto_increment value
How do we set a value for auto_increment field on MySQL stmt = con.prepareStatement("INSERT INTO member VALUES ( ?, ? ,? ....) ) ; stmt.setDate(1, new java.sql.Date(System.currentTimeMillis())); stmt.setInt(2, ????); if value 2 is autoincrement. How