BAPI_ACC_DOCUMENT_POST and tax posting through the BAPI

Hi,
We are using the BAPI_ACC_DOCUMENT_POST to post accounting documents. The BAPI works fine without the tax data but we need the tax data also to get posted for the line items. Please let me know how the ACCOUNTTAX
and CURRENCYAMOUNT table parameters needs to be populated.
A sample code would be of much use.
Currently if we have 3 line items in GL to be posted we fill 3 line items in AccountGL table, one line item in Accounts payable table, 4 line items in the currency table ( 3 for the actual items and 4 th item with summed up quantity of all 3 items) .
Your help is greatly appreciated.
Regards,
Prabaharan.G

hi,
i use this function in some program i try to give to u how to set the minimum value in the structure/tables of the bapi.
> DOCUMENTHEADER                                                        
>        BUS_ACT                    =    'RFBU'           "for FI document    
>        USERNAME                =    sy-uname
>        HEADER_TXT              =    your text
>        COMP_CODE              =    Company code
>        DOC_DATE                  =    Document date
>        PSTNG_DATE              =    Posting date
>        FISC_YEAR(1)              =    The year of posting date
>        FIS_PERIOD(1)             =    the period of posting date
>        DOC_TYPE                  =    document type
if you set a different year or period from the value that you have in the posting date the bapi trigger an error
> ACCOUNT GL
>       ITEMNO_ACC   = progessive number
>       GL_ACCOUNT  = G/L Account
>       ITEM_TEXT       = item text
>       DOC_TYPE      = document type (the same of the header for all item)
>       COMP_CODE   = company code (the same of the header for all item)
>       BUS_AREA      = business area
>       TAX_CODE       = tax code
if you set a different doc_type or company code for each item the bapi trigger an error
> ACCOUNTTAX                
>            ITEMNO_ACC   =  progressive number
>            GL_ACCOUNT   = G/L Account referred to TAX CODE
>            TAX_CODE        = TAX CODE
>            TAX_RATE        =  TAX RATE
>            ITEMNO_TAX     = progressive number  which tax item is referred
>CURRENCYAMOUNT
>           ITEMNO_ACC     =  progressive number
>           CURRENCY        =  currency
>           CURRENCY_ISO =  iso currency that you find in TCURC-ISOCD table
>           AMT_DOCCUR    =  amount with sign the sign +/- identify Debit/Credit Indicator
> - this field only for tax record
>           AMT_BASE        =   is the AMT_DOCCUR of the line which ypu want to calculate the tax with sign
>           TAX_AMT           =    tax amount
usually for calculate the correct value i use these functions 'CALCULATE_TAX_FROM_GROSSAMOUNT' or 'CALCULATE_TAX_FROM_NET_AMOUNT' it depends if i have the net or gross amount.
for example:
DOCUMENTHEADER                                  
>        BUS_ACT                    =    'RFBU'
>        USERNAME                =    sy-uname
>        HEADER_TXT              =    'my_text'
>        COMP_CODE              =    '0001'
>        DOC_DATE                  =    '20080115'
>        PSTNG_DATE              =    '20080115'
>        FISC_YEAR(1)              =    '2008'
>        FIS_PERIOD(1)             =    '01'
>        DOC_TYPE                  =    'SA'
ACCOUNT GL
>Record 1
>ITEMNO_ACC =  0000000001
>GL_ACCOUNT =   0290111010
>ITEM_TEXT =   ITEM_TEXT
>DOC_TYPE =    SA
>COMP_CODE =    0001
>BUS_AREA =   GS1                                                                       
>Record 2
>ITEMNO_ACC =  0000000002
>GL_ACCOUNT =    0500103900
>ITEM_TEXT =   ITEM_TEXT
>DOC_TYPE =   SA
>COMP_CODE =   0001
>TAX_CODE =  V2
ACCOUNTTAX
> Record 3
>ITEMNO_ACC =   0000000003
>GL_ACCOUNT =  0221103001
>TAX_CODE =  V2
>TAX_RATE =  20.000
>ITEMNO_TAX = 0000000002
CURRENCYAMOUNT
>Record 1
>ITEMNO_ACC = 0000000001
>CURRENCY =  EUR
>CURRENCY_ISO =   EUR
>AMT_DOCCUR  = 150.00
>AMT_BASE =  0.00
>TAX_AMT =  0.00
>Record 2
>ITEMNO_ACC = 0000000002
>CURRENCY =  EUR
>CURRENCY_ISO =   EUR
>AMT_DOCCUR  = -125.00
>AMT_BASE =  0.00
>TAX_AMT =  0.00
>Record 3
>ITEMNO_ACC = 0000000003
>CURRENCY =  EUR
>CURRENCY_ISO =   EUR
>AMT_DOCCUR =  -25.00
>AMT_BASE =  -125.00
>TAX_AMT =   -25.00
hope that is useful.
Bye
Marco

Similar Messages

  • BAPI_ACC_DOCUMENT_POST with TAX posting for FB60 t-code

    Hi Experts,
    I am trying upload the data using BAPI_ACC_DOCUMENT_POST with Tax(ACCOUNTTAX) for the FB60 t-code. But not getting right.
    Any help on this issue greatly appreciated.
    Thanks & Regards,
    Harish

    Hi,
    Check out this-
    FU BAPI_ACC_DOCUMENT_POST
    Short Text
    Accounting: Posting
    Functionality
    Using this method you can create a posing in accounting for certain business transactions.
    Possible ( Business Transactions):
    Postings that generally only affect the general ledger. (RFBU)
    Billing: For billing in Sales and Distribution, accounting is supplied with the relevant billing data. (SD00) Billing Document
    Accounting can use the data of a logistics system that result from an Invoice Receipt. (RMRP)
    Goods Movement are triggered by transactions in Sales and Distribution or by inventory postings. Within logistics, they lead to a change in the warehouse stocks of <DS:GLOS.Inventory Management>Inventory Management. This results in a posting in accounting. This is why accounting is supplied with the relevant data from logistics. (RMWA)
    Example
    Billing document:
    By selling goods in accordance with targets, revenue is generated. The revenue is posted in billing and forwarded to accounting.
    Invoice receipt:
    Raw materials are purchased in accordance with targets. The invoice receipt is posted in a logistics system. The data from the raw materials is forwarded to accounting.
    Goods Movment:
    The use of raw materials leads to a change in stock in inventory managment. The posting of raw material consumption is forwarded to accounting.
    G/L Account Posting:
    Provision posting for an expected warranty service. This can refer to acquisitions or retirements belonging to stocks that are not in subledger accounting relevant to inventory management. This is particularly the case if such materials are not displayed as vendor/customer, materials, loans etc. or cannot be displayed in this way. This can also refer to write-ups or depreciation that contain higher aggregations of values than are maintained in a corresponding subledger that is relevant to inventory management.
    The conversion of foreign currencies for receivables/payables due to large exchange rate changes that should not lead to an update of the accounts payable or accounts receivable accounting. A similar transaction can arise for the revaluation of raw materials if this revaluation takes place at a correspondingly aggreagated level.
    Reclassification of inventory of P&L statement accounts that are only used for reconcilliation purposes in the general ledger (this rearranges values for balance sheet items).
    Balance reclassifications of stocks to receivables with different return times.
    Notes
    If the parameter CurrencyAmount is filled with the currency fields, a complete document check including characteristics and value components of profitability analysis (CO-PA). Otherwise, the account assignment objects are checked.
    Messages are returned in the parameter Return. In the parameter documentation you can find the return values and their meaning.
    Further information
    You can find further information in the SAP Library under "Financials -> Accounting - General (AC) -> Interfaces to Accounting (AC)".
    Parameters
    DOCUMENTHEADER
    CUSTOMERCPD
    CONTRACTHEADER
    OBJ_TYPE
    OBJ_KEY
    OBJ_SYS
    ACCOUNTGL
    ACCOUNTRECEIVABLE
    ACCOUNTPAYABLE
    ACCOUNTTAX
    CURRENCYAMOUNT
    CRITERIA
    VALUEFIELD
    EXTENSION1
    RETURN
    PAYMENTCARD
    CONTRACTITEM
    EXTENSION2
    REALESTATE
    ACCOUNTWT
    Reward if useful!

  • A few days ago i bought the macbook pro in a Providence. In late Summer i will come back to my Country - Ukraine. I would like to know about a tax for my laptop. Can i return tax? Through the TAX FREE or return in airport? What should i do?

    A few days ago i bought the macbook pro in a Providence. In late Summer i will come back to my Country - Ukraine. I would like to know about a tax for my
    laptop. Can i return tax? Through the TAX FREE or return in airport? What should i do?

    You need to talk with the tax authorities in the countries to which you traveled and that of your home country. We are all end-users liek you and not Apple agents.

  • How to revrse the documnt posted through the Depreciation run AFAB

    Hi,
    Please advise, how to revrse the documnt posted through the Depreciation posting using tcode AFAB.
    Thanks & Regards
    Jai

    Hi JayChandra
    Hope I gave my reply vide your earlier todays thread  Re: How to reverse the document posted through AFAB(Depreciation run)
    Please check  The answer is
    You can not reverse
    Make your correct changes in Asset Master/Depreciation data  and rerun AFAB
    System posts the difference

  • I have tried loading 3 different cds that I just bought into Itunes and I click the import cd button and it goes through the motions of importing the cds, but when I go to my library none of these cds is there.  Help, please!

    I have tried loading 3 different cds that I recently purchased into Itunes.  I click the import cd button and Itunes goes through the motion of copying and importing the cds, but the songs are not in my music library.  I have searched everywhere to find where these cds might be, but to no avail.  Could really use some help here.  Never used to have this problem.

    Are they in the relevant artist & album folders when you look via Windows Explorer. If so something may have gone wrong with the index of the Music playlist. Download the current iTunes Free Single of the Week. I know it sounds odd, but it should fix the problem.
    If that doesn't work close iTunes and delete the hidden file sentinel from inside the main iTunes folder, then start iTunes again. It should run a consistency check when it starts up.
    tt2

  • I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

  • I have Adobe Acrobat 7.0 Professional that I want to migrate to my newer laptop running Windows 7. I downloaded the file 22020134.exe to reinstall it on my new computer and I go through the hops and when I put in the Serial Number it tells me its invalid.

    I have Adobe Acrobat 7.0 Professional that I want to migrate to my newer laptop running Windows 7. I downloaded the file 22020134.exe to reinstall it on my new computer and I go through the hops and when I put in the Serial Number it tells me its invalid.

    22020134.exe is the file Adobe say you must download and run to instal Acrobat 7.0 Pro. I went through the  process, the one described in your link, I downloaded the file, ran it, it runs well, except it tells me my serial number is invalid. Now what? Does this mean I now have to discard my Adobe Acrobat 7.0 Professional and start again with a $500 purchase? All I want to do is transfer what I have to another computer.  

  • Trying to update iphone to 5.0 and after going through the entire download, I get the message that "the Network Connection timed out".  Check my network settings.  Help!

    Trying to update iphone to 5.0 and after going through the entire download, I get the message that "the Network Connection timed out".  Check my network settings.  Help!

    I have been having this problem for many many months. I switched off my firewall and windows firewall and i am still having the same problems.
    Apple store were not helpful in anyway and im at my wits end :-(
    Any help welcome

  • TS2951 I have a laptop (2010) with Lion OS and tried to install Mavericks and part way through the installation it quit and reverted back to Lion and the app store doesn't let me download Mavericks again

    I have a laptop (2010) with Lion OS and tried to install Mavericks and part way through the installation it quit and reverted back to Lion and the app store doesn't let me download Mavericks again. How can I resolve this?

    Is your data backed up?
    Are you running any non-Apple system optimization tools?

  • HT4759 I just got a new IPAD and transferred everything through the cloud from my old IPAD2. The new one says "this IPAD is currently being restored. It has been that way for about 2 hours. Also, I books will open and then close right away with no content

    I just got a new IPAD and transferred everything through the cloud from my old IPAD 2. The new one says "this IPAD is currently being restored. It has been that way for over two hours. Also, I Books opens and then closes right away with no content. Does it take this long, or is there an issue?

    I also tried manually underlining a few things on the new iPad and when highlighting a paragraph, it would skip a few lines and the line would go through a few as well. Looks like a major iBooks glitch needs to be addressed here.

  • When I open about this mac - more info and I switch through the tabs (display,memory,storage,support,service) it lags (fps drops, animation looks choppy not smooth). Why does this happen? (over 300 gb free,same programs installed,free desk-downloads)

    When I open about this mac -> more info and I switch through the tabs (display,memory,storage,support,service) it lags (fps drops, animation looks choppy not smooth) even though all the mac (programs , interface ) works smooth . Why does this happen? (over 300 gb free,same programs installed,free desktop-downloads -no garbage there- everything neat and tidy.) Need some help. Only there it the animations goes like 2 fps and is not smooth. I do not understand why because the programs are the same so its the usage. Nothing is changed, yet i experience this little issue for a couple of days.

    OK, I'm confused. When I do About this Mac > More Info in OS10.9, I don't see any animation other than the window resizing. Is that the animation you are describing?
    Which if any of the following apply to your computer:
    1) Are you running any anti-virus/internet security applications?
    2) Are you running any "cleaning/tune-up/optimizations" applications?
    3) Any peer-to-peer or torrent downloading software?
    4) Any third-party disk backup software that came bundled with an external hard drive?
    5) Any online backup scheme other than iCloud (Carbonite; GoogleDrive; MS One Drive)?
    6) Did your financial institution ask you to install Trusteer EndPoint Protection (also known as Trusteer Rapport)?

  • Seeing the X on the padlock and a slash through the https on the address line when I use Outlook Web App

    I run exchange 2013 on windows 2008 R2 with a cert from VeriSign that is about 2 years away from expiration. I have a user who uses our Outlook Web App from home and keeps complaining he is "seeing the red X on the padlock and a slash through the https
    on the address line when he uses Outlook Web App"
    I go to EAC and the cert seems fine - ALTHOUGH I get a cert error on my IE when I login into EAC. So I'm wondering if I have a cert problem.
    Any help would be appreciate.
    RJM

    Hi,
    According to your description, I understand that login OWA and return an certificate warning.
    If I misunderstand you concern, please do not hesitate to let me know.
    I want to double confirm whether all user or some special user experience this issue. If only few of user face this problem, please try to double check the Trusted Root Certification Authorities Certificate Store in IE.
    Otherwise, please run below command to double check the status of Exchange certificate:
    Get-ExchangeCertificate | FL Identity,Subject,Status,RootCAType,NotAfter,NotBefore
    If the certificate expired, please pay attention to below link to renew Exchange Certificate:
    https://social.technet.microsoft.com/Forums/office/en-US/5dc21f0f-5e09-469f-90a8-efcbfd56f884/renewing-exchange-2013-certificate?forum=exchangesvrgeneral
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • Theres a 20.00 charge on my account and ive went through the history and weve not bought nothing for 20.00

    theres a 20.00 fee on my banking account from itunes and i went through the history and weve not bought nothing i was wonder who i have to talk to about it

    You can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    But if nothing shows on the purchase history for your account : http://support.apple.com/kb/HT2727
    then you might also want to contact your card issuer

  • I purchased a movie through iTunes and half way through the movie it freezes up

    I purchased a movie through iTunes and half way through the movie it freezes up.what can I do to fix this problem?

    How to report an issue with Your iTunes Store purchase

  • Album uploaded to Itunes match, plays on computer but won't play on ipod, no cloud symbol next to songs. Press play on 1 track and it skips through the album without playing. I've tried deleting the album from PC and downloading again from match and even

    Album uploaded to Itunes match, plays on computer but won't play on ipod, no cloud symbol next to songs. Press play on 1 track and it skips through the album without playing. I've tried deleting the album from PC and downloading again from match and even after syncing the album won't play on the ipod
    iPod touch, iOS 6.1

    I've just connected the ipod to my computer and checked the music on the iPod. The album that I am having trouble with shows an exclamation symbol next to it. I've tried deleting the album from iTunes and re downloading it then syncing but it doesn't appear to affect the information shown the iPod. The album neither deletes nor updates.

Maybe you are looking for

  • Can't get ipod to appear in iphoto source list

    Hi, I've just come back from a holiday with my camera, ipod and camera connector and I want to transfer all the photos I loaded onto the ipod into iphoto. From what I have read, it seems that the ipod should automatically appear in the iphoto source

  • Campsites are not oriented properly on a michigan dnr campground map

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/777707]</blockquote><br> When I access a michigan dnr campground map, the campsite numbers are displayed high and off the sites. Are my browser settings incorrect or do I nee

  • How to install Win XP on Equium P200

    Hi guys, I found a very usefull tutorial how to install windows xp onto Equium P200 laptop. Problem is that when I have done everything whats in that tutorial (used nlite, made xp install cd with sata drivers) Win Xp is showing error. When u boot fro

  • Migrated Safari MAJOR problems

    Got a new '11 Mac Mini, used migration assistant to move Macbook Pro contents (including Safari which was opening every time with spinning balls). Now the new Mac Mini with Lion is a disaster.  I open Safari and get a spinning ball, force quit it and

  • Shameful Sales Practices

    Door to door sales person comes to my house, identifies him as a Verizon employee. He tries to sell me TV service through Fios. I tell him to put it in writing, he tells me he will (but doesn't). Next day I get a call from Verizon scheduling my TV se