Gross Total
Hi,
In Marketing documents i.e GRPO or APinvoice there is a filed called Gross price & Total Gross Price.
What is the use of these fields?
I was in the impression that unitprice and tax amount gives Gross price and Total + Tax amount gives Total Gross amount (LC). but Gross price and Total gross price is showing different figures.
Kindly let me knw regarding this. Is there any config settings to be done?
Regards
Shashi
Hi,
Gross Price shows the Unit Price+Tax, Total Gross amount (LC) shows the Gross Price*Quantity.
Regards,
Nat
Similar Messages
-
Gross total in A\R invoice in Poland Localization
Hello,
There are a lot of a\r invoices with diffrence between gross total in row and the document total in Poland company (Poland localization). There are no discounts or something like that in documents, the totals must be the same. Moreover, when the documents were created (in 2009) the totals were the same.
Can you explain it?
Thanks,
EvaHello Eva,
Have you done any upgrades this year? What is your current version and PL?
Thanks,
Gordon -
Po list showing the total amount with advances given & open GR quantity
Hi Gurus,
My client need to know the list of total p/os showing its gross total amount only (& not with the line items) with the advances rendered to them & its open GR quantity against total qunatity mentioned.
I hv tried in ME80FN, ME2N, ME2L ME2M..etc and all other reports but the system is showing the same with the line items. Kindly advise.
Regds
Prashant BijutkarPrashant,
All three informations will not be available in one report(gross total amount not with the line items and the advances rendered to them & its open GR quantity against total qunatity mentioned).
You have to dovelop this report. please take help from technical consultant.
One more thing the open GR quantity will always at PO line item level not at header level.
Regards,
Manish -
Gross Price Calculation problem
Dear Experts,
I'm facing one problem for gross price in Quotation as below, pl let me know the reason for the same.
1) I'm using SAP 2007 B PL 07
2) in doc settings, i've ticked "Include tax in Quotation" option for Sales Quotations
In a sale quotation for an item, following are row details
Qty - 10
Unit Price - 100
Discount - 0
Price After Discount - 100
Tax Amt - 217.4 (this is BED@8EC@2HEC@1[email protected])
Gross Price - 123.5
Here, how gross price is coming as 123.5? shouldn't it be as 100 + tax amt per item i.e.217.4/10 = 21.74
hence gross price should have as 100 + 21.74 = 121.74.
But system is showing it as 123.5 I'm just not able to understand this.
pl. help asap.
thanks in advance.kaps
you are right, sorry for that, may be i was in hurry to reach the client
any ways as far as your problem is concerned the only thing you can do is please refer this note
In the India localizations, the values of the "Gross Price" and "Gross Total" fields are not correct for marketing documents. For example:
If you change the value of the "Tax Amount" field, the values of the "Gross Price" and "Gross Total" fields remain unchanged.
If a tax code contains a tax type with the "Included in Price" property, the application displays incorrect values in the "Gross Price" and "Gross Total" fields.
Solution
This is a known problem for the India and Brazil localizations. Currently, avoid using the "Gross Price" and "Gross Total" fields. The fixed solution will be provided in a future patch or release.
hope you got it now
Rizz -
Pricing Totals not appearing in B2C web shop
Hello All,
We are using list prices in product catalog and in B2C web shop.
We are unable to see the pricing totals in the save order screen.The pricing totals and prices are appearing in in the back end(SAP GUI).
Could any one suggest where do we have to make the necessary settings?
Thanks in advance,
SastriDear Yanamandra,
If you are using list price your gross total also will be the same as list price.
And for this you have to switch off the IPC in XCM settings and have to replicate the catalog properly in TREX server.
Otherwise if you are using a customer pricing procedure to calculate the prices and there are other additional prices which have to be added to the list price at the time of pricing.
Then you should activate the IPC and also your VMC should be active in the CRM s/m, and also if you are using any customized user exit that also should be implemented.
hope this clarifies your doubt.
Thanks and Regards
shanto aloor -
Sales Quotation module total figure mismatch
Hi Rahul,
There is mismatch in total figure between Grand Total LC and Total field. I will send u again the screenshot attached file in ur email address. Please check it out.Hi SHailesh......
It was my mistake that I was asking you to check wrong field. You have to check PriceAfVAT field in QUT1 Table.
Please check the following query......
SELECT T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.Quantity, T1.Price,
T1.[PriceAfVAT], T1.[GTotal],
T1.[VatPrcnt] as 'Tax Rate Per Row'
FROM OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry
Above Report will give you the idea about the Gross Total.....
Regards,
Rahul -
Regarding Total Net salary of Active emp
Hi All,
How do we find the total montly salary and annual salary of active Emp?
Is there any information regarding Hike percentage of emp?
Regards
Raju Mummiditotal Monthly salary means are u takeing abt the
Gross total /101 or net total /560
please let us know and if u want to know the Annual Salary
Check IT0008 there at the bottom u will find the Feild Called Annual Salary there u can get thte Monthly salary
But if u want the total annaul salary than it depends upon the configuration ????
as we have /TPA total Package wage type by this u can have the information
but it depends upon the indirecr valiation bases lot of work shd be done in order to acheive it -
Dynamic Rows in Report Painter
Hello everyone,
I'm new to report painter and m using the SAP Library help material to understand report painter. I've one query though i.e
Is it possible to create a report hrough report painter with dynamic rows ? if yes then pls let me know how.
Regards
AnikThank you.
See I have the below Rows
Total Revenue
Cost2
Cost3
Direct Cost
Gross = Total revenue - Direct Cost
Gross % = (Gross/Total revenue ) * 100
I have Columns as with basic Key figures and Formulas
Year(basic key Figure)
Year+1(basic key Figure)
Total = Year + (Year+1)
Its giving me correct values in case of Basic Key figures and not in the formula case.
It giving error when there is formula both in Row and Column.
In the above case last row and last colum. Only Column formula is getting implemented.
Here for example I have mentioned 4 rows and 4 columns.. But I have 15 Rows and 30 columns .. out of which 15 rows and columns have formulas...
% Rows are problem.. which gives me errors... I tried using Special cells, but I am not 100% sure how to use them.
I would be very thankful if you can help me out.. Please -
Hi All
I am Abinas working at TCS India as SAP functional and on a project of US, wondering if could get some help and guidance on US payroll midyear go live wage types and data take-on strategy.
Regards,
AbinasHi,
For doing successful Mid year Go-live for US Payroll. You have to use Schema "U250" and the following wage type we have to maintain in respctive tables. T558D. The below wage type you should have to maintain.
/101 Total gross amount
/102 Current remuneration SI
/103 One-time SI payment
/106 Regular gross tax amount
/111 Other gross tax amount
/113 Sev.yr gross tax amount
/118 Current ins.ind.
/120 Other insurance ind.
/124 M.insurance ind.
/126 Tax-free DBA
/127 Tax-free ATE
/154 Progression clause
/159 Gross trade tax
/160 Mutual indem.soc. - gross
/175 Onetime payment SI CrPrp
/176 Other tax gross crtn prp
/201 Average bases
/202 Average bases
/261 Employee SI shares
/264 Tax-free ER HI allowance
/265 taxable EE SI shares
/310 HI est.gross curr.remun.
/311 PI est.gross curr.remun.
/312 UI est.gross curr.remun.
/313 HI est.gross curr.total
/314 PI est.gross curr.total
/316 PI GrAssessAmtIncrease ER
/317 PIGrAssessAmtIncrease EE
/318 PI increase ER
/319 SR stat.PI supp. OP ER
/31A RWH PI est.gr.PH day(cur)
/31B BWP HI est.gr.PH day(cur)
/31C RWH HI est.gross (curr)
/31D BWP HI est.gross (curr)
/31E RWH PI est.gr.PH day(cur)
/31F BWP PI est.gr.PH day(cur)
/31I RWH UI est.gr.PH day(cur)
/31J BWP UI est.gr.PH day(cur)
/31M RHC PI est.gross DUEVO
/31N BWP PI est.gross DUEVO
/31O RWH UI est.gross DUEVO
/31P BWP UI est.gross DUEVO
/320 HI est.gross 1-time paym.
/321 PI est.gross 1-time paym.
/322 UI est.gross 1-time paym.
/323 HI est.gross 1-time total
/324 PI est.gross 1-time total
/329 SR stan. PI ***.gr.OO ER
/32E HI gross curr. PT EE
/32F HI gross OP part-time EE
/32G PI gross reg. PT EE
/32H PI gross OP PT EE
/32I PI gross reg. PT EE liab
/32J PI gross OP PT EE liable
/32K PI supp. PT EE liable
/32L PI supp. part-time EE
/333 HI est.gross total pre.yr
/334 PI est.gross total pre.yr
/339 SR stand.PI asGr.suppl.
/340 PR diff. AAT HI curr.year
/341 PR diff. AAT PI curr.year
/342 PR diff. AAT UI curr.year
/346 PR diff. AAT HI prev.year
/347 PR diff. AAT PI prev.year
/348 PR diff. AAT UI prev.year
/349 SR standard OP correction
/350 HI EE share, curr.remun.
/351 HI ER share, curr.remun.
/352 HI EE share, 1-time paym.
/353 HI ER share, 1-time paym.
/356 HI EE share, prev.year
/357 HI ER share, prev.year
/358 ER HI allowance
/359 ER allow.HI private supp.
/35A RWH HI ER share pub.hol.
/35B BWP HI ER share pub.hol.
/35C RWH HI ER share (curr.)
/35D BWP HI ER share (curr.)
/35E RHC ER HI allowance
/35F BWP ER HI allowance
/35J ded.contrib.HI addit. 1
/35K ded.contrib.HI addit. 2
/35L ded.contrib.HI addit. 3
/35M ded.contrib.HI addit. 4
/35N ded.contrib.HI addit. 5
/35R WCC HI ER share (curr.)
/35S WCC ER HI allowance
/35V WCC ES ER HI share
/35W HI ER cont. reg. PT EE
/35X HI ER cont. OP PT EE
/360 PI EE share curr.remun.
/361 PI ER share curr.remun.
/362 PI EE share 1-time paym.
/363 PI ER share 1-time paym.
/366 PI EE share prev.year
/367 PI ER share prev.year
/368 ER PI allowance
/369 ER allowance, limited PI
/36A RWH PI ER share pub.hol.
/36B BWP PI ER share pub.hol.
/36C RWH PI ER share (curr)
/36D BWP PI ER share (curr)
/36E RHC ER PI allowance
/36F WC ER PI allowance
/36J ded.contrib. PI supp. 1
/36K ded.contrib. PI supp. 2
/36L ded.contrib. PI supp. 3
/36M ded.contrib. PI supp. 4
/36N ded.contrib.PI supp. 5
/36P PI increase share ER
/36Q Increase supplement ER
/36R BWP allow.PI ER share
/36S WC allow.PI ER share
/36T SR stan.PI ER sh.supp.OP
/36U SR stan.PI ER sh.supp.
/36V WCC ES PI ER share
/36W PI ER cont. reg. PT EE
/36X PI ER cont.reg.PT EE liab
/36Y PI ER cont.reg.PT EE liab
/36Z PI EE supp. PT EE liable
/370 UI EE share curr.remun.
/371 UI ER share curr.remun.
/372 UI EE share 1-time paym.
/373 UI ER share 1-time paym.
/376 UI EE share prev.year
/377 UI ER share prev.year
/378 ER UI allowance
/37A RHC UI ER share pub.hol.
/37B WC UI ER share pub.hol.
/37W PI ER cont. OP PT EE
/37X PI EE cont.OP PT EE liab
/37Y PI ER cont.OP PT EE liab
/381 Ded.contrib.voluntary HI
/389 EE expenses for PI
/399 PI ER liable share limit.
/3A0 Semiret.free supp.
/3A1 SR stan. free suppl.PYr
/3A2 SR stan.suppl.prev.year
/3AA PI semiret.supp.ER
/3AB PI SR gr.***.amt.supp.ER
/3DA SR stat. PI suppl. ER
/3DB SR stat. PI gross supp.ER
/3DC SR stat.PI suppl.OP ER
/3DD SR stat.PI gross.OPsuppER
/3DE SRstat.pr diff.AAT PI y-0
/3DF SR stat. pr diff. AAT y-1
/3DG SR stat. free supplement
/3DH SR stat. free supp. PY
/3DI SR stat.supp.prev.year
/3DJ SR stat. PI ER sh. supp.
/3DK SR stat. PI ER sh.supp OP
/3DL SR stat.PI ER sh.suppOPPY
/3DM SR stat. OP correction
/3DN SR stat. ER bonus suppl.
/3DP SR stat.PI gr.supp.OP PY
/3KA HI RHC g.a.a.total
/3KB PI RHC g.a.a.total
/3KC NI RHC g.a.a.total
/3KD HI BWP g.a.a.total
/3KE PI BWP g.a.a.total
/3KF NI BWP g.a.a.total
/3KG HI BWP g.a.a.total
/3KH PI BWP g.a.a.total
/3KI NI BWP g.a.a.total
/3KJ BWP HI gr.***.amt.(curr)
/3KK BWP PI gr.***.amt.(curr)
/3KL BWP NI gr.***.amt.(curr)
/3P8 PR diff.AAT NI curr.year
/3P9 PR diff.AAT NI prev.year
/3PA NI est.gross curr.remun.
/3PB NI est.gross curr.total
/3PC NI est.gross 1-time paym.
/3PD NI est.gross 1-time total
/3Q0 NI EE share curr.remun.
/3Q1 NI ER share curr.remun.
/3Q2 NI EE share one-time pay.
/3Q3 NI ER share one-time pay.
/3Q6 NI EE share prev.year
/3Q7 NI ER share prev.year
/3Q8 ER NI allowance
/3Q9 ER NI allow.private supp.
/3QA RHC NI ER share pub.hol.
/3QB BWP NI ER share pub.hol.
/3QC RHC NI ER share (curr.)
/3QD BWP NI ER share (curr.)
/3QE RHC ER NI allowance
/3QF WC ER NI allowance
/3QR Ded.contrib./voluntary NI
/3QT WCC NI ER contrib. (reg.)
/3QU WCC ER NI allowance
/3QV WCC AA ER NI contrib.
/401 current employment tax
/402 other employment tax
/404 m.employment tax
/408 Lump-sum employ tax/ER
/409 Lump-sum employ tax/EE
/40B curr.reunification tax
/40C m.reunification tax
/40D Lump-sum reunif.tax/EE
/40E Lump-sum reunif.tax/ER
/40F other reunification tax
/411 Compensation lock
/412 Number of interruptions
/41C BMG §40(2) S.2
/431 ***. exemption comp.
/441 tax-free transport allow.
/447 ***.EE discounts
/448 ***.exemption/car
/449 ***.exemption/cap.form.
/44G Tax-ex. §3 Nr39 PT EE
/491 CTax EE (current+other)
/492 CT/spouse (current+other)
/493 CTax EE (m.+half)
/494 CT/spouse (m.+half)
/4KG Child allowance
/521 current church tax
/522 other church tax
/524 m.church tax
/528 CTax lump-sum ER
/529 CTax lump-sum EE
/611 Supp. 1 sem.ret.
/612 Supp. 2 sem.ret.
/61A SR stat. supplement 1
/61B R stat. supplement 2
/692 RHC payment effected
/693 BWP payment effected
/69Z RHC/BWP legal Payment
/329 SR stan. PI ***.gr.OO ER
/340 PR diff. AAT HI curr.year
/341 PR diff. AAT PI curr.year
/342 PR diff. AAT UI curr.year
/3A0 Semiret.free supp.
/3AB PI SR gr.***.amt.supp.ER
/3DB SR stat. PI gross supp.ER
/3DD SR stat.PI gross.OPsuppER
/3DE SRstat.pr diff.AAT PI y-0
/3P8 PR diff.AAT NI curr.year
/431 ***. exemption comp.
After maintaining the these wage type you have to run the payroll which i have specified schema "U250"
Any further clarifications please revert back me.
Warm Regards,
Devi., -
Error While validating Form 24Q
Dear Experts.
We have implemented the note-2003817 (Dependent Note - 1886576) for the validation error ""T-FV-4064. Invalid Salary Details Record length" . The Note has been implemented successfully, but after implementing, we got the another error " T-FV-4023 'Income chargeable under the head Salaries (332-333)' not equal to difference of 'Total Salary 332' - 'Gross Total of 'Total Deduction under section 16' under associated Salary Details-Section 16 Detail'" for all the employees.
Can anybody please suggest any notes released recently by SAP for the above issue.
The FVU Version used : 4.2 (TIN-NSDL)
It is very urgent as this should be filed within a week..
Please help me out.
Thanks
SAP JOYHi,
Here is a suggestion, if you are on ECC 6, the form HR_IN_TAXF16NX_P and HR_IN_TAXF16000Y are not delivered. You need to copy it from client 000. Check if these forms are present in your client.
I had the same problem with ECC 6, when the forms were copied from 000, the error was rectified.
Hope it helps. -
Power Pivot - Calculating Exchange Rates depending on MONTH
Hello everyone, I have a question, would like to know if someone can help me figuring out a solution. I have created a spreadsheet using powerquery and powerpivot. Loading the data on powerquery from different spreadsheets was a charm, the problem is calculating
the exchange rates per month. Let me try to explain better;
The structure is as following:
I have 3 tables, they are:
Dates– Just a dates (loaded directly on PowerPivot).
Invoice – Details of invoices for all customers, gross totals are in different rates (loaded through power query)
Customer – Detailed information of customers (loaded directly on PowerPivot).
Currency – exchange rates (loaded directly on PowerPivot).
Note: I mentioned where they were loaded because I do not know if that really matters, I guess it does not... but extra information will not hurt. Now, let's go to how these tables are connected between each other and their key columns:
The Invoice table has information on invoices dates, invoice gross total and customer code. This table is related to Customer table, which has the actual name of customers and other details. This link is done through the Customer Code column. The Currency
table have a relationship with the Customer Table through the Country Column.
What I want to achieve is a formula to do the exchange rate based on the Invoice Date column present on the Invoice Table. So I have created a column on the Currency Table named at each month of the year and populated it with the exchange rates for all countries
(countries listed using ISO3 format).
My problem is while I am able to select a column from the Currency table to do the exchange rate calculation using the below formula, I fail to realize how to do it per month:
=CALCULATE(sum(invoice[Gross Value])*SUM(Currency[Reverse]))
*Reverse is the column with the exchange rate for the country money to USD
What I am failing to do is how to make that calculation to also consider the month of the invoice and pull the exchange rate for the same month from the Currency table… something like:
Get the invoice date then find the column on Currency[Month] and multiply, providing me the USD amount.
I was unable to figure out a solution using the filters parameters from Calculate. If some of you ask why I am using SUM inside Calculate, is because if I only use SUM and try to do the math between the two tables I get an error saying that it was not possible
to determine the value on Currency[Reverse]. Same happens with SUMX. It worked out with Calculate, but then I cannot create other formulas using CALCULATE on that table because it will give that error on redundancy, unless I add a filter on it, which worked
last time (but I do not remember which thing /parameter used to filter, so do not ask it right now :D)
To be honest… I do not really need that level of accuracy, but my Virgo perfectionist side demands me to find a solution to that, that will not use a single exchange rate, but consider which is the correct exchange rate for the month of the invoice and calculate
it correctly for all invoices. Just so you know, the Invoices tables has more than 1million lines.
Anyone know how to crack this problem or can point me to some site where I can learn how to do it?
Thanks for the time reading all of this, even if you cannot help, I really appreciate it ;)Hi Estevao,
Having problems to understand how you managed to combine your currency table with the customer table by Country ID. Where’s the 1-side of this relation (many customers in the same country and many months for the same currency)?
Anyway: Seeing that you already use Power Query, I’d suggest that you prepare your data in a way that you can connect your currency table with your invoice table instead of with your customer table. Create a field in your Invoice Table
that concatenates Customers CountryID&Month.
Imke -
Percentage Rows in Report painter .. Urgent Please
Hi All,
I have rows where I need to calculate percentages, Can you please advise how to calculate.
Loong Hin Pang - I have seen you answering one related query. Can you please help me out.
Points for sure...
Regards,
Kiran.Thank you.
See I have the below Rows
Total Revenue
Cost2
Cost3
Direct Cost
Gross = Total revenue - Direct Cost
Gross % = (Gross/Total revenue ) * 100
I have Columns as with basic Key figures and Formulas
Year(basic key Figure)
Year+1(basic key Figure)
Total = Year + (Year+1)
Its giving me correct values in case of Basic Key figures and not in the formula case.
It giving error when there is formula both in Row and Column.
In the above case last row and last colum. Only Column formula is getting implemented.
Here for example I have mentioned 4 rows and 4 columns.. But I have 15 Rows and 30 columns .. out of which 15 rows and columns have formulas...
% Rows are problem.. which gives me errors... I tried using Special cells, but I am not 100% sure how to use them.
I would be very thankful if you can help me out.. Please -
Please excuse the formatting as I am not sure why the forum is bunching everything together and not putting my query in code format.
Hi All,
We are using SAP B1 2007 A SP01 PL05
I am having a problem with getting a query to run in SAP with parameter selections. The query below runs fine as is however once I add date parameters which look like this
AND T2.[DocDate] >= '[%0]' AND T2.[DocDate] <= '[%1]'
I start getting errors. The first error I got was RIGHT.CardCode could not be bound once I removed the parameter and added them again I got an error Conversion failed when converting datetime from character string. I then removed the parameters again and added them once more and got another error An expression of non-boolean type specified in a context where a condition is expected. I saved the query and logged out and logged back in and ran it again and now am getting the error RIGHT.CardCode could not be bound again.
Could someone please have a look at this and try and help me get this running as I want to add more parameters where you can select the Customer Group and the Item Group as well.
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName, T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description', T7.ItmsGrpNam, T1.Quantity, T0.Price AS 'Unit Price (List)', T0.Price * T1.Quantity AS 'Gross Total', T1.LineTotal / T1.Quantity AS 'Unit Price (Doc)', T1.LineTotal AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN
INV1 AS T1 ON T0.ItemCode = T1.ItemCode INNER JOIN
OINV AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
OPLN AS T3 ON T0.PriceList = T3.ListNum INNER JOIN
OCRD AS T4 ON T2.CardCode = T4.CardCode INNER JOIN
OCRG AS T5 ON T4.GroupCode = T5.GroupCode INNER JOIN
OITM AS T6 ON T1.ItemCode = T6.ItemCode INNER JOIN
OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
UNION ALL
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName, T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description', T7.ItmsGrpNam, - (1 * T1.Quantity) AS Quantity, - (1 * T0.Price) AS 'Unit Price (List)', - (1 * (T0.Price * T1.Quantity)) AS 'Gross Total', - (1 * (T1.LineTotal / T1.Quantity)) AS 'Unit Price (Doc)', - (1 * T1.LineTotal) AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN
RIN1 AS T1 ON T0.ItemCode = T1.ItemCode INNER JOIN
ORIN AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
OPLN AS T3 ON T0.PriceList = T3.ListNum INNER JOIN
OCRD AS T4 ON T2.CardCode = T4.CardCode INNER JOIN
OCRG AS T5 ON T4.GroupCode = T5.GroupCode INNER JOIN
OITM AS T6 ON T1.ItemCode = T6.ItemCode INNER JOIN
OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
Any help will be greatly appreciated.Try this one:
Declare @d1 datetime
Declare @d2 datetime
set @d2=/*Select T2.DocNum from oinv T2
where T2.Docdate between [%0] and */[%1]
set @d1=[%0]
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName,
T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description',
T7.ItmsGrpNam, T1.Quantity, T0.Price AS 'Unit Price (List)',
T0.Price * T1.Quantity AS 'Gross Total',
T1.LineTotal / T1.Quantity AS 'Unit Price (Doc)', T1.LineTotal AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN INV1 AS T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OINV AS T2 ON T1.DocEntry = T2.DocEntry
INNER JOIN OPLN AS T3 ON T0.PriceList = T3.ListNum
INNER JOIN OCRD AS T4 ON T2.CardCode = T4.CardCode
INNER JOIN OCRG AS T5 ON T4.GroupCode = T5.GroupCode
INNER JOIN OITM AS T6 ON T1.ItemCode = T6.ItemCode
INNER JOIN OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
and T2.Docdate between @d1 and @d2
UNION ALL
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName,
T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description',
T7.ItmsGrpNam, - (1 * T1.Quantity) AS Quantity,
- (1 * T0.Price) AS 'Unit Price (List)',
- (1 * (T0.Price * T1.Quantity)) AS 'Gross Total',
- (1 * (T1.LineTotal / T1.Quantity)) AS 'Unit Price (Doc)',
- (1 * T1.LineTotal) AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN RIN1 AS T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN ORIN AS T2 ON T1.DocEntry = T2.DocEntry
INNER JOIN OPLN AS T3 ON T0.PriceList = T3.ListNum
INNER JOIN OCRD AS T4 ON T2.CardCode = T4.CardCode
INNER JOIN OCRG AS T5 ON T4.GroupCode = T5.GroupCode
INNER JOIN OITM AS T6 ON T1.ItemCode = T6.ItemCode
INNER JOIN OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
and T2.Docdate between @d1 and @d2
Sometimes SBO does not manage correctly variables in complicated queries and there is a note about the workaround to solve the problem:[Note730960|https://websmp130.sap-ag.de/sap/bc/bsp/spn/sapnotes/index2.htm?numm=730960] -
Runtime error when executing driver program
when im executing my report after passing smartform to it , by giving invoice number in selectionscreen,it's generating runtime error as
the call to the function module '/1BCDWB/SF00000032' is incorrect:
in the function module interface, u can only specify fields of a specific type and
length under "s_final".although the currently specified field " " is the correct type,
it's length is incorrect.
i declared s_final in forminterface->tables as s_final like zform1.
i defined zform1 with fields which are in t_final.
please suggest where im going wrong.
TYPES : BEGIN OF TY_FINAL,
VBELN TYPE VBRP-VBELN,"INVOICE NO
ADRNR TYPE KNA1-ADRNR, "ADDRESS FOR CONSIGNEE
BSTKD TYPE VBKD-BSTKD, "PO NUMBER
BSTDK TYPE VBKD-BSTDK, "PO DATE
ARKTX TYPE VBRP-ARKTX, "DESCRITION
PACK TYPE I, "NO OF PACKAGES
UMREZ TYPE SMEINH-UMREZ, "AVG. CONTENTS PER PACKAGE IN KGS
FKIMG TYPE VBRP-FKIMG, "TOTAL QTY IN KGS
KNUMV TYPE KONV-KNUMV,
KBETR TYPE KONV-KBETR, "SELLING RATE/KG
KBETR1 TYPE KONV-KBETR,
KWERT TYPE KONV-KWERT,
TARIFF TYPE ZFORM1-TARIFF,
DUTY TYPE ZFORM1-DUTY,
AMOUNT TYPE ZFORM1-AMOUNT,
END OF TY_FINAL.
TYPES : BEGIN OF TY_ITEM,
VBELN TYPE VBRP-VBELN,"INVOICE NO
POSNR TYPE VBRP-POSNR,
ARKTX TYPE VBRP-ARKTX, "DESCRITION
FKIMG TYPE VBRP-FKIMG, "TOTAL QTY IN KGS
BSTKD TYPE VBKD-BSTKD, "PO NUMBER
BSTDK TYPE VBKD-BSTDK, "PO DATE
AUBEL TYPE VBRP-AUBEL,
AUPOS TYPE VBRP-AUPOS,
END OF TY_ITEM.
DATA : FM_NAM TYPE RS38L_FNAM VALUE '/1BCDWB/SF00000032'.
DATA :IT_ITEM TYPE TABLE OF TY_ITEM,
W_ITEM TYPE TY_ITEM,
W_FINAL TYPE TY_FINAL,
T_FINAL TYPE TABLE OF TY_FINAL,
P TYPE I VALUE 250, "total quantity.
TOTALDUTY TYPE I VALUE 0,
CESS TYPE I,
EDCESS TYPE I,
VAT TYPE I,
FREIGHT TYPE I,
GROSSTOTAL TYPE I,
TOTAL TYPE I,
PONUMBER TYPE VBKD-BSTKD, "PO NUMBER
PODATE TYPE VBKD-BSTDK, "PO DATE
ZTERM TYPE VBKD-ZTERM, "PAYMENT TERMS
INVOICENO TYPE VBRP-VBELN.
PARAMETERS : XVBELN TYPE VBELN.
SELECT VBELN
POSNR
ARKTX
FKIMG
AUBEL
AUPOS
FROM VBRP
INTO CORRESPONDING FIELDS OF TABLE IT_ITEM
WHERE VBELN = XVBELN AND UEPOS = '000000'.
LOOP AT IT_ITEM INTO W_ITEM.
*INVOICE NO
MOVE W_ITEM-VBELN TO INVOICENO.
*DESCRIPTION
MOVE W_ITEM-ARKTX TO W_FINAL-ARKTX.
**TOTAL QUANTITY IN KGS
MOVE W_ITEM-FKIMG TO W_FINAL-FKIMG.
*PO NUMBER
SELECT SINGLE BSTKD FROM VBKD
INTO W_ITEM-BSTKD
WHERE VBELN EQ W_ITEM-AUBEL.
MOVE W_ITEM-BSTKD TO PONUMBER.
*PO DATE
SELECT SINGLE BSTDK FROM VBKD
INTO W_ITEM-BSTDK
WHERE VBELN EQ W_ITEM-AUBEL.
MOVE W_ITEM-BSTDK TO PODATE.
SELECT SINGLE KNUMV FROM VBRK INTO W_FINAL-KNUMV WHERE VBELN = W_ITEM-VBELN.
**SELLING RATE/KG
SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KBETR WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'PR00'.
**TOTAL TARIFF VALUE
W_FINAL-TARIFF = W_FINAL-KBETR * W_ITEM-FKIMG.
SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KWERT WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'JEXT'.
*TOTAL DUTY PAYABLE
W_FINAL-DUTY = W_FINAL-KWERT / 10.
**AMOUNT
W_FINAL-AMOUNT = W_FINAL-TARIFF + W_FINAL-DUTY.
*TOTAL DUTY FOR CESS&EDCESS
TOTALDUTY = TOTALDUTY + W_FINAL-DUTY.
APPEND W_FINAL TO T_FINAL..
CLEAR W_FINAL.
*WRITE : /10 W_ITEM-ARKTX,
30 W_ITEM-FKIMG,
60 W_FINAL-KBETR,
90 TARIFF,
120 DUTY,
160 AMOUNT.
ENDLOOP.
*SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KWERT WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'ZECS'.
*MOVE W_FINAL-KWERT TO CESS.
*SELECT SINGLE KBETR FROM KONV INTO W_FINAL-KWERT WHERE KNUMV = W_FINAL-KNUMV
AND KPOSN = W_ITEM-POSNR AND KSCHL = 'ZECX'.
*MOVE W_FINAL-KWERT TO EDCESS.
*CESS
CESS = TOTALDUTY * 2 / 100.
*EDCESS
EDCESS = TOTALDUTY * 1 / 100..
*TOTAL VALUE AT FOOTER
TOTAL = W_FINAL-AMOUNT + CESS + EDCESS.
*VAT
VAT = TOTAL * 4 / 100.
*FREIGHT
*GROSS TOTAL
GROSSTOTAL = TOTAL + VAT.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSF_SD_INVOICE1'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAM
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAM
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
TOTALDUTY = TOTALDUTY
CESS = CESS
EDCESS = EDCESS
TOTAL = TOTAL
PONUMBER = PONUMBER
PODATE = PODATE
GROSSTOTAL = GROSSTOTAL
VAT = VAT
INVOICENO = INVOICENO
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
S_FINAL = T_FINAL
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi,
U need to fill the ref_fieldname and ref_tabname or the cfieldname, ctabname for currency fields and qtabname and qfieldname for quantity fields in fieldcatalog.
santhosh
Message was edited by:
Kaluvala Santhosh -
To prepare VAT Register -India Localization , how / from where to pull data
A VAT Register report is required as featured below with the selection criteria/parameters and column names.
1. Output VAT Register Report Detailed with From Date and To Date Selection Range
Document Number Document Date Customer Name Customer VAT Reg No Base Document Total Vat Amount Vat Rate Gross Total
Which table (s) has / have the VAT information stored under India localization - 2007B running on MSSQL 2005.
Thank youHI Joy,
We are using this SP as Purchase Register to get the details of not only vat, but BED, Ecess, Cess and Cst. I have called this SP in SAP through Biz-reporter add on.
Create PROC [dbo].[PurchaseRegister1]
@DATEFROM datetime,
@DATETO datetime
AS
SELECT DISTINCT T0.DOCENTRY, T0.[DOCNUM], T1.[DSCRIPTION],T1.[ITEMCODE],
CONVERT(VARCHAR(10), T0.[DOCDATE], 3) AS DOCDATE , T1.[QUANTITY], T1.[PRICE], T1.[TAXCODE], T1.[VATSUM],
( T1.LINETOTAL +T1.[VATSUM]) AS 'ROW TOTAL', ( T1.LINETOTAL) AS 'BASIC' , T0.[CARDCODE] AS 'VENDOR CODE',
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=-90 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM )BED,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=-60 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM )CESS,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=8 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM)HCESS,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=4 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM)CST,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=1 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM)VAT,(SELECT DISTINCT ISNULL(TAXID11,0) FROM CRD7 WHERE CRD7.CARDCODE =T0.CARDCODE AND TAXID11 IS NOT NULL) AS TINNO,DISCSUM,
T0.[CARDNAME] AS 'VENDOR NAME' , T0.[COMMENTS] FROM OPCH T0
INNER JOIN PCH1 T1 ON T0.DOCENTRY = T1.DOCENTRY
--INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
INNER JOIN PCH4 T3 ON T1.DOCENTRY =T3.DOCENTRY AND T1.LINENUM=T3.LINENUM
INNER JOIN CRD7 T4 ON T0.CARDCODE = T4.CARDCODE
WHERE (T0.Docdate>=@DATEFROM AND T0.Docdate <=@DATETO)
You can check the statype of the tax types in the OSTT table.
Hope this helps.
Thanks,
Joseph
Maybe you are looking for
-
How to define a separate virtual host for each client in SICF
Hello, We have an ERP system with multiple clients running on it. The WebDynpro ABAP applications once developed are available on all clients, as standard. However, this is not our desired behavior. We want: 1. The WebDynpro ABAP applications should
-
Bread-Crumb in SharePoint 2013 required
HI All, I required to create a solution to get the Bread-Crumb in SharePoint 2013.Can any one help how can I do this using visual Studio Thanks, Quality Communication Provides Quality Work. http://siddiq-sharepoint2010.blogspot.in/ Siddiqal
-
Hi., We are facing the following error in our standby database 8.1.7.4 SVRMGR> SVRMGR> ORA-00283: recovery session canceled due to errors ORA-00368: checksum error in redo log block ORA-00353: log corruption near block 566772 change 1684887738171 tim
-
Mouse/Dock/Menu Issues
About 6 months ago, I had weird issues with my mouse that affected the dock, hot corners, menu actions and hyperlinks. I repaired permissions repeatedly, threw away preference files left and right and just when I thought it was hopeless everything re
-
6120c and TomTom Go 920 T: Unable to create data c...
Hello, I have a Nokia 6120c and a TomTom Go 920T. As the TomTom is a bluetooth device, I've been able to pair both together and I am able to give calls. However, I've subscribed to some online update data services and it doesn't work. These require t