Accounting document creation for sales invoice with IDOC INVOIC02 ?

Hi All,
Our sales invoice are managed in a external system and those Invoice are going to be send in FI with IDOC interface.
is it possible to use the IDOC INVOIC02 to do this operation ?
if yes, what are the customizing points I have to implement ?
if not, what kind of IDOC can I use ?
Thank you in advance for your help
Franck

Hi Thenna
The accounting document status in the document flow is determined dynamically when you display the document flow,
it's not saved in a specific table.
Here is the relevant logic:
LV05CF01 -> form BUCHHALTUNGSBELEG
IF vbrk-vbeln <> vbfa_tab-vbeln.
   PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
   REFRESH xbkpf.
   CALL FUNCTION 'FI_DOCUMENT_READ'
    LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
                  AND   belnr EQ xbkpf-belnr
                  AND   gjahr EQ xbkpf-gjahr
                  AND   ( koart EQ 'D' OR koart EQ 'K' ).
    ENDLOOP.
            IF NOT sy-subrc IS INITIAL.
  SET STATUS TO 'No items are cleared'
              l_xdoc_num-status = 'A'. <<<
            ELSE.
              LOOP AT xbseg WHERE augbl IS initial
                            AND   umskz NE 'A'
                            AND   vorgn NE 'AZUM'
                            AND   ( koart EQ 'D' OR koart EQ 'K' ).
              ENDLOOP.
              IF NOT sy-subrc IS INITIAL.
  Set status to 'All items are cleared'
                l_xdoc_num-status = 'C'. <<<
              ENDIF.
            ENDIF.
Regards,
Alex

Similar Messages

  • Twice Accounting Document genrated for single Invoice

    Hi,
    I have the simple  scenario SO-Billing - Accounting
    In 1 sales cycle process system genarated 2 accounting document for single invoice.
    Test Case
    Business partner     20131607             RUDRA DISTRIBUTORS
    Document                                                        Date          Overall processing status
    E VOUCHER ORDER 9289367                       07.02.09     Being processed
    E VCHR Comm.Inv. 901539710                     07.02.09     Completed
    Accounting document 3801044102              07.02.09     Cleared
    Accounting document 3801044132              07.02.09     Cleared
    Can any body explain how it happen or what is causes for the same?
    Best will be rewared with points
    Thanx

    Hello,
    Please let us know which SAP system version you are currently working on. This is purely a system error. Please cancel the accounting document generated as well as the billing document. Then try to recreate the billing document once again. Hope this would resolve your issue.
    Regards,
    Sarthak

  • How to find out the Accounting document status for sales order

    Hi
    We have created the sales document by referring the billing document of contract no.Aftre that we have raised invoice for sales document. Now system is generated both invoice , accounting document and the value is appearing against the invoice document. However the status against the accounting document is showing as not cleared. I want to know where we could see this status in Table,
    Normally we can see the status in FPLT for contracts since its having the billing plan no. Suppose if the billing plan is not available like S.O , How to check the status in table?
    I have refered so many tables but not helping. Since i want to get the uncleared value of accouting document.
    Please help me.
    Regards
    Thenna

    Hi Thenna
    The accounting document status in the document flow is determined dynamically when you display the document flow,
    it's not saved in a specific table.
    Here is the relevant logic:
    LV05CF01 -> form BUCHHALTUNGSBELEG
    IF vbrk-vbeln <> vbfa_tab-vbeln.
       PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
       REFRESH xbkpf.
       CALL FUNCTION 'FI_DOCUMENT_READ'
        LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
                      AND   belnr EQ xbkpf-belnr
                      AND   gjahr EQ xbkpf-gjahr
                      AND   ( koart EQ 'D' OR koart EQ 'K' ).
        ENDLOOP.
                IF NOT sy-subrc IS INITIAL.
      SET STATUS TO 'No items are cleared'
                  l_xdoc_num-status = 'A'. <<<
                ELSE.
                  LOOP AT xbseg WHERE augbl IS initial
                                AND   umskz NE 'A'
                                AND   vorgn NE 'AZUM'
                                AND   ( koart EQ 'D' OR koart EQ 'K' ).
                  ENDLOOP.
                  IF NOT sy-subrc IS INITIAL.
      Set status to 'All items are cleared'
                    l_xdoc_num-status = 'C'. <<<
                  ENDIF.
                ENDIF.
    Regards,
    Alex

  • Two accounting document generated for an invoice

    Hi ,
    Friends I am facing a unique problem as two accounting document has been generated for a Invoice.
    Please suggest
    1.  How is it possible
    2.  What is possible solution temporary/ permanent .
    Regards
    Ajit

    Hi ,
    Shiv kumar,
    This is service invoice of E-Recharge voucher of Rs. 1000(Inclusive of tax) no other tax escept service tax EDUHEDU=10%2%1%
    No delivery as no physical material movment is there user is on my head and it is unique for a invoice not happening again .
    When I tryed to cancilled the document it has got the given document flow
    . E VOUCHER ORDER 9289367                       07.02.09        Being processed
    E VCHR Comm.Inv. 901539710                       07.02.09        Completed
    . Accounting document 3801044102              07.02.09        Cleared
    . Accounting document 3801044132              07.02.09        Cleared
    . Cancellation of Inv 70003055                       10.08.09        Completed
    .. Accounting document 3800614678             10.08.09       Cleared
    Please help

  • Shipment document creation for normal purchases(With out delivery)

    Dear Friednds,
    I Have one scanario in my project, which is belongs to transportation module:
    The client will raise the PO to vendor. The vendor will delivery the goods to my  client.
    But client will do the MIGO. thst is goods receipt.
    Thats all, no inbound delivery. Now i want to capture that shipment costs in SAP.
    How to do that.
    I have few more scenarios like this:
    1. Goods movements from transportation location to plants; How to captire the ship.cots with out shipment document.
    2. Goods movements from one Storage lo9cation to another storage location.
    At present,the client just raising the service PO to Forwarding agent. Now we need to capture those shipment and ship.cost docuemnts in SAP.
    Please any body let it solve.
    With regards
    Lakki

    Hi Lakki,
    These are the User Exits available in the shipment cost calculation please try with these,
    V54B0001  Shipment costing: Configure pricing                   
    V54B0003  Shipment Costs Calculation: Determine Rate Type and Cur
    V54B0004  Shipment Cost Calculation: Determine Status           
    V54C0001  Shipment costing: Description(s) shipement cost item(s)
    V54C0002  Shipment costing: Create shipment cost sub-items      
    V54C0003  Shipment Costs Processing: Determine Invoicing Party  
    V54C0004  Shipment Costs Processing: Determine Loc. for Tax Invoi
    V54D0001  Shipment Costing: Determining the Tax Countries       
    V54KSFRC  Determining the factors for apportionment of shipment c
    V54P0001  Extended Function Codes for Shipment Cost Information 
    V54U0001  Shipment cost processing: Check whether changes made  
    V54U0002  Check shipment costs for completion                   
    V54U0003  Specification of shipment cost number                 
    V54U0004  Formatting for update of new objects (shipment costs) 
    V54U0005  Updating new objects in shipment cost processing      
    V54U0006  Shipment Purchase Order - Header Data Supply          
    V54U0007  Shipment Purchase Order - Item Data Supply            
    I hope it will help you
    Regards,
    Murali.

  • Changedocument for sales invoice creation

    When the sales invoice is changed in VF02, an entry is created in changedocument table CDHDR. But when the invoice is created in VF01 no entry is created in the table CDHDR.
    Is there a way to enable creation of entry when invoice is created?
    The change document object for sales invoice is  FAKTBELEG

    Hi!
    You can try to setup output control for billing document:
    - define your own access sequence or expand existing one with one more access based on KOMKBV3-TRTYP field (transaction type)
    - assign access sequence to corresponding output type
    - maintain condition records for corresponding output type with transaction type "V" - Change
    - setup processing routines for corresponding output type. Here it is medium "T" - Tasks (SAP Business Workflow). I didn't try myself to invoke workflow in such a way but it seems this stays for such purposes. Even if not you can try medium "8" - Special function and link your custom program which triggers workflow execution.
    This settings will lead to triggering output control whenever billing document is changed or created (this works for standard print medium for me) and invoke workflow execution (almost sure).
    Regards,
    Maxim.

  • Accounting Document Creation in FB60 with Tax Calculation Enable

    Hello everyone,
    I am currently facing a strange issue. The issue is that I am using transaction FB60 to create an accounting document.
    How I proceed with:
        1. Go to FB60
        2. Enter the necessary details
        3. Click on the "Save" button to post the document.
    To view the accounting document created,
        1. Go to FB03
        2. Enter the document number generated previously to view the document.
    The problem is that, currently I need to update a field in the accounting document during its creation. I know that the BaDi 'AC_DOCUMENT' is called before creation of any accounting document.
    I have hardcoded a break point in the BADI to test whether when clicking on the button 'SAVE' from transaction FB60, whether the BADI 'AC_DOCUMENT'is called, and the debugger was not trigger.
    I don't understand why the BADI 'AC_DOCUMENT'is not trigger, i did activate the 'Update debugger' to test whether the BADI was executed in the background but in vain, the BADI 'AC_DOCUMENT' was not triggered.
    But if I click on 'PARK'(I don't  know a park document is  document in transaction FB60, the BADI 'AC_DOCUMENT' is trigger.
    I would be grateful if someone gives me an idea or a small explanation on what is going on in the back.
    Maybe, I am wrong with the BADI 'AC_DOCUMENT', maybe this BADI's is not trigger every time an accounting document is created.
    Thanks a lot in advance.
    Kind Regards,
    Bryan

    what field do you want to update? did you try FI substitution?

  • No accounting document exist for this excise invoice

    DearAll,
    I have made configuration for the excise invoice in CIN
    I am getting the following error :Message no. 8I345
    No accounting document exist for this excise invoice .
    maintained all the relevant settings and configuration.
    I have checked the forum and i configurations made by me, seems to be correct.
    Please let me know your comments to rezsolve this issue.
    Also, please let me know, how to configure the document type EX to the excise invoice type/billing type.
    thanks
    Then

    Dear ,
    Pls go through following link,
    No accounting document exist for this excise invoice
    no accounting document for excise invoice(please help)
    EXCISE INVOICE ACCOUNTING DOCUMENT
    Rgds,
    AJIT K SINGH

  • No accounting document exist in excise invoice

    Hi everyone,
    I am able to create excise invoice,but no accounting document existing for that excise invoice.So because of that no accounting entry is coming in the excise invoice.So what should be setting for above problem.
    Regards
    Prabudh

    1)  Ensure that the pricing procedure is in line with standard JFACT
    2)  Ensure that in sale order / billing, values against JEX2, JECX & JA1Y are in blue colour
    3)  Ensure that in OBA7, for document type EX,  boxes under the tab "Account types allowed" are ticked
    4)  Ensure that the object what you assigned in OBA7 against the field "Number range"   is maintained in FBN1
    thanks
    G. Lakshmipathi

  • Posting Key for Sales Invoice

    Hi,
    I have a problm in creation of Sales Invoice
    While creating Sales Invoice instead of Customer A/c getting debit & Sales Revenue getting credit the Sales Revenue Account is getting Debited & also getting credited. In accounting document the posting key are 40 Sales Revenue & 50 Sales Revenue instead of 01 for Customer & 50 for Sales Revenue.
    Can I know where exactly I am wrong & where are the settingsd for posting key for Sales Invoice.
    Thanks in advance.
    Regards
    Bala

    look at  t code VKOA.
    This is where the account determination is calculated from, if you are creating the document from SD.
    Make sure there is only a single entry against the item you expect to see.
    Award points if useful.

  • Error while detrmining Internal Document Number for Excise Invoice.

    Hello mate, I am trying to create excise invoice for for factory sale. while saving the document I am getting an error" Error
    while detrmining Internal Document Number for Excise Invoice. Message: Maintain Number Range for J_1IINTNUM". I have already maintained number range for mentioned object "J_1INTNUM" in TCODE SNUM , still getting error. Please solve my querry . Is it related to transport or number range activation or something else? I have maintained number range with serial no. "01"

    Hello ,
    Ensure that number ranges are properly maintained in the respective client that should be the year specific.Some times even u maintained the system should not consider that number ranges  due to table updation problem ,because i had faced the same in the earlier and received the reply from the sap stating that this error was occured rarely after the years,so please ignore that ,for your problem u first come out of the screen and then re log in and then create the excise invoice ,then check the number ranges .
    Please revert for any
    Kalyan

  • Creation of sales order with reference to inquiry no.

    Hi gurus!
    Im having trouble in creation of sales order with reference to inquiry no. The scenario is like this one. In va11(creation of inquiry no.), in the field of <b>SERVICE LEVEL</b>, i indicated a value. after the creation of inquiry no, i want to create a sales order with reference to inquiry no. But the problem is, the <b>SERVICE LEVEL</b> field does not have any value. What is the main problem to this scenario? is it the VARIANT CONFIG or the program itself? please help its urgent
    Regards,
    Mackoy

    Dear Machoy,
    In IMG under
    Sales and Distribution -> Sales -> Sales Documents -> Maintain Copy Control for Sales Documents -> Copying Control: Sales Document to Sales Document
    or Transaction VTAA
    http://help.sap.com/erp2005_ehp_02/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    If you create a sales document with reference to a preceding document, the system copies nearly all the data from the preceding document. The data in the preceding document originally comes from the customer and material master records. Because the data is copied from the preceding documents into the sales document, any changes that have been made to the master data records since the preceding document was created are not included in the sales document. If, when you create with reference, you add another item to the document that was not in the preceding document, the system determines the data for it from the master records, such as the material master or info record.
    You have created an inquiry and a quotation with reference to this inquiry. Before you created the quotation, you changed some data in the material and customer master records.
    You have changed the material description in the material master record. This description is stored in the sales document at item level.
    You have changed the terms of payment in the customer master record from ZB01 to ZB03. These are stored in the sales document at header level.
    When you created the inquiry, the system copies the original material description to the item. If you enter another item in the quotation for the same material, the system displays the new material description for the new item.
    However, the system continues to propose the original term of payment, that is, ZB01, for all items including the new one. This is because it is copied from the header of the preceding document into the header of the quotation, and the change in the customer master record has no affect on the quotation.
    Regards,
    Naveen.

  • Variant Matching  during Creation of Sales Order with reference to Contract

    Hi All,
    I have a following scenario. Sales Contract is created on a Configurable Material ' A' and its has a Material Variant "B" with following Charac Values X = X1, Y= Y1 & Z=Z1.
    The value of Z= Z1 is set using a Procedure when Sales Document Type = OR ( This is the Document type For sales Order). So, this means variant matching will finally happen at Sales Order creation level, coz all the three reqd. charc. are availabe  at that time.This is also our reqmt.
    But, now what is happening, a Sales Contract is created for Material A, with Charc values X = X1 & Y= Y1. When a sales order is created with reference to this Contract, immediately during Copying of selected item, Variant Matching gets triggered & Material A is replaced by Material Variant B. Even we dont get into the Configuration Window.
    Actually, during copying itself Object Depencies are called and thats leading to variant Matching.
    Our requirement is that, it should not get triggered at such early stage. It should happen when Config. window is clicked.
    Kindly help. Copy Control of Sales Doc has setting 'No Control' We are in ECC 6.0. Are there some other settigs too.
    regards,
    Stuti

    your functional team can help you in finding one.

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • "Invoice History Report "show wrong balance for supplier invoice with USD

    Invoice History Report show wrong balance for supplier invoice with USD Currency
    After I run this report i see in the last of this report there is difference between the supplier total
    USD (Currency ) and the open Balance USD , it is decreased the open balance
    for supplier with 2300 USD with out any reasons
    bellow is some data copy of the report
    ======================================================
    Supplier Site Total: SAR 34,700.00
    Supplier Site Total: USD 39,000.00
    Supplier Total: SAR 34,700.00
    Supplier Total: USD 39,000.00
    Open Balance: SAR 34,700.00
    Open Balance: USD 36,700.00
    *** End of Report ***
    ==============================================
    please advise me from where can this differenc ( 39000 - 36,700=2300 )COMMING
    or it is bug in this report , becuase i compare this report with other report in account payable like
    -supplier open balance letter
    -invoice register report
    -invoice aging report
    all this report give me the amount for supplier USD =39000
    BUT AGIN FROM WHERE THE SYSTEM DECREASED THE AMOUNT TO 36,700
    thanks

    Can you try running Create Accounting For payments just before you run the Invoice History Report and re-check .
    Thanks

Maybe you are looking for

  • Não recebimento de protocolo dos Correios para reparo

    ID de Reparo: D82668451 - S/N 791139WMA4T - iPhone 4 Desde o dia 15 de janeiro de 2013 estou no aguardo do email com o procedimento e numero de protocolo dos correios para realizar o reparo. Liguei 3 vezes e ainda nao recebi o email que segundo a App

  • IWeb not responding - have tried all suggestions in this section

    I have 4 websites stored in iWeb o9 on a brand new MacBook Pro running all current software and updates. I publish via ftp directly to my domains. I am a Mobile Me user but I do not use this for websites. I do not have the actual files on my desktop.

  • Disable RightClick on PDF in Browser using API methods ?

    How to use adobe acrobat API method/events to capture function keydown effectively disabling rightclick menu in Reader in browser? Question: can anyone illustrate how to disable menu right click ? ive seen methods/events in the acrobat api that look

  • MT100 Header Blocks problem

    Hello expert, I have a problem in MT100 generation. File is generated with the correct payment information but I don't have headr block i mean tags 01, 02, 03, 04, 05, 06 and 07. There is an option that i should set to print also header block? Thank

  • Switched from Dell to iMac 24" now my pictures stink

    this is kinda hard to explain - but I'll try..... i used to have a Dell PC / Dell CRT and when I posted images ( post processed with CS2 ) i took with my digital camera they looked great on online forums..... Now when i Post process my images on my 2