Bapi_Acc_Document_Post - E 018 : Invalid tax code and company code combination

Hi All,
I need the help of this forum once again.
I am using bapi Bapi_Acc_Document_Post to create KR documents in SAP. The bapi works absolutely fine except for one scenario:
For a particular type of invoice coded to Company "XXXX" with lines having tax code "I0", the bapi returns error message "E 018 : Invalid tax code and company code combination". The tax code "I0" and the company code "XXXX" has been mapped in SAP and if I try to create the invoice manually in SAP using the GUI, the invoice gets created without any issue.
I have tried searching the forum but could not find any post on this topic.
Therefore, requesting the masters to please help me out on this.
Best Regards
Sutirtha Roy

Hi Gowthami,
how have you solved your problem, because I am facing the similiar issue and trying desperately to post the following combination with BAPI_ACC_POST_DOCUMENT:
001 40       490100     Aufw. aus Marge PP              R2                 15,92
002 31       10000003   Kreditor                                R2                 15,92-
003 50       175060     Abzugsverfahren USt            R2                  3,18-
004 40       154060     Abzugsverfahren Vst             R2                  3,18
THANX!
Regards
Marko

Similar Messages

  • Tax Code and Company Code assignment

    Dear Experts,
    Please let me know, whether is there any mandatory requirement to assign tax codes to company codes
    Whereas we are using condition based tax procedure.. TAXINN
    What are the implications and necessity to do the same..
    Thanks in advance.

    Hi,
    When you are using TAXINN assign the tax codes to company code in CIN settings. If you assign tax codes to company code in CIN, those tax codes we can use for the company code.
    Based on country we will define taxcodes, in Company code country is assigned.
    Hope its clear.
    reg
    Durga
    *Assign points if info is useful

  • VAT registration number in combination with country and company code

    Hi,
    Is there configuration where we can define the VAT registration number with combination of country and company code.
    thanx in advance

    Hi,
    Thanx for the reply.bt the issue is like we have a condition type zvat where condition table have the following fields departure country and destination country,The country of our company code is GB and we maintain a record for condition type zvat i.e GB (departure country) to GB (destination country) 17.5%.While creating a contract if vat is applicable we told user to maintain country GB in both the fieds i.e tax departure country and tax destination country in billing tab at header level of the contract .It is working fine for other company where  company code country is different then GB.But for this where company code  country is GB.An error occurs i.e.There is no vat registration number fot this comapny code XXXX for  country GB.
    Now how should i go about it?

  • Assign Withholding Tax Types to Company Code

    In SPRO in the menu item "Assign Withholding Tax Types to Company Code"  (program SAPL0F61), I enter to try and setup the Types for my new Company code. 
    When I go into New Entries,  On the top drop-down I enter my new Company Code, then in the
    "Wthhld tax type" field, I click on the look-up and don't see the Withholding tax types that I setup for country Italy.  The only ones that are showing up are for a previous country setup Mexico.
    I setup Italy as a Withholding Tax Country, and I setup the Withholding Tax types already.
    Does anybody know how to get the Withholding Tax Types to show up for Italy and not just Mexico?
    thanks

    This is an ABAP Development forum, you might want to post your question in the SD or FI forum instead.

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • FROM WHICH TABLE I CAN FIND  GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTI

    FROM WHICH TABLE I CAN FIND  GL ACCOUNT NUMBER AND COMPANY CODE OF A PARTICULAR CUSTOMER?..I AM TRYING TO POST AN IDOC ..SO DATA HAS TO BE PROPER.JUST TELL THE SOLUTION

    Hi rendeep,
    1. LFB1
       this is the required table.
    2. field is AKONT
    3. The account number can be different
       for different companies.,
       hence it depnds upon combination of
       LIFNR
       BUKRS
    regards,
    amit m.

  • Database table/FM to find relation between plant and company code in SRM

    Hi,
    I have a requirement where I need to determine the relation between the plant and company code in SRM.
    The plant and company code both belong to R/3. We are replicating the plant by using the report BBP_LOCATIONS_GET_ALL.
    This plant is now available as a BP in SRM. But from which SRM table or using which SRM FM can I get the relation between this and the company code?
    Thanks,
    Srivatsan

    Hi
    <b>Check table BBP_LOCMAP. (Plants) -  Manage Table Business Partner   > System   > Location
    BBP_COMPCODE_FAV               User-Specific Favorites for Permitted Company code.</b>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Upload of chart of accounts at coa and company code level

    dear all
    can you tell me how it is best to upload a new chart of accounts both as a chart of accounts level and company code. i am planning to use lsmw but shoud i upload chart of accounts first then company code level?
    with many thanks
    Peter

    Hello Peter,
    If you have single company code then create one LSMW for transaction "FS00" it upload the COA both at company code and COA level. If you have morethan one company code and you want to upload same COA to both company codes then better first COA level with FSP0 then company code level with FSS0 because here you can extend the required GL's from COA to COmpany code.
    Regards
    Swapna

  • Table that gives the relation between plant and company code

    Hi gurus,
    I actually have plant number and using this plant value i need to get the company code.
    Is there any table that gives the relation between plant and company code. So,that i can get the company code details.
    Thanks in advance.

    Hi Bhanuphani,
    Use  T001K  where BWKEY is the plant
    Reward if useful
    Thanks Arjun

  • Valuation at plant level and company code level

    Hi,
    Can someone explain me the difference between the valuation at plant level and company code level with a real world example?
    Regards,
    Malsha Kalubowila

    Hi,
    Inventory can be valuated at two levels either at company code level or at plant level. If you select valuation at company code level, all materials across all the plants will have same material price since valuation is at only company code level.
    Say for example Company code 1000 is buying a material which unit price is Rs. 10 from a vendor who supplies to two different plant A & B of company code 1000.  Assume Plant A is situated near vendor premises itself (so freight cost is Re 1 extra)  whereas plant B is situated at far away from vendor place (so freight cost rs 2 extra) and both cases freight cost is borne by the company and not by vendor.
    Assuming you have selected valuation at plant level, now in plant A same material will be valauted at Rs. 11 (10 +1) whereas at plant B it is valuated at Rs. 12 (10+2).
    Whereas if you have selected valuation at company code level, price will not be valuated at plant level rather at company code level which will get updated at moving average price in this case.
    So it is always best practice to select valuation at plant level rather than at company code level.
    Reg
    Karthikeyan G

  • Need a output based on document no and company code

    Hello All,
    I am new to BI and appreciate your cooperation
    I have a requirement where in I need a total count based on Document no and company code in the Report where in a document no can exist in multiple company code
    Say for eg
    Doc No CompanyCode
    123456          1000
    123456          2000   
    222222          2000
    333333          2000    
    Now I need the count based on document no and company code in the report. Kindly advice
    Thank you
    Poonam

    Hi Poonam,
    I don't know if this is possible in Query Designer level..
    Here is my suggestion:
    1. Create a new infoobject that will be used for the combined Doc No and Comp Code
    2. In transformation level, create a field routine that will CONCATENATE the Doc No and Comp Code in the infoobject you have created in STEP 1
    3. In Query Designer, make a FORMULA VARIABLE and choose REPLACEMENT PATH (select the infoobject you have created in STEP 1)
    4. In replacement path tab, choose INFOOBJECT, then ATTRIBUTE, and select CONSTANT 1 (forgot the exact name but there is constant 1 something in the selection)
    5. Create a global CKF with this formula (FORMULA VARIABLE * 1), this is necessary because sometimes the FV doesn't work without doing this
    6. Use the global CKF in your keyfigure structure, it will show the number of UNIQUE combination of Doc No and Comp Code
    Regards,
    Loed

  • Blocking a Tax code at company code level

    Hi
    I want to deactivate/block a tax code at company code level instead of country level.
    Anyone pls help
    Regards

    Hi,
    SPRO-SAP IMG-Logistics - General-Tax on Goods Movements-India-Basic Settings-Determination of Excise Duty-Condition-Based Excise Determination-Assign Tax Code to Company Codes
    Or
    Remove the gl accounts attached in OB40.
    Or
    Remove the calculation percentages in FTXP.
    Hope this is helpful.
    Regards,
    Sankar

  • Company code and other codes

    Hi Gurus
    Can I dislose the company code and other codes like Business area, sales organisation etc of my previous project to the interviewer?
    Thanks gurus

    hi,
    infact its better you tell how those things have been configured so that they understand how much you know and how the naming conventions were followed.
    Everything can be talked as long as its in the premise of professionalism and work.
    Thanks
    Sadhu Kishore

  • Company and company code

    Hi friends
      Can any one tell me the usefullness and functionalities of a company and company code.
    Regards
    Balu

    hi,
    <b>company & company code:</b>
    The smallest organizational unit for which individual financial statements can be drawn up according to the relevant commercial law.
    A company can consist of one or more company codes.
    All company codes within a company must use the same transaction chart of accounts and the same fiscal year
    breakdown. The company code currencies can be different.
    A company has one local currency in which its transaction figures are recorded.
    company code is highest level of organisation unit in FICO
    regards,
    Arun prasad
    Message was edited by:
            arun prasad

  • PLant and Company Code

    Hi experts
    In which Table can I get Both Plant and Company Codes.
    Message was edited by:
            Kapil

    Hi,
      Use VBAK and VBAP and u can use MSEG
    Regards,
    Prashant
    Message was edited by:
            Prashant Patil

Maybe you are looking for

  • How to Add parameter fields in BI publisher fields

    Hi, I'm creating xml report for Apps standard Trial Balance Summary, here i cant able to run the .rdf locally due to SRW.UserExit . So i got the XML file from output of the report. Then i added the xml data in BI publisher and then i have created the

  • Itunes not working on windows xp

    I was prompted on itunes site to download the most up to date versionof itunes which I did. Now I find that the itunes programme/application will not run on my PC. I am using Windows XP on a Pentium 4 cpu 3.00GH2, 2.99 GHz  2.50 GB Ram. It looks like

  • Mac mini input not supported

    After I power up my mac main with 10.4.1 os I type in my password, then the screen goes black and says " input not supported"

  • Pro: in RF Development  how can i get the scaned barcode value to Tcode

    Hi,     I need to develop a custom RF settings for Scaner. I have gone through the SAP Provided documentation. SAP Has given in report we need to call Screen. Every thing is clear for me... creating report, screen, triggering messages, customization.

  • Canon 7D Mark II tether capture in Lightroom 5.7.

    I read where the latest version of Lightroom now supports 7DM2; however, the communication link does not complete properly. It connects, then quickly disconnects. I am able to view, in that short period, Lightroom identifies the type model. I have no