Problem while creating Invoice Create Invoices

Hi ,
My requirement is to create an Invoice from a file sent by Informatica (Middleware).
I am using RV_INVOICE_CREATE tio create the invoice.I am using the below details to create the Invoice .
I am filling these strucutres from VBAP .
*Fill the KOMFK Structure
      gw_komfk-vbeln = gw_vbap-vbeln.
      gw_komfk-posnr = gw_vbap-posnr.
      gw_komfk-vbtyp = gc_c.
      gw_komfk-fkart = gc_z2.
      gw_komfk-fkimg = 1.
      gw_komfk-vrkme = gw_vbap-vrkme.
      APPEND gw_komfk TO gt_komfk.
*Fill the KOMV structure
      gw_komv-kschl  = gc_loc.
      gw_komv-kbetr  = gw_final_tab-invoice_amnt.
      gw_komv-waers  = gc_usd.
      APPEND gw_komv TO gt_komv.
*Fill the VBRK Structure
     gw_vbrk-vbeln  = gw_vbap-vbeln.
      gw_vbrk-bukrs  = gw_vbap-bukrs_vf.
      gw_vbrk-zuonr  = gw_final_tab-invoice_num.
      APPEND gw_vbrk TO gt_vbrk.
Then , I am calling the FM to create the Invoice as below:
CALL FUNCTION 'RV_INVOICE_CREATE'
        EXPORTING
          invoice_type = gc_z2
          vbsk_i       = gt_vbsk
          with_posting = 'B'
        IMPORTING
          vbsk_e       = vbsk_e
          od_bad_data  = bad_data
        TABLES
          xkomfk       = gt_komfk
          xkomv        = gt_komv
          xthead       = xthead
          xvbfs        = xvbfs
          xvbpa        = xvbpa
          xvbrk        = gt_vbrk
          xvbrp        = xvbrp
          xvbss        = xvbss.
      IF sy-subrc EQ 0.
        COMMIT WORK.
      ENDIF.
My problem is that I am not able to successfully create an Invoice.
Kindly suggest me if I am missing out something.
Thanks in advance.
Regards,
Asish Dash

If you have VBAP entries, I'm assuming you have a preceding sales document. I was able to use another function module, to which I simply passed the document number and reference type (you may need to use a different type instead of C):
CALL FUNCTION 'RV_INVOICE_CREATE_RFC'
    EXPORTING
      i_refdoc  = f_vbeln
      i_reftype = 'C'.
P.S. Do COMMIT WORK after calling FM.
Edited by: Jelena Perfiljeva on May 18, 2010 1:24 PM

Similar Messages

  • Problem while cancelling the create Trasaction

    Hi ,
    When I am creating a new record and clicking on cancel Form Validation Failure waring is coming for the required field items.
    What exactly Iam missng when calling the Cancel Button.
    Below is the CO and AM code used when clicking on Cancel.
    // In CO PFR
    if (pageContext.getParameter("Cancel") != null)
              TransactionUnitHelper.endTransactionUnit(pageContext, "createTxn");
          am.invokeMethod("rollbackRecord");     
              pageContext.forwardImmediately("OA.jsp?page=/xxapl/oracle/apps/oe/shipping/webui/SearchPG",
                                             null,
                                             OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                             null,
                                             null,
                                             true, // retain AM
                                             OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    //   In AM RollBack Method
    public void rollbackRecord()
         Transaction txn =  getTransaction();
             // This small optimization ensures that we don't perform a rollback
               // if we don't have to.
               if(txn.isDirty())
                txn.rollback();   
         } Please guide me why this is not working to rollback the transaction.
    Krishna

    Hi,
    Small property settings missed for the cancel Button.
    Disable Server Side Validations & Disable Client Side Validations  to trueKrishna

  • Problem while capturing- auto creating clips

    Hi-
    I'm capturing in FCP 6 and it's creating a series of clips with random lengths. I don't believe that this is due to timecode breaks because some of the clips are only a few seconds in length. What's going on?How do I turn this off?
    Thanks
    Robert

    This happens when you start and stop the camera, review the footage, and then stop AFTER PICUTRE STOPS...thus causing a break in the image and timecode, so the camera starts over. If you want continuous code, when you review the footage, stop BEFORE picture ends, the camera will pick up where it left off.
    Shane

  • Problem while 're-posting' a cancelle Invoice with Exchange Rate Difference

    Hi Gurus,
    We are facing a problem while re-posting an Invoice with Exchange Rate Difference. I say re-posting because this invoice was previously posted and reversed on the same date. Here is the scenario along with the relevant postings:
    1)
    G/R is posted in September when the exchange rate for dollar was, say, Rs. 49 = 1 USD.
    Posting:
    Service A/C.....100 USD (Rs. 4900)
         To SR/IR Clearing A/C...100 USD (Rs. 4900)
    2)
    MIRO is done in October, when the exchange rate was, say, Rs. 48 = 1 USD. Thus, the exchange difference posting was done in the respective accounts.
    Posting:
    SR/IR Clearing A/C......100 USD (Rs. 4900)
         To Vendor A/C...........90 USD (Rs. 4320)
         To TDS A/C..............10 USD (Rs.  480)
         To Exch. Difference A/C. 0 USD (Rs.  100)
    This was the correct entry, however we missed out some TDS codes and thus needed to reverse this entry and repost it.
    3)
    Now this invoice was reversed (T.Code MIRO) in october itself on exactly the same date on which invoice was created, and it resulted in the following postings:
    Vendor A/C......90 USD (Rs. 4320)
    TDS A/C.........10 USD (Rs.  480)
         To SR/IR Clearing A/C...100 USD (4800, i.e. 48 * 100, Rs.48 being the exchange rate in october)
    4)
    Now when we try to post MIRO again, it is posting the following entry:
    SR/IR Clearing A/C......97.96 USD (Rs. 4800)
    Exch. Difference A/C.....2.04 USD (Rs.    0)
         To Vendor A/C........... 85 USD (Rs. 4080)
         To TDS1 A/C............. 10 USD (Rs.  480)
         To TDS2 A/C.............  5 USD (Rs.  240)
    This is a wrong entry. SR/IR clearing A/C should have been debited by 100 USD (Rs. 4900), and the Exch. Rate difference account should have been credited by 0 USD (Rs. 100)
    Can someone please help us with this. What the system seems to be doing is, that when the Invoice was reversed, the value that got reversed for SR/IR Clearing A/C was 100 USD but with Rs. 4800 instead of Rs. 4900. Now, when we try to repost the invoice, the system divided this value by the exchange rate prevalent in September, i.e. Rs. 49, thus the resultant value 97.96 USD (i.e.  4800 / 49).
    Please help.
    Thanks!
    Regards,
    Angad Nagpal

    Solved.
    The final entry is correct, as the net result in the G/L balances is the same. For further information please refer to notes 116250 and 46564.
    Thanks!
    Regards,
    Angad Nagpal

  • Error while adding Incoming Excise Invoice

    Hi Experts,
    I am facing 1 problem while adding Incoming Excise Invoice & A/P invoice.
    The error msg is:-
    No matching records found  'G/L Accounts' (OACT) (ODBC -2028)  [Message 131-183]
    What might be reasons Vendor account is correctly defined.
    Regards-
    Mona

    Please check the following threads:
    GL Account missing in AR Credit Memo
    'No matching records found ' G/L account' (OACT) (ODBC - 2028) [Message 131
    Re: g/l account missing
    Re: G/L account is missing
    Thanks,
    Gordon

  • Problems while defining EJB relations for container managed bean

    I am having a problem while trying to create my relations for my container managed bean.
    My Database schema is:
    Order table
    order_id
    message
    WorkItem table:
    order_id
    item_id
    message
    I have defined my OrderBean to have:
    @LocalMethod()
    @CmrField
    public abstract Collection getCmWorkItemsCmr();
    @LocalMethod()
    public abstract void setCmWorkItemsCmr(Collection workItems);
    I am not sure how to define my relation for my class:
    @Relation(cmrField = "cmWorkItemsCmr", multiplicity = Relation.Multiplicity.MANY, name = "Orders-CmWorkItems")
    An order can have many workitems. I am not sure how to fill in the rest for foreign Key jointable and such.
    Any help pointing me in the right direction would be helpful.
    Thanks,
    Ian

    I am having a problem while trying to create my relations for my container managed bean.
    My Database schema is:
    Order table
    order_id
    message
    WorkItem table:
    order_id
    item_id
    message
    I have defined my OrderBean to have:
    @LocalMethod()
    @CmrField
    public abstract Collection getCmWorkItemsCmr();
    @LocalMethod()
    public abstract void setCmWorkItemsCmr(Collection workItems);
    I am not sure how to define my relation for my class:
    @Relation(cmrField = "cmWorkItemsCmr", multiplicity = Relation.Multiplicity.MANY, name = "Orders-CmWorkItems")
    An order can have many workitems. I am not sure how to fill in the rest for foreign Key jointable and such.
    Any help pointing me in the right direction would be helpful.
    Thanks,
    Ian

  • Error while creating inter-company invoice  for stock transport

    Hi ,
    I am facing following errors while creating inter-company invoice for STO order.
    We have scenario where standard PO is created in  company code A  & then replenishment delivery is created in company code B.While raising inter-company invoice to company code A, we are facing problem.
    In replenishment delivery we have 10 line items. But  when we try to do inter company invoice through VF01/VF04 we get following log
    XXXXXXXXXX(delivery Number) 000000 Customer XXXXX: Customer master table KNVV is missing (VF-022)
    XXXXXXXXXX (delivery Number)000010 The bill-to party could not be determined (VF-047)
    XXXXXXXXXX (delivery Number)000010 The payer could not be determined (VF-048)
    With this first line item from delivery is not flows to invoice & if we saves this invoice then it is get saved with account determination error as some of the data does not comes into invoice header like account assignment group for customer, Payment term, destination country,region, tax classification for customer etc. That means invoice gets created without first line item from delivery with account determination error & so,no accounting document gets generated.
    I checked customer master for all SP,SH,BP,PY they are correctly maintained.This was working fine few months back, but not working now.
    If anybody had come across such kind of scenario, your valuable inputs will be highly appreciated.
    Thanks & kind regards,
    Ganesh Palatshaha

    Hello
    Kindly check the sales area of customer involved, whether the customer maintain with sales area for STO.
    If that is note the case the refer following link:
    - Error VF 047 & 048 while creating Inter company billing
    Regards
    JP

  • Unable to Change Withholding Tax Base Amount while creating Service AP Invoice through DI API?

    Dear All,
    I am trying to create Service AP Invoice through DI API.
    If I post the document without changing SAPPurchaseInvoice.WithholdingTaxData.TaxableAmount the dount ocument is created in SAP without any problem.
    But if I change amount in above field then DI API throws error Unbalanced Transaction.
    If I post same document in SAP with changed base amount it got posted in SAP without any Issue.
    Where I am doing wrong?
    please guide.
    Using:
    SAP B1 version 9 Patch Level 11
    Location : India.
    Thanks.

    Hi ,
    maybe you can find solution to these note 1812344
    1846344  - Overview Note for SAP Business One 8.82 PL12
    Symptom
    This SAP Note contains collective information related to upgrades to SAP Business One 8.82 Patch Level 12 (B1 8.82 PL12) from previous SAP Business One releases.
    In order to receive information about delivered patches via email or RSS, please use the upper right subscription options on http://service.sap.com/~sapidp/011000358700001458732008E
    Solution
    Patch installation options:
    SAP Business One 8.82 PL12 can be installed directly on previous patches of SAP Business One 8.82
    You can upgrade your SAP Business One to 8.82PL12 from all patches of the following versions:8.81; 8.8; 2007 A SP01; 2007 A SP00; 2007 B SP00; 2005 A SP01; 2005 B
    Patch content:
    SAP Business One 8.82 PL12 includes all corrections from previous patches for releases 8.82, 8.81, 8.8, 2007, and 2005.
    For details about the contained corrections, please see the SAP Notes listed in the References section.
    Notes: SAP Business One 8.82 PL12 contains B1if version 1.17.5
    Patch download:
    Open http://service.sap.com/sbo-swcenter -> SAP Business One Products -> Updates -> SAP Business One 8.8 -> SAP BUSINESS ONE 8.82 -> Comprised Software Component Versions -> SAP BUSINESS ONE 8.82 -> Win32 -> Downloads tab
    Header Data
    Released On
    02.05.2013 02:34:18  
    Release Status
    Released for Customer  
    Component
    SBO-BC-UPG Upgrade  
    Priority
      Recommendations/additional info  
    Category
      Upgrade information  
    References
    This document refers to:
      SAP Business One Notes
    1482452
    IN_Wrong tax amount was created for some items in the invoice with Excisable BOM item involves
    1650289
    Printing Inventory Posting List for huge amount of data
    1678528
    Withholding amount in the first row is zeroed.
    1754529
    Error Message When Running Pick and Pack Manager
    1756263
    Open Items List shuts down on out of memory
    1757641
    Year-end closing
    1757690
    SEPA File Formats - New Pain Versions
    1757898
    Incoming Bank File Format
    1757904
    Outgoing Bank File Format
    1762860
    Incorrect weight calculation when Automatic Availability Check is on
    1770690
    Pro Forma Invoice
    1776948
    Calendar columns are wrong when working with Group View
    1780460
    OINM column description is not translated
    1780486
    UI_System crash when you set extreme value of double type to DataTable column
    1788256
    Incorrect User-Defined Field displayed in a Stock Transfer Request
    1788372
    ZH: 'Unacceptable Field' when export document to word
    1788818
    RU loc: No freight in the Tax Invoice layout
    1790404
    Cash Flow Inconsistency when Canceling Payment
    1791295
    B1info property of UI API AddonsInstaller object returns NULL value
    1791416
    Adding a new item to BoM is slow
    1794111
    Text is overlapping in specific localization
    1795595
    Change log for item group shows current system date in all the "Created" fields
    1797292
    Queries in alerts should support more query results
    1800055
    B1if_ Line break issue in inbound retrieval using JDBC
    1802580
    Add Journal Voucher to General Ledger report
    1803586
    Not realized payment is exported via Payment Engine using 'SAPBPDEOPBT_DTAUS' file format
    1803751
    Period indicator of document series can be changed although it has been used
    1804340
    LOC_BR_Cannot update Nota Fiscal Model
    1805554
    G/L Account displayed in a wrong position when unticking the checkbox "Account with Balance of Zero"
    1806576
    Payment Cannot Be Reconciled Internally
    1807611
    Cannot update UDF in Distribution Rule used in transactions
    1807654
    Serial No./Batch inconsistency by canceled Inventory Transfer
    1808694
    BR: Business Partner Code cannot be updated with CNPJ CPF error
    1809398
    CR_Cannot Display Related Multi-Value Parameters
    1809758
    Arrow key not work for Batch/Serial Number Transactions Report
    1810099
    Tax Amount is Recalculated Even if Tax Code Is Not Changed
    1811270
    Upgrade fails on Serial And Batches object with error code -10
    1811846
    Cannot run Exchange Rate Differences when multi branch is activated
    1812344
    Withholding Tax Amount Is Not Updated in Payment Once Witholding Tax Code Is Changed in Document through DI API
    1812740
    DI:"Operation Code" show wrong value when add "A/P Tax Invoice" based on "A/P Invoice"
    1813029
    US_Vendor address on 1099 Summary by Form/Box Report is not updated according to the latest Invoice
    1813835
    Wrong amounts of Goods Return in Open Item List
    1814207
    Preliminary page prints setting does not keep after upgrade
    1814860
    Value "Zero" cannot be imported to "Minimum Inventory Level" field via Excel file
    1815535
    RFQ: Web front end not displayed in supplier language
    1815810
    GT: Adding Incoming Payment for Some Cash Flow Relevant Accounts Fails
    1816191
    BR:System Crashes While Working with Tax Code Determination Window
    1816611
    CR_Crystal Report Displayed Incorrectly Afte

  • PROBLEM DURING CREATING AN AR INVOICE

    Dear Sir,
    I am having a problem during creating the AR invoice from the delivery. I am getting the message: (2) Message Sales Employee is Must. I am unable to create AR invoice for this reason. But when i am going to create AR invoice for the same delivery in different numbering series it is saying that Error in Numbering file, restorer it. I am really unable to cope up this problem. Please help me to resolve it asap.
    Regards
    Anupam

    Hi,
    Do you have any addtional code in the SP_TransactionNotification? If yes, try removing the code and then try to add the AR Invoice.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Wrong payer value while creating PRO FORMA invoice for multiple delivery

    Hi experts,
    I am trying to create PRO FORMA Invoice for multiple deliveries thru VF01.
    The problem here is the payer value is copied as the value of payer for the first delivery to all invoices. All other fields are picked up properly.
    Please help me to idenify the problem. Also if I create the invoices thru VF04 the invoices the created with correct payer.
    Thanks in advance.

    Hi Ankur,
    Thanx for the input.
    Right now we have customized routine 909 for header level and std. routine 004 for item level.
    Code for routine 909 is
    FORM BEDINGUNG_PRUEFEN_909.
    SY-SUBRC = 0.
    Fakturasperre
    IF LIKP-FAKSK NE SPACE.
    SELECT SINGLE * FROM TVFSP WHERE FAKSP = LIKP-FAKSK
    AND FKART = TVFK-FKART.
    IF SY-SUBRC = 0.
    PERFORM VBFS_HINZUFUEGEN USING '000000' '014' SPACE SPACE SPACE.
    SY-SUBRC = 4.
    EXIT.
    ENDIF.
    SY-SUBRC = 0.
    ENDIF.
    break-point.
    SELECT * FROM VBFA WHERE VBELV = LIKP-VBELN.
    IF VBFA-VBTYP_N = 'U' .
    PERFORM VBFS_HINZUFUEGEN USING '000000' '148' LIKP-VBELN
    SPACE SPACE.
    SY-SUBRC = 4.
    Insert + Unicode/Upgrade Project
    STOP.
    LEAVE SCREEN.
    Insert - Unicode/Upgrade Project
    ENDIF.
    ENDSELECT.
    ENDFORM.
    can u please check n confirm if the wrong value is coming due to this code?
    Thank in advance.

  • Error Message while creating A/P Invoice

    hi experts,
    I try to create AP invoice but system shows following error cannot create standalone AP/AR invoice with excisable item. please explain me the reason to understand.

    Hi Ratna Kumari,
    When ever you create Delivery for Excise able Item System Pop Up That You need to Create Excise able Invoice for this Delivery.
    If you will not Create Excise able Invoice then You will not be able to create Invoice.
    If Item is Excise able then you have to Create Excise able Invoice other wise you will not be able to create Invoice.
    If you have included Tax with 100% Non Deductible then also you have to create Excise Invoice for every Delivery of Excise able Item for Creating Invoice.
    This is Standard System Behavior. You to Create Excise able Invoice for Creation Invoice.
    Hope this help
    Regards::::
    Atul Chakraborty

  • Two line items created while doing sales excise invoice

    Hi all,
    I have created an excise invoice through J1iin. But when I do so, there are two line items created for BED on excise paid. where as ideally there should only be one line item created.
    The standard entry should be as follows :
    Excise Duty BED Paid     617.00           
    Excise Duty SEC Pay     6.00-
    Basic Excise Duty  p     599.00-
    Excise Duty ECSPay     12.00-
    In my scenario the entry is as follows :
    Excise Duty BED Paid     181.00     here there are two line items created.
    Excise Duty BED Paid     436.00      
    Excise Duty SEC Pay     6.00-
    Basic Excise Duty  p     599.00-
    Excise Duty ECSPay     12.00-
    can anyone help on this?
    Thanks
    Priyanka
    Edited by: Priyanka Patwardhan on May 19, 2011 12:35 PM

    HI,
    Check the below settings are exist or not at your order to delivery copy controls.
    Order requirements     001    Header
    Combination requirmt   051    Combination
    Header Data            001    Header
    Header Data Ext. Sys   0
    Handling Units         000
    check and revert
    Regards
    Ram

  • How to create A/R Invoice from draft

    Hi,
              How to create A/R Invoice from documnet draft using DIAPI.
    Thanks,
    P.Suresh Kumar

    Hi Suresh Kumar,
    You may check this as a reference: Re: Problems while saving the tax values in a Draft Document to AP Invoice
    Thanks,
    Gordon

  • Acctg document not created for cancellation invoice

    Hi all,
    We have a vehicle sales order created with payment card. The SO contains one item for vehicle and one item for parts. The items were delivered and invoiced separately. Hence, SO has one vehicle sales invoice (VSI) and one parts sales invoice (PSI).
    The standard procedure was to post VSI first before the PSI. Accounting documents have been created when both invoices were posted. However, there was a need to cancel the PSI. When this was done, cancellation invoice was created but there was no accounting document posted for the cancellation.
    I tried simulating the scenario in our test server and cancelled VSI 90000081 first before cancelling PSI 90000082 to test if this can be an alternative solution. Cancellation for VSI was posted successfully but error persists for PSI cancellation.
    Order 67 06/19/06 Completed
    . Delivery 80000081 06/19/06 Being processed
    .. Picking request 20060619 06/19/06 Completed
    .. GD goods issue:delvy 4900000293 06/19/06 complete
    .. Invoice 90000081 06/19/06 Completed
    ... Accounting document 2000077 06/19/06 partly cleared
    .. Invoice cancellation 90000084 06/19/06 Completed
    ... Accounting document 2000079 06/19/06 partly cleared
    . Delivery 80000082 06/19/06 Completed
    .. Picking request 20060619 06/19/06 Completed
    .. GD goods issue:delvy 4900000294 06/19/06 complete
    .. Invoice 90000082 06/19/06 Completed
    ... Accounting document 2000078 06/19/06 Not cleared
    .. Invoice cancellation 90000083 06/19/06
    .. Invoice 90000085 06/20/06 Blocked
    Accounting status of 90000083 (where error occurs) in VF03->Header->Details is set to K or <b>Accounting document not created (authorization lacking)</b>.
    Any inputs? Thanks in advance.

    Hello Sheila,
    sorry - my first answer was in mistake - Status K means:
    "The transaction is processed using payment cards. The order, however, does not contain valid authorization.
    This problem occurs in billing documents for follow-up deliveries."
    Could you check this ? Last way would be to set a breakpoint into the FM 'RV_ACCOUNTING_DOCUMENT_CREATE'
    and trigger this via VF02 -> Release to accounting.
    Regards Wolfgang

  • Perform custom validation on invoices created via iSupplier portal in R12

    Hello,
    It seems that since R12, invoices created on iSupplier portal are no longer loaded via Payables open interface tables (while ASBN's still are). It is nice that they are loaded immediately but now we do not have any way to perform custom validation that we normally do via AP_INTERFACE_WORKFLOW_PKG.do_custom_validation procedure.
    Is there any way to modify how iSupplier portal inserts Invoice data into AP tables? In particular we would like to choose specific document category for certain suppliers.
    Many thanks in advance,
    Kamil

    Hi Friends,
    Apologies to have put this in SCM-Costing Category. I just posted the same thing in Financials Category.
    Please ignore this, if found irrelevant under this category.
    Thanks,
    AAR

  • Deemed exports not getting created when excise invoice generated in backgro

    Hi guys,
    when i create an excise invoice in background .and try to create ARE-3 in J1IA301.I am getting a error (081091004/2009 excise invoice is meant for normal invoice).
    when i create excise invoice manually and click on goto - utilization . The excise invoice type will be local .If i click on the pencil tab it will change to EXPORT and we can see DEEMED in blue color after this i will save and create ARE-3. ARE-3 gets generated.
    while creating excise invoice in background the EXCISE INVOICE TYPE in J1IIN will be LOCAL and we will not be able to change after this when i try to create ARE - 3 IAM GETTINGTHE ERROR..
    Please help me out of this..
    As my client wants to create the excise invoice in background while billing document is created..
    Regards,
    Shivdeep B

    Hi,
    If you want to create excsie invoice in back ground while creating billing document for  Deemed exports.
    Please follow the navigation as mentioned below.
    SPRO - Logistic General - Tax on goods movement - India - Business transaction - Out going Excise invoice - Maintain default Excise group and series group.
    Here please maintain you Plant, Excise group & Series group for deemed exports sales area combination and export type as Deemed exports in *details screen*. Now system will  create excise invoice for deemed exports in background while creating the billing document go to display excise invoice and see the utilization you get Deemed exports.
    This will do for you.

Maybe you are looking for