UDF in Tax Code Form
Hi Everyone ,
I want to add a UDF in the Tax Code Form .
Table is OSTC .
But Unable to do the same.
Under Which Category i have to go for this.
Thanks
Ashish Ranjan
Hi Ashish........
In SAP under several tables you can not create UDF and OSTC is one of them.....
So unfortunately you can not create......
Regards,
Rahul
Similar Messages
-
Get Tax Code from PO to service entry sheet in ML81N
Hello,
I am looking for a suitable user exit/Badi, which would get the Tax code from Purchase Order to Service Entry Sheet (ML81N). Currently user changing the tax code manually in service number line item (ML81N). Here is the process we are following.
1. Create the PO with service number in ME21N.
2. Goto ML81N and selecting Other POs.
3. enter the PO and Service number . At this stage this line item should pull Tax code form PO. But it is defaulting with some value.
I tried with all ML81N exits and could not find the solution.
Please let me know the suitable Exit /Badi.
Appreciate your suggestions and Points will be rewarded.
Thanks in Advance.
LakshmiHi,
I think maintaining suitable Data Entry Profile will solve your problem. Take help from HR consultant.
SPRO->Cross Application Component->Timesheet->Specific Settings for CATS Classic->Setup Data Entry Profiles.
Regards -
UDF For Retrieving the Tax Code based on PO
Hi all,
Mine is a file to Idoc scenario.
I wrote a FM to retrieve the Tax Code based on PO .
Created the udf which directly gets the Taxcode from the r/3 with out importing in to the imported objects,is this correct i never tried this before.
Find the UDF for the Same.
final String CHANNEL_NAME = "GeneratedReceiverChannel_RFC",
VALNOTFOUND = "VALUE_NOT_FOUND",
SAPRFCNS = "urn:sap-com:document:sap:rfc:functions",
TAG_FM = "Z_P_INT012_RFC_LOOKUP",
TAG_TAX_CODE = "T_TAX_CODE",
TAG_TAX_CODE_P = "TAX_CODE";
AbstractTrace trace = container.getTrace();
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
factory.setNamespaceAware(false);
factory.setValidating(false);
try {
builder = factory.newDocumentBuilder();
} catch (Exception e) {
trace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
Document docReq = null;
try {
// Building up RFC Request Document
docReq = builder.newDocument();
Node root = docReq.appendChild(docReq.createElementNS(SAPRFCNS, TAG_FM));
Node nodeTbOpt = root.appendChild(docReq.createElement(TAG_TAX_CODE));
for (int i = 0; i < pernr.length; i++) {
Node nodeTbOptItem = nodeTbOpt.appendChild(docReq.createElement("item"));
nodeTbOptItem.appendChild(docReq.createElement(TAG_TAX_CODE_P)).appendChild(docReq.createTextNode(TAX_CODE<i>));
} catch (Exception e) {
trace.addWarning("Error while building RFC Request - " + e);
trace.addInfo("RFC Request XML: " + docReq.toString());
//trace.addWarning("RFC Request XML: " + docReq.toString());
// Lookup
Payload load = null;
try {
Channel channel = LookupService.getChannel(receiver[0], CHANNEL_NAME);
RfcAccessor accessor = LookupService.getRfcAccessor(channel);
InputStream is = new ByteArrayInputStream(docReq.toString().getBytes());
XmlPayload payload = LookupService.getXmlPayload(is);
load = accessor.call(payload);
} catch (LookupException e) {
trace.addWarning("Error during lookup - " + e);
// Parsing RFC Response Document
Document docRsp = null;
try {
docRsp = builder.parse(load.getContent());
} catch (Exception e) {
trace.addWarning("Error when parsing RFC Response - " + e.getMessage());
trace.addInfo("RFC Response XML: " + docRsp.toString());
//trace.addWarning("RFC Response XML: " + docRsp.toString());
try {
NodeList res = docRsp.getElementsByTagName("item");
for(int i=0;i<res.getLength();i++){
NodeList itemNodes = res.item(i).getChildNodes();
Map itemMap = new HashMap();
for(int j=0;j<itemNodes.getLength();j++){
itemMap.put(itemNodes.item(j).getNodeName(), itemNodes.item(j).getFirstChild().getNodeValue());
rows.add(itemMap);
catch (Exception e) {
trace.addWarning("Result value not found in DOM - " + e);
result.addValue("true");
Error:
16:24:08 Start of test
Source code has syntax error: /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors Source code has syntax error: /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors
16:24:11 End of test.Hi Potharaju,
Why don't you try this, that really works:
If you are using PI 7.1:
http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
If you are using XI 3.0, PI 7.0
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
Try with these.
Regards,
Juan -
Hi all,List of Sales Tax Codes in form using ActivateMenuItem
hI ALL,
If ((pVal.ColUID = "TaxCode") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) And (pVal.Before_Action = False)) Then
Dim oForm As SAPbouiCOM.Form
Dim ctr As Integer
oForm = SBO_Application.Forms.Item(FormUID)
oMatrix = oForm.Items.Item("38").Specific
Dim oItemcode As SAPbouiCOM.ComboBox
oItemcode = oMatrix.Columns.Item("TaxCode").Cells.Item(RowNum + 1).Specific
If oItemcode.Selected.Description = "Define New" Then
SBO_Application.ActivateMenuItem("15619")
End If
End If
i am using above code to activate my menu of tax code but i am getting error "menu not found"
i want this windows should open when user select define new in combo box at row level.
thanks in adva.
Regards
Rajkumar Gupta
Edited by: Rajkumar Gupta on Mar 9, 2009 8:37 AM
Edited by: Rajkumar Gupta on Mar 10, 2009 9:37 AM
Edited by: Rajkumar Gupta on Mar 10, 2009 9:42 AMHi Rajkumar,
If you want to open the Tax definition windows when the user selects the "Define New" option of your combobox, try this code:
If ((pVal.ColUID = "TaxCode") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) And (pVal.Before_Action = False)) Then
If oForm.Items.Item("MATRIX_ID").Specific.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific.Selected.Description() = "Define New" Then
oApplication.ActivateMenuItem("8458")
End If
Regards,
Vítor Vieira -
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 -
Can we set tax amount directly instead of tax code?
Hi,
Is there a way to set the TaxAmount value in an A/R Invoice document line object instead of tax code?
Thanks and Regards,
SheetalYou may only make it visible.
A workaround would be to create a UDF and use a Formated Search or update it by code. This is not recommended at all because the TAX code and amount is used on many other forms such as VAT Report, Jurnal Entries etc. If you do this make sure to also set the appropriate TAXCODE, and check that the amount is OK with the percentage of the certain TAXCODE. -
Formatted Search that will change the Tax code in SO.
Hi All,
I have a requirements that will allow me to change the Tax Code column via formatted search. Like for exmaple, i have 50 line items in SO and the tax code is ZO. If i want to change the tax code, i will select it for individual items. Anyone can help me to have an alternative solution that will prevent me to change it per item.?
thanks and regards,
vinHi Melvin........
You can have a work around for this....
Just create a UDF say U_Tax at Header level...
Just Create a FMS for Tax Code say..
SELECT * FROM OSTC T0
Save this tax code FMS to thus UDF.
When yo select a particular Tax Code in this Field through this saved FMS
this Tax Code gets copied to each and every line say for 100 lines also.
For this you have run other FMS which is below...
SELECT $[ORDR.U_Tax.0]
Save above FMS in tax Code field say in Sales Ordr form.
Now when you do this you can see if you have 100 line items and you want to copy same tax code in a single click you have to just select single tax code via FMS in U_Tax as i suggested.
The moment you select this Tax Other FMS will be fired and the same will be copied to other 100 lines....
Hope this will help you.....
Regards,
Rahul -
Calculation of Tax Issue from FB60 (Tax Code Issue)
Dear All,
Normally when we purchase or received any services we post following entry.
INVOICE VALUE IS 1000
Purchase Ac Dr 1000
To Vendor 900
T o Tax 100
But our requirement is that
Purchase Ac Dr 1100
To Vendor 1000
T o Tax 100
System should add cost of TAX in purchase instead of reduction form vendor balance as we have to give 1000 RS to vendor.
Can we create TAX code in this manner.
This is not even possible form function available in Edit Option in FB60 (Calculate tax on Net Amount)
Not even from TDS (Withholding tax)
WE CANu2019T SUGGEST POSTING JV IN THAT CASE.
Regards,
BittuApologized for that Atif.
Withholding Tax Type does not control Vendor line item.
My issue is that system should not reduce value enter in vendor amount field.
System usually reduce amount which is payable to vendor
Please see my example once again. I also mention that it is not working from Withholding Tax nor form Tax code(FTXP)
Edit option in FB60 is also not useful in this case.
Regards, -
Determinação da Tax Code no Fornecimento
Bom dia pessoal,
Quais são as configurações que determinam a tax code no fornecimento?
A sequência de determinação do código de imposto na J1BTAX está:
- Tabela de categorias de Item
- Informação de material do cliente
A J_1BSDICA está:
Tipo Doc. Cat. Item Tipo Item ID. Parceiro Cód. Imposto
YSFT YFDP 2 RE " " (este deverár variar entre alguns materiais)
Grato,
Gildo.Olá Gildo,
acredito que a forma standard de determinação do tax code se dá pelo item category realmente. Neste caso, você teria que lidar com diferentes item categories para poder efetuar esta customização na J_1BSDICA.
Ainda assim, é possível fazer o uso de 'user exits' para forçar a determinação de um tax code, de acordo com suas regras de negócio. Essa seria uma alternativa para seu caso. Uma SAP note de consulting que te indico como uma referência é a 1227831.
Abraços,
Felipe Silveira
Edited by: Felipe Silveira on Nov 4, 2010 2:51 PM -
A/P Invoice Tax amount by tax code wise
Hi All
How do we get a report for purchase tax amount per tax code based on A/P Invoice?
I have used OPCH and PCH4 tables to query but the number of rows are repeated in the report even when a tax code having a combination?
Please help me
thanks
SV ReddyHi SV.....
Try this.....
SELECT T0.[DocNum], T0.[DocDate], T0.NumAtCard As 'Bill No.', T0.[CardName], T1.[Dscription],
T1.[Quantity], T1.Price As 'Rate', T1.[LineTotal] As 'Value', T0.[DocTotal] As 'Total Value',
(ISNULL((SELECT SUM(T2.QUANTITY) FROM rpc1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetQTY,
(ISNULL((SELECT SUM(T2.LineTotal) FROM RPC1 T2 WHERE T2.DocEntry=T0.DocEntry),0)) RetValue,
(isnull((SELECT SUM((case when upper(t4.STACode) like 'BED%' then T4.TaxSum else 0 end))
FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ExciseDuty,
(isnull((SELECT SUM((case when upper(t4.STACode) like 'eCess%' then T4.TaxSum else 0 end))
FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) ECess,
(isnull((SELECT SUM((case when upper(t4.STACode) like 'hes%' then T4.TaxSum else 0 end))
FROM PCH4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) HEdCess, (isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'VAT12.5',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'VAT%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT4, (isnull((SELECT SUM((case when upper(t4.STACode)
like 'VAT%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0))VAT2, (isnull((SELECT SUM((case when upper(t4.STACode)
like 'CST%' and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST2',
(isnull((SELECT SUM((case when upper(t4.STACode) like 'CST%' and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM pch4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) As 'CST4', T2.TransCat As 'Form No.' FROM OPCH T0
INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH12 T2 ON T0.DocEntry = T2.DocEntry WHERE (T0.[DocDate]>='[%0]' and T0.[DocDate]<='[%1]')
Group By T0.[DocNum], T0.[DocDate], T0.NumAtCard , T0.[CardName], T1.[Dscription],
T1.[Quantity], T1.Price , T1.[LineTotal], T0.[DocTotal]
Regards,
Rahul -
Dear All,
We are using 2007 B - PL 7
We have created tax code as BED + VAT. But it is not showing in list of sales codes form while creating A/R Invoice. But it is available in Tax Code setup. Pl. any body can help in creating setup with Central excise and VAT in 2007 B
Thanks in advance
NarayananHi Venkatachalam Narayanan
In SAP 2007B PL07 if the item and the warehouse is excisable then only you can see in the list of BED+VAT(Cenvat category type of tax) in the marketing Document.
I hope you got the ans
Ashish Gupte -
Recurring Posting with Tax Code
Hi Experts,
When i am trying to execute a recurring posting with some Tax Code system is giving error "location is missing".
So kindly tell me is it not possible to execute a recurring posting with tax in SAP Business one
Thanks in AdvanceHello,
You should try directily select your reccuring template on JE form, because form also have Location fields in header and row level.
Actuly tax info(Sales tax information) totally depend of what is location you have selected.
then you will find easly your issue.
Thanks
Manvendra Singh Niranjan -
Short dump while PO creation with Tax Code
we are facing problem while creation PO, while providing the Tax code(Example V0), its going for short dump, check the below
the program SAPLV61Z and
The exception must either be prevented, caught within the procedure
"SEL_KONDTAB"
"(FORM)", or declared in the procedure's RAISING clause.
To prevent the exception, note the following:
Check the field names in the SELECT clause.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"SAPSQL_INVALID_FIELDNAME" CX_SY_DYNAMIC_OSQL_SEMANTICSC
"SAPLV61Z" or "LV61ZU01"
"SEL_KONDTAB"
The termination occurred in the ABAP program "SAPLV61Z" in "SEL_KONDTAB".
The main program was "RM_MEPO_GUI ".
The termination occurred in line 537 of the source code of the (Include)
program "LV61ZU01"
of the source code of program "LV61ZU01" (when calling the editor 5370).
Processing was terminated because the exception "CX_SY_DYNAMIC_OSQL_SEMANTICS"
occurred in the
procedure "SEL_KONDTAB" "(FORM)" but was not handled locally, not declared in
the
RAISING clause of the procedure.
The procedure is in the program "SAPLV61Z ". Its source code starts in line 254
of the (Include) program "LV61ZU01 ".
005360 IF se_read_all_prestep IS INITIAL.
> SELECT * FROM (t681-kotab) APPENDING TABLE <cond_tab>
005380 UP TO 1 ROWS
005390 WHERE kappl = se_kappl
005400 AND kschl = se_kschl
005410 AND datbi >= se_date
005420 AND datab <= se_date
005430 AND (coding_tab).
005440 h_subrc = sy-subrc.
In the above statement execution its going for dump, when the (t681-kotab) value is A980 when i checked at debugging
Kindly help me out to solve the issue
Thanks in advance
Regards
KesavHi,
Do you have an integer field in the condition table A980? It looks like a field in the table is integer one and the system during creation of custom dynamic select statement adds as many spaces as possible before the integer value (integer values are right justified), so the statement exceeds the maximum length with an 'AND' or another condition clause.
Please check and provide more details if the issue is not resolved.
Regards,
Marcin -
[Goods Receipt PO - Rows - Tax Code][line: 1]
Dear All,
At the time of opening GRPO and Delivery Document suddenly system giving one error Number was used up in this sequence [Message 80071-20]
And after it I entering required data in GRPO with any tax code then system giving new error [Goods Receipt PO - Rows - Tax Code][line: 1] , 'Internal error (-5) occurred' [Message 131-183]
I had verified that tax code which is selected in above GRPO is correct.
When I try to Add GRPO without Tax code then different error coming Internal error (-5) occurred [Message 131-183]
Thanks,
Siddique ShaikhDear Gordon,
Thanks for reply, I had setup the different sequence for all documents separately, But currently user using manual numbering option in Delivery and A/R Invoice Documents
I checked new think is that system giving me same error only when we opening form which is creating financial JE in Backhand, Means when I opening Purchase Order or Sales Order form then system not giving any error and we can save PO or SO
System is not allowing anybody to add any document which create financial effect.
Thanks,
Siddique. -
Not able to tag with holding tax code in customer master
Hi
while posting avance payments form customer i need to put tds amount in tds column.
for that iam trying to tag the withholding tax code in customer master.
but the Tax code field is greyed (blocked) and not able to edit.
Pls suggest what will be the wrong.
Regards,
MunirajHi
all the configurations are in order.
But the field tax field is blocked(greayed as uneditable)
this problem is from past 3 days only.
earlier i was able to edit and assign the tax code properly.
i dont know what has gone wrong in between.
Maybe you are looking for
-
OutBound IDoc for Material master
Hi everyone I need to send Material Masterdata whenever data is saved in MM01,MM02 using BTE1250 . I need to use function module MASTERIDOC_CREATE_REQ_MATMAS to send idoc. Can anyone please help me with a basic program/ code for sending Idoc using MA
-
Dear all, Can anyone give me the detailed explaination of MM-FI configuration or any links where we get the information about this please Thanks & Regards Somashekar Anand
-
Emac taking 1/2 hour to load, then system just freezes
Very recently, over the past couple of days, when I switch my eMac on it takes a good 20-30mins to load up. Then, when you try and open any application, eg. Safari, it just freezes and nothing works. You have to take the power cord out to turn the th
-
Copying start and end dates from service request contract to tasks
I am working on a logical apps program that is supposed to go to the service request screens and update the PLANNED_START_DATE and the PLANNED_END_DATE of a task for that service request on file JTF_TASKS_B with the start date and end date of the act
-
Hi guys, I have page that has this struct: <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <f:view xmlns:f="http://java.sun.com/jsf/core"