Workflow using Billing Event

Hi,
We want to implement a workflow just after the invoice is created (via transaction vf01). This workflow should be started by the event that is created there. (It's all about creating digital bills)
Unfortunately I cannot find such an event. Searched with swel, swe4, swe2.
The BOR-Object is BUS2037 for billing.
If anybody can help me with this solution or give me another idea how to implement this it would be great!
Thanks in advance!
Florian
http://www.mindsquare.de

Hi,
You can create a custom boject of BUS2037 say ZBUS2037 and create a custom event in the Z object as per your requirement.
Hope this helps you.
Regards,
Deepa Kulkarni

Similar Messages

  • Manual billing event creation using form(Bill,revenue)

    Dear Dina,
    During Manual billing event creation the mandatory columns have set by oracle as Bill amount and Revenue Amount need to be filled, always this bill amount and revenue amount is going to be the same amount.Also for the advance,invoice,retention for all the cases it needs to be filled..what z the purpose behind it??
    what it z indicating???Kindly help me to understand...
    thanks a lot n advance....

    Hi
    The revenue amount of the event will be included in the draft revenue.
    Draft revenue accounting is -
    Credit Revenue
    Debit UER (unearned revenue) or UBR (Unbilled receivables). The system will choose one of those accounts, based on the balance between total revenue and total invoices on that project. When total revenue exceed total invoices sytem debit UBR.
    The invoice amount of the event will be included in the draft invoice.
    Draft invoice accounting is -
    Credit UER or UBR (depends on the balance of both).
    Debit the Receivables account
    Dina

  • Can't start a 2013 Workflow in an Event Receiver

    I am trying to run a SP2013 workflow from an Event Receiver but I get the error "The request was aborted: The request was canceled. Client ActivityId: aec2fc1b-3f33-44d8-85ab-c6c976617b8c" at the point I actually attempt to start the Workflow.
    The scenario is  as follows. I have 2 lists: List A and List B. Users have permissions to create items in List A but not List B. When users create a new item in List A, a SP2013 workflow runs which then creates a new item in List B. List B should then
    run another SP2103 Workflow but because of how SP and workflows work, this second workflow on List B doesn't automatically run. Thus I have created an Item Added Event Receiver on List B that will run the required workflow automatically (at least it should
    if it worked!)
    I'm sure the problem must be something to do with permissions but nothing I try seems to solve it:
    I can't just use the account of the user triggering the event as this user will be the person adding items to List A and they don't have permissions to do anything in List B (thus they cannot see items in list B or start workflows)
    I can't run using RunWithElevatedPrivileges as a) I don't think this works well with Event Receivers and b) SP2103 workflows cannot be run using the admin account.
    I have tried impersonation with an account specifically set up for running workflows (named mydomain\wssworkflow). This account has full control of the entire site, lists etc. but it still gives the error mentioned above. My code is shown below - the error
    occurs on the line: 
    wfi.StartWorkflowOnListItem(sub, properties.ListItemId, payload);
    Any help in working out why this isn't working would be appreciated.
    Thank you,
    -Stephen
    public override void ItemAdded(SPItemEventProperties properties)
    base.ItemAdded(properties);
    var wsm = new Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager(properties.Web);
    var wfss = wsm.GetWorkflowSubscriptionService();
    var subs = wfss.EnumerateSubscriptionsByList(properties.ListId);
    foreach (var sub in subs)
    if (sub.Name == "RequestAddedToListB")
    var userToken = properties.Web.EnsureUser(@"mydomain\wssworkflow").UserToken;
    using (SPSite site = new SPSite(properties.Site.ID, userToken))
    using (SPWeb web = site.OpenWeb())
    var payload = new Dictionary<string, object>();
    payload.Add("itemId", properties.ListItemId);
    payload.Add("WorkflowStart", "StartWorkflow");
    var wfi = wsm.GetWorkflowInstanceService();
    wfi.StartWorkflowOnListItem(sub, properties.ListItemId, payload);
    break;

    This is the alternate code I had using SPSecurity.RunWithElevatedPrivileges that didn't work. It gives the error 
    "Attempted to perform an unauthorized operation"
    on the line
    var subs = wfss.EnumerateSubscriptionsByList(properties.ListId);
    Thank you.
     public override void ItemAdded(SPItemEventProperties properties)
         base.ItemAdded(properties); SPSecurity.RunWithElevatedPrivileges(delegate
    var wsm = new Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager(properties.Web);
    var wfss = wsm.GetWorkflowSubscriptionService();
    var subs = wfss.EnumerateSubscriptionsByList(properties.ListId);
    foreach (var sub in subs)
    if (sub.Name == "RequestAdded")
    using (SPSite site = new SPSite(properties.Site.ID))
    using (SPWeb web = site.OpenWeb())
    var payload = new Dictionary<string, object>();
    payload.Add("itemId", properties.ListItemId);
    payload.Add("WorkflowStart", "StartWorkflow");
    var wfi = wsm.GetWorkflowInstanceService();
    wfi.StartWorkflowOnListItem(sub, properties.ListItemId, payload);
    break;

  • Is there a way to create a recurring revenue/billing event in Projects (r12)?

    Is there any way to create a revenue/billing event in Projects that can be scheduled (billed monthly until a specified end date) other than a customization?

    I think there is no standard way to do it. However you can use billing extension to create automatic events. You may define the DFF fields on Project or Task level for having a recurring amount and End Date which will be picked during Generate Draft Revenue or Generate Draft Invoices. You can check in extension that if the event is already created for that month, extension should not create another event for same month for that project or Task because user may run the processes several times in a month. Please note that there will not be any history kept for DFF changes for amount and dates.
    You may decide on other means to keep recurring amount and End Dates to maintain History.
    Awaiting more inputs from experts.
    Also consider below statement from User Guide:
    Transaction Independent
    Once you determine the inputs to your calculations, you can determine if your billing extension calculation is solely dependent on other transactions being processed, or if your calculation can be executed without any other transactions being processed. Transactions refer to expenditure items and events.
    Transaction independent billing extensions are executed for each project with an active billing assignment, even if there are no transactions to process. This type of billing extension relies on an input other than billable transactions on a project. If this input changes, the calculated billing amount changes, which you want to record. For example, the cost-to-cost revenue accrual method, which relies on the budgeted cost and revenue amounts. If the budgeted cost or budgeted revenue changes, the revenue amount changes. You want to record this revenue amount change even if no other transactions are processed in revenue generation. This category includes the class of billing extensions that calculate revenue and invoice amounts based on values independent of the amounts included on draft revenue and invoices.
    Note: If you design a billing extension to be transaction independent, it will be executed in every run of the revenue or invoice processes.
    AB

  • Which method is used for event creation

    Dear All,
    My client has more then one Purchase Organization. Workflow for Purchase order release very from pur org to pur org. For example - workflow WS92000030 is trigger when PO is created for India pur org where as workflow WS92000021 is trigger when PO is created for US pur org.  
    I checked and found that same Object Type - BUS2012 & event - RELEASESTEPCREATED is used in all Pur. Org PO release workflow. Also I found in Transaction code - SWETYP that Type linkage activate for  BUS2012, RELEASESTEPCREATED in all the PO workflow - WS92000030 & WS92000021.
    As per my knowledge, event can be created in various way such as Function module, Change document, General status management, Business Transaction Events etc.
    Can some one guide me, how can I found that which method is used for event creation in different pur org?
    How can I fould what is the fuctional module used for event creation if Fuctional module used for event creation. 
    For your information, I can see in T. Code - SWUO that 'Result dependent on a check function module'  for all the workflow - WS92000030, WS92000021 etc.
    Thanks in

    Hi Sahu,
    I dont think they have used the Function module or change document or any other kind of methods to trigger the workflow. This is because RELEASESTEPCREATED method is a standard method and it will be triggered by standard SAP. They can not make changes in standard sap saying RELEASESTEPCREATED should be triggered for this Purchase Org .
    Istead what i think is, they might have given the Event Condition for each workflow.
    In SWDD>> basic settings>> Start Events, we can give condition on triggering the workflow.
    Please check this.
    Regards,
    Gautham

  • Error in Workflow wait for event node

    Hello Experts,
    I am working on one QM notification. I shall explain the scenario first:
    1) User will take the usage decision on inspection lot in QA11. When user will take decision and save inspection lot BUS2045 event USAGEDECISIONMADE will be triggered and initiate my workflow here.
    2) After workflow initiation system will create notification and send to approver, but here i have wait step in my workflow for BUS2078 - Created (Notification).
    wait for Event step
    BO: BUS2078
    EV: CREATED
    I am posting error below:
    Error when starting work item 000000294361
    Error when processing node '0000000060' (ParForEach index 000000)
    Error when creating a component of type 'Wait Step'
    Error when creating an event item
    Error within method CL_SWF_RUN_WIM_EVENT->_CREATE_WORKITEM_CONTAINER
    Error within method CL_SWF_RUN_WIM_EVENT->_GET_INIT_WORKITEM_CONTAINER
    Workflow 000000294361 wait step 0000000060: No valid object ID in container element 'Notification
    Node 60 - wait for event step.
    Re.,
    Guri

    Hi,
    Based on your description what I felt is you are making use  of a wait step in which you have choose to wait till BUS2078 event CREATED is occured ... right.. Now can you please clear me that where and how this event will triggered.
    or is it some thign like you are making use of event creator step and in this case, When ever you are making use of the eventcreator  step and a BOR object inside it make sure that specific BOR object is already instatitaed in the workflow container , if it is instantiated then only it will try to identify the instance  or the BOR and it will try to rasie the event.
    Regards
    Pavan

  • How can i execute a workflow using a bapi/wapi??

    Hi All,
    How can i execute a workflow using a bapi/wapi??
    pls advice
    thanks

    Hi Hrus,
    it's not as simple as a single BAPI to approve a workflow.
    Workflow comes with a Workflow API (WAPI) that you can use to programmatically interact with the workflow system. The WAPI is implemented as a group of RFC-enabled function modules that are prefixed with "SAP_WAPI_".
    Approving a workflow is simply taking a decision path for a workflow item. It is logically no different to rejecting the same workflow item or any other workflow decision.
    As part of NetWeaver workflow is tightly coupled to the WAS platform you are running on so you may need to perform WAPI operations slightly differently on older releases.
    Some of the WAPI calls you might need to use include: -
      SAP_WAPI_GET_HEADER to get the workitem header
      SAP_WAPI_READ_CONTAINER to get the workitem container
      SAP_WAPI_GET_OBJECTS to get the attached objects
      SAP_WAPI_DECISION_READ to get a list of possible decisions
      SAP_WAPI_SET_WORKITEM_STATUS to set the workitem status
      SAP_WAPI_WRITE_CONTAINER to write to the workitem container
      SAP_WAPI_EXECUTE_WORKITEM to execute the workitem
    I usually do what you are trying to do by adding the decision to the workflow container and then executing the workflow.
    Be warned, you can really stuff things up if you get this wrong! Make sure you know what you are doing.
    Quoting from Practical Workflow for SAP by Alan Rickayzen, et al from SAP Press...
    Writing directly to the workflow container is dangerous because it can compromise the integrity of the process.
    ...be careful that you do not waste time duplicating existing ad hoc features of SAP's Workflow Engine.
    For example you can use events (combined with wait steps), instead of container modifications to force the workflow to restart.
    Cheers
    Graham Robbo

  • Inbound  using Business Events

    Hi All,
    We have to develop an inbound interface using business event to get better asynchronous mode of process between the middleware and Ebusiness Suit. The previous design was using a stored procedure by passing input parameter as table type (We had header line and details information in 3 different table type). Now instead of calling stored procedure middleware(ESB) will trigger business event by passing the input parameter. Please let me know how can I achieve this.
    My main concern is if ESB is able to populate data via business event how can we process in our side.
    I am ok even if we can get the data as xml also,, Please tell me how to achieve.
    Please help.
    Thanks,

    Ayyapan wrote:
    Hi,
    I have to use business events to send concurrent program status.Could anyone help me out ?
    Sytem : R12
    linux env.
    Thanks.Please see "Business Events Region" in (System Administrator responsibility > Concurrent > Program > Define) window.
    Concurrent programs can be integrated with the Business Event System in Oracle Workflow. Business events can be raised at key points of the life cycle of a request to run a concurrent program. Users can subscribe to the business events and create their own business processes interacting with the concurrent programs.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174301.htm
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458252.htm
    Thanks,
    Hussein

  • Workflow and Trigger Event

    I am very new to workflow and I understnad some of the principles but just not clear of actually how to do it.
    I created a workflow then sends an email. Its really simple.
    I need to trigger the workflow using the swe-event_create function but the problem is that I don't know what object type, objectkey and most importantly the event to pass to the function to trigger the workflow. Do I pick an event from somewhere or create an event???

    Yes, look at this:
    KEY = imara-matnr.
    CALL FUNCTION 'SWE_EVENT_CREATE'
       EXPORTING
         objtype                       = 'ZOBJCREDIT'
         objkey                        = KEY
         event                         = 'PROCESADO'
       EXCEPTIONS
         OBJTYPE_NOT_FOUND             = 1
         OTHERS                        = 2
    in OBJTYPE i've creat a business object named ZOBJCREDIT and i create inside that BO an event call PROCESADO. You must craate your BO in the SWO1 transaction...
    Message was edited by: Carlos A. Lerzundy

  • How to start a workflow by an event

    Did somebody know how to start an OWB workflow after an event occur ?
    In my application, the OWB workflow must start (and import data) after a record is insert in one of my application database table. Actually, I schedule a job to look in that table every single minute. The problem is that every minute, a connection is open and close on the application database. Also, the user have to wait for one minute (at most) before is job begin to be process. Can someone have a way to start OWB on event by using trigger, queue or something else ?
    Thank you,
    MB

    owf(your_OWF).wf_engine.LaunchProcess(item_type, item_key, process_name);
    If your process is defined as:
    Module: PRC_MODULE
    Process_flow_package: PRC_PACK
    Process_name: PROCESS
    then ITEM_TYPE is PRC_PACK,
    ITEM_KEY can be anything, like p_process_name||'_'|| SYSDATE to make sure it does not get doubled,
    and process_name is PROCESS.
    So when you call this function it would look like this:
    owf(your_OWF).wf_engine.LaunchProcess('PRC_PACK', 'PROCESS_24072009120000', 'PROCESS');

  • WorkFlow and "Created" Event in Purchase Requisition

    Dear Experts,
    I have created a new workflow for the Purchase Requisition
    The problem is that when i tried to use "Start Event" for the object type "BUS2105" i didn't find the event "created"
    I need this event "Created" because my work flow starts with the creation of the PR
    Please supoort my with the full steps i need to overcome this problem
    Waiting for youe advice
    Best Regards
    Edited by: Sap Sap on Jun 29, 2009 11:10 AM

    You can use "releaseStepCreated" Event for the start.

  • How can i trigger workflow when particular event happens in webdynpro

    how can i trigger workflow when particular event happens in webdynpro

    hi,
    To trigger workflow , use the fm : 'SAP_WAPI_START_WORKFLOW'
    Refer this thread for similar requirment : Workflow in WebDynpro
    Blog : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1564403950DB00699140435432809306End?blog=/pub/wlg/2778

  • Workflow For Bill Of Exchange

    Hi Guess,
    We are trying to develop a custom workflow for Bill Of exchage (F-36).
    But i am not able to locate any BO or workflow for it. Is there any BO for Bill Of exchange.
    Also can anyone tell me which BTE can i use to trigger this custom workflow.
    Regards,
    Raj

    Hi,
    Can anyone help me on this?
    Regards,
    Raj

  • Workflow trigger BUS2000126-event Cancelled

    Hello,
    I'm trying to trigger a workflow when a CRM Business activity (BUS2000126) has been cancelled manualy by a user in the Web UI.
    I tried to use the event "cancelled" of the BO BUS2000126.
    This doesn't work unfortunately, I did notice that when I use the method "UserstatusSet" to put a Business Activity to canceled it does trigger the workflow.
    Any suggestions?
    Regards,
    Gert

    Hi Gert,
    You can use the "UserStatusSet" method to set the status of the Business Object to cancelled. You can check the event triggered when the Cancelled button is manaully pressed by the user. In that event check whether the status has been changed to cancelled for the BO or not. You can check that by sing the GUID of the triggered event and checking the input values when you test the BO.
    If the value is not set to cancelled, then you have to write a method to make a call to the "UserStatusSet" method and chage the value to cancelled.
    Now the workflow should get triggered.
    Regards,
    Saumya

  • Triggering Workflow Using BADI

    Hi All,
    can any one tel me how a workflow can be triggered using BADI??

    Call function module SAP_WAPI_CREATE_EVENT (with COMMIT_WORK = space) to create an event, and use the event to start your workflow (triggering event). Alternatively, you can start the workflow directly using the corresponding SAP_WAPI function module for that purpose. My recommendation is that you normally don't start workflows directly as it is a less flexible solution (or you have to build that flexibility yourself instead of using what you get for free with triggering events).

Maybe you are looking for

  • Neoprene case for Macbook?

    Hi Does anyone know if there are any decent Neoprene cases for the MacBook (uk). I like the look of the Incase ones for the MacBook Pro, but can't seem to find any for the MacBook. Cheers KM

  • Can't configure FingerScan after re-install the system

    I had to re-install the whole system from the image. All went well and works fine now BUT... I can't configure the finger scann utility with my fingerprints. Every time I try, I am able to scan it and I can see that it works. But then the tool asks t

  • Camera RAW 8.5 Auto-correct issues?

    I upgraded to CC2014, which installed Camera RAW 8.5. Now, when I attempt to use the Auto exposure correct (I know, I shouldn't depend on it, but it always used to give me a decent starting place), it always pushes the images to look about a stop or

  • Using New ipod with itunes 6.5

    I just got a new 30gb ipod video and i do not want to install itunes 7.0 (due to all the problems and things its been having) and when i plug my ipod into my computer and open itunes i get the error message " The ipod can not be used because it requi

  • When i try to download itunes, it keeps saying that the older version of bonjour can't be removed

    when i try to download itunes, it keeps saying that the older version of bonjour can't be removed