Taxcode in Purchase Order
Hi all,
Im using tax procedure TAXINN.
I have maintained condition records in FV11.
Now when i create a PO tax condition values comes from FV11 and im entering a taxcode in invoice tab.
My requirement is when user enters a taxcode in invoice tab system should check whether the taxcode in the condition record matches with this and trigger an error if it differs.
Basically the need for this is user enters some tax code in the PO and he maintains the condition records in FV11 with some other tax code and system is allowing this.
In OB40 i have maintained g/l accounts based on taxcode as rule and so if there is a mismatch of taxcode then user is getting problem while doing MIRO.
Any std process or user exit will be helpful.
Also now SAP recommends TAXINN and so im interested to know how u guys manage this in ur company.
Thx
Raja
Hi
System got disconnected and so i posted twice errorneously
Reg
Raja
Similar Messages
-
Purchase Order and Invoice creation
Hi All,
I am having some fields related to Purchase order and Invoice creation, i have to find out the tables to which tables these fields belongs to.
Below are the Header fields:
Wrbtr Tcode - MIRO,
Lfsnr Tcode - MIGO,
Evertn Tcode - Me32k,
Kbetr Tcode - Me32k,
Kschl Tcode - Mek1,
Selkz Tcode - Mek1,
Werks Tcode - Mek1,
Evart Tcode - Me31k,
Frgco Tcode - Me35k,
Sddat Tcode - Me35k,
Below are the Detail fields:
Kbetr Tcode - Mek1,
Konwa Tcode - Mek1,
Lgobe Tcode - Me21n,
Planloc Tcode - Me31k,
Datab Tcode - Mek1,
Datbi Tcode - Mek1,
Fromdate Tcode - Me31k,
Todate Tcode - Me31k,
i have to retrive all these fields from tables, so plz anybody give me exact tables to use in the select quries to retrive these fields.
Thanks in advance,
Balu.Hi,
U can get the req fields as follows:
Below are the Header fields:
1)Wrbtr Tcode - MIRO- table rseg ,field-wrbtr
give belnr (invoice no ) & BUZEI(item) if known, else, give ebeln,ebelp.
2)Lfsnr Tcode - MIGO,-table mkpf,give mblnr (mat doc no ) & ZEILE(item) field-xblnr or give ebeln,ebelp
3)Kbetr Tcode - Me32k,
table:konp or konv.
Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables- konp or konv,wil get kbetr.
4)Kschl Tcode - Mek1,
Pass ebeln,ebelp to table ekpo, get mwskx(taxcode), u will get condition type kschl from FM -FI_TAX_GET_CONDITION_TYPES.
or
table:konh or konp or konv.
Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables-konh or konp or konv, wil get kschl.
5)Werks Tcode - Mek1,-table-ekpo, field-werks(give ebeln,ebelp)
Below are the Detail fields:
1)Kbetr Tcode - Mek1,
Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables- konp or konv,wil get kbetr.
2)Konwa Tcode - Mek1,
Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables- konp or konv,wil get konwa.
3)Lgobe Tcode - Me21n,give ebeln.ebelp in table ekpo, get lgort.pass lgort to table t001l, u wil get lgobe.
4)Datab Tcode - Mek1,table-konh,field datab
Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in - konh ,wil get datab.
5)Datbi Tcode - Mek1,table-konh,field databi
Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in table- konh,wil get databi.
Hope its useful to u. -
Report to display purchase orders
Hi I am Venkat
can any one send me report to display a list of Purchase orders open for period more than one year. I need the following output fields to be dispayed are Vendor, Period, Purchasing organization, PO number, Document date, GR status, check boxi think this code will help u.
REPORT Z_PURCHASEU.
tables : ekko,vbrk,mara,rseg,lfa1,makt,konv,bseg,vbap,j_1iexhead.
data: begin of itab occurs 0,
qty like rseg-menge, "qty
bed like rseg-wrbtr, "bed(basic excise duty)
mwskz like rseg-mwskz, "tax code
cess like rseg-wrbtr, "cess
sum like rseg-wrbtr,
unit like rseg-bstme, "unit
belnr like rseg-belnr, "document number
lst_cst like rseg-wrbtr , "CST amount
amount like rseg-wrbtr, "amount
aedat like ekko-aedat, "po date
ebeln like ekko-ebeln, "po number
lifnr like ekko-lifnr, "vendor code
matnr like mara-matnr, "material code
maktx like mara-maktx, "material description
mtart like mara-mtart, "material type
vbeln like vbrk-vbeln, "bill number
fkdat like vbrk-fkdat, "bill date
name1 like lfa1-name1, "vendor name
kzwi1 like vbap-kzwi1, "basic value
end of itab.
select-options:
vendrcod for ekko-lifnr,
date for vbrk-fkdat,
matrtype for mara-mtart,
taxcode for rseg-mwskz.
select egmenge egwrbtr egmwskz egwrbtr egwrbtr egbstme eg~belnr
egwrbtr egwrbtr
koaedat koebeln ko~lifnr
into corresponding fields of table itab
from rseg as eg inner join ekko as ko on egebeln = koebeln
where
ko~lifnr in vendrcod And
eg~mwskz in taxcode.
*select-options:
vendrcod for ekko-lifnr,
date for vbrk-fkdat,
matrtype for mara-mtart,
taxcode for rseg-mwskz.
select abelnr amwskz amenge awrbtr into
*corresponding
*fields of table itab
*from rseg as a inner join bseg as b on
*awrbtr = bwrbtr where
*a~belnr in docment number and
*a~mwskz in tax code and
*a~menge in qty.
loop at itab.
write:/1 sy-vline,
2 itab-name1 , 18 sy-vline,
19 itab-lifnr , 30 sy-vline,
31 itab-aedat , 46 sy-vline,
47 itab-ebeln , 60 sy-vline,
61 itab-belnr , 80 sy-vline.
uline.
endloop.
write : /1 sy-vline,
2 'vendor name' , 18 sy-vline,
19 'vendor code' , 30 sy-vline,
31 'po date' , 46 sy-vline,
47 'po number ' , 60 sy-vline,
61 'document number', 80 sy-vline.
give points if useful. -
DTW Problem ---- Goods Receipt and Purchase Order
Hi Owen Slater and Suda
Your reply helped me a lot in loading in linking the GR with PO via DTW.But still i m having a small problem.
In Document_Lines of Purchase Order and Purchase Delivery Notes i specifed two Taxcode as "Exempt" and "VAT@4" under the column "Taxcode" and initially loaded the purchase order,the tax code get added correctly to the purchase order and when i tried to load the GR for the same line item with same tax code,the tax code is not getting added to the GR line item and the tax amount get deducted in the GR.
For more information: SAP Business One SDK
Edited by: Rui Pereira on Nov 7, 2008 1:23 PMPurchase Order Documents
Recordkey Cardcode DiscountPercent DocDate DocDueDate DocNum DocTotal
Recordkey Cardcode DiscountPercent DocDate DocDueDate DocNum DocTotal
1 AA01 0 20080912 20080912 1
oPurchaseOrder:Document_Lines
Recordkey LineNum AccountCode DiscountPercent ItemCode Linetotal Price Quantity Taxcode WarehouseCode
Recordkey LineNum AccountCode DiscountPercent ItemCode Linetotal Price Quantity Taxcode WarehouseCode
1 1211005 0 ITM01 850 45 VAT@4 Godown1
1 1211005 0 ITM02 750 55 VAT@4 Godown1
As per your suggestion i left the "DocTotal" column of PO --- Document and "Line Total" and "Line Num" column of PO ---Document_Lines as blank and also the Discount column is assigned to 0 and this get imported correctly.
oPurchaseDeliveryNotes:Documents
Recordkey Cardcode DiscountPercent DocDate DocDueDate DocNum DocTotal
Recordkey Cardcode DiscountPercent DocDate DocDueDate DocNum DocTotal
1 AA01 0 20080912 20080912 1
oPurchaseDeliveryNotes:Document_Lines
Recordkey LineNum AccountCode BaseEntry BaseLine BaseType DiscountPercent ItemCode Linetotal Price Quantity Taxcode WarehouseCode
Recordkey LineNum AccountCode BaseEntry BaseLIne BaseType DiscountPercent ItemCode Linetotal Price Quantity Taxcode WarehouseCode
1 1211005 1 0 22 0
1 1211005 1 1 22 0
When it is imported like this ,it get imported successfully.
But when i change the WarehouseCode or give new WarehouseCode in oPurchaseDeliveryNotes ---> Document_Lines
like this
oPurchaseDeliveryNotes:Document_Lines
Recordkey LineNum AccountCode BaseEntry BaseLine BaseType DiscountPercent ItemCode Linetotal Price Quantity Taxcode WarehouseCode
Recordkey LineNum AccountCode BaseEntry BaseLIne BaseType DiscountPercent ItemCode Linetotal Price Quantity Taxcode WarehouseCode
1 1211005 1 0 22 0 Godown1
1 1211005 1 1 22 0 Godown2
1)Here i m chaging the Warehousecode of ITM02 to Godown 2,its getting imported successfully.But when this imported record is viewed in Purchasing - A/P ->Goods Receipt PO of SAP B1 GUI , the matrix (GR_DocumentLines) does not have the taxcode i.e the TaxCode column is left empty.
2)Also even when the taxcode is specified under the oPurchaseDeliveryNotes_DocumentLines and importing the same problem occurs ,the matrix (GR_DocumentLines) does not have the taxcode i.e the TaxCode column is left empty when it is viewed through SAP B1 GUI.
Edited by: Rui Pereira on Dec 9, 2008 5:10 PM
Edited by: Rui Pereira on Apr 28, 2009 12:18 PM
Edited by: Paulo Calado on Jun 18, 2009 5:20 PM -
How to add Purchase Order entry using B1WS?
Hi,
I have implemented B1WS in DI server, I am trying to add purchase order entry, but after adding it via B1WS, I am not able to find entry in SAP;
My code using B1WS:
public void SAPPurchaseOrder(string _SID)
_PIService = new PurchaseInvoicesService();
Document doc = new Document();
doc.Address ="ab";
doc.AgentCode = "ab";
doc.BaseAmountSCSpecified = false;
doc.CardCode = "VEND7";
doc.CardName = "Baker & Taylor";
doc.DocDate = DateTime.Now.Date;
doc.CreationDate = DateTime.Now.Date;
doc.DocType = DocumentDocType.dDocument_Items;
doc.DocumentStatus = DocumentDocumentStatus.bost_Open;
doc.BaseAmount = 100000;
doc.DocCurrency = "USD";
MsgHeader msgHeader = new MsgHeader();
msgHeader.SessionID = _SID;
msgHeader.ServiceName = MsgHeaderServiceName.PurchaseInvoicesService;
msgHeader.ServiceNameSpecified = true;
_PIService.MsgHeaderValue = msgHeader;
_PIService.Add(doc);
Also, I found error while I have use "ADD FUNCTION" as;
can not empty list of tables, doc1, doc3 and doc10
Please suggest me a proper entry flow or code to implement.
Thank you.
Piyush
(Rob IT team - Parabox Media Group)Hello,
Just like DI API, you need add doc lines to purcahse order, here is a sample to add a purchase order.
Public Function Add() As DocumentParams
Dim myPOParams As DocumentParams = Nothing
Try
' Create Input parameters
Dim poDoc As Document = New Document
poDoc.DocDueDate = Date.Now
poDoc.CardCode = "V10000"
Dim docLine1 As DocumentDocumentLine = New DocumentDocumentLine
docLine1.ItemCode = "A00001"
docLine1.Quantity = 1
docLine1.TaxCode = "NY"
poDoc.DocumentLines = Array.CreateInstance(docLine1.GetType(), 2)
poDoc.DocumentLines.SetValue(docLine1, 0)
Dim docLine2 As DocumentDocumentLine = New DocumentDocumentLine
docLine2.ItemCode = "A00002"
docLine2.Quantity = 1
docLine2.TaxCode = "NY"
poDoc.DocumentLines.SetValue(docLine2, 1)
' Create Service
myPOService = New PurchaseOrdersService
' Create Header
Dim msgHeader As MsgHeader = New MsgHeader()
msgHeader.SessionID = GlbData.sessionID
msgHeader.ServiceName = MsgHeaderServiceName.PurchaseOrdersService
msgHeader.ServiceNameSpecified = True
myPOService.MsgHeaderValue = msgHeader
' Call command with output return
myPOParams = myPOService.Add(poDoc)
MsgBox("Purhcase Order added: " + myPOParams.DocEntry.ToString(), MsgBoxStyle.DefaultButton2)
Catch ex As System.Exception
MsgBox(ex.Message, MsgBoxStyle.DefaultButton2)
End Try
Return myPOParams
End Function
Kind Regards
-Yatsea -
Add Invoice from Purchase Order
Hi experts,
I add the Button in Purchase order .and bind the Vendor codes and items, qty, price in matrix(Purchase order matrix) . Now i want to add the Invoice separately for all vendors who are exist in row level when i click the userdefined button in Purchase order (I need not to open a Invoice). How is it possible
With Best Regards,
M.Thippa ReddyHi Vassu,
Thanks for your reply. I use the following code for adding the invoice but i getting error"-5002 Chooseb BP is not a custome [OINV.Cardcode]{Line:1], "V1010"
Please rectify me i am done any mistake.
Dim RetVal As Long
Dim ErrCode As Long
Dim ErrMsg As String
'Create the Documents object
Dim vInvoice As SAPbobsCOM.Documents
vInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
'Set values to the fields
vInvoice.Series = 0
vInvoice.CardCode = "V1010"
'vInvoice.HandWritten = "No"
vInvoice.DocNum = 84
vInvoice.PaymentGroupCode = "-1"
vInvoice.DocDate = System.DateTime.Today.Date
vInvoice.Lines.ItemCode = "A00001"
' vInvoice.Lines.ItemDescription = "Banana"
vInvoice.Lines.TaxCode = "NY"
vInvoice.Lines.Quantity = 50
'vInvoice.Lines.DiscountPercent = 10
vInvoice.Lines.UnitPrice = 5.0
vInvoice.Lines.Add()
'Add the Invoice
RetVal = vInvoice.Add
'Check the result
If RetVal <> 0 Then
oCompany.GetLastError(ErrCode, ErrMsg)
MsgBox(ErrCode & " " & ErrMsg)
End If
Regards,
M.Thippa Reddy -
BAPI for updating tax code for purchase order..
Hi friends,
I have one requirement to change tax code for multiple Purchase order but the
thing is they should not go for release.So what should I prefer BDC or BAPI.
I am thinking to implement it through BAPI, but I don't know what procedure to follow.
If somebody can provide me a small guiding steps or code then it will be very helpful for me..
Thnaks in advance..
Useful answers will be rewarded with points....
Regards,
Rajesh AkarteHi Friend,
BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
BAPI_ACC_PURCHASE_ORDER_POST Accounting: Post Purchase Order
MEWP BAPIs Purchase order
BAPI_PO_CREATE Create Purchase Order
BAPI_PO_GETDETAIL Display Purchase Order Details
BAPI_PO_GETITEMS List Purchase Order Items
BAPI_PO_GETITEMSREL List Purchase Orders for Release (Approval): New as of 4.0A
BAPI_PO_GETRELINFO Display Detailed Release (Approval) Information on Purchase Order
BAPI_PO_GET_LIST List Purchase Orders - Only up to 4.0A
BAPI_PROCOPERATION_GETCATALOGS Determine Valid Catalogs as Value Help
BAPI_PROCOPERATION_GETINFO Analysis of Objects to be Generated in Purchasing
<b>AND</b>
Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions. Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level. Search for the transaction ME21.Double click on ME21. Then search for TaxCode
Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions.
A2: Go to IMG.
Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level.
Search for the transaction ME21.Double click on ME21. Then search for TaxCode. It is advisable to configure also the info record. The tax code should be a required entry, and whatever you specify here will be the default value in the Purchase order.
Materials Management -> Purchasing -> Purchasing info record -> define screen layout.
When you get here you search for the transaction ME12 ,double click here; search for Input VAT indicator.
Regards ,
Kumar. -
Error in DTW while importing purchase order
Dear Experts,
when trying to import purchase order ( Documents and Documents lines) ends up with an error
key: DocEntry
Reason: Vendor record not found application - defined or object defined error 65171
Please help
Regards
Jijoi had to possible import data, i add some additional fields. here i attached latest sample data
Documents_lines:-
RecordKey LineNum DiscountPercent ItemCode UnitPrice Quantity TaxCode
RecordKey LineNum DiscountPercent ItemCode UnitPrice Quantity TaxCode
1 2 12.1 8500 1 [email protected]
2 2 12.2 1200 1 [email protected]
3 2 12.3 2200 1 [email protected]
Documents:-
RecordKey DocEntry CardCode DocDate DocDueDate DocType
RecordKey DocEntry CardCode DocDate DocDueDate DocType
1 2 V01 20090626 20090626 dDocument_Items
2 3 V01 20090626 20090626 dDocument_Items
3 4 V01 20090626 20090626 dDocument_Items
Thank you for you valuable information Kind co operation
Regards
JIjo -
Tax calculation in Purchase order
Hi,
i had created new key combination vandor/taxcode/plant/material for maintaining tax. Tax rate maintain in fv11 for this combination. But in Purchase order this value of this rate is not populating in tax procedure.
Thank's & Regard's
Parag LuteHello
Go to OBYZ and select Access seq and select your access sequence and go to access tab on the left.
In that check whether your key combination is there.also select your combination and click on fields tab also.
Then come back to the access page and check whether the eclude tick is checked for the combination given by you. if so remove the tick and save.
Hope this helps
Regards
Gregory Mathews -
Hi All,
iam developing a webservice using DI-server in my asp.net application to access my sap company DB.now i have to create a purchase order...can anybody give me some web service coding about how to create a purchase order.....(like creating new customers & updating them...)
Regads,
Shangai.Hi Shangai
Below is my sample code about how to add a jornal voucher via DIServer.
You can add a purchase order in the similar way,the only thing need to be changed is
the SOAP message format.
' add journal voucher
'<WebMethod()> Public Function AddJV(ByVal SessionID As String, _
' ByVal xmlJVObject As String) As Xml.XmlDocument
<WebMethod()> Public Function AddJV(ByVal SessionID As String) As Xml.XmlDocument
Dim n As SBODI_Server.Node
Dim s, sCmd As String
Dim d As Xml.XmlDocument
d = New Xml.XmlDocument
n = New SBODI_Server.Node
sCmd = "<?xml version=""1.0"" encoding=""UTF-16""?> "
sCmd += "<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/""> "
sCmd += " <env:Header> "
sCmd += "<SessionID>" & CStr(SessionID) & "</SessionID>"
sCmd += " </env:Header> "
sCmd += " <env:Body> "
sCmd += "<dis:AddObject xmlns:dis=""http://www.sap.com/SBO/DIS"" > "
sCmd += "<BOM>"
sCmd += "<BO>"
sCmd += "<AdmInfo>"
sCmd += "<Object>oJournalVouchers</Object> "
sCmd += "</AdmInfo> "
sCmd += "<JournalEntries>"
sCmd += "<Row>"
sCmd += "<ReferenceDate></ReferenceDate>"
sCmd += "<Memo>TEST</Memo>"
sCmd += "<DueDate>20080325</DueDate>"
sCmd += "</Row>"
sCmd += "</JournalEntries> "
sCmd += "<JournalEntries_Lines> "
sCmd += "<Row>"
sCmd += "<AccountCode>111101</AccountCode> "
sCmd += "<Debit>100</Debit>"
sCmd += "</Row>"
sCmd += "<Row>"
sCmd += "<AccountCode>111101</AccountCode>"
sCmd += "<Credit>100</Credit>"
sCmd += "</Row>"
sCmd += "</JournalEntries_Lines>"
sCmd += "</BO> "
sCmd += "</BOM> "
sCmd += "</dis:AddObject> "
sCmd += " </env:Body> "
sCmd += "</env:Envelope> "
s = n.Interact(sCmd)
d.LoadXml(s)
Return (RemoveEnv(d))
End Function
I posted the xml template format of purchase order here.
<?xml version="1.0" encoding="utf-8" ?>
- <BOM>
- <BO>
- <AdmInfo>
<Object>oDocuments</Object>
</AdmInfo>
- <QueryParams>
<DocEntry />
</QueryParams>
- <Documents>
- <row>
<DocNum />
<DocType />
<HandWritten />
<Printed />
<DocDate />
<DocDueDate />
<CardCode />
<CardName />
<Address />
<NumAtCard />
<DocCurrency />
<DocRate />
<DocTotal />
<Reference1 />
<Reference2 />
<Comments />
<JournalMemo />
<PaymentGroupCode />
<DocTime />
<SalesPersonCode />
<TransportationCode />
<Confirmed />
<ImportFileNum />
<SummeryType />
<ContactPersonCode />
<ShowSCN />
<Series />
<TaxDate />
<PartialSupply />
<DocObjectCode />
<ShipToCode />
<Indicator />
<FederalTaxID />
<DiscountPercent />
<PaymentReference />
<Form1099 />
<Box1099 />
<RevisionPo />
<RequriedDate />
<CancelDate />
<BlockDunning />
<Pick />
<PaymentMethod />
<PaymentBlock />
<PaymentBlockEntry />
<CentralBankIndicator />
<MaximumCashDiscount />
<Project />
<ExemptionValidityDateFrom />
<ExemptionValidityDateTo />
<WareHouseUpdateType />
<Rounding />
<ExternalCorrectedDocNum />
<InternalCorrectedDocNum />
<DeferredTax />
<TaxExemptionLetterNum />
<AgentCode />
<NumberOfInstallments />
<ApplyTaxOnFirstInstallment />
<VatDate />
<DocumentsOwner />
<FolioPrefixString />
<FolioNumber />
<DocumentSubType />
<BPChannelCode />
<BPChannelContact />
<Address2 />
<PayToCode />
<ManualNumber />
<UseShpdGoodsAct />
<IsPayToBank />
<PayToBankCountry />
<PayToBankCode />
<PayToBankAccountNo />
<PayToBankBranch />
<BPL_IDAssignedToInvoice />
<DownPayment />
<LanguageCode />
<TrackingNumber />
<PickRemark />
<ClosingDate />
<SequenceCode />
<SequenceSerial />
<SeriesString />
<SubSeriesString />
<SequenceModel />
<UseCorrectionVATGroup />
<VatPercent />
</row>
</Documents>
- <Document_Lines>
- <row>
<LineNum />
<ItemCode />
<ItemDescription />
<Quantity />
<ShipDate />
<Price />
<PriceAfterVAT />
<Currency />
<Rate />
<DiscountPercent />
<VendorNum />
<SerialNum />
<WarehouseCode />
<SalesPersonCode />
<CommisionPercent />
<TreeType />
<AccountCode />
<UseBaseUnits />
<SupplierCatNum />
<CostingCode />
<ProjectCode />
<BarCode />
<VatGroup />
<Height1 />
<Hight1Unit />
<Height2 />
<Height2Unit />
<Lengh1 />
<Lengh1Unit />
<Lengh2 />
<Lengh2Unit />
<Weight1 />
<Weight1Unit />
<Weight2 />
<Weight2Unit />
<Factor1 />
<Factor2 />
<Factor3 />
<Factor4 />
<BaseType />
<BaseEntry />
<BaseLine />
<Volume />
<VolumeUnit />
<Width1 />
<Width1Unit />
<Width2 />
<Width2Unit />
<Address />
<TaxCode />
<TaxType />
<TaxLiable />
<BackOrder />
<FreeText />
<ShippingMethod />
<CorrectionInvoiceItem />
<CorrInvAmountToStock />
<CorrInvAmountToDiffAcct />
<WTLiable />
<DeferredTax />
<NetTaxAmount />
<NetTaxAmountFC />
<LineTotal />
<TaxPercentagePerRow />
<ConsumerSalesForecast />
<ExciseAmount />
<CountryOrg />
<SWW />
<TransactionType />
<DistributeExpense />
<ShipToCode />
<RowTotalFC />
<CFOPCode />
<CSTCode />
<Usage />
<TaxOnly />
<UnitPrice />
<LineStatus />
<LineType />
<COGSCostingCode />
<COGSAccountCode />
<ChangeAssemlyBoMWarehouse />
<U_BLD_LyID />
<U_BLD_NCps />
</row>
</Document_Lines>
- <Document_LinesAdditionalExpenses>
- <row>
<LineNumber />
<GroupCode />
<ExpenseCode />
<LineTotal />
<TaxLiable />
<VatGroup />
<TaxPercent />
<TaxSum />
<DeductibleTaxSum />
<TaxCode />
<TaxType />
<EqualizationTaxPercent />
<EqualizationTaxSum />
<WTLiable />
<BaseGroup />
</row>
</Document_LinesAdditionalExpenses>
- <WithholdingTaxLines>
- <row>
<WTCode />
<WTAmountSys />
<WTAmountFC />
<WTAmount />
<TaxableAmountinSys />
<TaxableAmountFC />
<TaxableAmount />
<AppliedWTAmountSys />
<AppliedWTAmountFC />
<AppliedWTAmount />
<BaseDocEntry />
<BaseDocLine />
<BaseDocType />
</row>
</WithholdingTaxLines>
- <SerialNumbers>
- <row>
<ManufacturerSerialNumber />
<InternalSerialNumber />
<ExpiryDate />
<ManufactureDate />
<ReceptionDate />
<WarrantyStart />
<WarrantyEnd />
<Location />
<Notes />
<BatchID />
<SystemSerialNumber />
<BaseLineNumber />
</row>
</SerialNumbers>
- <BatchNumbers>
- <row>
<BatchNumber />
<ManufacturerSerialNumber />
<InternalSerialNumber />
<ExpiryDate />
<ManufacturingDate />
<AddmisionDate />
<Location />
<Notes />
<Quantity />
<BaseLineNumber />
</row>
</BatchNumbers>
- <DocumentsAdditionalExpenses>
- <row>
<ExpenseCode />
<LineTotal />
<Remarks />
<DistributionMethod />
<TaxLiable />
<VatGroup />
<TaxPercent />
<TaxSum />
<DeductibleTaxSum />
<TaxCode />
<TaxType />
<EqualizationTaxPercent />
<EqualizationTaxSum />
<BaseDocEntry />
<BaseDocLine />
<BaseDocType />
<LastPurchasePrice />
<Stock />
<WTLiable />
</row>
</DocumentsAdditionalExpenses>
- <WithholdingTaxData>
- <row>
<WTCode />
<WTAmountSys />
<WTAmountFC />
<WTAmount />
<TaxableAmountinSys />
<TaxableAmountFC />
<TaxableAmount />
<AppliedWTAmountSys />
<AppliedWTAmountFC />
<AppliedWTAmount />
<BaseDocEntry />
<BaseDocLine />
<BaseDocType />
</row>
</WithholdingTaxData>
- <TaxExtension>
- <row>
<TaxId0 />
<TaxId1 />
<TaxId2 />
<TaxId3 />
<TaxId4 />
<TaxId5 />
<TaxId6 />
<TaxId7 />
<TaxId8 />
<TaxId9 />
<State />
<County />
<Incoterms />
<Vehicle />
<VehicleState />
<NFRef />
<Carrier />
<PackQuantity />
<PackDescription />
<Brand />
<ShipUnitNo />
<NetWeight />
<GrossWeight />
<StreetS />
<BlockS />
<BuildingS />
<CityS />
<ZipCodeS />
<CountyS />
<StateS />
<CountryS />
<StreetB />
<BlockB />
<BuildingB />
<CityB />
<ZipCodeB />
<CountyB />
<StateB />
<CountryB />
</row>
</TaxExtension>
</BO>
</BOM>
You can also get the template by GetBusinessObjectTemplate method.(oPurchaseOrders)
<WebMethod()> Public Function GetTemplate(ByVal SessionID As String, ByVal ObjectType As String) As Xml.XmlDocument
Dim n As SBODI_Server.Node
Dim s, strXML As String
Dim d As Xml.XmlDocument
d = New Xml.XmlDocument
n = New SBODI_Server.Node
strXML = "<?xml version=""1.0"" encoding=""UTF-16""?>" & _
"<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
"<env:Header>" & _
"<SessionID>" & CStr(SessionID) & "</SessionID>" & _
"</env:Header>" & _
"<env:Body>" & _
"<dis:GetBusinessObjectTemplate xmlns:dis=""http://www.sap.com/SBO/DIS"">" & _
"<Object>" & CStr(ObjectType) & "</Object>" & _
"</dis:GetBusinessObjectTemplate>" & _
"</env:Body></env:Envelope>"
s = n.Interact(strXML)
d.LoadXml(s)
Return (RemoveEnv(d))
End Function -
How to get Tax condition's of Purchase Order
Dear Gurus
How to get all the condition types for purchase order listed in the screen where we navigate from
Purchase Order->purchase order item->invoice->Taxes Push button
And I' am not saying about header conditions which we get from KONP.
I' am saying about tax conditions which will get only by entering taxcode in item Invoice tab of Purchase order item.
Regards,
RajeswarHi,
Tax condtions shd be given by functional consultants.ABAPers cant decide the tax condtions.
you can have these condtions in KONV table.
In item level vbrp-posnr = konv-kposn.
ekpo-ebelp = konv-kposn
at header level as said in the below thread
Just see this and get back if any concerns
Regards
Edited by: Rasheed salman on Dec 2, 2008 6:20 AM
Edited by: Rasheed salman on Dec 2, 2008 6:22 AM -
Default tax code in Purchase Order
hi,
somehow, is it possible to get default tax code (at "Item overview" under "Invoice"), as soon as enter material group (or by other means) in purchase order?
thanksDear Yogi,
Sorry, for posting in to Closed thread.
I had visited your same thread in to MM-Forum. Apart, whatever, suggestions have been provided, you may give a try to:
To default the taxcode in the purchase order item, use Condition Type: NAVS, with Access Sequence: 0003
Path: SPRO -> IMG -> Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level
T. Code: ME21 and Double click. Look for TaxCode. The tax code should be a required entry, and whatever you specify here will be the default value in the Purchase order.
It is advisable to configure also the info record.
Path: SPRO -> IMG -> Materials Management -> Purchasing -> Purchasing info record -> Define screen layout.
When you get here you search for the T. Code: ME12 (Change Purchasing Info Record), and double click here; search for Input TAX indicator.
You may also seek Advise from MM-Consultants, over this, by referring the whole solution in to your MM-thread.
Best Regards,
Amit -
Hi All,
I have a scenario for Purchase Order, where in case of Import, when the doc currency is USD, the tax code should always be "exempt" and even if the user tries to change the tax cde to any other, he/she should not be able to do so.
Please suggest an SP for this.
Thanks in advance,
JosephOk......
Then try this one...
If @object_type='22' and @transaction_type in ('A','U')
BEGIN
If Exists (Select T1.TaxCode from [dbo].[OPOR] T0 Inner Join POR1 T1
On T0.DocEntry=T1.DocEntry
Where T0.Series=132 and T0.Currency='USD' and T1.TaxCode!='Exempt'
And T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
Select @error = -1,
@error_message = 'Please check the Tax Code'
End
End
Hope it will work......
Regards,
Rahul -
Payment by letter of Credit against Purchase order
When we are purchasing from Foreign Vendors , we need to open a Letter
of credit (LC) .
Depending on the terms of Purchase order , Vendor will discount it /get
payment from Bank on submitting LC and other necessary documents.
Vendor's Bank, at appropriate Time will send the same to Customer's Bank
How to mapped this scenario in SAP-MM and FI .
Activities required to be updated against Purchase order :
(1) Payment Terms : 100 % against LC on delivery
(2) History should reflect LC opened - Date and Bank Name which
Vendor has suggested, our company's Bank Name
(3) LC discounted details
(4) LC payment due date to our company Bank - as Procurement needs
to inform to Finance for this.
Any help will be highly appreciated.
Thanks and Best Regards,When we are purchasing from Foreign Vendors , we need to open a Letter
of credit (LC) .
Depending on the terms of Purchase order , Vendor will discount it /get
payment from Bank on submitting LC and other necessary documents.
Vendor's Bank, at appropriate Time will send the same to Customer's Bank
How to mapped this scenario in SAP-MM and FI .
Activities required to be updated against Purchase order :
(1) Payment Terms : 100 % against LC on delivery
(2) History should reflect LC opened - Date and Bank Name which
Vendor has suggested, our company's Bank Name
(3) LC discounted details
(4) LC payment due date to our company Bank - as Procurement needs
to inform to Finance for this.
Any help will be highly appreciated.
Thanks and Best Regards, -
my client requirement is status of the po till payment i want to generate a sap query any body pls guide me purchase order ->down payment ->goods reciept-> invoice verification -> vendor payment
i want to generate this report vendor wise as well as the material and po
pls give me indetails tables and fields
advance thanks for kind replyhi,
Seelct EKBE u2013 EBELN, LIFNR
Where EKEB- BUKRS Eq (Company Code entered in the selection screen)
EKBE u2013 BEDAT Eq (Purchasing Document Date entered in the selection screen)
Select all EKBE u2013 EBELN in to EKBE
Invoice and GRN Document Number: -
Select EKEB-BELNR, BUDAT, DMBTR, WRBTR, WAERS
Where EKBE u2013 EBELN Eq EBELN Entered in the selection screen
EKBE u2013 GJAHR Eq GJAHR Entered in the selection screen
EKBE u2013 BUDAT Eq BUDAT Entered in the selection screen
EKBE u2013 VGABE Eq 1 (Goods Receipt) (in case of Invoice GRN)
EKBE u2013 VGABE Eq 2 (Invoice Receipt) (in case of Invoice MIRO)
Eenter all EKBE u2013 BELNR into BKPF and select BKPF- BELENR, WAERS
BKPF - BUKRS Eq BUKRS Entered in the selection screen
BKPF u2013 GJAHR Eq EKBE - GJAHR
BKPF u2013 BUDAT Eq EKBE - BUDAT
BKPF u2013 AWKEY Eq EKBE u2013 BELNR + GJAHR
Eenter all BKPF u2013 BELNR into BSEG and select BSEG u2013 BELENR, DMBTR
BSEG - BUKRS Eq BKPF - BUKRS
BSEG u2013 GJAHR Eq BKPF - GJAHR
BSEG u2013 BUDAT Eq EKBE - BUDAT
BSEG- BELNR Eq BKPF u2013 BELNR
For Payment Document Select BSEG u2013 AUGBL
Where BSEG- BELNR Eq BKPF u2013 BELNR
BSEG - BUKRS Eq BKPF - BUKRS
BSEG u2013 GJAHR Eq BKPF - GJAHR
BSEG u2013 BUDAT Eq EKBE - BUDAT
Eenter all BSEG u2013 AUGBL into BSEG and select BSEG u2013 BELENR, DMBTR ,
Where BSEG u2013 BELNR Eq BSEG - BSEG u2013 AUGBL
For Advance Payment Document Select BKPF u2013 BELNR, WAERS and KURSF
Where BKPF - BUKRS Eq BUKRS Entered in the selection screen
BKPF u2013 GJAHR Eq EKBE - GJAHR
BKPF u2013 BUDAT Eq EKBE - BUDAT
BKPF u2013 TCODE Eq FBA7 and FBA6
Enter all BKPF u2013 BELNR into BSEG and select BSEG u2013 BELENR, DMBTR ,
Where BSEG- BELNR Eq BKPF u2013 BELNR
BSEG - BUKRS Eq BKPF - BUKRS
BSEG u2013 GJAHR Eq BKPF - GJAHR
Reagrds,
Rama Mohan
Maybe you are looking for
-
I get a black screen instead of my bookmark list when I click on bookmarks icon
BookThis happened suddenly. I can still access my bookmarks by going to the Bookmarks(top of screen)/Bookmarks Bar/then pull-down Alice's Bookmarks from that to access my bookmarks. However, I have to keep the cursor pushed down, cannot rearrange th
-
Long-running transactions and the performance penalty
If I change the orch or scope Transaction Type to "Long Running" and do not create any other transaction scopes inside, I'm getting this warning: warning X4018: Performance Warning: marking service '***' as a longrunning transaction is not necessary
-
Cannot Connect to App Store / Establish Secure Server Connection
I've seen a lot of posts on this: App Store Error: "Cannot Connect to the App Store" (No Internet Connection) Google (or any other https://) Site Error: "Cannot Establish a Secure Server Connection" My OS is 10.8.5. Obviously, I've checked that I hav
-
Hi, Friends, In PO i maintained Rs 100 and given 20/- discount and my price also appearing as 80 as net value is showing in PO . But when i do MIGO it is posting as 100/- to Inventory why it is happening ? My doubt is there is one setting in sub tota
-
Bypass password login for user group on windows 7 machines via windows server 2003?
My management dislikes always having to log-in to a computer via passwords. To them, it's considered an inconvenient and one more thing to remember along side business. Therefore, they've asked if I can set the systems up to have which ever users sel