Workflow : subtype of BO kna1 not triggered

Hi Experts ,
I have created an event for the subtype ZKNA1 of BO KNA1 . Its is not getting triggered .
My doubt i sthat when i run SWEL after creating a customer , KNA1 is not present in the trace .
Only an object type CLBUS1007 is triggered . So is there any use in creating a subtype for KNA1 and
creating an event in it ? Kindly suggest !

Martina
In workflow Business object has an important role and delegation is used in business objects If the standard SAP events don't fulfill your purpose, new events/methods may be added to the given object type. SAP doesn't allow changes to its original object types. It permits changes by using the concept of delegation. It is technique of replacing an original object type by its subtype to which additional events/methods may be added.
Check this wiki in scn ,[how to perform delegation|https://wiki.sdn.sap.com/wiki/x/8YBVAw]
SaChIn
Edited by: sachin sharma on Mar 3, 2009 9:52 AM

Similar Messages

  • Subtype of objectype KNA1 not triggered

    Hi Experts ,
    I have created an event for the subtype ZKNA1 of BO KNA1 . Its is not getting triggered .
    My doubt i sthat when i run SWEL after creating a customer , KNA1 is not present in the trace .
    Only an object type CLBUS1007 is triggered . So is there any use in creating a subtype for KNA1 and
    creating an event in it ? Kindly suggest !

    Hi MF,
    I have done the following for the same requirement.
    In standard program LXF04U01, write an Include, for eg. Include ZXF04U01.
    In this Include, write a perform PERFORM GET_KUNNR ON COMMIT.
    In this perform, write the following code,
    *&  Include           ZXF04ZZZ
    *&      Form  GET_KUNNR
          text
    -->  p1        text
    <--  p2        text
    FORM GET_KUNNR .
      DATA: KUNNR TYPE KNA1-KUNNR,
            KUN TYPE tpara-paramid VALUE 'KUN'.
      DATA: objkey TYPE sweinstcou-objkey,
            wi_container TYPE TABLE OF swcont.
      GET PARAMETER ID KUN FIELD KUNNR.
      OBJKEY = KUNNR.
      SELECT COUNT(*)
             FROM KNA1
                  WHERE KUNNR = KUNNR.
      IF SY-SUBRC NE 0.                                                    " IF THIS CUSTOMER DOES NOT EXIST
        CALL FUNCTION 'SWE_EVENT_CREATE_IN_UPD_TASK' IN UPDATE TASK
          EXPORTING
            objtype         = 'KNA1'
            objkey          = objkey
            event           = 'CREATED'
          TABLES
            event_container = wi_container.
      ENDIF.
    ENDFORM.                    " GET_KUNNR
    Hope this helps.
    Thanks,
    Ajay

  • Workflow for shopping cart ordering not triggered

    Hi Gurus,
    we are running SRM 7.0 and we are facing a big issue in handling the shopping carts when created by interfaces.
    basically, when we create a shopping cart via interfaces and not manually on the SRM, the shopping cart remains in status "Open" and it is not ordered. We can also see in the shopping cart (in the tab Approval Process Overview we can see that the Approval Status is Open - No Decision Made).
    Can anybody give a hint on how having the worlflow to "order" the shopping cart executed also whenever a shopping cart is created by the interface and not manually?
    Thanks a lot in advance (lot of points promised...)

    Hi Masa, thanks a lot for answring!
    - It is a new implementation
    - We are using the new Processed-Controlled workflow
    - it works if I manually create a SC from the standard webdynpro UI and I click the Order button.
    - How can I check the receiving interface?
    thanks!

  • Subtype event not triggering and supertype event triggers twice!!!!!!

    Hi,
    We have created a subtype for object bus2030 and also an event created for that. My workflow should trigger whenever an inquiry is created.
    I've maintained this as triggering event in SWDD and done type linkage is SWE2 and everything looks fine.
    When i simulate or create event the WF is triggered but when create inquiry in VA11 WF does not triggers.
    I've checked SWEL for event trace but no event is triggered at all... Am i missing something... I've done almost everything that i used to do...
    Even synchronized buffer!!! nothing paid me a solution...
    Infact the same was working with 3.1i system but after migration to ECC6 we had to create new WF template for the same Process.
    Now I also see that the supertype bus2030-created event is triggered twice but, obviously no receiver type exists. But the zbus2030 event is not being triggered at all!!!!
    Kindly help me understanding my mistake...
    Regards,
    PB

    Hope you have already set the deletegation in SWO6.
    Now, event dont get triggered automatically, jus because they are defined in object. They have to be explicitly published in thesystem.
    Check for a suitable user exit in your transaction, which makes use of function module to create the event, from that you know how to proceed.
    If you dont find user exit, try other triggering techniques such as change documents, logistics, BTEs... etc.
    regards,
    Sandeep Josyula

  • Workflow is not triggered via program RBDMANI2

    Hi,
    We have a Workflow that triggers when an IDOC ends up in an error. It works fine when the IDOC is posted through XI and also when processed from WE19. When we try to re process through the Program RBDMANI2 the even is not triggered.
    Business Object used: ZIDOCAPPL (Subtype of IDOCAPPL delegated to IDOCAPPL).
    Event: INPUTERROROCCURED
    My doubt here is will an event be triggered when an IDOC is Processed through RBDMANI2 program? If yes then am i missing or is there some settings that needs to be or should i use any specific Business Object for this scenario.
    Please throw some light upon this.
    Thanks,
    Prashanth

    Hi Prashant,
    Best way to find out which event is getting triggered with this report is by using Event Trace, Follow the below steps.
    (1)- Go to Tcode SWELS, (SWITCH ON THE TRACE).
    (2)- Now run this Report .
    (3)- Go to Tcode SWELS again.(SWITCH OFF THE TRACE).
    (4)- Go to Tcode SWEL, Execute it, You'll find the Event name and Business object name that got trigerred.
    Note: If you don't see any event getting trigerred in SWEL, this means that with this report no event is executing.
    The other way around could be to use a BADI or User-exit in that you have to externally trigger the event by using function module.
    'SAP_WAPI_CREATE_EVENT'
    Note: If events are not getting trigerred through transactions, Then you can use this function module to trigger workflow from outside, So use this function module in any badi or exit or enhancement spot that suits your requirement.
    Thanks.

  • Workflow Event not triggering

    Dear SDN,
                     I have created a Workflow and i am triggering through an event . For this have created  ZEvent in ZBOR(Modified from Std. APPR_DOC)and attached the zevent in my screen (HR related template PHAP_CATLOG_PA) through oohap_basic.When I run in Background everything is working fine.But when I run through the Tcode(PHAP_CATLOG_PA). event itself not triggering.Problem is my event is not firing.When I check in SWEL my zevent is showing std BOR.My zevent is not catching my ZBOR.Can anyone help me out with this issue.
    Regards,
    Gopi.

    Hi,
    gopi BOR will always show the standard BOR and you can put a start condition based on that condition.
    after that in first activity you can use your custom BOR and it's methods.
    Hope magic Works!
    Regards,
    Purvesh Patel.

  • SAP Workflow not triggering due to "Start Condition return FALSE" message in SWEL

    Hi,
    I have SES approval workflow which is not triggering in few cases because of check function ends with exception even it has valid start condition and correct data. For example lets say we have PO no. 100 for which 3 SES (SES1,SES2 & SES3) are created. Out of which workflow for SES3 is not triggering even if all the three contain valid start condition(Bases on internal order at PO line item).when triggering workflow manually using SWUE for SES3 it work fine.Please find SWEL screenshot below and let me know if you have come across this type of issue.
    Thanks in Advance.
    Ishant.

    kindly use SAP_WAPI_CREATE_EVENT and not SWE_EVENT_CREATE it's always better to use APIs.
    Why use 2 sub-objects? you already have a z-object and you can modify it. even if there is a reason for the double sub object , the workflow should still run on the standard one - BUS2091.
    see for example :
    Extending Object Types: Inheritance and Delegation - SAP Business Workflow - SAP Library
    As for your question,
    if you are using a function module to raise the event, way not check in it if the service entry sheet has been created properly before creating the event. you can even check if the PO contains an internal order in your RFC function module and raise a specific event. then you will have no need for the starting condition.

  • Workflows not triggered when documents are created in Doc Set via Content Organizer

    The following is my scenario:
    A document set (containing several documents) is created in Library A on Site A
    Using Send To, the Document Set is sent to the Drop Off Library on Site B (a different Site Collection)
    A Content Organizer rule then moves the Document Set and its documents to destination Library B
    In Library B I have defined a workflow (using Visual Studio 2012) that is triggered when new item is create
    When the Document Set arrives in Library B from the Drop Off library (i.e. when the Content Organizer moves the Doc Set to Library B), the workflow is triggered (and executes) on the Document Set, but it is NOT triggered on the documents within the Document
    Set.   How can I get the workflow to trigger on the documents within the set when they are created via the Content Organizer rule?
    The interesting thing is that if I manually add another document to the Document Set in Library B, the workflow is triggered on that document.  It just does not trigger when the documents are created via the Content Organizer.

    Hi,
    In edit Content Organizer rule page, I see there is an option as Automatically create a folder for each unique value of a property:
    However, unlike the drop down used in the property based filters above, this drop down *only* contains properties that are required by your content type. 
    This is done to prevent adding folders that have no values for a property. 
    If you need to put similar documents to the same folder, you could consider making use of this feature.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • When a task expires is not triggered in SharePoint designer workflow

    Hi all,
    I am using sharepoint designer workflow for document approval and the tasks are assigned in serial.. but the when a task expires event is not triggered..  I have set due date for the task process but still it is not triggered.. Can anyone tell me how
    to resolve this issue..
    I am using this option to escalate the task to the next approver if it is not completed within the specific duration.. Can anyone tell me if there is any alternative way to do this..

    Hi ,
    I  understand that when a task expires ,the workflow doesn’t create the tasks for next approval .This is how serial tasks works .You
    need to complete the first task first before the next task is generated .So you can add actions by change the behavior of a single task .
    Open the workflow in SharePoint Designer .Click Approval(1) to modify the approval process .
    Choose ‘Change the behavior of a single task ’ on next page .Find the ‘When a task expires ’ section  .
    Add actions like ‘Rescind task’ (this action completes the task without an outcome) ,’Reassign Task’(reassign current task to another people ), ‘escalate task ’(escalate current task to manager)  .
    In this way ,the current task is whether completed or reassigned for completion ,then the next task will be created after current task is completed .
    For more information about this task action ,please refer to this site:
    Workflow actions in SharePoint Designer 2010: A quick reference guide :
    http://office.microsoft.com/en-us/sharepoint-designer-help/workflow-actions-in-sharepoint-designer-2010-a-quick-reference-guide-HA010376961.aspx
    Thanks
    Entan Ming
    TechNet Community Support

  • Workflow WS00000038 Purch.Req - Event REJECTED not triggered

    Hi Friends!
    (SAP ECC 6.0)
    (Tcode SWE3 - BUS2009-REJECTED is active)
    When using WS00000038 Purchase requisition we have problem when an item is REJECTED.
    the Event that is triggered is BUS2009-SIGNIFICANTLYCHANGED. This leads to that the Workflow end up with status  COMPLETED and NO further handling of the actual Rejection that were made.
    IF BUS2009-REJECTED were triggered instead, then WS00000038 would have followed another path in the workflow which is to handle the REJECTION via another TASK.
    Why is BUS2009-REJECTED not triggered when button "REJECT" Requisition is pressed (ME54N).
    Best regards
    Henrik

    In this aproval step within WS00000038 it is actually ME54N that is called.
    The result in the task of the workflow is an EXTERNAL EVENT that is triggered.
    In my case it is BUS2009-SIGNIFICANTLYCHANGED that is triggered instead of BUS2009-REJECTED.
    this is what causes my Workflow WS00000038 to choose the wrong path.
    Does anyone have a solution of how to get BUS2009-REJECTED triggered via ME54N when I actually press button to REJECT and then SAVE.
    Best reg
    Henrik

  • Workflow not triggered..in client server

    Hi Friends..
    i have developed one workflow for po release in local system it works fine..
    But i developed the same workflow in client system it was not triggered..
    i checked in swue the event was triggered perfectly..
    But the workflow not triggered.. if i click the workflow overview in me23n it shows
    "there are no workflows that are already worked with this object" so i dont know why this problem..' occur.. this problem arises at the time time of development in local system.. but now it was cleared..at that time release strategy not maintained.. but now release strategy also maintained.. but i dont know the exact reason and how can i solve this kind of issue...
    so anyone help me..urgent issue..
    Thanks in advance
    Gowrishankar

    What is the message that you are getting for the event? Is it "No receiver entered" or something else?
    Check for the event linkage between your event and workflow in SWE2. If it is not set select the checkbox "Linkage Activated" and acitivate the linkage and then try to trigger the event.
    If your event linkage gets deactivated everytime you  try to trigger the event, there could be some problem in binding from your event to workflow container. Check if all mandatory parameters in workflow receive data from event container.
    Thanks,
    Prasath N

  • ESS/MSS Standard workflow not triggered....

    Hi Experts,
             I have small doubt, but why can't I solve this I does't know? Kindly some one help me on this issue.
    Scenario as follows...
            I have copied the standard loan workflow "WS18900041" to my custom workflow. So, Here when I apply loan through portal workflow is not triggered. I have activated the events which are present in loan. But after that also I am unable to trigger the workflow. Through SWE2 / SWETYPV tcode I have enabled the linkage to the portal. When I activate the event in workflow it will be automatically shown in SWE2 / SWETYPV. After all the process I have activated and checked, When I tried to apply for loan and submit the loan I am unable to trigger the workflow else workflow is not getting triggered. Kindly help.... Most Highly importance.... Please reply as soon as possible....
    Thanks & Regards
    Kannan

    Hi Kanan
    I am in the same object now. Can u share me some scenarios how to do this.
    Regards
    Gopal

  • Leave Workflow Not triggered

    Hi All,
             We configured the Leaves through ESS and it was working fine, but abruptly, the Leave Workflow stopped executing. I have maintained the following settings:
    1. In the leave settings in SPRO, "Process Request Using Workflow" option is checked and the WF Id is 12300111 for all the three entries.
    2. Display field for next Agent is checked. In ESS, the manager's name is displayed in the leave app.
    3. Request has to be approved option is checked.
    4. In SWFVISU, TS1230097 is maintained as 
         APPLICATION        LeaveRequestApprover
         DYNPARAM          wi_id=${item.externalId}
         PACKAGE            sap.com/ess~lea
    5. The task TS1230097 is maintained as a General task .
    I tested the application through PTARQ & through ESS, the leave is applied, but the Workflow is not triggered. I checked the WF Tasks in SWIA, but No Workitem exist there. There's no entry in SWEL.
    Can you please suggest, where are we missing to trigger the workflow.
    Cheers!!!
    Umang

    Hi Umang,
    I do not see any problem with your workflow configuration.
    Most probably the problem is with your rule group configuration.
    As advised before, using WEBMO feature, find out what is the right rule group for the test employee (for whom you are applying leave). Then ensure that in the SPRO "Personnel Management -> Employee Self-Service->Service specific settings -> Working Time -> Leave Request -> Processing Processes--> define Absences/Processing Processes" there is an entry for the Rule group and the leave type you are applying for.
    View that entry and ensure that you have all the WF settings as told before.
    Thanks
    Krishna

  • FMBB Budget Approval workflow is not triggered

    Hi Experts,
    I want to activate the standard workflow for Budget Approval in FMBB t-code. I found two standard workflow templates for this WS12300025 and WS12300026 and I activated it. In both workflow templates start event is maintained as 'BUS0050'  'PREPOSTEDDOCCREATED' .
    But when I am creating Budget document in FMBB t-code, 'BUS0050' 'POSTEDDOCCREATED' is triggering , so the standard workflow is not triggering.
    Then checked in forums, that we should maintain SPRO settings. I maintained the setting in SPRO.(Attachment 1).
    After maintained this setting I am facing an error while creating Budget in FMBB t-code. (Attachment 2).
    Kindly help me on this is urgent .
    Thanks & Regards
    Ayyappan.V

    Ibrahim, The complete statement is:
    If event linkage not activated it (Workflow Instance) will not get traced i.e. in T-Code SWI2_FREQ, thats the reason I have suggested to check error message in SWEL .
    SWEL will always create entry whether linkage is activated or not, the only thing is trace should be on in T-Code SWELS.  Hope things are clear now.
    BR,
    Prakash

  • Workflow not triggered when i have changed the PO

    Hi,
    We have custom fields (Price) in PO Header as well as in item. when we update in header the price should get distributed to items.
    we have custom workflow evernt (changed) to update the items if user change in header. But the issue is if user changes the items and save the po, it is not updating immediatly. after we come back to Purcahse Order and save the purcahse order again then it updates the table.
    Is there any reason why the event is not triggered when the PO was changed initially.

    Hello,
    "We have custom fields (Price) in PO Header as well as in item. when we update in header the price should get distributed to items. "
    If you update a price in the header, how/why would that be distributed to the items? Is this a total price of the whole PO? Why not just have it in the header?
    "we have custom workflow evernt (changed) to update the items if user change in header."
    OK. Strange, but OK.
    "But the issue is if user changes the items and save the po, it is not updating immediatly"
    I thought it was supposed to happen when the users changed the header, not the items.
    If you really have a workflow to update the items when the header is changed, then maybe it's not succeeding if the PO items are locked, eg by having them on your screen. Did the worklow actually start? Any error messages?
    rgards
    Rick Bakker
    hanabi technology

Maybe you are looking for

  • MacBook Pro -- external hard drive corruption -- AND hanging computer?

    Since purchasing a 17" MacBook Pro, I've had serious problems with directory corruption on three of my external firewire hard drives (80 and 100 G FireLite Pocket drives and a 400 G Lacie drive). About 2 weeks ago, the 80 G drive (with most of my cri

  • Time-series Chart

    Warning, CR Newbie here so this may be a stupid question. I am evaluating the trial version of CR to see if it will be a good fit for an upcoming project. I've seen some related posts in the SCN, but no answers that quite fit. I'm looking to create a

  • IPad only partially syncs with iTunes

    I'm so fed up with dealing with iTunes Support... They are more than useless - it would help if they could actually understand my problem, but they dont seem to have a grasp of the english language, let alone have any ability to assist me with my iss

  • ABAP and XI proxies

    I am looking for some best practices/experiences from projects where we have integrated SAP backend system based on WAS 6.40 with XI using ABAP proxies or other mechanisms for SSL communication for sensitive data. We are trying to use ABAP proxies on

  • Installation of SQL PLUS

    Hi, I have followed a PL/SQL training at Oracle France, and now, I'd like to train myself home. I have been said that I can download tools to practice SQL and PL/SQL with 2 or 3 tables having 20 records. Can you tell what can I download to train myse