Tax Data calculation using BAPI_ACC_INVOICE_RECEIPT_POST

Hi,
We are creating invoices using BAPI_ACC_INVOICE_RECEIPT_POST. However Tax is not getting calculated for the line items even if we pass the tax data through the field u201CTAX_CODEu201D in the table u201CACCOUNTGLu201D. The Tax value is to be updated in table BSEG and BSET, which is not happening after the IDOC posting. Please advice whether we need to pass the parameter (table) u201CACCOUNTTAXu201D (with data filled) in order to calculate the tax for the line items.
We are passing the following parameters presently and IDOCS are getting posted successfully even though tax amounts are not getting calculated.
         CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
exporting
   DOCUMENTHEADER = DOCUMENTHEADER  (With data)
   CUSTOMERCPD = CUSTOMERCPD                  (blank)
              importing
                OBJ_TYPE = OBJ_TYPE (blank)
                OBJ_KEY = OBJ_KEY     (blank)
                OBJ_SYS = OBJ_SYS      (blank)
       tables
         ACCOUNTPAYABLE = ACCOUNTPAYABLE   (Filled with data)
         ACCOUNTGL = ACCOUNTGL                           (Filled with data)
         ACCOUNTTAX = ACCOUNTTAX              (blank)
         CURRENCYAMOUNT = CURRENCYAMOUNT                          (Filled with data)
         PURCHASEORDER = PURCHASEORDER            (blank)
         PURCHASEAMOUNT = PURCHASEAMOUNT            (blank)
         RETURN = RETURN
         CRITERIA = CRITERIA
         VALUEFIELD = VALUEFIELD
         EXTENSION1 = EXTENSION1
       exceptions
         OTHERS =  1
Regards,
Gaurav.

hiiii
go throgh following link..it will solve your problem..
make BAPI_ACC_DOCUMENT_POST calculate tax.
regards
twinkal

Similar Messages

  • Schedule Line Delivery Date Calculation with Transportation Scheduling

    Hi All,
    We are currently running into a problem where our Sales Order Schedule Line delivery dates are being pushed out too far into the future - because of the Calendar being used to determine the transit time.
    We have 'Delivery Scheduling' and 'Transportation Scheduling' activated for our Sales Document type
    We have Routes that are configured with a 'Transit Time' and a 'Factory Calendar'
    Order Scenario:
    'Factory Calendar' assigned to our 'Route' is setup with only one 'Workday' in a given week e.g. Wednesday
    Our 'Route' has a Transit Time of 2 days
    We create a Sales Order on Monday for a Material that is available in our Plant
    The 'Goods Issue' date is being determined correctly for the next Workday - being Wednesday
    The 'Delivery Date' is extending out over 15 days (2 Wednesdays into the future) - since it is working on 'Calendar Days' and not 'Actual Days'
    Does anyone know of a way (config or other) to only influence the 'Goods Issue' date with the 'Factory Calendar' assigned to the Route, and have the 'Delivery Date' calculated using the Transit Time on the Route and 'Actual Days' rather than Calendar days?
    All help greatly appreciated.
    Thanks,
    Ravelle<i></i>

    Hi Pathik,
    Thanks for your reply.  I have already maintained the Calendars I'm using for this business process in <SCAL> - same as <OY05>. 
    The problem I'm having though is that by assigning a Calendar directly to my route (which I doing to influence the goods issue date - using a 1 Working Day Calendar) it is also taking precedence in determining the Transit time - which in this case I don't want, as I want my Transit time to be determined using a 5 Working Day Calendar.
    I don't think this problem has a config option as a work around...I think the only possibility in this case is a development to achieve the results we need.
    Thanks,
    Ravelle

  • Withholding Tax not populated using BAPI

    Hello
    We are using BAPI to post invoices instead of FB60 but noticed a difference in the withholding tax data.
    Using FB60 when we provide a N1, the tax code shows up as starand the withholding tax exempt is populated along with the  withholding tax code from the vendor master.
    When we try to do the same using the BAPI providing it with N1, it does not populate the withholding tax exempt and withholding tax code fields
    We are using classing withholding tax.
    why the BAPI is behaving differently than FB60 and not picking up the standard configuration
    This is priority as we are in Production and invoices which dont have these withholding  tax information are not getting picked up for payment.
    Thanks

    Solved myself...using the ACCOUNTPAYABLE-W_TAX_CODE field to populate the tax code which is stored on the Vendor Master

  • How to  use data function using characterstics variable for calculation on

    how to  use data function using characterstics variable for calculation on  attribute as key figure

    Hi Gayatri
    Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
    In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
    This essentially means, IF A = B THEN C ELSE D
    The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
    IF PART_NUMBER < 'SDK00' THEN pay_amount
    ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
    ELSE pay_amount + 100
    This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
    DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
    In English this can be read as follows:
    IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
    Best wishes
    Michael

  • How to use Dynamic date calculation in some transactions.

    Hello everyone.
    I have to create some dynamic variants using the dynamic date calculation. The problem is that in some transactions it´s not possible to use some variables that can round a value. For example: in transaction /SAPAPO/MC90, I need to fix 3 months in the horizon like this: From date: 01.01.2009  To date 31.03.2009. The current month is 01.01.2009. Next month the current month will be february, so the horizon would be 01.02.2009 to 30.04.2009.
    In 5.1 version, it´s impossible to fix the months, because the options that appear in the match code are:
    Current Date
    Current date +/- ??? days
    current date +/- ??? work days
    First day of current month
    nth working day of current month
    First day of next month
    First day of previous month
    Last day of previous month
    Last Day of the Current Month
    Does anybody knows how to do this? This is happening in other transactions to.
    Thanks a lot
    Regards
    Angela

    I am not sure where you are looking for..but here is what I can do it in MC90 Tcode:
    1. when you try to save the variant, in the variant screen check the two boxes under "Current date" field for Selection Variables attributes "L"
    2. Then click on Selection variables option and click on the "D" variable so that it turns to green
    3. Drop down in the first current date field, select "Current +/- ??? days. here if you want to start from today's date maintain 0 days
    4. In the second Current date field maintain 90 days in "Current +/- ??? days.
    5. save it
    please let me know if I misunderstod the issue

  • Explain How delivery date is calculated using backward and forward schedul

    How can anyone please explain how delivery date is calculated using forward and backward scheduling
    I want to have it broken down into the following steps
    for eg for delivery date calculation following dates are used
    Material Availabilty Date
    Material Staging Date
    Pick/pack time
    Transportation PLanning date
    Loading date
    Goods issue date
    Transit Date
    Delivery Date
    Can some one please give me an example and explain wht these dates are
    for eg customer needs delivery date on  11/20/2008
    how would the system cacluate whether it can meet the delivery date using backward scheduling
    and if it doesnt meet how does the system do the forward scheduling
    also i am not clear with the following dates
    material avaialibilty date
    material staging date
    transportation date
    can some one please explain me all this in detail
    Thanks

    Hi,
    Basically this is the CRSD(Customer requested ship date logic)logic in which system calculates the ship date depends upon the material availability. If material is available system calculates ship date on the basis of master data maintained in customisation.Master data is maintained in the  following link.
    If material is not available then system takes into consideration vendor delivery date & then calculate customer ship date.
    Please go through the link in SPRO
    LE-Shipping -Basic shipping functions-Scheduling -Delivery scheduling & Transportation scheduling-Maintain duration.
    In customisation following data is maintained
    Material Availabilty Date
    Material Staging Date
    Pick/pack time
    Transportation PLanning date
    Loading date
    Goods issue date
    Transit Date
    Delivery Date
    Hope you got the idea of CRSD calculation
    Regards,
    Prashant.

  • Date Calculation in Adobe Forms using Javscript or Formcalc

    Hi,
    We are designing a Form where a date is used to calculate the Financial  year and Quarter.
    For ex: if the document date is 9-Mar-2015 then the financial year is 2014-15 and the quater is 4th Quarter. (ie) the financial is is from July(curr.year) until June (next year)
    So the form should show the data as:
    For Finyear 2014-15: 3rd Quarter
    In the Form design, I've the Document date as FloatingField  and  have the financial year and quarter as calculated using Javascript.
    For this I want to have the below logic in the form::initialize event for the datefield as below.
    But am not sure about the date functions for getting the fullyear and month.  I need some help wrt to scripting for the below logic.
    var year1, year2
    var Qaurter
    var date1
    var month
    date1 = This.rawvalue
    month = date1.Getfullmonth()
    year1 = date1.Getfullyear()
    if (month <=6)
    then
         year2 = year1 -1
    Txtfinyear.rawvalue = Concat (year2, "-",year1)
    else
    year2 = year1 +1
    Txtfinyear.rawvalye = Concat(Year1, "-" year2)
    endif.
    If (mnth >= and mnth <=8)
      then
    txtquarter.rawvalue = "1st"
    Similar code for other quarters:
    Am attaching the screenshot for the design.
    Thanks much in advance for your help
    Best Regards,
    Maithili

    Hi Sameer,
    you cant use JavaScript here in Web Dynpro. But if you want to calculate the sum through a button click that can be done through the Action Handler method.
    Suppose you have 2 fields to add whichare field1 and filed2 in the context tree and the sum will be shown in field3 of context tree - all of numeric data type - obviously. So you can do the following in the action handler method.
    int sum = wdContext.currentContextElement().getField1() +
              wdContext.currentContextElement().getField2();
    wdContext.currentContextElement().setFields3(sum);
    Regards,
    Shubhadip

  • My users folder has 140GB used on it, but I cannot find where it is getting that calculation. I went through all of my folders and opened them all in an info panel, and they all come out to about 30GBs. Where is the rest of the data? -Using Mountain Lion

    My users folder has 140GB used on it, but I cannot find where it is getting that calculation. I went through all of my folders and opened them all in an info panel, and they all come out to about 30GBs. Where is the rest of the data? -Using Mountain Lion

    First, empty the Trash if you haven't already done so.
    Use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Triple-click the line of text below to select it, then drag or copy — do not type — into the Terminal window:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Press return. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • How to use Replacement Path Variables to perform Date Calculations

    Hi Experts,
    Can anyone make me clear about:How to use Replacement Path Variables to perform Date Calculations???????
    Thankyou in advance..
    shankar

    In left panel select the time Dimension
    Then hit new variable in that
    give the Name and Description for the Variable
    In processing by hit Replacement Path
    In reference characterisitcs use Calendar Day...
    As ur intention is to use it for Date
    Then in adjacent tab use
    Replace variable with Query / Variable
    Then u can use Offset length and offset start for controoling the display of your variable.
    Use as single, multiple single, interval, selection option as uwish
    HIt okey
    and you are good to go

  • RFC to exchange the tax data from r3 to srm

    Hi Gurus,
    We are using SRM ECS and our backend is connected to TAXWARE. Currently tax code in backend is determined using condition technique, can you please let me know how can we implement this in SRM. or is there any  RFC/BAPI that can be used to trigger the condition schema to determine tax code in r3 and transfer it to SRM. any suggestions would be appreciated.
    Regards
    Deepu

    Hi
    Yes its true that we have to select the option "tax calculation occurs in R/3" to populate the tax amount in SRM from R/3 connected to TAXWARE, is it not true.
    You use the Business Add-In BBP_TAX_MAP_BADI to change or supplement entries in the tables that are used for tax calculation:
    Several systems are provided for tax calculation. The Enterprise Buyer data is mapped to the structures of the selected system just before calculation. The BAdI is also called at this point so that you are able to add and change the data. Dependent on the system you select for tax calculation ( Define System for Tax Calculation), use the following methods and their parameters:
    MAP_STRUCTURE_R3 (Mapping of the EBP Structures for R/3)
    Import
    IS_BBP_HEADER (Interface header data of procurement document)
    IT_BBP_ITEM (Item data)
    IT_BBP_TAX (Taxes)
    IT_BBP_ACC (Account assignment)
    IT_BBP_PARTNER (Business partner)
    IT_R3_ITEM (Import for calculation in R/3)
    Export
    ET_R3_ITEM (Export for calculation in R/3)
    Regards
    Virender Singh

  • Sales tax data do not define output tax

    Dear Experts,
    I am creating contract and getting following error  'Sales tax data do not define output tax' in SAP REFX contract
    I have done the following
    define tax types
    define tax groups
    define tax codes
    Assign tax code to tax type and group
    Assignment of tax transactions key
    Assign country to calculation procedure
    Have i missed something? If you see the contract the tax rate  10% is getting picked Please help
    Thanks Regards
    yezdevan

    Hi Vasudevan,
    Check the following checklist and try.
    1. For tax code used, check for percentage value maintenance for the relevant condition type in transaction FV13, if maintained check for date validity and deletion indicators.
    2. Tax code should be assigned to company code at: Logistics - General -> Tax on Goods Movements -> India -> Basic Settings -> Determination of Excise Duty -> Condition-Based Excise Determination -> Assign Tax Code to Company Codes.
    3. The condition type used to maintain the tax code, as seen in FTXP. should have MVST or MWST as the access sequence in OBYZ settings, based on input or output tax respectively.
    Hope this resolves the issue.
    Best Regards,
    Hardik Sharma

  • FB60 posting using BAPI_ACC_INVOICE_RECEIPT_POST

    The Value Date (BSEG-VALUT) and Tax Jurisdiction (BSEG-TXJCD) fields have data for expense account line items in the BSEG table when we use BAPI_ACC_INVOICE_RECEIPT_POST. However, when we manually enter data in FB60, we do not get these fields populated.
    As an accounting functional/configuration person, I don't think we should have value dates for expense account line items. (only for bank/cash GL account line items) In FS00 the expense accounts are set up with field status group G004. Field status group has the value field suppressed.
    Is there a way to get the value date (BSEG-VALUT) to be blank using BAPI_ACC_INVOICE_RECEIPT_POST? Can you tell me why it is getting populated?
    Also, can you tell us why the tax jurisdiction (BSEG-TXJCD) field is being populated using BAPI_ACC_INVOICE_RECEIPT_POST, but not when we enter invoices manually in FB60? We are importing a blank table for the taxes since the transctions we are posting are not tax relevant.
    Thanks,
    Susie

    Hi Sachin
    I am working with an ABAPer.  Can you tell me (us) what "FSG" is/means?
    When you say "_probably the implementation is not differentiating between different types of account and passing the data for value date and tax jurisdiction for all line items_." do you mean the configuration settings should change or the data passed in to the BAPI should change? 
    For the comment "_so you need to build a check on which items should get the value of Value date based on account type_" where is the check?  Can you exlain further?
    Thanks,
    Susie

  • SEGMENT  FOR  WITHOLDING TAX DATA  FOR IDOC CREMAS03

    Hi all!
    Is there any segment for withholding tax data when creating creditor master data with IDoc CREMAS03? I need an other IDoc for this purpose?
    Thanks in advance
    Zapla

    Dear Atul,
    In function module AC_DOCUMENT_CREATE there is the structure
    T_ACCWT to pass the calculated tax items. In the
    BAPI_ACC_DOCUMENT_POST the corresponding BAPI structure has been added
    with release 6.0. For older releases it is posssible to pass the
    withholding tax items in structure EXTENSION1 and map it to T_ACCWT
    using a customer exit or the Business Transaction Event RWBAPI01.
    For the corresponding IDOC ACC_DOCUMENT the same holds.
    From release 6.0 on there is the IDOC segment E1BPACWT09 for
    passing WT information, in older releases E1BPPAREX
    can be used to pass the extension data, see note 487722.
    I hope this can help You.
    Mauri

  • Tax date in sales orders and invoices (Billing)

    Hello Experts,
    I have an issue related to Tax date in sales orders and Billing documents.
    In our environment we calculate taxes at the time of sales order creation and billing document (invoice) creation.
    Currently we modified 'ZXFYTU03' exit to pass tax date which is system date. Our business processes are such that, there is a gap of 3-5 days between sales order creation and billing creation. So for some orders we see tax discrepancies between order and billing.
    Through forums I understand that we can use 'service rendered date' at sales order item level. Solution would be passing date in 'service rendered date', we can pass date in 'service rendered date' field in sales order.
    The problem is to copy same date in billing document 'service rendered date'
    Does anyone have any idea how we can copy the sales order service rendered date to invoice service rendered date?
    Through forum i understand that we can use copy controls, data transfer routines etc...Appreciate if someone can guide me on how i can use these...
    Thanks in advance
    Pradeep

    Tried 2 options...
    1. Modify program RV60AFZC (FORM USEREXIT_FILL_VBRK_VBRP) to pass VBRP-FBUDA = VBKD-FBUDA. But in later part of the process, in SAPLV60A-LV60AA21 (perform fakturadaten_lieferbezogen), VBRP-FBUDA is overwritten by LIKP-WADAT_IST which is goods movement date. So this is not solving my problem.
    2. Modify program ZXVVFU08, to get service rendered date from VBKD-FBUDA based on CVBRK-XBLNR (Sales order) and populate CVBRP-FBUDA. But unfortunately this user exit is being called after user exit 'ZXFYTU03' where tax related data including tax date which is being passed. Somehow tax date in this user exit 'ZXFYTU03' is document creation date which is system date.
    With 2nd option, service rendered date from sales order is copied to invoice doc, but the tax is calculated based on document creation date since the tax user exit 'ZXFYTU03' is being called first...
    Per this, coustom routine did not work...
    Refer: Service Rendered Date (VBRP-FBUDA) for SD Invoice

  • Problem creating A/R Invoice with Withholding tax data via DI-Server

    Hi!
    Using the following SOAP Request to the DI-Server, I wanted to create an A/R Invoice having a withholding tax data but it always respond with an error saying
    Total taxable amount of all rows exceeds the base amount  [INV5.TaxbleAmnt][line: 1]
    SOAP Request:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
        <SessionID>203A3C01-7808-4638-8322-2307DF3C0F8F</SessionID>
      </env:Header>
      <env:Body>
        <dis:Add xmlns:dis="http://www.sap.com/SBO/DIS">
          <Service>InvoicesService</Service>
          <Document>
            <DocType>dDocument_Items</DocType>
            <HandWritten>tNO</HandWritten>
            <DocDate>2010-02-08</DocDate>
            <DocDueDate>2010-02-08</DocDueDate>
            <TaxDate>2010-02-08</TaxDate>
            <VatDate>2010-02-08</VatDate>
            <CardCode>NPI</CardCode>
            <Comments>test di-server soap message 1</Comments>
            <DocumentLines>
              <DocumentLine>
                <ItemCode>TRC</ItemCode>
                <Quantity>1</Quantity>
                <Price>1000</Price>
                <TaxCode>OVAT</TaxCode>
                <VatGroup>OVAT</VatGroup>
                <TaxLiable>tYES</TaxLiable>
                <WTLiable>tYES</WTLiable>
              </DocumentLine>
            </DocumentLines>
            <WithholdingTaxDataCollection>
              <WithholdingTaxData>
                <WTCode>C140</WTCode>
                <TaxableAmount>1000</TaxableAmount>
                <WTAmount>100</WTAmount>
              </WithholdingTaxData>
            </WithholdingTaxDataCollection>
          </Document>
        </dis:Add>
      </env:Body>
    </env:Envelope>
    OVAT rate above is 10%.
    The withholding tax code C140 is setup as
    rate=10,
    Category=Payment,
    Base Type=Net,
    % Base Amount = 100,
    Rounding Type = Commercial Values.
    We are using the New Zealand/Australia localization in SAP B1 2007A PL49.
    The above code can be successful only if I set the <WithholdingTaxDataCollection> node to:
            <WithholdingTaxDataCollection>
              <WithholdingTaxData>
                <WTCode>C140</WTCode>
                <TaxableAmount>0</TaxableAmount>
                <WTAmount>100</WTAmount>
              </WithholdingTaxData>
            </WithholdingTaxDataCollection>
    setting TaxableAmount equal to 0 which is not desired.
    Can anyone extend me some help, please?
    Thanks.

    Albert,
    Did you try adding this via the DI API and not the DI Server?  Do you get the same error?  Please see this SAP Note ...
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001303019
    Eddy

Maybe you are looking for

  • Web Filtering, Anti-Spyware and Email Filtering in one?

    We have 4 Cisco ASA firewalls in place and currently use iMail and ISA server to filter web traffic and mail. I'm investigating any solutions that would interoperate well with Cisco ASAs and provide a central solution for the above needs. Has anyone

  • Bean property and public field found with the same name: getid

    Hi all, I have a ejb jar file contains some local entity beans and one session bean , the session bean has some functions suck as findXXXByQuery() , InsertXXX() , and I have created some model class for the entity bean , and use it as the parameter o

  • How to create interactive overlays in Aperture?

    Is there any plugin or method in Apeture that allows overlays or annotations to be created on existing images? For example, flickr allows a box to be drawn selectively on any parts of an image to add notes and data etc.. iPhoto does this to an extent

  • Quicktime crashes on startup

    Greetings! As of yesterday, my Quicktime/itunes started to act strange. Everytime i try to start QT it crashes with this error message:   Problem Event Name: BEX   Application Name: QuickTimePlayer.exe   Application Version: 7.74.80.86   Application

  • Where, Oh Where, Has My Memory Gone?

    Last week I started using my iPod 20 Gb (clickwheel) as an external hard drive to backup my "Documents" folder. I've got about 4.5 Gb of music stored on it and had another 7.5 Gb worth of files and photos. Since the actual available storage on my iPo