DI: Add Serialnumbers to AR Invoice Lines

We are having a difficult time adding serialized items to AR invoices through the DI. It doesn't seem to be happy doing this no matter what we try. Probably a rookie mistake but I have tried several different ways of doing this with no luck. We get a 5002 error when trying to add the invoice if the serialized items are included on it. Works fine with just the non-serialized.
Here is the current iteration of the code. The DB lookups work fine and return the desired values. The exact same serialized items can manually be added to an invoice without any issues. If anyone can offer some advice I would  greatly appreciate it.
Thanks,
Matt
Dim EINV As SAPbobsCOM.Documents
Dim SerialNumber As SAPbobsCOM.SerialNumbers
Set EINV = Company.GetBusinessObject(oInvoices)
'Snip
'EINV setup and non-serialized items added
'No problems until we try adding serialized items
'All values return properly and can be added manually to an invoice.
'Fails with a 5002 when EINV.Add is invoked after serialized items are added.
'EINV.Add works fine with serialized code disabled.
If SerialRS.RecordCount > 0 Then
   SerialRS.MoveFirst
   Do While SerialRS.EOF = False
    STech = SerialRS.Fields("TechNumber").Value
    SItemID = SerialRS.Fields("ItemID").Value
    SSerial = SerialRS.Fields("Serial").Value
    If STech = TechNo Then
      EINV.Lines.Add
      EINV.Lines.SetCurrentLine (EINV.Lines.Count - 1)
      EINV.Lines.ItemCode = RTrim(SItemID)
      EINV.Lines.Quantity = 1
      EINV.Lines.TaxCode = "ZERO"
      EINV.Lines.WarehouseCode = TechNo
      Set SerialNumber = EINV.Lines.SerialNumbers
      SerialNumber.SetCurrentLine (SerialNumber.Count - 1)
      Set RecSet3 = Company.GetBusinessObject(BoRecordset)
      RecSet3.DoQuery ("select top 1 sysserial from osri where intrserial = '" & SSerial & "'")
                                                                                If RecSet3.RecordCount > 0 Then
          SerialNumber.InternalSerialNumber = SSerial
          SerialNumber.SystemSerialNumber = RecSet3.Fields("sysserial").Value
       End If
      End If
      SerialRS.MoveNext
    Loop
End if
Addresult = EINV.Add
If (Addresult <> 0) Then
  Call Company.GetLastError(nErr, errMsg)
  If (0 <> nErr) Then
     MsgBox ("Found error:" + Str(nErr) + "," + errMsg)
  End If
End If

This is evidently an issue with adding non-serialized items to an invoice before adding serialized items through the DI. It looks like the DI was trying to add the serialnumbers to the non-serialized doclines despite our best efforts to add them to the appropriate items. Once we changed the order of our code and added the serialized items first it worked just fine.
On a related note, if you add individual lines to an invoice for the same item (multiple lines of single quantity for the same item instead of a single line with a quantity > 1) the DI will only add serialnumbers to the first docline occurence of the item in question.

Similar Messages

  • CAN WE ADD INVOICE LINES TO EXISTING INVOICE USINGAR_INVOICE_API_PUB

    CAN WE ADD INVOICE LINES TO EXISTING INVOICE USINGAR_INVOICE_API_PUB

    hi,
    if possible create debit memos and add the freight lines for that customer
    regards

  • Any wayt add comments/notes on individual invoice lines on an order?

    The company I work for recently installed Oracle 11i and we are having difficulty generating an acceptable invoice (or packing slip) for some of our customers. I will try to explain what we used to do... I hope you might be able to explain if something similar can be set up in Oracle.
    We supply tags and labels to garment manufacturers. We would like to set a generic part number for a base roll stock, and individual part numbers for each customer ticket type. Lets say the ticket type is a 1 inch by 1.5 inch price ticket for pants. Our customer might order 600 tickets for size 30x30 500 for size 32x32, 300 for size 38x30 etc On each ticket we print the size information, pricing, etc. On the invoice the customer wants to see each individual line for each size so for the example above there should be 3 lines on the invoice. If the items were short shipped and we only produced 400 tickets for 30x30 we need this visibility to show on the invoice. In our old system we had a note field for each invoice line that we used to put in the size information the item number (part number) was still the same because it still was a 1 inch by 1.5 inch price ticket. In Oracke 11i we can attach something like a word doc with the invoice, but we do not seem to have the ability to have a note or memo field that can be used to identify each individual size (line item). We do not want to take each individual size a unique part number in Oracle (you can see how our part numbers would grow exponentially plus the added work for bill of material, routing, etc) I hope this makes sense what we are trying to do any suggestions on how to accomplish this within Oracle? Any help you can provide would be greatly appreciated. If you need clarification, please call me at 570-888-6641 x 3143 or I am always online at AOL IM DS8884474, or e-mail [email protected]

    Hi David,
    Have you tried using the attachments for the invoice lines ? The attachments are actually a very big memo field that you could be tied to a specific line.
    Good luck.

  • Add Discount % In AR Invoice

    How can i add Discount% in AR Invoice Document.I had set the discount % in Document. But after Adding The discounted amount not correctly updated in The Invoice.How can i set.My code as follows.
    Dim RetCode As Integer
    Dim OInvoice As SAPbobsCOM.Documents
    Dim TPrice As Double = 0
    Dim Disc As Double
    OInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
    For Each row As DataGridViewRow In dgvitem.Rows
    TPrice = TPrice + ((CType(row.Cells("Price").Value, Double) * CType(row.Cells("Quantity").Value, Double)))
    Next
    Disc = (TPrice * CType(txtper.Text, Double) / 100)
    With OInvoice
    .Series = My.Settings.Series
    .CardCode = txtcustcode.Text
    .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
    .DiscountPercent = CType(txtper.Text, Double)
    .UserFields.Fields.Item("U_Mode").Value = "CA"
    With .Lines
    For Each row As DataGridViewRow In dgvitem.Rows
    .ItemCode = row.Cells("PartNo").Value
    .Quantity = CType(row.Cells("Quantity").Value, Double)
    .WarehouseCode = My.Settings.MWhscode
    .Add()
    Next
    End With
    .DocTotal = TPrice - Disc
    RetCode = .Add()
    If RetCode <> 0 Then
    MsgBox(oCompany.GetLastErrorDescription)
    Return Nothing
    Else
    Return oCompany.GetNewObjectKey()
    End If
    End With
    How can fix the error, Please help

    Hi,
    Try this:
    Dim RetCode As Integer
    Dim OInvoice As SAPbobsCOM.Documents
    Dim TPrice As Double = 0
    OInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
    With OInvoice
      .Series = My.Settings.Series
      .CardCode = txtcustcode.Text
      .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
      .DiscountPercent = CType(txtper.Text, Double)
      .UserFields.Fields.Item("U_Mode").Value = "CA"
      With .Lines
      For Each row As DataGridViewRow In dgvitem.Rows
      .ItemCode = row.Cells("PartNo").Value
      .Quantity = CType(row.Cells("Quantity").Value, Double)
      .Price = CType(row.Cells("Price").Value, Double)
      .WarehouseCode = My.Settings.MWhscode
      .Add()
      Next
      End With
      RetCode = .Add()
      If RetCode <> 0 Then
      MsgBox(oCompany.GetLastErrorDescription)
      Return Nothing
      Else
      Return oCompany.GetNewObjectKey()
      End If
    End With
    Regards,
    Csaba

  • Post non PO invoice line items using INVOIC01 and FM IDOC_INPUT_INVOIC_MRM

    hello there SAP folks,
    Have an interesting question for all of you. We currently have a partner through whom we use the IDOC_INPUT_INVOIC_MRM Function module to pass invoices. Now there are multiple line items some times [multi E1EDP01 / E1EDP02] segments which all refer to the same PO but to different line items on the PO. Now all that is well.
    For one particular partner we now have the following requirement. We are going to have the same condition as above, with the added condition that there are going to be some invoice line items with no reference to a PO. the reason is that the vendor is going to calculate the different taxes and send them to us. so when we post the invoice :
    we will now have
    31 Vendor
    40 GR/IR
    40 Tax 1
    40 Tax 2
    50 Tax 3 offset
    instead of
    31 vendor
    40 GR/IR
    to deal with the new situation I tried adding having the following
    first E1EDP02 is going to refer to the PO using qualifier 001, but second E1EDP02 [for tax] s not going to have a qualifier 001. When I do that i get a missing belnr (001) and zeile (001) error.the exact error message is the following
    Required field BELNR(001) is missing in segment E1EDP02
    Required field ZEILE(001) is missing in segment E1EDP02
    Message no. FD070
    Now to bypass that, I added the 001 qualifier for the second E1EDP02 [tax part] and now the error that I get is either the PO is duplicated or if i put some dummy PO number, then it says PO cannot be found.
    =======
    so the question is how is it possible to post  4 items in the idoc , with one being a PO reference and 3 non PO reference using INVOIC01 and IDOC_INPUT_INVOIC_MRM
    I also have to add that it is possible to add a non PO items to the MM invoice in MIRO by entering the additional tax lines using the g/l account tab next to the PO reference tab.

    nvm.
    Edited by: D N on Dec 16, 2008 2:10 PM

  • Cannot change Tax Code of A/R Invoice line

    Hello,
    I had this small problem where i cannot change the tax code of A/R invoice line.
    ARInvoice.Lines.TaxCode = "O1";
    But after i added the invoice, it seems that SAP still used the default TaxCode which is X1. Am i missing something? I've been stuck in this problem for over two weeks now.
    Thank you, any help will be appreciated.

    Here is my SAP Settings.
    G/L Account Determination
       Sales - Tax
              Sales Tax Group (Service) = Exempt Output
    Business Partner Master Data
       Accounting - Tax
              Tax Status = Liable
    And here is my code snippet for creating and adding of A/R Invoice :
    SAPbobsCOM.Documents _oARInvoice = (SAPbobsCOM.Documents)this.COMPANY.GetBusinessObject(BoObjectTypes.oInvoices);
                _oARInvoice.CardCode = pCustomerId;
                _oARInvoice.HandWritten = BoYesNoEnum.tNO;
                _oARInvoice.DocDate = pPostingDate;
                _oARInvoice.DocDueDate = pPostingDate;
    double _total = 0;
                if (pInvoiceType == SAPVariables.INVOICETYPE.SERVICE)
                    _oARInvoice.DocType = BoDocumentTypes.dDocument_Service;
                    for (int i = 0; i < pARInvoice.Rows.Count; i++)
                        if (i > 0) _oARInvoice.Lines.Add();
                        _oARInvoice.Lines.SetCurrentLine(i);
                        _oARInvoice.Lines.ItemDescription = pARInvoice.Rows<i>["SERVICEDESCRIPTION"].ToString();
                        _oARInvoice.Lines.AccountCode = pARInvoice.Rows<i>["GLACCOUNT"].ToString();
                        double _discountPercent = 0;
                        double.TryParse(pARInvoice.Rows<i>["DISCOUNTPERCENT"].ToString(), out _discountPercent);
                        _oARInvoice.Lines.DiscountPercent = _discountPercent;                   
                        double _lineTotal = 0;
                        double.TryParse(pARInvoice.Rows<i>["AMOUNT"].ToString(), out _lineTotal);
                       // This part here, does not reflect in SAP
                        if (_lineTotal >= 2500000)
                            _oARInvoice.Lines.TaxCode = "O1";
                        else
                            _oARInvoice.Lines.TaxCode = "X0";
                        _oARInvoice.Lines.PriceAfterVAT = _lineTotal;                   
                        _total += _lineTotal;
    else
                    this.ERRORMESSAGE = "Invalid Invoice Type.";
                    throw new Exception("Invalid Invoice Type.");
                _oARInvoice.DocTotal = _total;
                _oARInvoice.Comments = pComments;
                this.LASTINSERTINVOICEID = "";
                this.RETURNCODE = _oARInvoice.Add();
                if (this.RETURNCODE != 0)
                    int _tempErrorCode = 0;
                    string _tempErrorString = "";
                    this.COMPANY.GetLastError(out _tempErrorCode, out _tempErrorString);
                    this.ERRORCODE = _tempErrorCode;
                    this.ERRORMESSAGE = _tempErrorString;
                    _result = false;
                else
                    this.RECORDSET = (SAPbobsCOM.Recordset)this.COMPANY.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                    this.RECORDSET.DoQuery("SELECT MAX(DocEntry) FROM OINV");
                    this.LASTINSERTINVOICEID = this.RECORDSET.Fields.Item(0).Value.ToString();
                    _result = true;

  • We are Not able to Add, approved A/P invoice - Error - Tax code Missing

    Dear Experts,
    In A/P -> A/P service Invoice
    When We are going to Add Approved Invoice ,system can not allow . This
    invoice is go through a approval process ,system can not allow to change any
    of document row during approval process or after approval process.
    we are unable to add tax or remove line item after approval.
    We are Not able to Add, approved A/P invoice - Error - Tax code Missing
    [A/p Invoice Row -Tax code] Line 3 [Message 3513-14]
    I think ,It should allow the system to edit the row tax or amount after or during
    approval process

    Don't worry,AP invoice is not get posted,it will be saved as draft only,
    Default tax code for purchase documents using tax code determination.
    Create new ap invoice with tax code and send it for approval.
    Orginator should ensure all mandatory fields in document are entered correctly before
    sending it for approval.

  • XML INVOICE Report RAXINV, Taxline is repeating for each invoice line

    Hi Tim
    Thanks a lot for your blog
    Greeting !!
    I have successfully created XML report for AR invoice Printing learning from your blog but stuck to a problem , whenever Invoice is having multiple lines ,say 20, then for each invoice line there is tax line printing 20 times like this:
    PART NO.| CUSTOMER PART#/DESCRIPTION | UNIT PRICE | QUNTITY|
    A123 | 34 WELD-ROD | 52 | 22 |
    Tax Exempt @ 0.00
    A234 | 238-AL WIER | 63 | 55 |
    Tax Exempt @ 0.00
    ........ Assume there are 20 lines then tax line also repeating 20 times which i don't want .It should get printed only once if it is same
    pls help me to achieve this
    Thanks
    Rahul

    Thanks Tim for Your Instant reply.
    I have gone through your duplicate line elimination but my requirement is not this
    I'll explain it, I am using LINE_DESCRIPTION tag for printing item description and this tag have two value for it, when the LINE_TYPE =LINE then LINE_DESCRIPTION tag is printing the line description and if LINE_TYPE =TAX
    then LINE_DESCRIPTION tag is printing the taxline information. Now if I have 20 lines in Invoice then the tax line will also repeat for 20 times, and if i use duplicate line elimination logic and I have same item it'll not print that item, some times whole invoice become blank.
    So I want to print 20 lines and out of that 15 lines are have same tax rate then it should print once at the end of 15th line and for remaining 5 lines if tax rate is different for each line then it should print at the end of each line (5lines)
    In the linetreevariable i used <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES [LINE_TYPE!='FREIGHT']"/> i.e. I want only line type=LINE and TAX
    Thanks
    Rahul

  • Missing information when updating invoice line

    Dear all,
    I am updating invoice line information but system giving and error
    declare
    begin
    for rec in (select l.*
    from ap_invoices_all l
    where invoice_num = 'akp/445'
    and vendor_id = 1068
    and org_id = 82) loop
    AP_INVOICES_PKG.Update_Row(X_Rowid => 'AABDoVAGSAACZlRAAM',
    X_Invoice_Id => rec.invoice_id,
    X_Last_Update_Date => rec.last_update_date,
    X_Last_Updated_By => rec.last_updated_by,
    X_Vendor_Id => rec.vendor_id,
    X_Invoice_Num => rec.invoice_num,
    X_Invoice_Amount => rec.invoice_amount,
    X_Vendor_Site_Id => rec.vendor_site_id,
    X_Amount_Paid => rec.amount_paid,
    X_Discount_Amount_Taken => rec.discount_amount_taken,
    X_Invoice_Date => sysdate,--rec.invoice_date+30,
    X_Source => rec.source,
    X_Invoice_Type_Lookup_Code => rec.invoice_type_lookup_code,
    X_Description => rec.description,
    X_Batch_Id => rec.batch_id,
    X_Amt_Applicable_To_Discount => rec.amount_applicable_to_discount,
    X_Terms_Id => rec.terms_id,
    X_Terms_Date => rec.terms_date,
    X_Goods_Received_Date => rec.goods_received_date,
    X_Invoice_Received_Date => rec.invoice_received_date,
    X_Voucher_Num => rec.voucher_num,
    X_Approved_Amount => rec.approved_amount,
    X_Approval_Status => rec.approval_status,
    X_Approval_Description => rec.approval_description,
    X_Pay_Group_Lookup_Code => rec.pay_group_lookup_code,
    X_Set_Of_Books_Id => rec.set_of_books_id,
    X_Accts_Pay_CCId => rec.accts_pay_code_combination_id,
    X_Recurring_Payment_Id => rec.recurring_payment_id,
    X_Invoice_Currency_Code => rec.invoice_currency_code,
    X_Payment_Currency_Code => rec.payment_currency_code,
    X_Exchange_Rate => rec.exchange_rate,
    X_Payment_Amount_Total => rec.payment_amount_total,
    X_Payment_Status_Flag => rec.payment_status_flag,
    X_Posting_Status => rec.posting_status,
    X_Authorized_By => rec.authorized_by,
    X_Attribute_Category => rec.attribute_category,
    X_Attribute1 => rec.attribute1,
    X_Attribute2 => rec.attribute2,
    X_Attribute3 => rec.attribute3,
    X_Attribute4 => rec.attribute4,
    X_Attribute5 => rec.attribute5,
    X_Vendor_Prepay_Amount => rec.vendor_prepay_amount,
    X_Base_Amount => rec.base_amount,
    X_Exchange_Rate_Type => rec.exchange_rate_type,
    X_Exchange_Date => rec.exchange_date,
    X_Payment_Cross_Rate => rec.payment_cross_rate,
    X_Payment_Cross_Rate_Type => rec.payment_cross_rate_type,
    X_Payment_Cross_Rate_Date => rec.payment_cross_rate_date,
    X_Pay_Curr_Invoice_Amount => rec.pay_curr_invoice_amount,
    X_Last_Update_Login => rec.last_update_login,
    X_Original_Prepayment_Amount => rec.original_prepayment_amount,
    X_Earliest_Settlement_Date => rec.earliest_settlement_date,
    X_Attribute11 => rec.attribute11,
    X_Attribute12 => rec.attribute12,
    X_Attribute13 => rec.attribute13,
    X_Attribute14 => rec.attribute14,
    X_Attribute6 => rec.attribute6,
    X_Attribute7 => rec.attribute7,
    X_Attribute8 => rec.attribute8,
    X_Attribute9 => rec.attribute9,
    X_Attribute10 => rec.attribute10,
    X_Attribute15 => rec.attribute15,
    X_Cancelled_Date => rec.cancelled_date,
    X_Cancelled_By => rec.cancelled_by,
    X_Cancelled_Amount => rec.cancelled_amount,
    X_Temp_Cancelled_Amount => rec.temp_cancelled_amount,
    X_Exclusive_Payment_Flag => rec.exclusive_payment_flag,
    X_Po_Header_Id => rec.po_header_id,
    X_Doc_Sequence_Id => rec.doc_sequence_id,
    X_Doc_Sequence_Value => rec.doc_sequence_value,
    X_Doc_Category_Code => rec.doc_category_code,
    X_Expenditure_Item_Date => rec.expenditure_item_date,
    X_Expenditure_Organization_Id => rec.expenditure_organization_id,
    X_Expenditure_Type => rec.expenditure_type,
    X_Pa_Default_Dist_Ccid => rec.pa_default_dist_ccid,
    X_Pa_Quantity => rec.pa_quantity,
    X_Project_Id => rec.project_id,
    X_Task_Id => rec.task_id,
    X_Awt_Flag => rec.awt_flag,
    X_Awt_Group_Id => rec.awt_group_id,
    X_Pay_Awt_Group_Id => rec.pay_awt_group_id,
    X_Reference_1 => rec.reference_1,
    X_Reference_2 => rec.reference_2,
    X_Org_Id => rec.org_id,
    X_global_attribute_category => NULL,
    X_global_attribute1 => NULL,
    X_global_attribute2 => NULL,
    X_global_attribute3 => NULL,
    X_global_attribute4 => NULL,
    X_global_attribute5 => NULL,
    X_global_attribute6 => NULL,
    X_global_attribute7 => NULL,
    X_global_attribute8 => NULL,
    X_global_attribute9 => NULL,
    X_global_attribute10 => NULL,
    X_global_attribute11 => NULL,
    X_global_attribute12 => NULL,
    X_global_attribute13 => NULL,
    X_global_attribute14 => NULL,
    X_global_attribute15 => NULL,
    X_global_attribute16 => NULL,
    X_global_attribute17 => NULL,
    X_global_attribute18 => NULL,
    X_global_attribute19 => NULL,
    X_global_attribute20 => NULL,
    X_calling_sequence => null,
    X_gl_date => rec.gl_date,
    X_award_Id => rec.award_id,
    X_approval_iteration => rec.approval_iteration,
    X_approval_ready_flag => rec.approval_ready_flag,
    X_wfapproval_status => rec.wfapproval_status,
    X_requester_id => rec.requester_id,
    X_quick_credit => rec.quick_credit,
    X_credited_invoice_id => NULL,
    X_distribution_set_id => NULL,
    X_FORCE_REVALIDATION_FLAG => NULL,
    X_CONTROL_AMOUNT => NULL,
    X_TAX_RELATED_INVOICE_ID => NULL,
    X_TRX_BUSINESS_CATEGORY => NULL,
    X_USER_DEFINED_FISC_CLASS => NULL,
    X_TAXATION_COUNTRY => NULL,
    X_DOCUMENT_SUB_TYPE => NULL,
    X_SUPPLIER_TAX_INVOICE_NUMBER => NULL,
    X_SUPPLIER_TAX_INVOICE_DATE => NULL,
    X_SUPPLIER_TAX_EXCHANGE_RATE => NULL,
    X_TAX_INVOICE_RECORDING_DATE => NULL,
    X_TAX_INVOICE_INTERNAL_SEQ => NULL, -- bug 8912305: modify
    X_QUICK_PO_HEADER_ID => NULL,
    x_PAYMENT_METHOD_CODE => rec.payment_method_code,
    x_PAYMENT_REASON_CODE => null,
    X_PAYMENT_REASON_COMMENTS => null,
    x_UNIQUE_REMITTANCE_IDENTIFIER => null,
    x_URI_CHECK_DIGIT => null,
    x_BANK_CHARGE_BEARER => null,
    x_DELIVERY_CHANNEL_CODE => null,
    x_SETTLEMENT_PRIORITY => null,
    x_NET_OF_RETAINAGE_FLAG => null,
    x_RELEASE_AMOUNT_NET_OF_TAX => null,
    x_PORT_OF_ENTRY_CODE => null,
    x_external_bank_account_id => null,
    x_party_id => null,
    x_party_site_id => null,
    x_disc_is_inv_less_tax_flag => null,
    x_exclude_freight_from_disc => null,
    x_remit_msg1 => null,
    x_remit_msg2 => null,
    x_remit_msg3 => null,
    x_remit_to_supplier_name => null,
    x_remit_to_supplier_id => null,
    x_remit_to_supplier_site => null,
    x_remit_to_supplier_site_id => null,
    x_relationship_id => null,
    x_original_invoice_amount => null,
    x_dispute_reason => null);
    commit;
    end loop;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    end;
    ORA-20001: APP-SQLAP-10000: ORA-01403: no data found occurred in
    AP_INVOICES_PKG.UPDATE_ROW<-
    with parameters (X_Rowid = AABDoVAGSAACZlRAAM, X_invoice_id = 180867)
    while performing the following operation:

    Hi;
    Please review:
    R12: Validate Invoice Errors APP-SQLAP-10000, ORA-01403 and ORA-20001 [ID 1308869.1]
    R12: Master Note: Consolidated Error Notes Of EBTax Related Issues In Oracle Payables [ID 1378068.1]
    By the way If you make search at metalink such as APP-SQLAP-10000: ORA-01403: ORA-20001 there are 38 doc avaliable, please review them
    Regard
    Helios

  • AP: Invoice Imports/ Miscellaneous Invoice Line types

    Hi All,
    I had two issues while I was importing my invoices in AP through AP Invoices Open interface:
    1. Freight Charges
    2. Some Unit Royality Charges.
    Both of these things are not included in my PO, so I needed to create additonal invoice distribution lines with in the same invoice and also had to assign a GL account while creating the invoices. The other Item type lines get the GL account code from PO while matching is done during AP Open Import process.
    The Freight charges problem is resolved. The solution for that is as follows for your reference.
    Functional Steps:
    1. With Accounts Payables Manager responsibility , go to
    Setup->Options->Payables.
    2. Select Invoice from drop down list box.
    3. In invoice region Ceck the Automatically Create Freight Distribution Option.
    4. Supply default Freight Account for Freight Distributions.
    Technical Steps:
    1. Create an additional Invoice distributions line for freight in AP_INVOICE_LINES_INTERFACE table which should not have the PO level information.
    2. Set AP_INVOICE_LINES_INTERFACE.Prorate_across_flag = 'Y'
    3. AP_INVOICE_LINES_INTERFACE.line_type_lookup_code = 'FREIGHT'
    4. Set AP_INVOICE_LINES_INTERFACE.LINE_GROUP_Number as same in both the ITEM and Freight Invoice distribtuion line which are interrelated.
    The above resolves the Freight issue and you can reproduce it in your environment.
    However, I have another amount from my supplier which is called "Royality Charge" on every item which are also not present in my PO. My supplier sends these charges with Invoice lines the same way Freight charges are sent. I am thinking of creating additional Invoice lines marked as "Miscellaneous" Invoice Lines type for this charge. The problem I am facing with Miscellaneous Lines is that I cannot find a place where I can setup the Account code for such Invoice distribution lines, like I got for Freight Type Distribution lines as described above in Functional steps. Can anyone guide me in this regard or can give me an alternative workaround to handle my Unit Royality Charges?
    Thanks
    Faisal .
    [email protected]
    null

    Apologies for the late response, have only just spotted the question.
    You will need to register "line-item job-level chains of approval" under payables transaction type before you can select it from the picklist:
    Setup\Action Types\"Use Existing Action Type" button, then select action type and continue.
    Hope this helps (if you haven't already resolved yourself)
    James

  • R12 - AP Invoice Lines Interface & Tax Codes

    We have a slight problem getting AP Invoice Lines through the Payables Open Interface. In 11i the value held in the TAX_CODE column was validated (against AP_TAX_CODES I believe), and if wrong or missing the line was rejected. The eTRM for R12 claims this column is still validated, although against ZX_TAXES_B, however testing shows this to be untrue. Support documentation from Oracle (e.g. note 472649.1) suggest a number of other columns are now used for tax validation, however testing agains shows this to be untrue. The only column we can find which is validated is TAX_CLASSIFICATION_CODE, and if this column contains a valid tax code then the invoice line will be accepted, however we cannot find any documentation which shows that this column should be used.
    Has anyone out there bottomed out this issue, and if so is there any insight you could offer?
    Many thanks.
    Edited by: user13317468 on Jul 4, 2011 1:32 AM

    Hi Vinod,
    please check the below reference from oracle support ...
    Case Study: How Payables Open Interface Import works with EB Tax for importing Invoices [ID 1381400.1]
    Regards,
    Ivruksha

  • AR Invoice Presentation / Invoice Lines diff than Sales Order Lines

    Hi,
    Due to business rules I got the following requirement, I'd like to get advice or second opinions please:
    Instead of showing 200 lines we want to show 1 line in the invoice summarizing the job done.
    The requirement is:
    The invoice should summarize the Order Lines, meaning that we want to have different lines in the invoice than those in the orders composing the invoice. The total amounts must equal between both, the invoice and the orders lines been invoiced.
    For example:
    We need to create an Invoice for 2 Sales orders with 10 lines each, each line for $1 usd.
    The invoice could be in any of these situations:
    - Having only one line composing the 2 orders. The invoiced amount is $20.
    - Having 2 lines composing the 2 orders. The invoiced amount is $20 ($10 line 1, $10 line 2)
    The description on the invoice lines must be completly open.
    Internaly, the link/reference between the invoice line and the order line(s) composing it must be kept.
    This must work with 1 or more Sales Orders (partial or complete)
    Can be done via autoinvoice or not. (The user is able to compose and reference the invoice manually)
    ¿Is there already something done that I can use? Just point me on one direction and I'd be happy to investigate.
    I already have 1 or 2 ideas of how to achieve this without customizing at all.
    Just wanted to check and get advice and second opinions on this before taking a decision.
    Technical Spec:
    Oracle EBS 11i (11.5.10.2)
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Thanks in advance.
    Juan Alcocer

    seems to error
    APP-AR-11526
    ORA-28115
    seems the security policy is implemented at your database leval and check which ID you are using to insert the record.Check with your DBA, for security to resolve first for ORA-28115.
    Disabled in case if you have any custom triggers defined on RA_CUSTOMER_TRX_ALL.
    Few Documentation for ORA-28115
    ORA-28115 with EXEMPT ACCESS POLICY privilege
    A user USER1 has been granted select, insert, update, delete on all
    tables of an application schema (USER2) that uses row-level security.
    The RLS policies cover select, insert, update, and delete, and have check option enabled. USER1 has also been granted EXEMPT ACCESS POLICY system privilege.
    Each table in the USER2 schema has a trigger that causes insertion of
    a row into an audit table whenever DML is performed. When USER1 performs DML on a USER2 table, the operation fails with

  • Issue in XML Invoice lines

    Hi,
    I designed layout for invoice report in xmlp 5.6.2, I have issue when i preview the output, instead of two Invoice lines i am getting 8 times with the repeating of 2 lines.I given the following tags....
    Before line : <?for-each:G_INVOICE_LINES?>
    End of lines : <?end for-each?>
    waiting for tips.
    Regards
    Prabusiva

    Hi Tim/Andrew,
    I have only 2 lines for the invoice but when i run the preview in pdf, this 2 lines repeating 4 times. so far i am getting 8 lines.
    This is the following tags for lines part
    <LIST_G_INVOICE_LINES>
    <G_INVOICE_LINES>
    <LIST_G_LINE_ALLOC> </LIST_G_LINE_ALLOC> <LIST_G_LINE_COMMENT> /LIST_G_LINE_COMMENT> <LIST_G_LOT_NO_IN_LOTS> </LIST_G_LOT_NO_IN_LOTS>
    </G_INVOICE_LINES>
    </LIST_G_INVOICE_LINES>
    In the RTF template in the starting line i given this <?for-each:G_INVOICE_LINES?> and end of the line i given this <?END FOR-EACH?>
    Still i showing only 8 lines but i want to display only 2 lines.
    Can any one know please drop your ideas.
    with cheers
    prabu

  • Insert/Update/Delete Non-PO Invoice Line Item via FM/BAPI?

    Does anyone know of a way to insert/update/delete an Invoice Line item (Non-PO Accounting Invoice - Transaction FB60 or FV60) using a BAPI or Function Module (or set of function modules) using ABAP? I have been trying to find some code to accomplish this and am stuck on a couple of issues.
    I have found PRELIMINARY_POSTING_FB01 and PP_CHANGE_DOCUMENT_ENJ but both seem to submit the details to background processes. This is an issue because it gives the user a success message after execution but later delivers the error to Workflow. This is for an interfacing program so the results should be as real time as possible.
    Has anyone accomplished this via FM or BAPI and if so would you mind sharing your experiences?
    Thank you very much,
    Andy

    SG- Thank you for the reply.
    I have been playing with BAPI_INCOMINGINVOICE_PARK and I'm not sure if it is doing exactly what we want, but it is something that I have considered in the past. I plan on looking into BAPI_ACC_INVOICE_RECEIPT_POST this morning, hopefully that will provide some more for us.
    If possible I'd like to avoid BDC sessions because this program could hypothetically interface with multiple SAP systems with different configurations.
    I will check into those FM's and thank you very much.

  • Printing fixed number of  Invoice Line in rtf template with level two group

    Hi,
    I have to print fixed number of invoice lines on a page. Invoce tempalte design has a table with header and summary(Invoice , tax and shiping totals) at each page in table footer. The table should repeate at each page with header and footer. I need to print specific number of rows or number of rows wihich page can accumulate in table body on each page.
    I checked few blogs giving solution for fixed number of rows printing say
    "Anatomy of a Template I - Fixed Row Enumeration"(http://blogs.oracle.com/xmlpublisher/2007/03/27/)
    and
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Above two blogs explanation has only one group at line level. but in my case there are two groups (Parent and child) at line level. I am able to count rows in parent group but it is not counting lines in child group.
    Edited by: Bhanu Yadav on Apr 19, 2011 2:10 AM

    Will it be possible for you to move the 1st and 3rd sections to header/footer?
    So that if the 2nd section spills over to next page too, starting position of 3rd section wont be affected.

Maybe you are looking for

  • Apple TV video but no audio

    I get video but no audio.

  • AT selection-screen on ON HELP-REQUEST

    Hi What is normally done in the Selection Screen event : AT selection-screen on ON HELP-REQUEST. Normally pressing F1 helps gives Documentation present in Data Element assoicated with the field. Exactly in what cases would we be needing to use this e

  • Default program in i3

    I run i3 as my window manager, and whenever I open a pdf file, i3 insists on opening it in Firefox. I was wondering how I can make pdf's open by default in zathura or evince, or more generally, how I can set a default program for certain file extensi

  • Sending a mail in IFS

    Hello, When i send a mail to a IFS user, i have this message: 550 : Host unknown (Name server: localhost: host not found) What does it mean ? I have never statistics into IFS: Statistics from Wed Sep 13 11:54:44 2000 M msgsfr bytes_from msgsto bytes_

  • Problems with MacBook Pro 13" startup.

    When I press the 'On' button on my MacBook Pro, the screen and sound activates. The Apple Logo appears on the screen, shortly followed by a horizontal loading bar across the bottom of the screen. This bar loads until almost full. Then the device swit