DALHI VAT REPORT
i am going to create a DELHI VAT REPORT for purchases for my company which is basically manufacturing based.
i am using the tables:
BSIS, "Accounting: Secondary Index for G/L Accounts
BSIK, "Accounting: Secondary Index for Vendors
LFA1, "Vendor Master (General Section)
BSET, "Tax Data Document Segment
BSEG, "Accounting Document Segment
BKPF. "Accounting Document Header
and SQL:
SELECT XBLNR BELNR BUDAT FROM BKPF INTO TABLE T_BKPF "WORKING PROPERLY
WHERE BUDAT IN S_BUDAT AND GJAHR IN S_GJAHR.
and
SELECT BELNR SHKZG DMBTR HKONT LIFNR STCEG FROM BSEG INTO CORRESPONDING
FIELDS OF TABLE
T_BSEG
FOR ALL ENTRIES IN T_BKPF
WHERE
BELNR = T_BKPF-BELNR
AND MWSKZ IN S_MWSKZ
AND GJAHR IN S_GJAHR
AND SHKZG = 'H'.
where
'H' denotes for credit.
butit takes about 3hrs to execute. so i m not able to fire further quries.
kindly help and tell me the possibilities.
thanks
Actually, your first SELECT is slow too. You should add at least BUKRS to it. If you do that, I can show you how to speed it up even more; however, your second SELECT will go a lot more quickly if you code both thusly:
SELECT xblnr belnr budat bukrs gjahr
FROM bkpf
INTO TABLE t_bkpf
WHERE budat IN s_budat
AND gjahr IN s_gjahr.
SELECT belnr shkzg dmbtr hkont lifnr stceg
FROM bseg
INTO CORRESPONDING FIELDS OF TABLE t_bseg
FOR ALL ENTRIES IN t_bkpf
WHERE bukrs = t_bkpf-bukrs
AND belnr = t_bkpf-belnr
AND gjahr = t_bkpf-gjahr
AND mwskz IN s_mwskz
AND shkzg = 'H'.
You will have to add BUKRS and GJAHR to T_BKPF
Rob
Similar Messages
-
hi
plz help me purchase vat Report material wise can you any body tell
me how will take data and relation between Material and vat which table
its urgents
Thanks for help
Regards,
vijay kumarHey !!!!
Try using F1 help and then F9 for field names.
For EX ;
To know the field name for PO, go to transaction me22n and then click on PO number then press F1 and then technical information (F9).For the field names and if lucky you will get the table name also.
Regards,
Abhinab Mishra -
hi
plz help me purchase vat Report material wise can you any body tell
me how will take data and relation between Material and vat which table
its urgents
Thanks for help
Regards,
vijay kumarT.Code: SE38
Report: RFMUSV00
Regards,
Rajesh Banka
Reward suitable points.
How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread). -
Enhancement request for VAT Report of Customer and Vendor.
Hello SAP Gurus,
Have enhancement request for adding new fields in existing VAT report of Customer and Vendor like user id, GL account etc.
As I am fresher, can you please help me that how I need to approach. Thanks for your support.
Regards,
SaleemHello Saleem,
Almost all fields required for VAT reporting are available in standard tax report
S_ALR_87012357 .
You have to configure the layout from the selection screen as below
regards
pb -
Hi All,
I have written a query for VAT report, this Query works fine when there is no credit memo postings. but when there is a credit memo for an invoice then the values displayed are mismatched. please check my query and correct it.
This is the Query
SELECT T0.CardName as 'Name_of_Seller', T1.TaxId11 as 'Seller_TIN',2041 as 'Commodity_Code', SUM(T2.BaseSum-case when T3.TrgetEntry is Null then 0 else T5.BaseSum end) as 'Purchase_Value', T2.TaxRate as 'Tax_Rate', Sum(T2.TaxSum-case when T3.TrgetEntry is Null then 0 else T5.TaxSum end) as VAT_CST_Paid
FROM OPCH T0 INNER JOIN PCH12 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH4 T2 ON T0.DocEntry = T2.DocEntry LEFT OUTER JOIN PCH1 T3 ON T2.DocEntry = T3.DocEntry and T2.linenum = T3.linenum LEFT OUTER JOIN ORPC T4 ON T3.Trgetentry = T4.Docentry LEFT OUTER JOIN RPC4 T5 ON T4.DocEntry = T5.DocEntry INNER JOIN OCRD T6 ON T0.CardCode = T6.CardCode INNER JOIN OCRG T7 ON T6.GroupCode = T7.GroupCode
WHERE (T2.staType = '1' or T2.staType = '4') and (T2.RelateType <> 3) and ( T0.DocDate >= [%0] and T0.DocDate <=[%1]) and (T7.GroupName = 'Suppliers' or T7.GroupName = 'Suppliers [T]')
GROUP BY T0.CardName, T1.TaxId11, T4.DocTotal, T2.TaxRate
Thanks in Advance
ArumugamTry this one:
SELECT T0.CardName as 'Name_of_Seller', T1.TaxId11 as 'Seller_TIN',2041 as 'Commodity_Code', SUM(T2.BaseSum-case when T3.TrgetEntry is Null then 0 else T5.BaseSum end) as 'Purchase_Value', T2.TaxRate as 'Tax_Rate', Sum(T2.TaxSum-case when T3.TrgetEntry is Null then 0 else T5.TaxSum end) as VAT_CST_Paid
FROM DBO.OPCH T0
LEFT JOIN DBO.PCH12 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN DBO.PCH4 T2 ON T0.DocEntry = T2.DocEntry AND (T2.staType = 1 or T2.staType = 4) and (T2.RelateType 3)
LEFT JOIN DBO.PCH1 T3 ON T0.DocEntry = T3.DocEntry and T0.linenum = T3.linenum
LEFT JOIN DBO.ORPC T4 ON T3.Trgetentry = T4.Docentry
LEFT JOIN DBO.RPC4 T5 ON T4.DocEntry = T5.DocEntry
INNER JOIN DBO.OCRD T6 ON T0.CardCode = T6.CardCode
INNER JOIN DBO.OCRG T7 ON T6.GroupCode = T7.GroupCode AND (T7.GroupName = 'Suppliers' or T7.GroupName = 'Suppliers [T]')
WHERE T0.DocDate >= [%0\] and T0.DocDate <= [%1\]
GROUP BY T0.CardName, T1.TaxId11, T4.DocTotal, T2.TaxRate
Thanks,
Gordon -
Additional Field in VAT report : s_alr_87012357
Hi Experts,
I wish to add 1 more fields in VAT report s_alr_87012357.
Please dont suggest to copy the standard program in Z Program. I am looking for alternate option.
Thanks
GaneshHi Ganesh How did you add extra field .
-
Change in Standard VAT Report : S_alr_87012385
Dear All,
In VAT summary report - S_ALR_87012385
I need some additions and changes as listed below-
1. Document wise line level tax detail is displayed - need at document level
2. Vendor TIN number is not getting displayed in the standard VAT report
Kindly suggest...
Regards,
PrashantFind enclosed the replies:
1. Details at Document Level - May not be practical. You may have line items in a document with different rates of Tax. In such case, you have to show the details seperately only
2. Vendor TIN Details - There are implicit enhancements in the Program RFUMSV00. Check with the help of your ABAP Colleague. Go to SE38 and from menu get implicit enhancement. When you find the enhancement spot, pass LIFNR in Vendor Excuise Details Table to get the Vendor TIN Number
Regards
Sanil Bhandari -
Additional fileds to VAT report S_ALR_87012357 - Advance Return for Tax on
Dear all
I would like to add customer and vendor name to the VAT report. Can you please tell me on how these fields can be added.
Many thanks
PHello all
Is there is any pointers on this issue?
Thanks & regards,
Prashant -
Hi SAP experts!
I´m customizing the VAT Report for Poland and I use the transaction S_ALR_87012385 - VAT Register (Poland) to generate the values for each month, but I need to fill the legal document (VAT-7) which has fields that are the sum of several tax codes. Is there a standard way to have this sum in a report, like using the OBCH and OBCH transactions, for example?
Many thanks!Hi Appana Prabhakar!
I already try it but the report RFIDPL06 it´s not preparer for fill the legal declaration directly, i always must to export values to excel and then make the correct sum to fill the fields in the declaration.
Perhaps SAP does not have any kind of solution to fill directly the legal declaration for Poland, yet.
Maybe i will try to add a note to sap.
Thank you!
Edited by: Vaz Tiago on May 21, 2010 9:02 AM -
VAT report - upload historical data
Hi,
The "VAT register Poland" report has been issued for July & August.
I have carried out a master data change (for VAT register no.) and I need to re-produce the VAT reports for these 2 months.
Can I re-run the report?
Will it pick up the modified master data?
Thank you for your feedback.
Kind regards,
LindaI am not sure whether it will work, because these reports depend on tables (which you can not modify) and the tables depend on the i.e sales order, FI document etc...
Kind regards
hakan -
Hi Guru,
I have a requirement like vat report on purchase . So I would like to request you to please guide me.
Thanks & regards
RanjitHi
Use this t.code S_ALR_87012357
Regards
T N R -
HI All,
Is there any report which shows state wise vat report, this is required for set off vat input v/s vat out put in a particular state.
in our scenario we dont have any manufacturing plant, we are traders so we created each state as a plant.
so please guide us.
thanks & regards,
shashi kanth.Yes, Busines place ans section code are used for WHT (TDS)
You can use the business place for VAT. Please refer below documentation:-
http://help.sap.com/saphelp_470/helpdata/EN/ba/75d43ad85d6321e10000000a11402f/content.htm
For customization, make the changes in below path:-
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Activate Business Place
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Define Business Places
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Assign Business Places to Sales Offices
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Assign Business Places to Plants
Regards,
Gaurav -
I am generating VAT report S_ALR_87012357 . When invoice document currency (e.g. EUR) is different from the country currency (e.g. GBP) it creates a difference in local currency (EUR) when the VAT report is processed due to the differences of the invoice daily rate and the VAT report daily rate.
Can some one give me lead how to debug this problem ? Can some one send me good link on VAT ( Europe ) please ? I need to clear some fundamental concept of Europ VAT.
Thanks
SatyaHi,
Yes, the standard report should also be applicable for Finland -
Dear Friends,
While executing the VAT report, particulars documnets which are maintained in company code currency are not translating into foreign currency and foreign currency columns are displaying blank. Only the documnets which i have posted in foreign currency are appearing under foreign currency columns. I hvae to submit report in Foreign currency but some amounts which i posted in Co.code currency are not appearing under Foreign currency column.
what should be done?
Please help me out from this issue.
Thanks in Adv
MBNHi MBN,
In my opinion, it is normal to have only the documents posted in foreign currencies that are appearing in the column for foreign currency. Moreover, if you have several foreign currencies, you will have all these currencies mixed.
The system will not translate into a foreign currency the documents in compagny code currency, what foreign currency will it be choose ?
I think that you have to do your VAT declaration in local currency and then translate by yourself the amounts into foreign currency.
I hope this will be helpful.
Regards,
Céline -
Dear Expert,
We are trying to Make VAT report for Indian Company.
Document Split is active.
How or where can i fetch Profit center?
We are using following tables to fetch data BSET,BKPF,BSIK,BSID,BSEG.
But profit center is only appearing in BSIK,BSEG and BSID but the line item for vat is not showing profit center.
In document split profit center is made mandatory.
In FAGLFLEXA it is all updating.
Can anyone guide me what logic can i use to pull the profit center fro VAT ReportHi
Its better if you use Table FAGLFLEXA instead of BSEG...
FLEXA is the younger brother of BSEG which will store the PC wise infotmation if you have doc splitting active
Br, Ajay M
Maybe you are looking for
-
In XI ,file on application sever how to do the scenario like file to idoc?
hi experts, In XI ,file on application sever how to do the scenario like file to idoc? thanks in advance gupt
-
ADF Faces: Differring text sizes for AFFieldText and AFFieldTextDisabled
I have found differing texts sizes in the generated css file for AFFieldText, AFFieldTextDisabled. Does anyone know the best way to fix this?
-
Installing WIndows 7 onto a Mac Mini that does not have an internal optical drive.
Has anyone had any success in installing WIndows 7 onto a Mac Mini via Boot Camp using either a USB stick or an external SuperrDrive?
-
Facing issue regarding convertDateTime
hi friends, i am using jdeveloper 11.1.1.6.0 . i am using convertDateTime for calender . it is accepting MM/DD/YYYY this format only(ex 3/18/2013) but if user is putting something like this MAR-18-2013 , it is throwing an error invalid date format. b
-
Margins off when printing 11x38 on 13x40 pano paper
i'm trying to print crane museo pano paper in LR3 from mac 10.5.8 on epson 2400 also tried on PS3 with no luck. issue: print produces a top and bottom 1" border which is correct. the printer starts printing about 3" in from the edge. it should be 1