Purchase tax register

hi all,
can anybody help me for purchase tax register,
my code is as follows
TABLES : BSEG, MKPF, BKPF,J_1IEXCDTL, LFA1, RSEG, RBKP, MARA,EKKO,BSET,KONP.
DATA : BEGIN OF ITAB OCCURS 0,
         NAME1        LIKE     LFA1-NAME1,
         C_CODE       LIKE     RBKP-BUKRS ,      "COMPANY CODE.
         EBELN        LIKE     EKKO-EBELN ,      "PURC ORDER NO.
         TAX_CODE     LIKE     RBKP-MWSKZ1 ,     "TAX CODE
         AD_NO        LIKE     BSEG-BELNR ,      "Acnting Doc Number
         BELNR        LIKE     BKPF-BELNR ,      "Accountg Doct No.
         GJAHR        LIKE     BSEG-GJAHR ,      "FISCAL YEAR
         DATE         LIKE     RBKP-BUDAT ,
         LIFNR        LIKE     LFA1-LIFNR ,      "VENDOR no.
         BUDAT        LIKE     EKKO-AEDAT ,      "PO DATE.
         VBELN        LIKE     VBRK-VBELN,       "EXCISE INVC NO.
         QTY          LIKE     BSEG-MENGE ,      "Quantity
         AMT          LIKE     RSEG-WRBTR ,      "Amount Currency
         BED          LIKE     BSET-HWSTE ,      "TAX AMOUNT
         ADD          LIKE     LFA1-ORT01,       "VENDOR ADD
         CN_TYPE      LIKE     BSET-KSCHL,       "CONDITION TYPE
         HWBAS        LIKE     BSET-HWBAS,      "TAX AMT.
         KBETR        LIKE     KONP-KBETR,      "COND BASE TAX AMT
         KNUMH        LIKE     KONP-KNUMH,      "COND REC NO.
         ECESS        LIKE     BSET-HWSTE,
       END OF ITAB .
DATA:  BEGIN OF ITAB1 OCCURS 0,
         V_CODE       LIKE     LFA1-LIFNR,       "VENDOR CODE
         NAME         LIKE     LFA1-NAME1,       "VENDOR NAME.
         ADD          LIKE     LFA1-ORT01,       "VENDOR ADD
         VBELN        LIKE     vbrk-vbeln,       "EXCISE INVC NO.
         BDATE        LIKE     VBRK-FKDAT_RL,    "EX INVOICE DATE
         QTY          LIKE     BSEG-MENGE,       "FOR QUENTY
         UNIT         LIKE     BSEG-ERFME,       "FOR UNIT
         AMT          LIKE     BSEG-WRBTR ,      "Amount Currency
         L_CST        LIKE     BSEG-REWRT,       "FOR LST_CST AMOUNT
         EBELN        LIKE     EKKO-EBELN ,      "PURC ORDER NO.
                LIKE     BSEG-BELNR ,      "Accountg Doct No.
        T_AMOUNT  "AMOUNT BED+CESS
       END OF ITAB1.
DATA: BITAB LIKE TABLE OF BSEG WITH HEADER LINE.
DATA  EITAB LIKE  EKKO OCCURS 0 WITH HEADER LINE.
DATA  BSITAB LIKE TABLE OF BSET WITH HEADER LINE.
DATA RITAB LIKE RSEG OCCURS 0 WITH HEADER LINE.
DATA RBITAB LIKE TABLE OF RBKP WITH HEADER LINE.
DATA BKITAB LIKE TABLE OF BKPF WITH HEADER LINE.
DATA LITAB LIKE LFA1 OCCURS 0 WITH HEADER LINE.
DATA KITAB LIKE TABLE OF KONP WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK B_1 WITH FRAME.
  SELECT-OPTIONS  C_CODE      FOR BSEG-BUKRS.
  SELECT-OPTIONS  AD_NO       FOR BSEG-BELNR.
  SELECT-OPTIONS  GJAHR       FOR BSEG-GJAHR.
  SELECT-OPTIONS  DATE        FOR RBKP-BUDAT.
  SELECT-OPTIONS  TAX_CODE    FOR BSEG-KTOSL.
SELECTION-SCREEN END OF BLOCK B_1 .
      SELECT MWSKZ1 BUDAT LIFNR BUKRS BELNR GJAHR
          FROM RBKP
          INTO (RBITAB-MWSKZ1,RBITAB-BUDAT,RBITAB-LIFNR,RBITAB-BUKRS,RBITAB-BELNR,RBITAB-GJAHR)
          WHERE BUKRS IN C_CODE AND GJAHR IN GJAHR.
               ITAB-C_CODE = RBITAB-BUKRS.
               ITAB-DATE = RBITAB-BUDAT.
               ITAB-TAX_CODE = RBITAB-MWSKZ1.
               ITAB-LIFNR = RBITAB-LIFNR.
               ITAB-BELNR = RBITAB-BELNR.
               ITAB-GJAHR = RBITAB-GJAHR.
      SELECT SINGLE LIFNR NAME1 ORT01
          FROM LFA1
          INTO (LITAB-LIFNR,LITAB-NAME1,LITAB-ORT01)
          WHERE LIFNR EQ ITAB-LIFNR.
               ITAB-NAME1 = LITAB-NAME1.
               ITAB-ADD = LITAB-ORT01.
     SELECT SINGLE BELNR FROM BKPF INTO BKITAB-BELNR WHERE BUKRS = ITAB-C_CODE.
          ITAB-BELNR = BKITAB-BELNR.
       SELECT SINGLE BELNR FROM BSEG INTO BITAB-BELNR WHERE BUKRS = ITAB-C_CODE.
           ITAB-AD_NO = BITAB-BELNR.
        SELECT SINGLE KSCHL HWBAS KNUMH FROM BSET INTO (BSITAB-KSCHL,BSITAB-HWBAS,BSITAB-KNUMH) WHERE MWSKZ = ITAB-TAX_CODE.
           ITAB-BELNR = BSITAB-BELNR.
           ITAB-CN_TYPE = BSITAB-KSCHL.
           ITAB-HWBAS = BSITAB-HWBAS.
           ITAB-KNUMH = BSITAB-KNUMH.
         SELECT SINGLE WRBTR
              FROM BSEG
              INTO BITAB-WRBTR
              WHERE  EBELN = ITAB-EBELN.
                ITAB-AMT = BITAB-WRBTR.
        CONCATENATE ITAB-BELNR ITAB-C_CODE ITAB-GJAHR INTO BKITAB-AWKEY .
        SELECT SINGLE BELNR FROM BKPF INTO BKITAB-BELNR WHERE AWKEY = BKITAB-AWKEY.
                 ITAB-AD_NO = BKITAB-BELNR.
         SELECT SINGLE MENGE EBELN WRBTR
             FROM RSEG
             INTO (RITAB-MENGE,RITAB-EBELN,RITAB-WRBTR)
             WHERE BELNR = ITAB-BELNR.
                  ITAB-QTY   = RITAB-MENGE.
                  ITAB-EBELN = RITAB-EBELN.
                  ITAB-AMT = RITAB-WRBTR.
       SELECT SINGLE KBETR FROM KONP INTO (KITAB-KBETR) WHERE KNUMH = ITAB-KNUMH.
           ITAB-KNUMH = KITAB-KNUMH.
           ITAB-KBETR = KITAB-KBETR.
        SELECT * FROM BSET INTO TABLE BSITAB WHERE BELNR = ITAB-BELNR.
            LOOP AT BSITAB.
              IF BSITAB-KSCHL = 'ZPI1'.
                  ITAB-AMT = BSITAB-FWBAS.
                  CONTINUE.
              ENDIF.
              IF BSITAB-KSCHL = 'ZPIJ'.
                  ITAB-BED = BSITAB-FWBAS.
              ENDIF.
              IF BSITAB-KSCHL = 'ZPIO'.
                  ITAB-ECESS  = BSITAB-FWBAS.
              ENDIF.
            ENDLOOP.
   APPEND ITAB.
   CLEAR ITAB.
ENDSELECT.
LOOP AT ITAB.
  WRITE: / ITAB-BELNR,ITAB-NAME1,ITAB-ADD,ITAB-LIFNR,ITAB-TAX_CODE,ITAB-DATE,ITAB-QTY,ITAB-EBELN,ITAB-AMT,ITAB-CN_TYPE,ITAB-HWBAS.
ENDLOOP.
My problem is that i can't take tax amount from BSET table b'coz i select BELNR from RBKP and there is differ entry of BELNR in BSET so plz help me for take out the tax amount from BSET.
Thnx and Regard
Anirudh

hi,
check BSET table.
First get MIRO records from rbkp + rseg.
take corresponding a/c record from bkpf.
pass a/c doc to bset for tax data.
raj
Message was edited by:
        raj desai
Message was edited by:
        raj desai

Similar Messages

  • Hii all, how  can we create a report for purchase tax register

    Purchase Tax Register 2:
           Fields on selection screen (input screen) : Vendor Code from to , Date from to, Material Type from to, Tax Code from to .
                 Field in the output List : Document Number , PO Number ,PO      Date ,     Vendor Code ,Vendor Name , Bill Number , Bill Date , Material Code , Material Description , Qty ,Unit ,  Basic Value , BED , CESS , Tax Code,  Total Tax Amount ( BED +  CESS ) amount , LST or CST Amount , Gross Amount.

    Hi Umesh,
        Use The Following Tables
       EKBE  History per Purchasing Document,
       EBAN  Purchase Requisition,
       EKKO  Purchasing Document Header,
       LFA1    Vendor Master (General Section),
       KONV  Conditions (Transaction Data),
    Konv Is Cluster Table U have To Write Seperate Select query for that Using KNUMV Field form ekbe, eban, ekko
    Reward Points If Usefull,
    THanks & regards.
    Shiva

  • Sales tax register and purchase tax register

    Dear All,
    Is there any standard report for sales tax register and purchase tax register? give me your valuable inputs appraisals are waiting.
    Thanks inadvance.
    Nauma.

    Please refer T code J1I2 for Sales Tax Register. There is no Standard Purchase Tax Register.
    Regards
    Bhavesh Mistry
    Edited by: Bhavesh Mistry on Jul 15, 2009 7:10 AM

  • Purchase Register, sale register, & Cenvat Tax Register

    How to Create Purchase register, Sales Register, Cenvat Tax Register with total Balance
    Regds
    Edited by: Philip Eller on Jun 4, 2008 8:36 AM

    Hi Sashi,
    Create a user query from Query Wizard for
    Sales Register from Tables -OINV,INV4.
    Purchase Register from Tables - OPCH,PCH4.
    Hope above answer will helpful to you.
    Jeyakanthan.

  • Purchase & Tax releated Report

    Dear MM Gurus,
    From which T-Code I can get the report of Input VAT
    1. (Local Purchase, Central Purchase, Import, Tax Exempted Purchase, Trading Purchase, Purchase Return)
    2. Viewing - Stock Transfer Outward Register, ie, all details releted to Local & Central Branch Transfer Outward, Local       
    & Central Consignment Transfer Outward & corresponding Return Inward.
    3. Viewing - Stock Transfer Inward Register, ie, all details releted to Local & Central Branch Transfer Inward, Local   
    & Central Consignment Transfer Inward & corresponding Return Outward.
    While using T-Code MB52 I can see the warehouse stock, But the Basis Unit of Measure is showing in Unit. Can we see the Sales Unit of Measure in this report. eg. 1Tin = 15kg.
    Rply
    Rgd,
    Manoj

    Hi,
    1. (Local Purchase, Central Purchase, Import, Tax Exempted Purchase, Trading Purchase, Purchase Return)
    Ans: - Use Report J1I2 - Sales Tax Register, S_ALR_87012357 - Advance Return for Tax on Sales/Purchases
    2. Viewing - Stock Transfer Outward Register, ie, all details releted to Local & Central Branch Transfer Outward, Local
    & Central Consignment Transfer Outward & corresponding Return Inward.
    Ans: - MMBE, MB52, MB5B, MB5L, MB5T
    3. Viewing - Stock Transfer Inward Register, ie, all details releted to Local & Central Branch Transfer Inward, Local
    & Central Consignment Transfer Inward & corresponding Return Outward.
    Ans: - MMBE, MB52, MB5B, MB5L, MB5T
    While using T-Code MB52 I can see the warehouse stock, But the Basis Unit of Measure is showing in Unit. Can we see the Sales Unit of Measure in this report. eg. 1Tin = 15kg.
    Ans: - This can be seen in MMBE, chnage Unit of Measure in output screen and refresh it, it will show stock in selected UoM

  • Tax Condition ZSRT not showing in Print Preview and Tax Register

    Dear Friends
    while we making Purchase Order the Tax condition not showing while print preview.  also not showing in Tax Register.
    Tax Register we developed.
    any hops
    Rajesh G

    Dear,
           ZSRT is a customised condition which you have created. So to bring that condition in print preview you have to talk to your ABAPER , so that he can incorporate this condition type to his customised print preview program. If your tax register is also customised then again you have to communicate to the ABAPER.

  • Link B/W BSET and RSEG - Purch.Tax Register

    Dear All Experts,
    Iam creating a Tax register wherein I have to display the tax details from the MIRO invoice with the details of PO and Material . For that am getting the Tax data from BSET and Invoice line items from RSEG. But the problem is am unable to get the link, like which Tax in BSET is related to which line item of RSEG.
    Thanks & Regrads,
    Rock.

    Hi Rock,
    There is a relation ship B/W  RSEG and BSET
    Concatenate  RESG-BELNR &  RSEG-GJAHR into one varialbe
    pass this variable to filed  AWKEY INTO   table  BKPF.
    Get the accounting document number(BELNR) from BKPF table , and using this accounting doc. number we can able to get the data from  BSET.
    Ex:
    concatenate rseg-belnr  rseg-gjahr into v_var.
    select  belnr gjahr from bkpf where   awkey = v_var.
    select * from bset where belnr = bkpf-belnr
                                               gjahr = bkpf-gjahr. 
    Regards,
    Sateesh C

  • Financial Tax Register Report shows No Data Found

    Hi All,
    We are upgrading from 11.5.10 to 12.1.3, ofter upgrading to 12.1.3 when i running the Financial Tax Register Report it is showing No Data Found.
    Please reply me ASAP.
    Regards,
    Raju.

    Hi,
    For your references i posted the log file of financial tax register report.
    E-Business Tax: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    RXZXPFTR module: Financial Tax Register
    Current system time is 15-FEB-2013 09:38:25
    Publishing concurrent program ZX : RXZXPTEX.
    Request 487766 submitted.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Current system time is 15-FEB-2013 09:38:25
    Request restarted at :15-FEB-2013 09:38:27
    Publishing concurrent program ZX : RXZXPTEX.
    Publishing request ID 487766.
    Its a BIDI char set
    Its not a BIDI language
    FA_RX_SUBMIT_PURGE (PURGE API PROGRAM NAME =ZX_EXTRACT_PKG.PURGE) (ROWS PURGED =0)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    36093
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 487765      
    Number of copies : 0      
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 15-FEB-2013 09:38:28
    ---------------------------------------------------------------------------

  • SALES TAX REGISTER

    Sales Tax Register :
    1.Fields on selection screen (input screen) : Company Code, Document Number,   Fiscal Year , Date , Tax Code , LST Condition, CST Condition.
    2.Field in the output List : Total Amount comes as Basic Amount and ( BED +  CESS ) amount , Customer Information ( Code , Name , address ) , Excise Invoice Number , Excise Invoice Date , Quantity , Unit , LST or CST Amount with TAX% .

    Hi,
    The main tables required for this report are VBRK, VBRP, KONV, J_1IEXCHDR,
    J_1IEXCDTL, KNA1 & ADRC
    The link between above tables are,
    VBRK>VBELN = VBRP>VBELN
    VBRK>KUNAG = KNA1>KUNNR
    KNA1>ADRNR = ADRC>ADDRNUMBER
    VBRK>KNUMV = KONV>KNUMV
    VBRP>POSNR = KONV>POSNR
    VBRK>VBELN = J_1IEXCHDR>RDOC
    J_1IEXCHDR>EXNUM = J_1IEXCDTL>EXNUM
    J_1IEXCHDR>EXYEAR = J_1IEXCDTL>EXYEAR
    Tax amount is stored in the MWBSK or MWSBK in the table VBRK.
    Tax type gets stored in VBRK or VBRP depending on Access Sequence in SD Customization.
    With the above info you can easily build select statements and fetch required information from the tables.
    Regards,
    Hema

  • Purchase Tax posting required on WBS

    Dear Experts,
    Need your help urgently for this:
    When doing invoice verification (MIRO)
    Cost 440/- is posted to WBS - OK
    Tax @ 8% is posted to Cost center mentioned in cost element  of Tax G/L.
    I have to mention Cost center in cost element, otherwise it gives error:
    "Account 50100072 requires an assignment to a CO object"
    I want all the cost to be posted to WBS, which is now getting posted to Cost center.
    How can I do this?
    Thanks in advance...
    SSanjay

    Dear Ravi,
    Thanks for the help provided.
    Purchase Tax G/L 50100072 is a P/L type & not BS.
    I checked in field status of Account group (G001) of this G/L
    in FI -> FI Global Settings -> Ledgers -> Fields -> Define Field Status Variants,
    Field Cost Center & also WBSE are optional & not mandatary.
    Still it gives message at invoice:
    Account 50100072 requires an assignment to a CO object
    Message no. KI235
    Diagnosis
    You have not defined a CO account assignment for an account that is relevant to cost accounting.
    System Response
    Account 50100072 is defined as a cost element.
    This means that you must always specify a CO account assignment.
    Procedure
    Enter one of the following CO account assignments
    Order
    Cost center / cost center/ activity type
    Sales order item (for a project or cost relevant)
    Project / WBS element
    Cost object (Process manufacturing)
    Network/ Network activities
    Business process
    Profitability segment
    Real estate object
    The posting row affected is 0000000003, account 50100072.
    Please help.

  • Purchase tax code Grants Management

    Hi,
    I have the following problem.
    The purchasing tax is a cost not reclamaible fron European comunity.
    EXAMPLE
    I buy a PC for a project granted form European community.
    The cost is 300 euro + IVA (italian tax) 20% = 360 euro
    I post the follow document
    Purchase 360 @ Vendor 360
    but in my reporting to European Comunity must be appear 300 euro.
    How can I split this costs?
    Thanks
    Regards

    hi swapnil,
    Tax Liable is defaulted to 'N' based on Tax definition(VATLiable) from Item master,
    This Tax Definition field will be applicable to specific localization,
    Run query
    SELECT T0.ItemCode,T0.VATLiable FROM OITM T0
    Based on value in tax definition in item master,tax liable will get populated at row level of marketing
    documents,If it is 'Y',then TaxLiable will be 'Y',if it is 'N',then TaxLiable will be 'N'.
    I think in 2007B item master Tax Definition field is set Default to 'N',
    By table definition itself it is set to 'Y',You can't change it.
    You can change manually tax liable in AP invoice from No --> Yes.
    Above briefing is based after testing TaxLiable field in demo database.
    Check TaxLiable default value in tables OITM,PCH1,
    SAP B1 2007B Company Database Tables Reference chm file,
    It will be in documentation of SDK.
    Hope it clarifies the issue.
    Edited by: Jeyakanthan A on Jun 13, 2009 12:27 PM

  • Purchase Tax - Field BSEG- WMWST not getting filled on Invoice documents

    Hi,
    I am posting a Invoice document using FB60. Along with other details, I enter Tax code and check the Calculate Tax check box and SAP calculates & generated extra line for Tax amount.
    Document is posted successfully. Howver this purchase tax calculated does not appear on the WMWST field in BSEG. The field is blank, even when the document is posted with a Tax line. Why?
    Is there something in Tax configuration which determines if the Tax amount on the document gets filled on WMWST field or not?
    How do i get the tax amount from the FB60 document to fill on this field- BSEG-WMWST?
    Thanks,
    Uma

    The Tax amounts actually get posted to the BSET table.

  • Purchase tax group

    Hi Experts,
    In purchase order and AP Invoice i wanna put purchase tax group (item/service) as empty, but system is no allow. is it any setting for this? I'm using 2005A PL50.
    Thanks.
    Regards,
    Danny

    Hi Danny,
    Your question belongs to the Core forum.  It is not related to system administration.
    To answer your question: Tax group must not be empty.  This is by system design.  You may create a tax group with 0 rate in case you need 0 tax.
    Thanks,
    Gordon

  • Purchase tax/input tax details

    Hi,
      How to find purchase tax/input tax details of categorywise articles.

    Hello,
    You can use either FTXP  to view Input/Output tax details.
    Rgds
    Rajendra

  • Purchase Tax Value

    I am making a purchase tax report -line item wise.  I need taxes and duties in the report.Excise Duty, VAT/CST, Cess, others. Is it adivisable to fetch values from PO invoice Tax tab at line item. or i should use BSET table.Please guide.

    Hi
    If i am not wrong your report is based on itemwise taxes
    Logic will like this
    TABLE
    RSEG
    PASS FROM TABLE EKPO
    PO NUMBER =EBELN
    PO ITEM =EBELP
    INTO TBALE RSEG AND GET FOLLOWING FIELDS
    1)     INVOICE DOC NUMBER=BELNR=
    2)     FISCAL YEAR=GJAHR=
    3)     INVOICE ITEM=BUZEI
    4)     VALUVATION CLASS=BKLAS=
    5)     REFERNCE =XBLNR=1
    TABLE
    BKPF
    NOW PASS BELNR+GHJAR ( 51056016262010) ,FIELD AWKEY OF TABLE BKPF
    FISCAL YEAR=GHJAR INTO TABLE BKPF FROM TABLE RSEG AND GET FOLLOWING FIELDS
    1)     FI DOC NUMBER=5100001482
    2)     FISCAL YEAR=GHJAR=2010
    3)     DOC TYPE=BLART=RE
    now
    TABLE
    BSET
    NOW PASS
    FI DOC NUMBER=BELNR
    FISCAL YEAR=GHJAR=
    AND GET FOLLOWING VALUES
    1)     CONDITION TYPE =KSCHL
    A)     VAT=JVRD=
    B)     JVRN=CST
    C)     SERVICE TAX=JSRT
    D)      ECESS ON SERVICE=JEC3
    E)     HECESS ON SERVICE=JES3
    HERE APPLY LOGIC TAXPS FIELD =1=ONE LINE ITEM FOR BELNR
    If you have any issue revert back to me.I developmed same report
    Regards
    Kailas ugale

Maybe you are looking for

  • Help mine macbook wont turn on

    can some one help me because every time i touch the button to turn it on. the light just blink it wont turn on its just stay off

  • How to pass data from one internal session to another

    Hi SAP Experts, How to pass data from one internal session to another and from One external session to another external session. I used import and export parmeter and SPA/GPA parameters. What is the other way to pass data? Please tel me urgently Than

  • Is it necessary to keep agreeing to the licenseing agreement?

    After installing the new update of iTunes, every time I load iTunes, I have to agree it its terms and service. Usually this happens after you install it for the first time and run it and after that it never appears. How do I stop this agreement from

  • Wie öffne ich eine cs1 datei (Bild) mit Adobe Photoshop CS ??

    Ich habe von einem Fotografen Bilder auf einer CD bekommen, diese Bilder sind in einem cs1 format gespeichert wenn ich versuche sie zu öffnen dann bekomme ich folgende Fehlermeldung:"Konnte den Vorgang nicht ausführen weil dieses Dokument nicht vom r

  • Aperture Crop Features vs Lightroom

    I have been running the Aperture trial and I like the look of version 3 and its nice integration with Mac and other significant features. But, I really like the crop guide overlays in Lightroom (there are about 4 of them). Are there plug-ins that wou