Invoice Form_Data Events

Hi,
I'm trying to update fields on the lines of invoice in the FORM_DATA_ADD event. I originally wanted to use the BEFORE event to get the value of docEntry and then retrieve the Business Object and update it. However the ObjectKey is still empty at this point. I then tried to update it in the AFTER event. At this point I can get the ObjectKey and retrieve the Business Object. I can only update certain fields at the Header level of the invoice though. I need to be able to update data at the row level. I've posted my code below. This code works for Sales Orders but not for invoices.
string xmlKey = BusinessObjectInfo.ObjectKey.ToString().Trim();        
SAPbobsCOM.Documents inv = (SAPbobsCOM.Documents) m_SboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
if (inv.Browser.GetByKeys(xmlKey) == true)
     inv.Comments = "TEST";
     inv.Lines.Quantity = 99;
     inv.Update();
Does anyone have any suggestions as to how I could accomplish this?
Thanks

Stephen,
Have you looked at the SDK sample code for Order And Invoice?  This may assist you with your question.  You can locate the code at ...
..\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\05.OrderAndInvoice
HTH,
Eddy

Similar Messages

  • Local Event ERROR : oracle.apps.ap.event.invoice.approval / 83099_1

    I logined to sysadmin.
    I showed thirty mail.
    The mail Title is "Local Event ERROR : oracle.apps.ap.event.invoice.approval / 83099_1"
    Perhaps...
    May be generated, Because Approvals Management setup changed .
    What It mean?
    How to settlement?
    I can't Matalink.
    Help me!
    Mail contents is as follows
    Notificatio ID : 178154
    Event Error Name: WFENG_EVENT_NOTFOUND
    Event Error Message: 3142: Process 'APINV/82103_1' has no activities waiting to receive event 'oracle.apps.ap.event.invoice.approval'.
    Event Error Stack:
    Wf_Engine.Event(APINV, 82103_1, APINV_M, oracle.apps.ap.event.invoice.approval)
    Wf_Rule.Default_Rule(oracle.apps.ap.event.invoice.approval, ADE4691FB72F04E1E0340003BA0267DC)
    Event Detail List:
    Event Name: oracle.apps.ap.event.invoice.approval
    Event Key: 82103_1
    source Agent: WF_DEFERRED
    source System INST816.US.ORACLE.COM
    the order of priority: 50
    Send date: 29-JAN-2008 15:52:26
    receive date 29-JAN-2008 15:53:33
    Parameter : SUB_GUID A15D214DADC2507EE034
    Parameter : ERROR_NAME WFENG_EVENT_NOTFOUND
    Parameter : ERROR_TYPE ERROR
    ----------------------------------------------------------------------------------------------------------------

    Please check the following notes:
    Note: 330194.1 - APINV - WFENG_EVENT_NOTFOUND Event Error Message: 3142: Process 'APINV/10204_1' has no activities waiting to receive event 'oracle.apps.ap.event.invoice.approval'
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=330194.1
    Note: 305700.1 - Invoice Approval Workflow Troubleshooting Guide
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=305700.1
    Note: 261409.1 - Checklist to see where and why Invoice Approval Workflow gets stuck
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=261409.1

  • Develop a Workflow to unblock Invoice

    Objective
    - Use BTE u2013 Business Transaction events to raise the event Invoice is blocked
    - Extend existing Business object and add new method to unblock the invoice
    - Develop a Workflow to unblock Invoice
    Questions:
    - Is there any standard FM to unblock the invoice?
    - EVENT Text
    00001025 POST DOCUMENT: Final checks completed
    I have identified this BTE for triggering WF using blocked price event. But this event get called twice so WF get called twice. Is there any way to prevent it?
    - I have copied the FM for above event and this FM gets called when invoice is posted. But in import parameters I am not able to find the key field l EBELN (Document no).
    Thanks & Regards,
    Anshul

    Hi,
    I think you can try SAVE routine in RV60AFZZ ( or sort ) to trigger your workflow...
    Regards
    Gautam Maini

  • MHKIM:AP PAYMENT ADJUSTMENT EVENT의 생성과정

    제품: FIN_AP
    작성날짜 : 2006-10-18
    AP PAYMENT ADJUSTMENT EVENT의 생성과정
    =================================
    PURPOSE
    AP PAYMENT ADJUSTMENT EVENT의 생성과정
    Explanation
    Payment 처리시에 default type인 Quick(약식)이외에
    "Manual"(수동) type으로 처리하게되면
    Data저장 이후에도 "Enter/Adjust Invoices"버튼이 활성화됩니다.
    만약, 잘못 지급처리된 invoice가 있을 경우,
    "Enter/Adjust Invoices"버튼을 누르고, 기존 invoice에 대해서 check option으로 선택한 후,
    "Reverse Payment" 로 해당 invoice의 지급을 취소하고,
    동일 금액의 다른 invoice로 재입력하면, 재처리에 대한 event는
    "Payment Adjustment"로 생성됩니다.
    * 예제*
    1. Invoice 입력
    amount : 100$, 200$, 300$
    2. 승인 및 Accounting작업
    3. Payment처리
    Payment type은 "Manual"(수동)으로 선택.
    4.
    TEST로 입력된 100$ 와 200$ 에 대한 지급처리
    지급 총 금액은 300$
    5. 입력된 Payment를 재조회 후, "Enter/Adjust Invoices"를 선택
    6. 100$와 200$ 에 대해서 check한 후, Reverse Payment버튼을 누름.
    7. 새로운 line에 300$ 의 invoice를 입력/저장
    8. Accounting작업을 하게되면
    처음 입력된 invoice정보들에 대해서 Payment event로 accounting이 생성되고
    재 조회후 작업한 변동사항에 대해서는 "Payment Adjustment" event로 accounting이 생성됩니다.

  • Payload for an exent & Source from where Event Raised

    In Oracle Applications 11.5.10 I want to subscribe to "oracle.apps.ap.event.invoice.approval" event.
    I want to add a custom "Rule Function", I require to know the payload for this event.
    And I want to know from where is this event raised in the base product.
    Thanks
    Atul

    Many thanks Matt..
    You are right.. The payload will be generated by the application raising the event. How do I come to know that from where is "oracle.apps.ap.event.invoice.approval" event raised. Is it raised from a form, workflow, pl/sql package, db trigger?
    Secondly I agree it is of type WF_EVENT_T, but in addition to that I want to know what are the granular contents of the payload being passed to my rule function. What all data can I reference from this seeded Payload. What is the name of this payload.
    Thanks
    Atul

  • AP ACCOUNTING EVENT의 종류 및 설명

    제품 : FIN_AP
    작성날짜 : 2004-05-19
    AP ACCOUNTING EVENT의 종류 및 설명
    ============================
    PURPOSE
    AP에서는 Accounting이라는 Process가 존재한다.
    Accounting작업시 AP Data의 상태에 따라 서로 다른 Event가 발생한다.
    Event에 대해서 종류별로 간단하게 설명한다.
    Explanation
    1. Invoice
         Invoice Event : Invoice를 입력하고, 승인한 후 Accounting했을때 발생함.
         Invoice Adjustment Event : 이미 승인되고, Accounting된 Invoice에 대해서 금액이
    조정되었을때, 재 Accounting시 발생함.
         Invoice Cancellation Event : Invoice가 Cancel되었을때 발생함.
         Prepayment Application Event : Invoice에 Prepayment가 Apply되었을때 발생함
         Prepayment Unapplication Event : Apply된 Prepayment를 unapply할때 발생함.
    2. Payment
         Payment Event : Invoice를 지급처리한 후 Accounting작업시 발생함.
         Payment Maturity Event : 어음등 Payment처리날짜와 실제 지급처리 날짜가 다를때 발생함.
         Payment Adjustment Event : 지급에 대해 조정이 생겼을때 발생함.
         Payment Cancellation Event : 지급처리가 취소 되었을때 발생함.

  • SUS-EBP scenario. SUS Invoice not transfered to EBP

    Hi all.
    I try to customize SRM 7.0 with SUS on different clients.
    XI Integration scenario (service procurement) is activated and works fine except SUS invoice replication to SRM. I can see in XI (tr. SXI_MONITOR) XML's for PO's, SUS PO's, Confirmations but not for Invoices.
    When I create SUS Invoice and sent it system doesn't generate any XML (no XML in SRM and XI at all).
    Can somebody help to resolve this problem? or simply provide me with abap-program name which is start output(XML) generation for SUS Invoice?

    Hi Mikhal,
    Please check if the invoice triggering event is defined or not ?
    SPRO --> SAP Supplier Relationship Management --> SRM Server --> Cross-Application Basic Settings --> Event and Event Schema for Alert Management -->Define Events
    Add u2013 event definition u2013 INVOICED for object type - BUS2234
    This should trigger the Invoice.
    Thanks,
    -Devi Swain

  • NO Event created for Customer Billing Document (VF01) in Work Flow

    Hi expert ,
    I would like to trigger a work flow from the customer invoice created event.
    Bus Object should be "VBRK" or "BUS2037" ( Customer billing document )
    But ,I cannot get any event after the billing transaction in VF01.
    I use the "SWEL" transaction to monitor all events triggered, but I don't see any event related with billing ( I only see events for sales order creation ).
    Also in "SWO1" BUS2037 has only one event  : "ItCustBillingDoc.assigned"; but It doesn't make any sense to me .Why isn't there a created event for invoice ?
    Has any of you been thru that problem ?
    Thanks for advising .
    Sincerely
    Yvon.

    Hi thanks for your answer.
    SWELS is activated.
    PB still remains :
    In  SWEL i see no event triggered after the creation of a billing invoice .
    I can only see an event related to BUS2032 which is the sales order creation .
    But nothing related to the billing document although the doument is created in SD ( I have the record in VBRK ).
    Any idea Why ?
    Thanks again

  • Translating Visual Basic Events into Java Events

    I'm in the process of porting a Visual Basic application to Java. Now, most of it is pretty straight forward, since good OO practice is evident in the original VB source. With a good dose of refactoring along the way the Java version is looking pretty good too.
    However, I'm having a problem with events. Here's a snuppet of one of a VB class that generates events and one that uses it:
    (Invoices.cls)
    -=-=-=-=-=-=-=-=-
    Event AddItem(ItemID as String)
    Event RemoveItem(ItemID as String)
    Private m_Items as Collection
    Public Sub Add(ItemID as String)
       m_Items.Add ItemID
       RaiseEvent AddItem(ItemID)
    End Sub
    Public Sub Remove(ItemID as String)
       m_Items.Remove ItemID
       RaiseEvent RemoveItem(ItemID)
    End Sub
    -=-=-=-=-=-=-=-=-and
    (OrderBook.cls)
    -=-=-=-=-=-=-=-=-
    Private WithEvents m_Invoices as Invoices
    Private Sub m_Invoices_AddItem(ItemID as String)
       CalculateTotals
    End Sub
    Private Sub m_Invoices_RemoveItem(ItemID as String)
       CalculateTotals
    End Sub
    -=-=-=-=-=-=-=-=-Can anyone give me a few pointers on what the Java equivalent to this VB code is?
    Thanks,
    Vince.

    Hi,
    There are few main things involved in a Java event delivery
    1. The event source
    2. The event listener
    3. The even data
    4. Registration
    5. The event delivery process
    I don't know the VB syntax, but any way it gives a good idea of what you wish to achieve.
    Here the Invoice class is basically the event source. And the OrderBook class is the event listener. To proceed further you will have to specify (define) the event listener first. Secondly you will have to create an event object which contains the data to be delvered via the event.
    1. Specifying the event listener interface
    public Interface ItemOperationListener
    public void itemAdded (ItemOperationEvent ioe);
    public void itemRemoved (ItemOperationEvent ioe);
    2. The event class
    public class ItemOperationEvent extends java.util.EventObject
    String item = null;
    public ItemOperationevent(Object source, String Item)
    super(source);
    this.item = item;
    public String getItem()
    return item;
    3. Creating and firing the event from the event source.
    public class Invoice
    private collection items; // any collection
    // to hold all the event listeners , this way u can define > 1
    // listeners
    javax.swing.event.EventListenerList listenerList = new javax.swing.event.EventListenerList();
    public void addItem(String item)
    items.add(item);
    // update the listeners
    fireItemAdded(item);
    public void removeItem(String item)
    items.add(item);
    // update the listeners
    fireItemRemoved(item);
    public void addItemOperationListener(itemOperationListener ioe)
    listenerList.add(ioe);
    public void removeItemOperationListener(itemOperationListener ioe)
    listenerList.remove(ioe);
    public void fireItemAdded(String item)
    ItemOperationEvent e = null;
    Object[] listeners = listenerList.getListenerList();
    // Process the listeners last to first, notifying
    // those that are interested in this event
    for (int i = listeners.length-2; i>=0; i-=2) {
    if (listeners== ItemOperationListener.class) {
    if (e == null)
    e = new ItemOperationEvent(this,item);
    ((ItemOperationlistener)listeners[i+1]).itemAdded(e);
    public void fireItemRemoved(String item)
    ItemOperationEvent e = null;
    Object[] listeners = listenerList.getListenerList();
    // Process the listeners last to first, notifying
    // those that are interested in this event
    for (int i = listeners.length-2; i>=0; i-=2) {
    if (listeners[i] == ItemOperationListener.class) {
    if (e == null)
    e = new ItemOperationEvent(this,item);
    ((ItemOperationlistener)listeners[i+1]).itemRemoved(e);
    4. The listener and the registration .
    public class OrderBook implements ItemOperationListener
    private Invoice invoice; // invoice instance.
    public OrderBook()
    // register for event updates .
    invoice.additemOperationListener(this);
    public void itemAdded(ItemOperationEvent ioe)
    String tobeAdded = ioe.getItem();
    calculate();
    public void itemRemoved(ItemOperationEvent ioe)
    String tobeRemoved = ioe.getItem();
    calculate();
    public void calculate()
    I hope this gives a picture of the standard method of event delivery in java . However you can even follow the Observer, Observable pattern (see the documentation for java.util.Observer, Observable).
    Hope this helps,
    Manish.

  • Logistics Invoice workflow

    Hi All,
              Requirement is for a Logistics Invoice Workflow
              triggered when 1> Price variance block(P) 2>Qty variance block (Q)
                                    3> when GR not found --- dont know which event this raises
              Also 1 invoice can have associated multiple PO's . The PO's can have different buyers . So the buyers should be sent the workitem with only the details of the Po's that he is responsible for  . Also if there is both a qty block and a price block then he should receive just 1 workitem . I don't think they require functionality as in workflow WS20000397 where the workflow automates the change / delete/verify actions and if change is selected then loops through the PO's in the change mode allowing to change price . This functionality will be performed manually , so the workflow itself is more like a notification .
               This is how I was thinking of tackling this .
               1. Get the list of blocked work items for the current invoice into a multiline.
               2. Get the buyers for each invoice line item via the associated PO Litem
                   into another multiline
               3. Get a list of buyers from pt 2 and remove duplicates . move into another multiline .
               4. call a subworkflow ( once for each line of the multine for  buyers ) .
               5. This subworkflow will get the line items belonging to the buyer
                   it will then call a task which will list the line items ( similar to bus2081-LISTBLOCKEDPRICEITEMDATA ). might have to create another method for  LISTBLOCKEDQTYTEMDATA  and call the task based on whichever event is called . I don't know in which category would the no GR created block fall under ?
    The work item can also contain object references for Invoice and each of the PO's so that he can view them as links and display the invoice and PO's .
                   The task will be completed by a invoice.released event , but if so then all the buyers will have to wait for the invoice has been released . maybe I can check if the relevant workitems have been unblocked . If not then send him another workitem . If the user chooses to reject the workitem the requirement is sent to the Accounting clerk which is fine .The workitem will remain in his inbox until he manually completes the workitem .
                   I hope this would work . The only thing I'm not very clear is how I can get a single workitem for both qty & price variances if they occur at the same time as they are 2 different events and will create 2 different workflows ?
    Any ideas let me know .

    Hi Radha,
    You can trigger a single workflow from different events. Even in this case it will create two workflow instances for the different events that are triggered. I guess you will have to wirte a small function module which can check for the PO properties. If it has both then you can run the workflow for any one branch. This is what comes to my mind.
    For the GR not present scenario you can just have a workflow once an Invoice is created and then run the workflow only if the GR is not present. You can have a check function module for that too.
    Hope this helps,
    Sudhi

  • Data Query combining GL, AP & AR

    Hi Guys,
    I work in a support project and having a hard time for finding the solution for the following request. Please help:
    "The information requested is as follows: - Number of GL entries per period - Number of manual GL entries per period - Number of GL entries done during the closing period (days 1, 2, and 3, or 1 and 2 for LA) - Number of A/P invoices processed (total number of invoices and total number of lines in the A/P invoices) - Number of A/P payments processed (could we also capture the type of payment: check, electronic transfer) - Number of manual A/R entries (manual invoices, other manual entries like reclassification of balances, etc). - Number of credit notes raised - Number of cash application entries (can we distinguish manual and automated) - Number of users in each module (we are looking for actual users of the system). The fields I believe I need to satisfy this request are: For GL: GL posting date, posting period, company, batch id, number of records in batch, manual jnl/system jnl flag For AP: GL posting date, posting period, company, invoice/credit/payment id, number of distribution lines, transaction type For AR: GL posting date, posting period, company, invoice/credit/receipt id, number of distribution lines, transaction type method of payment"
    Regards,
    Ranjith

    Hello.
    select b.posted_date pdate,
    h.period_name period,
    sob.name company,
    decode (l.reference_9, 'TRADE_REC', 'Receipt 1st Aplication',
    'TRADE_UNID', 'Unidentified Receipt',
    'TRADE_UNAPP', 'Receipt Unaplication',
    'MISC_REMITTANCE', 'Miscellaneous Receipt',
    'MISC_MISCCASH', 'Misc Receipt Distribution',
    'TRADE_ACC', 'On Account Receipt',
    'TRADE_REMITTANCE', 'Remmited Receipt',
    'CMAPP_REC', 'Credit Memo',
    'CCURR_REC', 'Receipt Aplication',
    'CCURR_CURR_ROUND', 'Receipt App Rounding',
    'INV_REC', 'Invoice Receivable',
    'INV_TAX', 'Invoice Tax',
    'INV_REV', 'Invoice Revenue') Event,
    count(l.je_line_num) num_lines,
    h.je_category trx_type
    from gl_je_batches b,
    gl_je_headers h,
    gl_sets_of_books sob,
    gl_je_lines l
    where h.je_header_id = l.je_header_id
    and b.je_batch_id = h.je_batch_id
    and b.set_of_books_id = sob.set_of_books_id
    and h.je_source = 'Receivables'
    and h.period_name = <your period_name>
    group by b.posted_date, h.period_name, sob.name, h.je_category, h.je_source, l.reference_2,decode (l.reference_9, 'TRADE_REC', 'Receipt 1st Aplication',
    'TRADE_UNID', 'Unidentified Receipt',
    'TRADE_UNAPP', 'Receipt Unaplication',
    'MISC_REMITTANCE', 'Miscellaneous Receipt',
    'MISC_MISCCASH', 'Misc Receipt Distribution',
    'TRADE_ACC', 'On Account Receipt',
    'TRADE_REMITTANCE', 'Remmited Receipt',
    'CMAPP_REC', 'Credit Memo',
    'CCURR_REC', 'Receipt Aplication',
    'CCURR_CURR_ROUND', 'Receipt App Rounding',
    'INV_REC', 'Invoice Receivable',
    'INV_TAX', 'Invoice Tax',
    'INV_REV', 'Invoice Revenue')
    To get the id is very tricky...

  • GR and Iv Workflow

    Hi all,
       I am currently  working on Goods receipt workflow...After posting the goods receipt the work flow should get triggered and work item for creating the invoice should be sent to the respective person...The above thing works fine...The Problem arises when the responsible person creates a invoice thru MIRO transaction directly instead of executing the work item..
                                     So when the person creates a invoice thru the transaction directly then the wok item should come to the completed status and the workflow should proceed..
    Can any one help me in this .
    Thanks & Regards,
    Hari.

    Hi all,
    My workflow is getting triggered when we post goods receipt..A work item has to be sent to the person who is responsible for posting the invoice..But according to my scenario even the person posts the invoice directly thru MIRO my workflow should be completed.So as it has been said earlier i tried fork with 2 parallel branches and 1 neccesary branch and used wait for step event but i am getting error in the fork step..
    Should i be using correlation or something because my wf gets trigerred when gr is posted but in the wait step i am checking for invoice posted event...if yes can anyone say how to use correlation
    or else is there anyother way for achieving this functionality.Please help me out in this.
    Thanks & Regards,
    Hari.

  • Custom AddOn and Payment Engine causes table lock

    Hi,
    i run with 2 customers in the same problem with different add-ons. After the customer saved a document via the standard SBO GUI the corresponding table will be locked in the database until the SBO-Client client was killed. The only thing witch these 2 customers as common is the running payment engine. Are some know issues with the payment engine and add-ons which are using form_data events?
    Thanks,
    Christian

    Hi ,
       Some of standard tables and usage of UDO locking tables in SP:01 PL:20. We faced  few such issues and identified it is problem with DI API. If you are using the same, try upgrading to any latest DI API.
    HTH
    Ravi Shankar B

  • Only constant values populate in target payload

    Hi all,
    I have a File to RFC scenario that attempts to post invoices via  BAPI_ACC_GL_POSTING_POST.
    The source values are populating the payload (see below) but the only values in the target payload are constants supplied in the mapping.
    I have tested the mapping in the designer. Both the message mapping tester and the interface mappings tester populate the target field values with the source values. I can supply the mapping text if needed.
    Any thoughts?
    Thanks,
    Troy
    Source payload in sxmb_moni:
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_Sales_Tran_Invoice xmlns:ns="urn:http://freemanco.com/xi/sales_tran1.0">
    - <Invoice>
    - <invoice_header>
      <Event>000000000142319</Event>
      <Branch>0112</Branch>
      <Transaction_Date>20070509</Transaction_Date>
      <Record_Type>IN</Record_Type>
      <Company>01</Company>
      <Customer>0000100002</Customer>
      <Invoice_No>336</Invoice_No>
      <Amount>13500</Amount>
      <Tax_Amount>0</Tax_Amount>
      </invoice_header>
    - <invoice_detail>
      <Record_Type>ID</Record_Type>
      <Invoice_Number>336</Invoice_Number>
      <Quantity>100</Quantity>
      <Net_Amount>13500</Net_Amount>
      <Discount_Pct>0</Discount_Pct>
      <Order_key>446</Order_key>
      <Order_Item_Key>1</Order_Item_Key>
      <GL_account>410010</GL_account>
      <Sequence_No>0000000001</Sequence_No>
      </invoice_detail>
      </Invoice>
      </ns:MT_Sales_Tran_Invoice>
    Target payload in sxmb_moni:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:BAPI_ACC_GL_POSTING_POST xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
    - <DOCUMENTHEADER>
      <USERNAME>george</USERNAME>
      <COMP_CODE>01</COMP_CODE>
      <DOC_TYPE>DR</DOC_TYPE>
      </DOCUMENTHEADER>
      <ACCOUNTGL />
      <CURRENCYAMOUNT />
      <RETURN />
      </ns1:BAPI_ACC_GL_POSTING_POST>

    Beena,
    You may be on to something...
    When I run the sxmb_moni payload in the message mapping tester I get this error:
    17:36:32 Start of test
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7)
    Here is the exact xml from sxmb_moni:
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:MT_Sales_Tran_Invoice xmlns:ns="urn:http://freemanco.com/xi/sales_tran1.0">
    <Invoice>
    <invoice_header>
      <Event>000000000142319</Event>
      <Branch>0112</Branch>
      <Transaction_Date>20070509</Transaction_Date>
      <Record_Type>IN</Record_Type>
      <Company>01</Company>
      <Customer>0000100002</Customer>
      <Invoice_No>336</Invoice_No>
      <Amount>13500</Amount>
      <Tax_Amount>0</Tax_Amount>
      <Username>thompt</Username>
      </invoice_header>
    <invoice_detail>
      <Record_Type>ID</Record_Type>
      <Invoice_Number>336</Invoice_Number>
      <Quantity>100</Quantity>
      <Net_Amount>13500</Net_Amount>
      <Discount_Pct>0</Discount_Pct>
      <Order_key>446</Order_key>
      <Order_Item_Key>1</Order_Item_Key>
      <GL_account>410010</GL_account>
      <Sequence_No>0000000001</Sequence_No>
      </invoice_detail>
      </Invoice>
      </ns:MT_Sales_Tran_Invoice>

  • Errors trying to Invoke web service using BES and SIF

    Moved this up from the Integration Forum to see if I can get some visibility on it.
    Description : When an invoice get's approved we need to pass on the details of the invoice and approval to the 3rd party customer.
    So far I have been able to test the business event which calls the web service that writes the information to a file. However, although the file is created there is no content in the file.
    So the steps up to this point
    1. Create a simple web service that takes a string as an input parameter and writes this out to a file.
    2. Locate the Approve Invoice event [oracle.apps.ap.event.invoice.approval] and add a new subscription that will invoke my web service.
    I have a number of issues at the moment.
    From the business event page I can test the event which writes a record to the wf_java_deferred queue. I have been able to call the service and create a file however that seems to have stopped working. Where do I look to see what's going wrong? Is the diagnostics the best place to start
    If I go into Status Monitoring I can see the last Business Event test I did is now having errors when it tries to invoke the web service. The error I get is
    Error Activity ID          
    Error Activity Label          
    Error Assigned User          
    Error Item Type          
    Error Item Key          
    Error User Key          
    Error Message          oracle.apps.fnd.wf.bes.InvokerException: Event payload is not available
    Error Name          
    Error Notification ID          
    Error Result Code          
    Error Stack          oracle.apps.fnd.wf.bes.InvokerException: Event payload is not available at oracle.apps.fnd.wf.bes.WebServiceInvokerSubscription.onBusinessEvent(WebServiceInvokerSubscription.java:236) at
    oracle.apps.fnd.wf.bes.EventDispatcher.executeSubscription(EventDispatcher.java:870) at oracle.apps.fnd.wf.bes.EventDispatcher.processSubscription(EventDispatcher.java:556) at
    oracle.apps.fnd.wf.bes.EventDispatcher.dispatch(EventDispatcher.java:335) at oracle.apps.fnd.wf.bes.AgentListenerProcessorNew.processMessage(AgentListenerProcessorNew.java:373) at
    oracle.apps.fnd.cp.gsc.SvcComponentProcessor.process(SvcComponentProcessor.java:659) at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283) at java.lang.Thread.run(Thread.java:619)
    Error Monitor URL          
    Timeout Value          0
    Event Name          oracle.apps.ap.event.invoice.approval
    Event Details          PLSQL:WF_STANDARD.EVENTDETAILS/WFERROR:332124
    Event Message          View Event Message
    Event Key          3134525_1
    Event Data URL     http://hostname.co.nz:8000/OA_HTML/RF.jsp?function_id=18157&resp_id=-1&resp_appl_id=-1&security_group_id=0&lang_code=US&
    params=.tut9vCLHp8BRzYkdaLWV3ekOnBGTRSUSr1RYBqw0ISKruqT5nAzoOSzIkWSQrzWO8z23dyX31GlRw75r21ich1KC4hE2KL.ZedjIDcPalm8f.akDClydWkRR3w2eGuk
    Event Subscription http://hostname:8000/OA_HTML/RF.jsp?function_id=26058&resp_id=-1&resp_appl_id=-1&security_group_id=0&lang_code=US&
    params=fR9VOZbtfJEdYQNb645CRU3kD39os3CZwt7XUpbOYb1RImgFkWaeDFEV0SCaVn1M
    Error Type          UNEXPECTED
    Error Details          PLSQL:WF_STANDARD.ErrorDetails/WFERROR:332124
    Administrator Role          SYSADMIN
    Subscription Details          PLSQL:WF_STANDARD.SubscriptionDetails/WFERROR:332124
    Error Person ID          
    Error Person Username          
    How do I get access to the payload? I only really need 2 or 3 items at this time. Do I need to extend a seeded java function? For example in my initial tests I only want to pass across the Invoice Id so how do I get the value of this attribute out of the wf_event_t (Is this the correct object name) and into the payload that is being passed across to the service call.
    Cheers
    Owen

    Hello Owen
    I am experiencing the exact same issue as you are (missing payload) when invoking a web service and was wondering if you have resolved this issue or gotten any new useful information?
    Regards,
    Magnus

Maybe you are looking for

  • Help duplicating a field on the same page.

    Hello, I am trying to create a form which reads up wright but when placed sideways in a filing cabinet, a duplicate text field shows the file name that was entered in an upright field. Basically, typing the name into the field once and having that fi

  • How to delete unwanted email addresses from Mai

    How can I delete out of date email addresses from Mail, in Yosemite. This no longer seems to be an option. Thanks in advance for any help!

  • Annoying problem with my magic mouse

    Each time I remove the batteries to recharge, I have to detect the mouse manually after putting them back. Is there anyway that it it auto-detected (like my keyboard)? To do this, I always need another wired mouse. Is it possible to use keyboard shor

  • Two POP in Library Users. POP- and POP/

    Hi, I continue to struggle to get my mail straightened out. Thanks for the help In Library/mail I have two POP entries POP - and POP / Both have the following mail range POP/ 2141 to 26189 and POP / 26303 to 42087. I would like to merge the messages

  • Inbound delivery Query

    *Hello Friends,* *1) I create a purchase order against a vendor* *2) Create an inbound delivery against the purchase order.* *Checks required* *1) Currently users can move ahead without creating an inbound delivery.(I need to build a control here)* *