Workflow/BADI   ? ?

Please read the following process/requirement.
Whenever there is a new hire/rehire/termination ( Looking for any change/update/event in IT 0000).
The requirement is to extract information from ITs 0000,0001 and 0002 and
send it across to the application server ( its like an interface but not in batch processing... but more of a real time).
Now there are 2 ways that are being considered.
1. Workflow - Using BUS1065/EMPLOYEET with events hired, rehired etc..
2. USing a BADI - HRPAD00INFTY
Need suggestions which of the two would be ideal. Also , if there are other ways in which this can be achieved.
IMP NOTE:
The tricky part is at what point the event is triggered or where the BADI occurs.
When the action is for Rehire or Termination the data is already present in infotypes 0,1 and 2.
so the point where there is an update/change in action( IT 0000) it can be captured and the data can be extracted
and requirement can be accomplished.
But in case of a New Hire The Information  in IT 0001 and 0002 is not created yet.. Now need to know how can this be acheived.
I mean the triggering point being update in the infotype 0000 but still no information in ITs 0001 and 0002.
Need suggestions please.
Also If any other user exit or any other way to achieve this.

Hi Mark
Lets explain step by step
1. EVENTS:- these are triggered whenever do something with the data.
If U create CREATE Event will be triggered.
IF U Change CHANGE Event will be triggered.
IF U delete DELETE Event will be triggered.
But the restriction over here is Availability of Events by Standard SAP. U can check the availablity from SWEL.
U can trigger a workflow from Events.
2.User Exits & BADi:- These are Enhancement areas where we can put our codes.So we can trigger an EVENT from here If no std EVENT is available.
We can update data from here.
So no need to worry abt create and change of any data..
Hope this will clear some of Ur doubts.
Award Points if Helpful

Similar Messages

  • WorkFlow BADI : Get Responsi From R/3 for given WBS

    Hi,
    Scenario:
    I am developing a Workflow BADI in SRM5.0.
    For all cost centers I am getting approvers based on Z-table values.
    But then for WBS... i have to get the list of approvers from R/3.
    I created a Function module in R/3 dev which gets me Responsible person.
    Issue:
    While calling the RFC function module... by giving destination name, the Function module is working fine.
    But I dont want to Hardcode Destination name.
    Can I get the Destination name in some other manner ?
    Helpful Answers will be rewarded.
    Regards,
    Ashwin.

    Hi,
    Please follow this logic:
    1) Function Module BBP_GET_BACKEND_SYSTEMS  will provide you the backend system detail (logical system name).
    2) Then use the FM BBP_LOGICAL_SYSTEM_GETDETAIL to get the RFC destination of the backend system which can be used to make teh RFC call.
    This would avoid hard coding and will work fine.
    Sample Code:
    *& Report  ZKB_BACKEND_SYS
    REPORT  zkb_backend_sys.
    DATA: lt_log_sys     TYPE TABLE OF bbps_logical_system.
    DATA: lt_messages    TYPE TABLE OF balmi.
    DATA: ls_log_sys     TYPE bbps_logical_system.
    DATA: lv_destination TYPE rfcdest.
    CALL FUNCTION 'BBP_GET_BACKEND_SYSTEMS'
      TABLES
        et_logical_systems = lt_log_sys
        et_messages        = lt_messages.
    CLEAR ls_log_sys.
    READ TABLE lt_log_sys INTO ls_log_sys INDEX 1.
    CHECK sy-subrc EQ 0.
    CALL FUNCTION 'BBP_LOGICAL_SYSTEM_GETDETAIL'
      EXPORTING
        logical_system = ls_log_sys-logsys
      IMPORTING
        destination    = lv_destination
      EXCEPTIONS
        not_found      = 1
        OTHERS         = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    WRITE:/ 'RFC Destination is:', lv_destination.
    Regards
    Kathirvel
    Edited by: Kathirvel Balakrishnan on Feb 25, 2008 1:23 PM

  • Workflows - badi - error message

    Hi Experts,
    I have a requirement in workflows...where i need to display en error after checking a condition.
    Is there any standard BAdI through which we can display error message on the status bar of UI..??
    Any pointers shall prove really helpful.
    With Best Regards
    Kanika Chopra
    Edited by: kanika chopra on Oct 8, 2008 1:02 PM
    Edited by: kanika chopra on Oct 9, 2008 6:06 AM

    Hi,
    I suppose you are talking about the WebClient UI and not the SAPGUI.
    For the first question: I do not know how to modify the status bar, but if adding a message to the message area (were all other CRM related information messages are shown) is enough you can use the global message container.
        lr_msg_service = cl_bsp_wd_message_service=>get_instance( ).
        MESSAGE e<<msg_number>> INTO lv_msg WITH lv_msg_v1.
        CALL METHOD lr_msg_service->add_message
          EXPORTING
            iv_msg_type   = sy-msgty
            iv_msg_id     = sy-msgid
            iv_msg_number = sy-msgno
            iv_msg_v1     = sy-msgv1.
    Changing values of UI fields you got two options:
    1. You modify the UI components code to change the field value over the GET/SET methods on some kind of event
    2. You modify the underlying data in the BOL object.
    Checking is done by simply adding a 'X' to the variable representing the checkbox.
    cheers Carsten

  • NStep Workflow BADI not working

    Hi,
    I am trying to Activate nstep Approval WF using BADI.
    Afetr event linkage in SWE2 for SC WS14000133
    I am getting message:
    <i>Approval workflow is ambiguous. Inform system administrator</i>
    Is it  prerequisite for maintain Start condition for WF WS14000133 ?If yes could you send me details how can I maintain  it in SWB_COND ?
    Is there any step which I am missing for this BADIs
    implementation in Custmization?
    How can I be in debugging mode after creation of SC?
    Regards,
    Sachin

    Hi Sachin,
      I am not able to understand your requirement...What exactly is your requirement?Do you wnat a very flexible SC approval strategy or just Approval based on some start conditions like  total value of SC/Roles???
      Accordingly,you will have to decide which WF to be used..As i said earlier,you can have only 1  WF active for the Object type BUS2121.
      So first decide which WF's you wnat to activate...For more info pls refer the  foll links
    http://help.sap.com/saphelp_srm40/helpdata/en/5a/af5eff85d011d2b42d006094b92d37/content.htm
    http://help.sap.com/saphelp_srm40/helpdata/en/17/40a86c773d6c41801d78af1a34b90f/content.htm
    BR,
    Disha.
    Pls reward points for helpful answers

  • SRM PO Workflow (BADI Type) in waiting status

    Hi all,
    I am in SRM extended classic scenario. After shopping cart gets created, it gets automatically approved and PO is created. Then PO workflow is triggered for approval. This happens fine in development box. However when its been transported in quality, the PO workflow remains in 'Waiting Status'. The requested start date has been set to future date 31.12.9999. Thus the workflow does not start properly. If gets stuck with the first step. It does not go upto the approval step.
    Is there anyone who can tell me why this is happening and what is the remedy?
    Regards
    Dip

    Hi Dipankar,
    Is it required to set the requested start date to future date 31.12.9999?
    Also check if the same has been maintained in development system.
    I think this might be restricting the workflow to proceed. Please check the relevance of this deadline monitoring.
    Regards,
    Saumya

  • In DOC CHECK BADI: Check if PO has a SC when coming from a BID

    Hi Experts,
    Please consider this situation and recommend best possible approach.
    From Sourcing, I raise a BID and then create a PO from the BID.
    While PO creation, I need to check if this PO had SC and if so include the SC requestor in the approval if the price has increased while Bidding when compared the created SC.
    Here I am facing a challenge - When executing the DOC CHECK BADI, the FM: BBP_PROCDOC_GETDETAIL does not result any HEADER_REL itab values that shows any history details of the PO document. Whereas by the time the logic moves to the Workflow BADI, this same FM returns values (SC and other details).
    My Query: While creating from a BID, How can I check if this PO is generating out of a SC in the DOC CHECK BADI.
    Thanks in advance.
    Vj

    Hello Asha,
    You can check this BADI "BBP_ITEM_CHECK_BADI" and this badi is called when
    u2022     a new item has been created,
    u2022     an item has been changed or the document is to be checked
    Regards
    Sameer

  • About N-Step workflow

    Hi,
    We are developing the workflow for our SRM. We are using the N-Step workflow. Could anyone please let me know how the N-Step workflow works or any links to know this.
    And also I have to send the notifications for all the approvers determined in N-Step workflow BADI when an workitem has sent to his inbox as part of approval. Please tell me how can we handle the notifications and Deadlines for N-Step workflow.
    Is there any specific way or steps to follow for sending notification emails and sepecifying the deadlines.
    Thanks,
    Murali.

    for sending notification emails and sepecifying the deadlines
    pl check the follow
    http://help.sap.com/saphelp_srm50/helpdata/en/42/c8aaddd9cc6bb3e10000000a1553f6/content.htm
    BR
    Dinesh

  • BADI FILTER_F4_ADHOC_AGENT does not start

    Hello,
    I have the following problem. I want to manipulate the search result when adding a new approver.
    The Problem is that the method FILTER_F4_ADHOC_AGENTS build in with BADI does not start. My breakpoint in there is useless.
    On the other hand the method CHECK_INPUT_ADHOC_AGENT runs well. My breakpoints stop in there.
    Now my questions: Where is the call of the method FILTER_F4_ADHOC_AGENTS? And why does not my breakpoint stop there?
    Thanks for any answers.
    Edited by: Rico Scharm on Apr 7, 2010 8:17 PM

    I solved the problem by debugging the search help i found after hours.
    The problem is, I maintained a filter to BUS2121 as usual for the other workflow badis. But when the search help is looking for badis it got no object type. After realizing this I left the badi implementation without any filter. Now it my implementation is triggered.

  • Program to launch workflow

    hello , i have a workflow badi n steps. is there a program i can use to launch it?

    Hi,
    You can try executing FM 'BBP_PDH_WFL_APPROVAL_SIMULATE'. It might trigger your Badi and you can check your code.
    Regards,
    Sanjeev

  • WF badi

    Hi all,
    We have identified that n-step(6-steps) approval workflow BADI needs to be
    activated.We are working on SRM 4.0,R/3 4.6C.
    I have the organization plan where the users have have been integrated.I have
    assigned the roles of employee and manager to the relevant users.My questions
    are:
    --Where am i supposed to define the spend limit and approval limit(for managers
    only) for each user?
    --Do i have to activate any tasks/events or assign any users(similar to 1-step etc
    workflows)?
    --The developer has to create a table...what does the table contain?
    Where can i find the n-step approval table?
    --And apart from creating an  organization plan and integrating users,what
    is the role of a functional person(me?) when activating a n-step BADI?
    Please direct me.
    Thank you
    Trey

    Hi Trey,
       For the WF 14500015 there are not start conditions to be mainatined.
       Yeah you can either define the spending limit & approval limit in PFCG based on roles or in PPOMA_BP-->Extended attributes -->PO value limits for each user.
        You can either determine te apporvers form Org chart ormantain a custom table to determine the approvers..mainatining a  custom atble is useful particularly if your  Approval  is based on various criteria...to give you an eg..Say if teh SC value is above a certain limit,itmes innSHC belong to 'XYZ' category and the Cost center for teh user is 'XXX' then my approver will be 'ABC'.  In yur case if you want to jsut determine teh approvers based on the spending limit then no need to  mainatin  a  custom table.....In this case  the WF 10000276(1 step) and wf 14000109(n step) are suitable.
      ws10000276 is  a <b>single</b> step WF wherin the total value of the SC is compared with the spending limit of the creator and accordingly the approver is determined(going up in the org chart).
      For this WF, you have to maintain the starting conditions and the Approver in the attribute "SLAPPROVER".
      ws14000109 is  a nstep WF  where teh same logic i followed as above to determine theapprover and the approval process continues until the appropriate Approver is found.however all the ntermediate approevrs  have to approve the Witem so it becomes  a n-step sequential WF.
      WS14000133 is the header level n step  WF wherin you can base r apporval on criteria such as product category,cost center ,total value of SC etc.
      If you want item level  approval then you  need  to use  wf WS14500015.Again teh criteria can be decided as per ur reqt.
      Just for ur info,in our case,we had put up a restriction that all the items in the SC should be of the same product category and Cost centre(while creating the SC) and hence the WF WS14000133 completely suited our reqts....
      right now i dont have access to the system...But acc to ur needs and criteria ..you can finalise on one of the WF's mentioned above..note all the SC approval WF's are for Object BUS2121.
    In case you require any help..Please do let me know....Hope this will give you a  starting point...
    BR,
    Disha.
    Pls reward points if answers are  helpful.This is the best way to thank the contributors!

  • Forwarding work item

    Hi Forum,
    When we forward a workitem from Inbox of an approver..
    1)Which BADI is trigered?
    I tried puting a break point in workflow BADI but it is not trigered when i pushed the Send button.
    2)Are any mails trigered?
    Regards,
    Anubhav

    HI,
       To the best of my knowledge , there is no Specific BADI for forwarding Work Item.
    But inorder to allow forwarding the Work item, Purchasing Org structure (PPOSA_BBP) , Flag:FORWARD Work Item attribute need to be set.
    Regards,
    Kalandi

  • Forward or subsitute work item to another user

    Hello,
    we are using SRM5.0 with classic scenario. We have implemented N-step workflow badi for SC approvals. In N-step we have a step called financial approval , which is determined based user's grade level. Now we got a requirement to check, when financial approvers forwards a workitem or mailntains a subistution, those users should be of same or above his level ( say original finance apporver grade is 4, forwarded/substitue user's grade level should be greater than 4 ). If anybody have any idea of how to achieve this requirement, please let me know. thanks

    Suesan solution of mentioning General Forwarding Not Allowed in Task attribute is the best. If maintaining level cannot be achieved I think you can make use of BADI to filter those workitems from the substitute's or forwarded user's SAP Inbox.
    How to restrict workitem of a user to the substitute
    I think in order to make use of the different levelof approval  you have to use dynamic Task. I think you can make use of the details tab or the 2nd tab of the activity step where you can dynamically assign different task for different level. The interface of the Task should be the same.
    Thanks
    Arghadip

  • What transaction code/codes?

    What is the most efficient way if I want to get ALL the custom objects: tables, structures, report programs, function modules, function groups, enhancements/user exist, events, BOR, workflow, BADIs, messages, etc?

    Hi Blumtain,
    One way i can tell u is, go to the specific objects transaction code and search for objects starting with Z or Y.
    Give Z* or Y* and click on F4 function key. u get all the Custom Objects.
    For Example:
    Custom Tables
    Goto SE16 or SE11. In the input field give Z* or Y* and click on F4.
    Custom Structures
    Goto SE11. In Data Type input field  give Z* or Y* and click on F4.
    Custom Report programs
    Goto SE38. In the input field give Z* or Y* and click on F4.
    Custom Function Modules
    Goto SE37. In the input field give Z* or Y* and click on F4.
    Custom Exits
    Goto CMOD. In Project input field give Z* or Y* and click on F4.
    Custom BADI
    Goto SE18. In Enhancement Spot Input field give Z* or Y* and click on F4.
    Custom Messages
    Goto SE91. In Message Class input field give Z* or Y* and click on F4.
    hope this helps...
    Best regards,
    raam

  • Excluded Agent restricts our Buy on Behalf approval process

    We are implementing a step in the BRF that if a shopping cart is bought on behalf of another user ( we will call him A ), then the first approval will go to user A.
    however, the standard determination of excluded agents within SRM 7 is to use the document owner as the excluded agent. Therefore, since user A is not in effect the creator of the shopping cart, but is marked as the requestor and hence the owner of the shopping cart, that user is excluded from the approval.
    I have already implemented the workflow BADI to use the fallback agent determination when user A is first removed from the list; however, once the workflow task is created, user A is still in the excluded agent section which prohibits the user from seeing the shopping cart approval in their inbox to approve.
    How can I remove the document owner from the excluded agents and possibly put in the document creator instead? This would keep the business rules of the document creator/owner still being excluded except in the cases where we have this buy on behalf situation.
    Thank you.

    Hi,
      SAP won't allow  to add requester in the approval list in SRM 7.0. even you add them into approval_table , SAP standard code will be deleted back in the class /SAPSRM/CL_WF_PROCESS_MANAGER~GET_RESPONSIBLE_AGENTS.
          lt_excluded_agents = lo_wf_pdo->get_document_owner( ).
          LOOP AT lt_agent REFERENCE INTO lr_agent.
            READ TABLE lt_excluded_agents FROM lr_agent->approver_id TRANSPORTING NO FIELDS.
            CHECK sy-subrc EQ 0.
            DELETE TABLE lt_agent FROM lr_agent->*.
          ENDLOOP.
    to achieve this requirement, you need to remove the above code and delete the excluded agent in the task level.
    Saravanan

  • Use of ABAP OOPS

    I am curious as to what the use of object oriented ABAP is in FRICE objects. As an abapper that has been working on implementation projects, all my work involves developing reports, forms and interfaces. What is the point of using object oriented paradigm to accomplish this task. And if there is no point, then where does knowing OOPS help an Abapper.

    This is an old thread that was never answered. Since then I think I know more about ABAP.
    Its seems with tools like Control Framework, Workflow, BADIs and ALV Reporting all designed using an Object Oriented Paradigm, SAP expects us to know OOPS so that we can better leverage such tools when developing applications. Am I right?
    My original confusion was whether in our day to day nitty gritty ABAP work, should we try to inculcate OOPS concepts, for e.g. when designing a simple report or an interface. Are programmers out there looking to go completely OOPS?

Maybe you are looking for

  • IPhoto 5 library won't open - 'unreleased version'

    Can anyone help ? I get a strange message - 'Please quit and upgrade this library by opening it in iPhoto 2 or iPhoto 4. this library was created with an unreleased version of iPhoto ' which is odd as I have been on iphoto 5 since I can remember - cl

  • IPod Touch 4th gen stuck in connect to itunes mode

    At first my iPod Touch 4th gen said that it was "iPod not eligible for requested build" as I was trying to update to iOS 5. SO I went on internet and looked up the error. It told me to do a manual restore. Now my iPod is stuck on the "Connect to iTun

  • Can't connect to internet after software update to iBook G4

    I recently installed updates to itunes, quicktime, and the the latest security update for os x 10.3.9 on my iBook G4. Now I can't connect to the internet via my airport express. This happened the last time I updated the software, but I can't remember

  • HT2589 How to set a password before buying an app

    How to set a password before buying an app

  • How to import a .pbb file?

    I went to the at&t store with my old sim card, and they put all my contacts in a flash drive, there is a file there now called backup.pbb I was wondering if anyone knew how to sync this file with itunes? thanks