Using BAPI_ACC_INVOICE_RECEIPT_POST  not able to post invoices

Hi all,
I am trying to create invoices using BAPI_ACC_INVOICE_RECEIPT_POST this BAPI. when i executed this BAPI it says the Document successfully created and it is giving the document number also. when check the document number in data base it is not exists in the database
after calling this BAPI, I am calling BAPI_TRANSACTION_COMMIT also. it is not showing any documents in the database.
if any body knows the solution, please reply to  this thread..
Regards,
Venkata

Hi,
Please find my code below. Let me know if you need more information.
headerdata-comp_code = '1025'.
headerdata-FISC_YEAR = '2008'.
headerdata-doc_date  = '20080602'.
headerdata-PSTNG_DATE = '20080602'.
headerdata-FIS_PERIOD = '06'.
headerdata-doc_type   = 'KR'.
headerdata-USERNAME   = 'VE7'.
wa_ACCOUNTPAYABLE-ITEMNO_ACC = '0000000010'.
wa_ACCOUNTPAYABLE-VENDOR_NO  = 'IVP5360'.
wa_ACCOUNTPAYABLE-GL_ACCOUNT = '0000211060'.
wa_ACCOUNTPAYABLE-PMNTTRMS   = 'Z062'.
append wa_ACCOUNTPAYABLE to ACCOUNTPAYABLE.
wa_ACCOUNTGL-ITEMNO_ACC  = '0000000020'.
wa_ACCOUNTGL-GL_ACCOUNT  = '0000114240'.
wa_ACCOUNTGL-COMP_CODE   = '1025'.
wa_ACCOUNTGL-PSTNG_DATE  = '20080602'.
wa_ACCOUNTGL-doc_type    = 'KR'.
wa_ACCOUNTGL-FISC_YEAR   = '2008'.
append wa_ACCOUNTGL to ACCOUNTGL.
wa_CURRENCYAMOUNT-ITEMNO_ACC = '0000000010'.
wa_CURRENCYAMOUNT-amt_base = '1031'.
wa_CURRENCYAMOUNT-CURRENCY = 'USD'.
append wa_CURRENCYAMOUNT to CURRENCYAMOUNT.
clear wa_CURRENCYAMOUNT.
wa_CURRENCYAMOUNT-ITEMNO_ACC = '0000000020'.
wa_CURRENCYAMOUNT-amt_base = '1031'.
wa_CURRENCYAMOUNT-CURRENCY = 'USD'.
append wa_CURRENCYAMOUNT to CURRENCYAMOUNT.
CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
  EXPORTING
    DOCUMENTHEADER       = headerdata
  CUSTOMERCPD          =
IMPORTING
  OBJ_TYPE             =
  OBJ_KEY              =
  OBJ_SYS              =
  TABLES
    ACCOUNTPAYABLE       = ACCOUNTPAYABLE
    ACCOUNTGL            = ACCOUNTGL
    ACCOUNTTAX           = ACCOUNTTAX
    CURRENCYAMOUNT       = CURRENCYAMOUNT
  PURCHASEORDER        =
  PURCHASEAMOUNT       =
    RETURN               =   RETURN
  CRITERIA             =
  VALUEFIELD           =
  EXTENSION1           =
         commit work.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
   WAIT          = 'X'.

Similar Messages

  • Not able to post invoice.

    User is trying to post an invoice against a PO.  The PO requires a tax code for the account assigned in the PO, but that account doesnu2019t require a tax code in the ledger and there isnu2019t a way to select a tax code in the ledger for this account.

    Hi
    In MIRO, you need to enter tax codes both in GL and Vendor line item. also click on calculate tax check box. Further check in the PO at the line item if any tax code is defined.In GL master under control tab, what is maintained for tax category?
    Regards
    Sanil

  • Not able to post outgoing excise invoice

    hi expert
    i am not able to post outgoing excise invoice, its showing error that G/L account is missing (1)   and i checked evrywhere
    in tax code ,outgoing cenvet clearing account is there ..
    can anyone know where i am missing

    Hi Sahil,
    Check below three reasons .....
    1. open form setting on outgoing excise invoice and tick the g/l account and choose it at transaction time.
    2. Check cenvat account on warehouse level .
    3. Check cenvat account on item group level
    4 Check cenvat account in g/L account determination(General tab) .
    Regards
    Deepak Tyagi

  • Not Able to Post Takeover Values using AS91

    Hi Guys,
    I am not able to post Takeover Values as of 12/31/2007. I gave the last closed fiscal year as 2007 and the system automatically took the takeover date as 12/31/2007. When I try to enter the dtat in Takeover values, it is greyed out. Can anybody explain why it is not allowing me to change values?
    Thanks and Regards
    Madhu Vutukuri

    Hi,
    Try this option -
    1. Keep the cursor focussed on the field that you want to change
    2. Goto Menu Edit >> Change field contents
    A pop up will appear asking to change the value.  Give the required value to be changed and save.
    Regards,
    Sridevi

  • GR based IV tick mark in PO- not able to post MIRO

    we are working for a indian client with CIN. most of the PO's which is created in SAP system with all Excise parameters and applicable taxes. further all PO's created with GR based IV check box enabled.
    now the issue is, in some of the purchases vendor is not applicable for excise, so there is no excise parameters in the PO, only tax is applicable. for this case we have not maintained vendor excise details in J1ID. but we have maintained material chapter id and CENVAT determination in J1ID. but as i mentioed earlier these PO's also with GR based IV check box enabled.
    If the PO is not excisable no Excise capturing and posting is required, for these types of PO's we are following the below steps
    1. Creation of PO with GR based IV check box enabled
    2. Goods Receipt without excise capturing
    3. Invoice verification - MIRO ( here system is not able to post the docuement because of GR based IV tick mark)
    waiting for the response

    hi,
    thanks for the response
    problem is MIRO is not posting whenever GR made with GR based IV tick in PO.
    i have checked three scenario
    scenario1.
    1. created PO with GR based IV, but there is no Excise or Tax captured in PO ( means no FV11 created)
    2. Created MIGO ( no excise parameter will appear)
    3. MIRO done with respect to MIGO
    this scenario is fine
    Scenario 2 - current scenario
    1. Created PO with GR based IV, No excise is captured in PO but Tax (VAT captured with condition type JVRD) is captured   ( means no FV11 created for VAT only)
    2. Created MIGO ( no excise parameter will appear)
    3. while doing MIRO for this scenario system is not able to post the MIRO because of the VAT in PO and GR based IV tick mark.
    Scenario 3
    1. Created PO without GR based IV, No excise is captured in PO but Tax (VAT captured with condition type JVRD) is captured   ( means no FV11 created for VAT only)
    2. Created MIGO ( no excise parameter will appear)
    3. MIRO system is picking from PO based IV. so, it is allowing to post
    need your expert advice on scenario 2 - how to post MIRO

  • Not able to post parked document

    Hello All,
    I am unable to post parked documents.
    I enter one credit memo from vendor vide menu FB65.   I could NOT post the document.   The option was greyed out.  I could only park it.  I parked it.
    I am not able to post this parked document.  I tried posting this parked document vide menu FBV0 / FBV60.  The post option is not available and is greyed out.
    Regards
    Rao

    Hi Kasturi,
    On the same screen where you are trying to post the invoice type /nSU53 and take the snap shot of the screen (authorization missing objects). Send it to your SAP secutiry team or the team who gives you authorization for any transaction.
    They will provide you the required access to post the invoice.
    Please let me know if it helps!!
    Regards.

  • Not able to post a new topic to Discussions Safari Safari for Mac

    Hi, I'm new to Apple Discussions, but not new to posting to forums.
    Currently I'm not able to post to Discussions>Safari>Safari for Mac. I can login, view all post threads, create and save a draft, preview the draft, but cannot post the draft to Discussions>Safari>Safari for Mac.
    However I am able to post to a different category; Discussions>Mac OS X v10.4 Tiger>Using Mac OS X Tiger. See posting "This is a test. Please do not reply to this post".
    When I try to post to Discussions>Safari>Safari for Mac I get pushed to another web link and system message as follows;
    http://discussions.info.apple.com/backsoon/discussionstempaway.html
    We're sorry, Apple Discussions is temporarily unavailable. We'll be back soon.
    Until then, please visit http://www.apple.com/support
    Currently when I open the category Discussions>Safari>Safari for Mac, I see an error message that reads;
    Error
    An error in the system has occured. Please contact the system administrator if the problem persists.
    I have searched for a link to "contact the system administrator", but cannot find it.
    I get around the Safari for Mac category error message by clicking on 'next' and it then displays the current threads.
    Any help would be greatly appreciated. This is a bonus issue I'd like to resolve asap, to get to my original issue with Safari 4.1 crashing.
    Thanks to those who can help!

    You're Welcome cuzindave!
    That's odd. It was OK before but when I checked again it was down and now it's back.
    Safari For Mac
    "Is there really a system admin to contact?"
    Posting here is the correct procedure.
    ali b

  • Not able to post the document

    Hi All,
    I have a one doubt i am not able to post the document. After the withholding tax setting i am not able to post the document. I am getting the error Account determination not defined for translation SKT in chart of account. Please help me.
    Thanks in advance.
    Thanks
    Srikanth Gajulla

    Dear Srikanth,
    Error occurred due to payment difference is loss and that should be adjusted with cash discount loss account and assigned the GL account which should be posted here.
    use the T-Code - OBXI and the GL account. check the screen shot.
    Regards,
    PK.

  • Not able to post journal voucher because of unbalanced system currency

    Hi
    I am not able to post journal voucher because of unbalanced system currency (the local currency is matching).
    what should be done, i have posted close to 70 entries!!!!!
    I am using SAP 2005B patch level 44
    please help
    Thanks

    Hi santosh,
                      To the account to which you are posting the entry.What currency you have set for it.
    regards,
    PankajK

  • Not able to post messages

    Hello,
    I am not able to post any message from my office PC neither;
    1.Using IE in windows xp
    2.Using Firefox in windows xp
    3.Using Firefox in RHEL 4
    When i click on reply button, message windows comes as usually, but when i click on Post Message button, it becomes endless; progress bar seems to increase for 2-3 steps, with no error, while; from other PC in the office; same LAN connection, messages are going to post perfectly. Even this question, i am posting from my office's another PC. Anyone has encountered such a problem/issue, please share with me. I have'nt installed/removed any program. I am able to access other websites normally.
    Thanks and Regards
    Girish Sharma

    Girish Sharma wrote:
    Hello,
    I am not able to post any message from my office PC neither;
    1.Using IE in windows xp
    2.Using Firefox in windows xp
    3.Using Firefox in RHEL 4
    When i click on reply button, message windows comes as usually, but when i click on Post Message button, it becomes endless; progress bar seems to increase for 2-3 steps, with no error, while; from other PC in the office; same LAN connection, messages are going to post perfectly. Even this question, i am posting from my office's another PC. Anyone has encountered such a problem/issue, please share with me. I have'nt installed/removed any program. I am able to access other websites normally.
    Thanks and Regards
    Girish SharmaHave you solved your problem Girish?

  • Urgent : Im not able to Post Withholding Tax in "BAPI_ACC_DOCUMENT_POST"

    Hey Guys,
    I am not able to Post Withholding Tax in BAPI "BAPI_ACC_DOCUMENT_POST".
    Can anybody please tell me the alternative ???
    How can i post With holding TAX info with accounting document...is there any other function module to do the same ???
    It's very urgent...only 3 days are left for Project to be Live.
    Please help me ...
    Thanks in advance

    Hi
    Hope it will help you.
    <REMOVED BY MODERATOR>
    BAPI_ACC_GL_POSTING_CHECK
    CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
    EXPORTING
    documentheader = w_documentheader
    TABLES
    accountgl = it_accountgl
    currencyamount = it_currencyamount
    return = it_return.
    Populate the corresponding tables with the data you have.
    For the Date do convert it.
    PERFORM convert_date USING it_header-bldat
    CHANGING w_documentheader-doc_date.
    w_documentheader-comp_code = 'z998'
    w_documentheader-doc_type = 'SA'
    "and fill the respective tables this way .
    <b>
    BAPI_ACC_GL_POSTING_POST
    </b>
    call function 'BAPI_ACC_GL_POSTING_POST'
    exporting
    documentheader = doc_header
    IMPORTING
    OBJ_TYPE = l_objtype
    * OBJ_KEY =
    * OBJ_SYS =
    tables
    accountgl = t_accountgl
    currencyamount = t_curramt
    return = t_return
    * EXTENSION1 =
    Edited by: Alvaro Tejada Galindo on Mar 5, 2008 10:18 AM

  • Why am i not able to post anywhere?

    I have a general question about blocking access to programs, and the relevant discussion boards have no "Post new topic" button anywhere. I've searched every page and I even see posts from other users, yet I can't find a button anywhere that it is supposed to be.
    I even tried going to the Tips board. I found a "new topic" button that I clicked on, and it tells me that I can't post there and asks me to login. When I try to, it says "error" and redirects me to some "helpful" links that don't help me at all.
    Am I missing something?

    Hi Oh Theatrical One!
    You're probably on a Category page, and not a Forum page.
    And submitting User Tips is only accessible to Level 2 members and above, so you are not able to post in that Forum.
    If you have a question, or suggestion, about using Discussions, from this page Feedback about Discussions, click on Post New Topic.
    If you have a Technical question about Apple Hardware, Programs, Services, Technology, Software, Applications, Products, etc, from this page Discussions - Forum Home, select an appropriate Category from one of the thirteen divisions.
    For example, under Mac OS X Related Software, choose the Category Mac OS X v10.4 Tiger.
    On the page that opens, select a Forum, such as Installation & Setup, or Using Mac OS X Tiger.
    Most Category pages, have numerous Forums within them.
    But some may have only one, two, or three.
    For example the Safari Category page has three choices listed under Forum / Category, but only one is a Forum: Safari Support forum.
    And the Apple Remote Desktop Category, has only one Apple Remote Desktop Forum.
    On Forum pages, there is an option to Post New Topic.
    Click here for all iPod Forums.
    Click here for all iTunes Forums.
    More info here How Is Discussions Content Organized.
    It can be confusing, but explore the different areas, and you will acquire a better understanding of the hierarchy.
    ali b

  • Not able to post vendor payment in case of Cash discount received

    Hello
    We are on SAP ECC 6.0
    I'm not able to post an outgoing payment through F-53 T code when cash discount is received from vendor due to early payment before due date.
    I get the following error message -
    Tax code V0 for country IN has been deleted or incorrectly changed
    Message no. FS201
    Our tax calculation procedure is TAXINN and we are an indian company in India.
    GL account for cash discount received is already defined in OBXU t code for SKE transaction key tax code wise.
    V0 tax code is defined through FTXP.
    I'm able to display correct cash discount amount and cash discount % when i click on select process open item in F-53 after entering document date; posting date; company code; currency; Bank GL A/c; Amount (Net of discount); value date and Vendor Account.
    What am i missing? Why am i not able to post vendor outgoing payment?
    Is it possible to post cash discount received to the credit of Stock / Inventory Account as quantity received is not consumed or quantity is lying in inventory?
    Thanks.
    Vimal

    Hello Chintan
    I have assigned GL A/c in OBXU t code with and without reference to tax code.
    Still, i am not able to post outgoing payment when cash discount is received as i am paying it before due date.
    Cannot i take credit of cash discount received to Inventory / Stock Account?
    Is cash discount received always posted to non-Inventory / non-stock GL Account?
    Thanks.
    VS

  • Not able to post any question

    I am trying to post a question related to PM module but i am not able to post it.
    Can anyone help me in this regard.

    but i am not able to post it.
    this will raise so many questions
    a)  are you able to login ?
    b)  if so, are you able to see "Post New Thread"  ?
    If your answer is "YES" for both the above, then there should not be a problem in posting your question.
    thanks
    G. Lakshmipathi

  • Not able to post Depreciation

    Hi FI Gurus
    I am not able to post Depn. in T code AFAB for the year 2007. Year 2006 there was no transactions are available and has been closed properly. when i execute the depn i am getting the following error.
    "No posting is possible in the fiscal year 2007 specified. The fiscal year specified differs by more than a year from the fiscal year in which the last postings were performed".
    Can you pls help on this.
    Regards,
    MR

    Hi MR
    Is it that 1st time AFAB is done in SAP, when was your go live date.
    Are you able to post any other Asset related documents, if not please
    check whether you had done period generation through T code OA84
    Please revert back
    regards
    A Chandrasekaran

Maybe you are looking for