Need to trigger workflow after g/l document posted in FB50

Hi all
When a user posts a document in FB50 (G/L journal entry), I need it to trigger a workflow.  I can find BTE's that come in to play before the document number is assigned, but I need it triggered after the document number is assigned.  I tried BTE processes 1120 and 1140 but they're too early.  I also looked at many function modules and user exits suggested by various SDN threads but nothing seems to be triggering.
I already have a workflow created using BO BKPF and can trigger it manually, but not through FB50.  There's lots of info on BO FIPP, but I'm looking at posted documents, not parked documents.  Tracing FB50 with SWELS/SWEL doesn't show anything.
Any help would be greatly appreciated.
Ron

Hi Ronald,
If you are using ECC 6.0 try to look explicit enhancement, that is kernel BADI (key words: GET BADI and ENHANCEMENT). If there is none also then use implicit enhancement. Implicit enhancement is always available at the beginning and the end of Function Module, Routines, Program, Methods, etc.
Regards,
Lim...

Similar Messages

  • Trigger workflow after change of control record(pa03)

    Hi Experts,
    Is it possible to trigger a workflow after change of the control record - transaction pa03?
    Thanks,
    Agata
    Edited by: Agata Nowak on Sep 14, 2009 12:43 PM

    Hi,
    Thanks for replay but:
    1. just so the event or action in PA03 , on which you want to trriger WF ,Before that with TCOde swels switch ON , then afer the action in SWEL , you wil find if any BO and event is there for that action . if so , then using this you can trriger you WF. if not
    I've already tried this and no event is triggered ;(.
    then
    2. you can go for user exit , badi or enhancement spots (verson ECC.6.0 above). in that using SWE_EVENT_CREATE creat the event to start yr WF.
    I've been already searching for BADI or user exit but I really can not find any user exit nor badi for this transaction (in fact it is SAPMP52X Program) ;-((
    Thanks,
    Agata

  • Need to trigger InputProcessor after user login

    Hello All,
    We have a workflow where we need to display some data in a portlet (list of catalogs
    which user has access to).
    This data should be visible when the portlet gets displayed.
    We have an InputProcessor which retrieves this data.
    The question is which event should fire the InputProcessor.
    Could we link the PostLoginProcessor to this InputProcessor?
    So that when a user successfully logs in, this workflow would get executed and the
    portlet would show the list.
    Is this the right approach or there is some other way?
    Would greatly appreciate any help or suggestions.
    Thnx.
    Mukul

    Dave,
    The problem I was having was how to trigger the InputProcessor after user logs in?
    Is there a processor node I can use or some postlogin event?
    Mukul
    "David Anderson" <[email protected]> wrote:
    I'm assuming that you have supplied a particular .JSP to be dispayed when
    you created your portlet definition. Instead of doing this, create a
    webflow that is executed when the portlet is displayed. In this webflow,
    make the input processor you refer to the start node of the webflow and
    then
    pass control to the .JSP that will display the information. Again, I'm
    assuming that the information that is retrieved as part of the input
    processor is being added to the pipeline session.
    This is probably the best route for accomplishing the loading of the data
    when the portlet is displayed.
    Dave
    "Mukul Sood" <[email protected]> wrote in message
    news:3cc60322$[email protected]..
    Hello All,
    We have a workflow where we need to display some data in a portlet (listof catalogs
    which user has access to).
    This data should be visible when the portlet gets displayed.
    We have an InputProcessor which retrieves this data.
    The question is which event should fire the InputProcessor.
    Could we link the PostLoginProcessor to this InputProcessor?
    So that when a user successfully logs in, this workflow would get executedand the
    portlet would show the list.
    Is this the right approach or there is some other way?
    Would greatly appreciate any help or suggestions.
    Thnx.
    Mukul

  • Payer need to be change after created billing document

    Hi all,
    They created some orders..... orders-delivery-billing documents created. now we came to know the payer is wrong but the documents are not relased to accounting..... how can i do if issue like this....if i change  the payer in customer master?
    Pls advise on this....thanks in advance.
    Thanks,
    Kumar

    Hi,
    Changing the payer in the customer master will not be of any use if the documents are already created. It will be helpful for only the documents that are created after change is made in the customer master.
    For the documents already created you can do one of the below.
    a. Cancel the existing billing documents using VF11. Reverse the delivery using VL09. Then delete the delivery. In the customer master add the new payer. Go back to the sales order and change the payer. Now, again you follow the regular sales process of delivery and billing and then release the doc to accounting. It should work.
    b. Release the existing document to accounting with the wrong payer. Now, create a credit memo request and credit memo for the wrong payer. This will nullify the accounting. Now, go to the customer master, put in the new payer. Now create a new sales order matching the old sales order. (Please note that you may have to use the same PO number in this case). This will take a longer time and customer should accept the new SO number, delivery number and the invoice.
    c. Changing the table entry using the ABAP program in the tables (VBPA) . I would not recommend this as this will have a lot of effects and system may start performing inconsistently.
    Hope this helps...
    Thanks
    Mukund S

  • Need to trigger workflow based on change to one field in Warranty Claim

    Hi All,
    I have defined a workflow for the Warranty Claim system with triggering event as CHANGE in BO BUS2222. The workflow is triggerred and everything goes on smoothly. The only thing I need to address is this workflow should be triggerred ONLY when one particular field(CLERK) of the Warranty is changed. I have tried using the field restrictions in transaction SWEC for the Change Object but that doesnt seem to work and my workflow is triggerred on any change I make to the Warranty. Any pointers regarding this issue?
    Regards,
    Karthik

    You will have to fetch the value based on your objectkey. I don't know what is your object key.
    Declare: OBJTYPE like OBJTYPE
    OBJKEY LIKE SWEINSTCOU-OBJKEY
    EVENT   LIKE   SWETYPECOU-EVENT   
    RECTYPE  LIKE SWETYPECOU-RECTYPE  in the import parameter of your func module.
    EVENT_CONTAINER    like SWCONT       in tables of func module.
    In source code do these declarations apart from your other declarations which is required  DATA: lv_object_key  LIKE sww_contob-objkey ,
            lv_event       like SWETYPECOU-EVENT,
            lv_objtype     like SWETYPECOU-OBJTYPE,
    Now say for an example your object key is sales order and you want only those orders for which order type is OR (standard sales order).
    Then you can  fetch the order type from any of the sales table and check if it is OR or not. Here your input will be lv_object_key.
    eg: select order type from vbap where sales order =l v_object_key. Some logic like this.
    If it is not OR then raise an error.
    In this case when the required condtion is not satisfied the workflow won't be triggered.
    Get back to me if you are facing problems
    Thanks and Regards,
    Shweta Verma

  • Cross companycode document posting using FB50

    Hi All:
      Need your kind help...
      I m trying to post cross company code document using FB50.
      After entering Basic data and Items(Only two entries for debit and credit each), I m trying to simulate the document.
      In process of simulation, two automatic item entries are created based on cross company code relation.
      Now, I m getting an error,
      F5A 047 - Error messages still exist -> See error log.
      In error list I have two errors:
        -->  Item 003 must be corrected
        -->  Item 004 must be corrected
    Later, when just navigating to Item 003 and 004 and returning back without any activities, the simulation accepts the document and enables the posting button.
    But how the error appered initially, and disappeared for only navigation to automatically generated items is unknown.
    Request you all to cast light on it...
    Thanks in advance for your help....
    Venkat.
    Edited by: venkat lakshmikanth tumu on May 25, 2010 5:57 PM
    Edited by: venkat lakshmikanth tumu on May 25, 2010 5:57 PM

    Thx Murali,
    Yes, but we didn't enter any value to text nor any other fields,in spro they are chosen as optional.
    we just visted and returned item details without entering anything, and the simulation was success.
    What happened only in navigation to items is more curious...

  • Creation of change document to trigger workflow.

    Hi,
    I need to trigger a workflow when there is a change in the PO line item (EKPO). For this, I can use the standard change object EINKBELEG, but this only bears the purchasing document number as the key. hence when ever a change event is triggered in the custom BO, the key is just the PO#. This should be not the case.
    The key field should be a combination of the purchasing document number and the line item number, hence I created a custom change object ZEINKBELEG refering to EKPO and generated it too. The steps in SCDO, SWED, SWEC has already been handled. But the custom event in the business object does not get triggered. I need some help regarding this.
    Precisely speaking, if there is a change in the line item value (in ME22N). The business object event should trigger.
    Thanks,
    Sukumar.

    Hey Sukumar,
    Do one thing  instead of creating  custom change document. create a new  event in bus2012 using condition editor of SWEC only create a event only when there is a change in EKPO. that resolves your issue..  just a suggestion

  • Need to Trigger a Program in ECC after the DSO load has completed

    HI Experts,
    I have scenario where i need to trigger a Program in ECC after the load to DSO has been completed successfully. Basically opposite of the everyday scenario.
    Can i still use the  the RSSM_EVENT_RAISE FM in the program to call the event in ECC.
    If the above is true.Do i need to have code in the program to confirm the DSO has been loaded or can i just have the program (which basically calls the FM RSSM_EVENT_RAISE) appended to the process chain after the DSO Activation?
    Appreciate your advice

    Hi,
    To help future proof your solution, lean towards using the process chain as much as possible.
    A "Green/Success" only link from the DataStore Activation process variant to an ABAP Program process variant will work nicely. It will also still allow your program to be executed by other scenarios (like manually because you want the event raised now without any dependency on the DataStore status).
    SAP now recommends you use the CL_BATCH_EVENT class and it's methods to interact with the system events. Use transaction SE24 to review the methods and parameters available and then use the sample code below to test your solution.
    Here is a starting point for coding that is used within an ABAP Program process variant in a process chain.
    Use transaction SE38 to store this code to be called by the ABAP Program process variant.
    constants:
      c_interrupt_eventid   type btceventid  value '[Event]',
      c_interrupt_eventparm type btcevtparm  value '[Parameter]'.
    data:
      l_interrupt_eventid   type btceventid value c_interrupt_eventid,
      l_interrupt_eventparm type btcevtparm value c_interrupt_eventparm.
    call method cl_batch_event=>raise
      EXPORTING
        i_eventid                      = l_interrupt_eventid
        i_eventparm                    = l_interrupt_eventparm
      EXCEPTIONS
        excpt_raise_failed             = 2
        excpt_server_accepts_no_events = 3
        excpt_raise_forbidden          = 4
        excpt_unknown_event            = 5
        excpt_no_authority             = 6
        others                         = 1.
    if sy-subrc <> 0.
      message e051(rsar) with 'Failed to raise background event.' c_interrupt_eventid c_interrupt_eventparm.
    endif.
    Note: The error message is process chain friendly and will appear in the RSPC transaction GUI and system logs.
    Hope this helps,
    John.

  • What permissions does a user need to be able to access a document library's workflow settings menu?

    A group has created some out of the box SP 2010 workflows in a standard document library.
    Some users have the "Workflow Settings" icon available to click on, but other staff only see a grayed out icon.
    I have been trying to determine what change is needed to a user's access to the library so that they can add or access workflows.
    Thank you

    I believe it is the "Manage Lists" permission that they need. Owners and Designers permission levels have this by default.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Badi that trigger after saving Material document (MIGO)

    Hi,
    I want a Badi that trigger after saving Material document (MIGO) ie after updating the MKPF and MSEG tables
    Thanks

    These steps should enable you to find any BADI related to any transaction in a matter of minutes.
    1) Go to the transaction SE37 to find your function module.
    2) Locate the function SXV_GET_CLIF_BY_NAME.
    3) Put a breakpoint there.
    4) Now open a new session.
    5) Go to your transaction.
    6) At that time, it will stop this function.
    7) Double click on the function field EXIT_NAME.
    8) That will give you name of the BADI that is provided in your transaction.
    Regards,
    Kashyap

  • Trigger WF  when user Parks document from FB60 non-po invoice

    Hi,
    I need to trigger an approval workflow when the user parks a document using FB60.
    Here is what i have tried and it does not seem to work!!! (I might be missing something  here ..  )
    In the Triggering tab of the workflow i entered the Buisness object BUS2081 and event as parked.
    Then tried to park via FB60 does not work.
    I have never really done triggering this way before so i dont know what to do...
    Am i using the correct buisness object , do i need to create some kind of linking here ?
    WHile i am here another question.. the user will park for the first time and the workflow will trigger , what happens when the user parks it again. Do we need to handle this situation again ? How do we handle this.
    Thanks for ur responses...  i am pretty deep in this so anyone who throws a rope to me will be thanked to the maximum...

    Once you complete the customizing are you sure you are creating the invoice more than the amount you have specified in the customizing? If yes then this should work.
    I am not sure as to why you are not being able to get it right.
    The last option for you would be to find for a BADI which is called before or after the document gets committed to the database.
    Following are the BADIs that the code <b>might</b> call... No gaurantess given
    BADI_FDCB_SUBBAS01
    BADI_FDCB_SUBBAS02
    PPA_CUST_BADI
    BADI_FDCB_SUBBAS03
    WRF_PREPAY_INVOICE
    BADI_FDCB_SUBBAS04
    AC_DOCUMENT
    FI_LIMIT_PROCESS
    BADI_PRKNG_NO_UPDATE
    FM_POP_CORE
    Create an implementation and then put a break point in each of them to find out if the code calls the BADI. This is pure luck if you find one. Then you can raise the event via the function module SWE_EVENT_CREATE. Do not put a commit in the BADI initially. Only if the event does not get raised even after running the Function module then you can put in a commit. The system usually does a commit.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

  • EXIT after changing the document status to Parked and complete

    Hi,
    I have an urgent requirement to findout a exit which will trigger after changing the document status to PARKED and COMPLETE. I need this for invoice and FI document.
    I will really appreciate your help.
    Kuntal

    Yes the Workflow Background process completed successfully with no errors. I see the error when I query up the Sales Order go to menu --> Workflow Status -->
    Activity History.
    The Activity History shows error in the Wait Function and the error message is 3001: Invalid command argument.?
    This error message does not explain much. I followed all the steps in document# 397364.1
    Don't know why it should end in error and how it can be fixed?
    Any more ideas?
    Thanks

  • FM after FI document post

    Hi all,
    I need a FM or Exit that gets triggred after an FI Document is posted.
    I have a requirement where i need to update a custom table and trigger a custom Workflow after posting of an FI Document.
    Regards,
    Tarun Bahal

    Are you looking for FM or Exit?
    If you are looking for Exit than please try with enhancement SAPLF051

  • How to trigger workflow from WDA and read workflow container into WDAscreen

    Dear Expert,
      Please suggest the solution for the following requirement:
       1. Create 1 leave request from WDA and submit for approval
       2. When User press "submit" button in WDA screen, workflow will be triggered for processing approval  .
       3. When 1 request is sent to approver, he logon into portal and access to UWL to process task himself.
       4. After he press approval link, the system will call WDA screen to process approval ( this screen will contain full information of requester.)
       5. After finishing process, the result will return workflow and end of process.
    Please send simple example for step 1 and one for get data from workflow into WDA screen at step4
    Any help would be appreciated
    Thanks and best regards,
    DucTV.

    Hi,
      I am not sure for what reasons you are developing a application but SAP has its own standard workflow process for applying leave from ESS portal..
    1. AS soon as you click on the submit button of the applicaiton then you need to trigger a workflow right in that case you make sure that you need to pass some data to the workflow container I hope you might be using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW to start the workflow  in both the function module you have to fill this table in Order to pass the values from ABAP    program to workflow container.
      The answer to your question is it depends on the type of the work item ID you are passing to the SAP_WAPI_READ_CONTAINER if you are passing a top work item ID  then you will have workflow container in LT_CONTAINER if you are passing any of the child or dependent work item ids of the top work item id then you have that respective task container value.
    2. You can make use of the any foreground activity or a decision step, it depends on how you want to get back the result, if you use a foreground activity step then in that case you have to populate the result back to the task container and if let say you are using a decision step then in that case you do not have to populate the result there will be standard  container element _RESULT in the decision step it will be filled.
    Make sure if you are expecting some work item in UWL and as soon as you click on the work item your application should open then configure in SWFVISU transaction and maintain DTD in UWL any portal consultant can perform this steps in few seconds.
    3. When the workflow is started then the work item which you are able to get back is the one which helps to identify dependent work item ids it is the TOP or PARENT work item ID.
    Regards
    Pavan

  • Workflow write-off of documents

    Hi Gurus,
    I have a requirement where in i will have to develop a custom program and it will fetch all the docs to be written-off and then it will trigger a workflow and workflow should validate (it will see if the doc can be written off by the user who kicks of the workflow)the docs selected by the program , if yes then we have to get all the cost centre details , GL account , amount etc in one of the steps in workflow and then the document is written-off using F-30(whatever process is followed in f-30 to write offshould be done as a background method) , if the user is not authorized then a work item goes to his manager for approval and he should see the item through FB03 link , if he approves it should happen through F-30((whatever process is followed in f-30 to write offshould be done as a background method) or else a mail is sent to the initiator.
    please can some one suggest if there are any BAPIs or BTEs that can suffice my need.
    thanks
    C S Anand.

    Hello Mahendra,
    please have a look at the following link: <a href="http://help.sap.com/saphelp_media472/helpdata/en/69/1b8c82950111d2ac740000e829fbfe/frameset.htm">Liability Account Transfer</a>
    I think this describes it pretty well.
    Tim

Maybe you are looking for

  • Why does my MacBook Pro keep freezing?

    I'm going to list everything I've done over the past week since the first crash happened: Laptop froze and needed hard restart. Happened again. Narrowed it down to an I/O error with a log file used by Kaspersky. Deleted file, problem gone. Tried inst

  • Why is iCal listing the same event twice?

    I am totally frustrated and exhausted. I spend hours each week at the apple store and on the tech phone line and the problems just do not go away. I use iCal and addressbook/contacts a lot and the syncing is still not working. I had a MacBook Pro, st

  • What is the datatype to store the value of variable of  UTL_HTTP.resp

    Hello, I am using Oracle 11g R2 SOE. I have table Called SMS consists of two columns (TEXT , RESPONSE) to store the value of variable of type UTL_HTTP.resp the datatype of TEXT column is varchar2. What should be the datatype of the column RESPONSE th

  • Premiere and Media Encoder CC with Cineform(converted files have static for audio)

    Hi there, using Media Encoder CC to convert 7D and 5DMKIII video files to Cineform .avi and all I'm getting at the other end for audio is loud static.  Video is fine but audio is corrupt.  Anyone run into this with CC?  I didn't have this problem bef

  • FBZP IBAN setting

    Hi friends We have couple of scenarios. One scenario has vendors with Bank details in master data. So I checked the Bank details check box in FBZP country settings so that the Bank details in vendor master data passes on to REGUH table when payment r