BulkEventResult  Method  Not Triggering in Postcreate Eventhandler

Hi All,
My Scenario is like this ...
When a user is created through Trusted Recon I wrote a PostCreateEventhandler to generate some field in OIM , for this in my Event handler I implemented BulkEventResult Method to trigger while a user is created through trusted Recon but BulkEventResult is not triggering . It's urgent requirement please help me .
Thanks in Advance..

order of you eventhandler should be between 1002 to 1008 or just FIRST or LAST as per requirement.
update order in eventhandler.xml and import it again. make sue you run Purgechache

Similar Messages

  • OnMessage() method not triggered

    I can able to send message to Queue but the onMessage() method not invoked.Please help me out resolve this problem.

    yes ur correct but i didn't call start() method but i don' know where i need to call.here i have paste my code plz tell me where i need to call start method.
    package mdb;
    * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
    * This software is the proprietary information of Sun
    * Microsystems, Inc. Use is subject to license terms.
    import java.io.Serializable;
    import java.rmi.RemoteException;
    import javax.ejb.EJBException;
    import javax.ejb.MessageDrivenBean;
    import javax.ejb.MessageDrivenContext;
    import javax.ejb.CreateException;
    import javax.naming.*;
    import javax.jms.*;
    public class SimpleMessageBean implements MessageDrivenBean,MessageListener {
    private transient MessageDrivenContext mdc = null;
    private Context context;
    public SimpleMessageBean() {
    System.out.println("In SimpleMessageBean.SimpleMessageBean()");
    public void setMessageDrivenContext(MessageDrivenContext mdc) {
    System.out.println("In "
    + "SimpleMessageBean.setMessageDrivenContext()");
         this.mdc = mdc;
    public void ejbCreate() {
         System.out.println("In SimpleMessageBean.ejbCreate()");
    public void onMessage(Message inMessage) {
    TextMessage msg = null;
    try {
    if (inMessage instanceof TextMessage) {
    msg = (TextMessage) inMessage;
    System.out.println("MESSAGE BEAN: Message received: "
    + msg.getText());
    } else {
    System.out.println("Message of wrong type: "
    + inMessage.getClass().getName());
    } catch (JMSException e) {
    e.printStackTrace();
    mdc.setRollbackOnly();
    } catch (Throwable te) {
    te.printStackTrace();
    } // onMessage
    public void ejbRemove() {
    System.out.println("In SimpleMessageBean.remove()");
    } // class
    here is weblogic-ejb.xml
    <!-- Sample MessageDriven bean Weblogic deployment descriptor -->
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>SimpleMessageBean</ejb-name>
              <message-driven-descriptor>
                   <pool>
                        <max-beans-in-free-pool>2</max-beans-in-free-pool>
                        <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
                   </pool>          
                   <destination-jndi-name>JNDIMDBQueue</destination-jndi-name>                    
                   <connection-factory-jndi-name>MDBConnectionFactory</connection-factory-jndi-name>
         <!--connection-factory-jndi-name>weblogic.jms.MessageDrivenBeanConnectionFactory</connection-factory-jndi-name-->
                   <initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
                   <jms-polling-interval-seconds>10</jms-polling-interval-seconds>
                   <jms-client-id>SimpleMessageBean</jms-client-id>
                   <provider-url>t3://localhost:7001</provider-url>
                   <trans-timeout-seconds>30</trans-timeout-seconds>
              </message-driven-descriptor>
              <jndi-name>SimpleMessageBean</jndi-name>     
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    here is the ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
              <enterprise-beans>
                   <message-driven>
                        <ejb-name>SimpleMessageBean</ejb-name>
                   <ejb-class>mdb.SimpleMessageBean</ejb-class>
                   <!--transaction-type>Bean</transaction-type-->
                        <transaction-type>Container</transaction-type>
                        <trans-attribute>Required</trans-attribute>
                        <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
                        <message-driven-destination>
                             <destination-type>javax.jms.Queue</destination-type>
                        </message-driven-destination>
                   </message-driven>
              </enterprise-beans>
              <assembly-descriptor>
                   <container-transaction>
                        <method>
                             <ejb-name>SimpleMessageBean</ejb-name>
                             <method-name>onMessage()</method-name>
                        </method>                    
                   </container-transaction>
              </assembly-descriptor>
    </ejb-jar>
    i m very new to this program...plz help me

  • OIM 11gR2 - RoleUser PostProcess Event Handler not triggered

    Hi,
    I'm trying to create a postprocess event-handler for RoleUser entity so that when a role is assigned (or removed) to a user an UDF is populated with the list of its roles.
    I developed my event-handler and registered it following instructions on http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/oper.htm#OMDEV4749 but the event-handler is not triggered.
    I've read and tried a lot of things but nothing seems to work.
    I use System.out.println() and a Logger in the event-handler methods as well as breakpoints debugging via Eclipse, all this indicates the event-handler is not triggered.
    I checked the event-handler is registered by using getEventHandlers(RoleUser,CREATE) method on IAMAppDesignMBean through Enterprise Manager. Result is :
    Postprocess,-2147483648,PostProcessingInitiation,/metadata/iam-features-request/event-definition/EventHandlers.xml,true
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,1020,RoleGrantPostProcessActionHandler,/metadata/iam-features-identity/event-definition/EventHandlers.xml,false
    Postprocess,9988,AsyncHandler,/metadata/iam-features-asyncwsclient/EventHandlers.xml,true
    Postprocess,3000000,CallBackOAACGWithApprove,/metadata/iam-features-rolesod/EventHandlers.xml,true
    Postprocess,2147483647,RequestCompleted,/metadata/iam-features-request/event-definition/EventHandlers.xml,true
    Note that I dont understand why the handler appears four times..
    Also, when I unregister it, it still appears one time.
    Here is my event handler XML file (in META-INF folder of the plugin zip) :
    <?xml version='1.0' encoding='utf-8'?>
    <eventhandlers
      xmlns="http://www.oracle.com/schema/oim/platform/kernel/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
      <action-handler
      class="package.MyHandler"
      entity-type="RoleUser"
      operation="ANY"
      name="MyHandler"
      stage="postprocess"
      order="FIRST"
      sync="TRUE" />
    </eventhandlers>
    plugin.xml file (root of plugin zip) :
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
      <plugin
      pluginclass="package.MyHandler"
      version="1.0"
      name="Myhandler" />
      </plugins>
    </oimplugins>
    Java code (in a JAR in lib folder of plugin zip) :
    public class MyHandler implements PostProcessHandler {
    @Override
    public EventResult execute(long processId, long eventId, Orchestration orchestration) {
      System.out.println("Inside EventResult execute ");
      LOGGER.log(Level.SEVERE, "Inside eventResult execute");
      // Some code
      return new EventResult();
    @Override
    public BulkEventResult execute(long processId, long eventId, BulkOrchestration orchestration) {
      String operation = orchestration.getOperation().trim().toString();
      System.out.println("<---------- Calling " + getClass().getName() + ": Operation[" + operation + "] Execute ---------->");
      LOGGER.log(Level.SEVERE, "Inside BulkEventResult execute");
      // Some code
      return new BulkEventResult();
    Maybe I'm missing something ? Any help would be really appreciated
    Thanks,
    Gael
    EDIT :
    Also note that I see these messages in the logs but I'm not sure it concern my event handler from what I read on some pages :
    XML schema validation failed for XML eventhandlers and it will not be loaded by kernel.
    [CALLBACKMSG] Found 0 possible matches for applicable policies for step POST_PROCESS, entity RoleUser, operation CREATE.
    Related link : Post process event handler when a role is created or modified in OIM

    I eventually got it working but I'm not sure of how.. !
    I changed the name of the handler (it was not "MyHandler" but something very long, I shortened it). I copy and paste exactly what was described here : Post process event handler when a role is created or modified in OIM. I did purge cache. I tried to apply it on another entity (Role), it was triggered, then I applied it back to RoleUser and it still works.
    If it can help someone, my plugin zip contains :
    plugin.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
      <plugin pluginclass="fr.xxx.RoleUserProcessor"
      version="1.0" name="RoleUserProcessor" />
      </plugins>
    </oimplugins>
    META-INF/EventHandlers.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
      <action-handler class="fr.xxx.RoleUserProcessor"
      entity-type="RoleUser" operation="ANY" name="RoleUserProcessor" order="9999"
      stage="postprocess" sync="TRUE" />
    </eventhandlers>
    lib/xxx.jar/RoleUserProcessor.java :
    @Override
      public EventResult execute(long processId, long eventId, Orchestration orchestration) {
      LOGGER.log(Level.INFO, "Execution RoleUserProcessor EventHandler (mode non bulk)");
      String operation = orchestration.getOperation().trim().toString();
      LOGGER.log(Level.INFO, "Operation : " + operation);
      return new EventResult();
      @Override
      public BulkEventResult execute(long processId, long eventId, BulkOrchestration orchestration) {
      LOGGER.log(Level.INFO, "Execution RoleUserProcessor EventHandler (mode bulk)");
      String operation = orchestration.getOperation().trim().toString();
      LOGGER.log(Level.INFO, "Operation : " + operation);
      return new BulkEventResult();
    Thank you
    Also, a thing that may help some people, I found out that the ORCHEVENTS table in OIM schema contains the history of handlers triggered.

  • Mails not triggering in CHARM

    Hi Experts,
    I have configured Solution Manager 4.0 for CHARM.  It is working fine.  My requirement is that, it should trigger mail whenever support team changes.
    Initally, I defined a action to trigger mail once whenever a support team is assigned.  It worked fine. But the problem with this setting is that, whenever I change support team, it is not triggering a mail and this is understood because I configured to trigger once only.  So, I changed the setting of action to "unprocessed", it starts triggering mails whenever I change the support team.
    Now Issue is that, it is also triggering the mail to support team whenever the transaction is saved (Ex:  When I create change document for a support message, transaction saves automatically) even though support message is not changed.  This leads to unnecessary mails.
    In order to avoid unnecessary mails, I deleted the existing action and created a new one wherein start condition was not maintained but maintained setting under scheduled condition as per SAP note 865619 and implemented BADI also. 
    Now I am not getting a single mail whenever a support team is assigned or changed.
    Any suggestion please provide.
    Thanks in advance.
    Regards
    Kumar

    Hi Kumar,
    This can be done very well.
    For this you can implement the BADI ORDER_SAVE, method CHECK_BEFORE_SAVE.
    In this method you write a code as mentioned below,
    1. Use FM
      WA_HEADER = IV_GUID.
      Insert wa_header into table lt_header.
      CALL FUNCTION 'CRM_ORDER_READ'
       EXPORTING
         IT_HEADER_GUID                = lt_HEADER
          IT_ITEM_GUID                  =
       IMPORTING
         ET_CUSTOMER_H                  = lt_customer_h
         ET_ORDERADM_H                  = lt_orderadm_h
          ET_OPPORT_H                   =
          ET_PARTNER                    = lt_partner
          ET_STATUS                     = It_status
          ET_REFOBJ                     = lt_CRMT_refobj_WRKT
           ET_SUBJECT                    = lt_CRMT_SUBJECT_WRKT
       EXCEPTIONS
         DOCUMENT_NOT_FOUND            = 1
         ERROR_OCCURRED                = 2
         DOCUMENT_LOCKED               = 3
         NO_CHANGE_AUTHORITY           = 4
         NO_DISPLAY_AUTHORITY          = 5
         NO_CHANGE_ALLOWED             = 6
         OTHERS                        = 7
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    2. You will get the Business Partners entered on the screen in the internal table lt_partner, read the address number1 for the partner function of the support team.
    3. Get the contents from view CRMV_LINKPARTNER using the LV_GUID. And get the address number2 for partner function of the support team.
    4. Compare the address number2 & address number1. If they are not equal then trigger a mail  else don't.
    Let me know if you need some more help.
    Reward if it helps.
    regards,
    mahantesh

  • 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.

  • OnEnter event not triggering in standard WD

    HI Experts,
    I am creating a view enhancement in standard WD component. I have craeted an action for Onenter event for an input field.
    When i press enter after selecting that field, the action is not triggered and hence my event handler method is not executing.
    Please let me know the reason why it is not happening and how can i fix it.
    Thanks & Regards,
    Sushant Singh

    I dont think if you change the properties of UI elements which are standard will work.
    If already OnEnter is created for input field then you can create Post-Exit , Pre-Exit methods.
    Alternative would be to make the Standard Input field as invisible and create you own input field with same properties as of standard one.

  • Event not triggering in ALV

    Hi All,
    I am using ALV GRID in object oriented with editing option.If user made any changes in the Grid ,then i will captured the changes by the event DATA_CHANGED and i will display the error message inside the DATA_CHANGED event method using Method ADD_PROTOCOL_ENTRY and DISPLAY_PROTOCOL(which displayed a message in popup window with the field name ,row etc.).
    The Method CHECK_CHANGED_DATA in PAI will trigger DATA_CHANGE event.It is some time triggering DATA_CHANGED and some time it is not triggering DATA_CHANGED event..Why it is not triggering DATA_CHANGED event?
    Can any one give me solution for this.....
    Thanks in Advance..

    Hi,
    i have to register an ENTER  event:
    that is
    CALL METHOD alv->register_edit_event
    EXPORTING
    i_event_id = cl_gui_alv_grid=>mc_evt_enter.
    For this also it is not triggering...

  • THE END OF THE RECORD IS NOT TRIGGERING(urgent)

    HI ALL I HAVE WRITTEN A REPORT AND I AM DISPLAYING THE OUTPUT OF EACH DISTRICT..
    NOW THE REPORT IS SHOWING RIGHT WHEN IT IS CHANGING THE DISTRICT BUT IT IS NOT TRIGGERING AT THE END OF THE REPORT AS AFTER THAT THE DISTRICT IS NOT CHANGING..
    I TRIED WITH AT END OF BUT IT IS SOME HOW SHOWING PROBLEM SO I USED A VARIBLE CONCEPT TO GET THE REPORT....
    HERE IS THE REPORT  can anyone please look at this and let me know how can i do that..
    is there any method where i can used in the IF condition to get the last record...
    ==========================================================
    *& Report  ZDISTRICT_CUST_AUCSALES
    &--THE PROGRAM USED TO DISPLAY THE TOTAL NUMBER OF CONSUMER IN A D.C.-
    &----PROCESSED ON A PERTICULAR MONTH AND YEAR..--
    REPORT  ZDISTRICT_CUST_AUCSALES .
    *TABLE DECLARATION*****************************************************
    TABLES: /BIC/AUCSALES00,
            /BIC/TCOKEY.
    *DATA DECLARATION*****************************************************
    DATA:  BEGIN OF ITAB OCCURS 0,
           /BIC/COKEY   LIKE /BIC/TCOKEY-/BIC/COKEY,
           TXTSH        LIKE /BIC/TCOKEY-TXTSH,
           END OF ITAB.
    DATA:  BEGIN OF ITAB2 OCCURS 0,
           BILL_DATE    LIKE /BIC/AUCSALES00-BILL_DATE,
           /BIC/COKEY   LIKE /BIC/AUCSALES00-/BIC/COKEY,
           BPARTNER     LIKE /BIC/AUCSALES00-BPARTNER,
           END OF ITAB2.
    DATA:  COUNT        TYPE I,
           COKEY        TYPE I,
           COKEYNO(2)   TYPE C,
           COKEYCH(2),
           BILDT        TYPE I,
           PROCOKEY     TYPE I,
           NOTPROCOKEY  TYPE I,
           TOTCOKEYDIV  TYPE I,
           TOTCOKEYDIV1 TYPE I,
           TOTCOKEYDIV2 TYPE I,
           TOTAL        TYPE I.
    DATA: C TYPE I VALUE 4.
    SELECT OPTION FOR DATE SELECTION IN THE SELECTION SCREEN.************
    SELECTION-SCREEN BEGIN OF BLOCK DATE WITH FRAME TITLE TEXT-001.
    PARAMETERS: S_BILDT LIKE /BIC/AUCSALES00-BILL_DATE OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK DATE.
    *INITIALIZATION******************************************************
    FORMAT INTENSIFIED ON COLOR = C.
    write:/  'PROCESSING DATE:',    20 S_BILDT,
         128 'TIME:',              135 SY-UZEIT.
    WRITE:/  'USER NAME      :',    20 SY-UNAME,
         142 ' '.
    WRITE SY-ULINE.
    WRITE: / 'D.C'                , 12 SY-VLINE,
             'NAME OF D.C'        , 39 SY-VLINE,
             'NUMBER OF CONSUMER' , 60 SY-VLINE,
             'REMARKS'            , 105 SY-VLINE.
    WRITE:/ SY-ULINE.
    FORMAT INTENSIFIED OFF.
    *AT SELECTION-SCREEN**************************************************
    SELECT BILL_DATE
          UP TO 1 ROWS
          INTO (/BIC/AUCSALES00-BILL_DATE)
          FROM /BIC/AUCSALES00
          WHERE BILL_DATE = S_BILDT.
    ENDSELECT.
    IF SY-SUBRC <> 0.
      WRITE:/ ' NO DATA FOUND ON THIS DATE'.
      EXIT.
    ENDIF.
    START OF  SELECTION***************************************************
    SELECT /BIC/COKEY TXTSH from /BIC/TCOKEY into table itab.
    SORT ITAB.
    IF NOT ITAB[] IS INITIAL.
      SELECT  BILL_DATE
              /BIC/COKEY
              BPARTNER
              FROM /BIC/AUCSALES00
              INTO CORRESPONDING FIELDS OF TABLE ITAB2
              FOR ALL ENTRIES IN ITAB
              WHERE /BIC/COKEY = ITAB-/BIC/COKEY
              AND BILL_DATE = S_BILDT.
      SORT ITAB BY /BIC/COKEY.
    ENDIF.
    *CHECK WHETHER THE DATA RETRIVE SUCESSFULLY OR NOT********************
    IF SY-SUBRC NE 0.
      WRITE:/ 'THIS DATE DOESNOT CONTAIN ANY DATA'.
    ENDIF.
    *DATA DISPLAY*********************************************************
    *****GET THE FIRST VALUE AND DELETE THE ADJECENT AND DUPLICATE FROM ITAB2.
    READ TABLE ITAB INDEX 1.
       IF SY-SUBRC = 0.
          COKEYNO = ITAB-/BIC/COKEY+4(2).
       ENDIF.
    READ TABLE ITAB2 WITH KEY /BIC/COKEY = itab-/BIC/COKEY.
       IF SY-SUBRC = 0.
          SORT ITAB2 BY /BIC/COKEY.
          DELETE ADJACENT DUPLICATES FROM ITAB2 COMPARING /BIC/COKEY.
       ENDIF.
    LOOP AT ITAB.
      READ TABLE ITAB2 WITH KEY /BIC/COKEY = itab-/BIC/COKEY.
    *IF THE D.C ARE NOT SAME THEN DISPLAY THE SUM***************************
      COKEYCH = ITAB-/BIC/COKEY+4(2).
      IF (  COKEYCH <> COKEYNO ).
          FORMAT COLOR = 4.
            WRITE:/ '  TOTAL NUMBER OF  D.C  IN   PERTICULAR RAO  ','(', COKEYNO,')','=',TOTCOKEYDIV.
            WRITE:/ '  TOTAL NUMBER OF CONSUMER PROCESSED IN RAO  ','(', COKEYNO,')','=',TOTAL.
            WRITE:/ '  TOTAL NUMBER OF D.C   PROCESSED    IN RAO  ','(', COKEYNO,')','=',PROCOKEY.
            WRITE:/ '  TOTAL NUMBER OF D.C  NOT PROCESSED IN RAO  ','(', COKEYNO,')','=',NOTPROCOKEY.
            WRITE:/ '', 128 'PAGE NUMBER:',   139 SY-PAGNO.
            SKIP 4.
    *******INITIALLIZE ALL THE VARIABLE*************************************
            FORMAT COLOR OFF .
            TOTCOKEYDIV = 0.
            TOTCOKEYDIV1 = 0.
            TOTCOKEYDIV2 = 0.
            TOTAL = 0.
            PROCOKEY = 0.
            NOTPROCOKEY = 0.
            WRITE:/ SY-ULINE.
            NEW-PAGE WITH-TITLE.
            NEW-PAGE WITH-HEADING.
    ENDIF.
    **END OF THE TOTAL SUM OF ALL THE D.C.**********************************
    *IF THE D.C ARE SAME THEN DISPLAY THE D.C.******************************
      IF ITAB2-/BIC/COKEY = ITAB-/BIC/COKEY.
             SELECT COUNT( DISTINCT BPARTNER )
                   INTO COUNT
                   FROM /BIC/AUCSALES00
                   WHERE /BIC/COKEY = ITAB2-/BIC/COKEY and
                   BILL_DATE = S_BILDT.
            IF SY-SUBRC = 0.
                 PROCOKEY = PROCOKEY + 1.
            ENDIF.
              TOTCOKEYDIV1 = TOTCOKEYDIV1 + 1.
              TOTAL = TOTAL + COUNT.
              COKEY = ITAB2-/BIC/COKEY.
              FORMAT INTENSIFIED ON COLOR = 2.
              WRITE:/ ITAB2-/BIC/COKEY,             SY-VLINE,
                   15 ITAB-TXTSH+1(19),         39  SY-VLINE,
                   40 COUNT,                    60  SY-VLINE,
                      ' ',                     105  SY-VLINE.
             WRITE :/ SY-ULINE.
             FORMAT INTENSIFIED ON COLOR = 2.
      ELSE.
           FORMAT INTENSIFIED ON COLOR = 2.
           COKEY = ITAB-/BIC/COKEY.
           WRITE:/ ITAB-/BIC/COKEY,               SY-VLINE,
                15 ITAB-TXTSH+1(19),           39 SY-VLINE,
                40  ' ',                       60 SY-VLINE,
                'Data Not extracted to BW',   105 SY-VLINE.
           FORMAT INTENSIFIED ON COLOR = 2.
           WRITE:/ SY-ULINE.
           TOTCOKEYDIV2 = TOTCOKEYDIV2 + 1.
      ENDIF.
          TOTCOKEYDIV = TOTCOKEYDIV1 + TOTCOKEYDIV2.
          NOTPROCOKEY = TOTCOKEYDIV - PROCOKEY.
          COKEYNO = ITAB-/BIC/COKEY+4(2).
          CLEAR: ITAB, ITAB2.
    ENDLOOP.
    ===========================================================
    please at this and let me know..
    thanks in advance,,,

    HI ALL ,
         I GOT THE ANSWER...
    THANKS TO SDNNNN AND ALL THE FRIENDS LOOKING AT THIS...
    THANKS ONCE AGAIN....

  • BDOCs not triggering on changin Contract Account thrU FM FKK_ACCOUNT_UPDATE

    Hi,
    We have integrate SAP ISU and CRM system. My scenario is, on Dunning til a specific level, customer is removed from Direct Debit if he's on an active Incoming Payment Method in a dunning activity.
    In my scenario, I'm reading Contract Account Details using FKK_ACCOUNT_READ, deleting incoming payment locks if any, clearing three fields of Incoming Payment Method Id, Bank ID and Credit Card ID (EZAWE, EBVTY, CCARD_ID) and then passing the new structure in FM FKK_ACCOUNT_UPDATE in below format:
            CALL FUNCTION 'FKK_ACCOUNT_UPDATE' IN UPDATE TASK
              EXPORTING
                x_fkkvk                 = wa_fkkvk
                y_fkkvk                 = wa_fkkvk_old
                vk_upd_mode             = lc_change
                udate                   = sy-datum
                planned_or_real_changes = lc_real
              TABLES
                x_fkkvkp                = lit_fkkvkp
                y_fkkvkp                = lit_fkkvkp_old.
    But it is not triggering any BDOCs and therefore DD details can still be seen in CRM system.
    I checked the standard process (CAA2), also uses the same FM in same format but it triggers BDOCs. I believe after this FM is called, some other FMs are being called to trigger BDOCs.
    Can someone help me in finding out, where am I going wrong. Thanks.
    Ravi

    Use BAPI_ISUACCOUNT_CHANGE instead.

  • OPPP change is not triggering planning file entry flag?

    We use alternate BOMs for a particular subassembly and depending on requirements
    shuffle between BOMs using a different alternate for a certain time period.
    However when we change the alternate in OPPP it is not triggering the change in the planning file.
    Is there something we are missing here.
    Thanks in advance.

    Dear ,
    Frist of all , there is no such cutomisation to have planning file entry of any material.Planning files entries is the first step which checks by the MRP during the MRP run. if no entries are found for the selected parts then MRP will not plans these parts. You can create/check the planning files entries from T Codes-MD20/MD21 even before you creat FG BOM .
    Planning file entries will be created automatically when you enter the relevent MRP type (example PD) in the material master MRP1 view. OR when there was a change relevent to MRP like stock change due to moveement type/GR/GI or change in material master data.
    MRP does planning file rentry based on the MRP relevent changes like you have FG and valid BOM .Now based on the FG MRP4 BOM Slection Explosion method , MRP will explode the BOM from lowest level and there will be planning file entry while executing MRP on FG based on the FG requirement and dependent relation in BOM .
    In you case , please check the following ;
    1.Whether you have kept other alternative BOM status as Inactive-2 Iin CS02-BOM Header -Status long text  and also re-assing this in Routing CA02 with correct valaidty  .Check the validity of the BOM alternative which u have included  for sub-assbly
    2.You have all the material master parameters [MRP1-MRP4 view ] all in place specially MRP type PD, Procurement Type E or F
    3.Specially ,  check BOM explosion /selection methods in SFG/FG level in MRP4-Sleection methoids should Blank or 1 BASED ON QTY  OR  maintain producxtion version with selection indicator 2 or 3.
    4.BOM should  have usage -1-Production , Status-1 -Active.
    5.Run MRP-MD02-NETCH, 2,1,3,3,2
    Check and come back
    Regards
    JH

  • BBP_PO_SEND_XML - Not triggered during the creation of PO

    Hi All,
    We are using SRM 7.0, configuration for sending PO in the form of XML is done as suggested with the method BBP_PO_SEND_XML. The problem is, this BADI is not triggered when we save (even after order) the PO with XML option and the status is displayed as Incorrectly processed. But, when I select the Incorrectly processed output type and click on Repeat Output, the BADI is called and is processed succesfully.
    Any reasons, why the BADI is not triggered during the creation or change of PO and is getting triggered only when we select the option Repeat Output? Please help me in correcting this issue.
    Thanks,
    Phani.

    Logic inside META_PO_SEND was written in user name check. Whereas the method BBP_PO_SEND_XML is triggered with batch user. Due to this reason, custom logic is not triggered.

  • Not triggering PBO in OOABAP ALV grid

    Hi all.
    I want to create drop down for Document type BSART.for that iam using OOABAP but my program is not triggering PBO module itself.I have seen so many examples but iam unable to fetch data.what are the changes i have to do here.i have reduced some code here.i have written my final internal table select query before this stataement.
    loop at it_git_final into wa_git_final.
    APPEND wa_git_final TO it_git_final.
    ENDLOOP.
    *Call to ALV
      CALL SCREEN 600.
    MODULE status_0600 OUTPUT.
    SET PF-STATUS 'DISP'.
    SET TITLEBAR 'ALVF4'.
    ENDMODULE.                 " STATUS_0600  OUTPUT
    calling the PBO module ALV_GRID.
    MODULE pbo OUTPUT.
    *Creating objects of the container
      *  SET field for ALV
      if g_custom_container is initial.
      perform create_and_init_alv changing it_git_final
                                             gt_fieldcat.
    PERFORM alv_build_fieldcat.
      endif.
      * Set ALV attributes FOR LAYOUT
    PERFORM alv_report_layout.
       CHECK NOT c_alvgd IS INITIAL.
    Call ALV GRID
       CALL METHOD c_alvgd->set_table_for_first_display
        EXPORTING
          is_layout                     = it_layout
          i_save                        = 'A'
        CHANGING
          it_outtab                     = it_git_final
          it_fieldcatalog               = it_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
       ENDMODULE.                 " PBO  OUTPUT
          MODULE PAI INPUT                                              *
    MODULE pai INPUT.
       ENDMODULE.                    "pai INPUT
    *subroutine to build fieldcat
    FORM alv_build_fieldcat changing pt_fieldcat type lvc_t_fcat..
       DATA lx_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'IT_GIT_FINAL'
        CHANGING
          ct_fieldcat      = gt_fieldcat.
    * To assign dropdown in the fieldcataogue
    LOOP AT gt_fieldcat INTO lx_fcat.
       DATA : lx_fcat TYPE lvc_s_fcat.
      lx_fcat-row_pos   = '1'.
      lx_fcat-col_pos   = '1'.
    lx_fcat-fieldname = 'CHECK1'.
    lx_fcat-ref_field = 'CHECK1'
      lx_fcat-EDIT = 'X'.
      lx_fcat-coltext = 'Check Box'.
    lx_fcat-seltext = text-c01.
    APPEND lx_fcat TO Gt_fieldcat.
    CLEAR lx_fcat.
    lx_fcat-row_pos   = '1'.
      lx_fcat-col_pos   = '15'.
      lx_fcat-fieldname = 'BSART'.
      lx_fcat-ref_field = 'BSART'.
      lx_fcat-ref_table = 'T161P'.
      lx_fcat-coltext = 'Document Type'.
    lx_fcat-drdn_hndl = '1'.
      lx_fcat-outputlen = 15.
      lx_fcat-edit = 'X'.
      append  lx_fcat to gt_fieldcat.
      CLEAR lx_fcat.
       DATA: lt_dropdown TYPE lvc_t_drop,
            ls_dropdown TYPE lvc_s_drop.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '01 ZFC Vesselchart Contract'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '02 ZQTY QTY Contract(SESA)'.
      APPEND ls_dropdown TO lt_dropdown.   ls_dropdown-handle = '1'.
    *method to display the dropdown in ALV
      CALL METHOD g_grid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_dropdown.
    LOOP AT it_fcat INTO lx_fcat.
        CASE lx_fcat-fieldname.
    To assign dropdown in the fieldcataogue
          WHEN 'BSART'.
            lx_fcat-drdn_hndl = '1'.
            lx_fcat-outputlen = 15.
            MODIFY it_fcat FROM lx_fcat.
        ENDCASE.
      ENDLOOP.
          endform.
    form ALV_OUTPUT .
    *Create object for container
    CREATE OBJECT g_custom_container
            EXPORTING container_name = 'CCONT'.
    *create object for grid
    CREATE OBJECT g_grid
            EXPORTING i_parent = g_custom_container.
      CALL METHOD g_grid->set_table_for_first_display
        EXPORTING
          is_layout       = it_layout
        CHANGING
          it_fieldcatalog = gt_fieldcat
          it_outtab       = it_git_final.
    endform.                    " ALV_OUTPUT
    form ALV_REPORT_LAYOUT .
      it_layout-cwidth_opt = 'X'.
      it_layout-col_opt = 'X'.
      it_layout-zebra = 'X'.
    endform.                    " ALV_REPORT_LAYOUT
    form CREATE_AND_INIT_ALV  changing p_it_git_final
                                       p_gt_fieldcat.
      create object g_custom_container
             exporting container_name = g_container.
      create object g_grid
             exporting i_parent = g_custom_container.
    endform.

    Hello Raj
      Actually all the code is described in PBO module, so you need to invoke this module in PBO when defining the screen.
    For example, access transaction SE51, start in Change mode and inser line
        MODULE PBO.
    Then activate the object
    Best regards
    Carlos Machad o

  • Submit Button in Interactive form is not Triggering (Webdynpro Java)

    Hi,
    I have developed one application for Online intractive form.I have  created one text box and one submit button in Intractive
    Form.I created a Action method Submit.I have bound the onActionSubmit() method to  onSubmit Event of Intractive Form.
    For testing i am putting some value in text box and Clicking Submit button.I have set the debugger in onActionSubmit()
    method.But when I am Clicking Submit button, onActionSubmit() method is not triggering.I have
    1. I have used Submit to SAP button (Pallet>Library>Web Dynpro).
    2.I have ACF(Active Control Framework) instalation.
    3.I have WAS 6.4 and NWDS 04.
    4.I have SAPForms.api in   Program Files\Adobe\Acrobat 7.0\Reader\plug_ins path.
    One Value Node DataSource (Cardinality 1..1) is binded into dataSource Property.And pdfSource property is binded to one value
    attribute of binary Type.
    I have done one application where i am getting data from R/3 System and displaying in PDF ,It is working fine.
    I got below error in Log File for the above two applications.But geting the data from R/3 and displaying in PDF is working
    fine even if it is giving below Error in Log
    ClientJTSInterceptor.receive_reply
    [EXCEPTION]
    org.omg.CORBA.BAD_PARAM: Not found ServiceContext with id=0  vmcid: OMG  minor code: 1A completed: Maybe
         at com.sap.engine.services.iiop.internal.giop.ClientRequest.get_reply_service_context(ClientRequest.java:284)
         at
    com.sap.engine.services.ts.jts.ots.PortableInterceptor.ClientJTSInterceptor.receive_reply(ClientJTSInterceptor.java:91)
         at com.sap.engine.services.iiop.internal.giop.ClientRequest.dealReceiveReply(ClientRequest.java:133)
         at com.sap.engine.services.iiop.internal.giop.ClientRequest.dealReceiveReply(ClientRequest.java:125)
         at com.sap.engine.services.iiop.server.portable.Delegate.invoke(Delegate.java:282)
         at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:486)
         at com.adobe.service._ControlAgentStub.done(_ControlAgentStub.java:83)
         at com.adobe.service.ProcessResource.onCommit(ProcessResource.java:609)
         at com.adobe.service.ResourcePeer.invokeCommit(ResourcePeer.java:130)
         at com.adobe.service.J2EEResourcePeerImpl.commit(J2EEResourcePeerImpl.java:124)
         at com.sap.engine.services.ts.jta.impl.ResourceList.commitTwoPhase(ResourceList.java:80)
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:355)
         at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:174)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
    com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
    tener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:214)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Please Suggest.
    Thanks & Regards
    muna

    Hi Muna,
    May ADS is not configured in server properly.
    Check the below link. I hope it will  help you.
    Re: no action got executed corr to SubmitToSap button of Interactive forms
    Thanks
    Siva Arikatla

  • DATA_CHANGED event handler is not triggered after input.(OO ALV)

    Dear Experts,
    What I did:
    I register Enter as the trigger event for data_changed event, and I put my checking logic in data_changed_handler which is a method of a local class. When the checking fails, I put messages using er_data_changed->add_protocal_entry to show messages.
    My checking is simple, if the cell is empty, error messages pops up tells that this cell can not be blank for this row.
    My problem:
    When there is no entry in the alv list(Only this situation), I insert a new entry, the cell which is required is empty, I press Enter, data_changed event is triggered, the message pops up saying that the cell is required. Then close the pop up message window, I input something in the cell, and press enter. The data_changed event is not triggered.
    Is there any1 has any ideas on this problem?
    Vicnent
    Edited by: Changjiu Tan on Sep 7, 2009 1:33 PM

      METHOD HANDLE_DATA_CHANGED.                               "#EC NEEDED
    *<<<  BEGIN MODIFY EXAMPLE CODE
    *   u4FDDu5B58u30C7u30FCu30BFu3092u7DE8u96C6u3059u308Bu3000START
        DATA: LW_INS      TYPE LVC_S_MOCE,
              LV_FNAME    TYPE LVC_FNAME,
              LW_MOD      TYPE LVC_S_MODI,
              LV_MAX      TYPE I,
              LV_RES(12)  TYPE C,
              LW_LIST     TYPE ZTSRE012,
              LV_ROWID    TYPE LVC_S_ROID,
              LT_MOD      TYPE LVC_T_MODI,
              LV_COLID    TYPE LVC_S_COL,
              LV_ROW_ID    TYPE LVC_S_ROW,
              LV_COL_ID    TYPE LVC_S_COL.
    *   u73FEu5728u306Eu30D5u30A9u30FCu30ABu30B9u4F4Du7F6Eu3092u53D6u5F97
        CALL METHOD GO_ALV_GRID7->GET_CURRENT_CELL
          IMPORTING
            ES_ROW_ID = LV_ROW_ID
            ES_COL_ID = LV_COL_ID.
        LOOP AT GT_LIST INTO LW_LIST.
          IF LW_LIST-ID > LV_MAX.
            LV_MAX = LW_LIST-ID.
          ENDIF.
        ENDLOOP.
    *   u30B0u30EBu30FCu30D7ID
        LV_FNAME = CNS_ID.
        LOOP AT ER_DATA_CHANGED->MT_INSERTED_ROWS INTO LW_INS.
          LV_MAX = LV_MAX + 1.
          CALL METHOD ER_DATA_CHANGED->MODIFY_CELL
            EXPORTING
              I_ROW_ID    = LW_INS-ROW_ID
              I_FIELDNAME = LV_FNAME
              I_VALUE     = LV_MAX.
        ENDLOOP.
        CLEAR: LV_FNAME.
        LT_MOD[] = ER_DATA_CHANGED->MT_GOOD_CELLS[].
    *   u30C7u30FCu30BFu30C1u30A7u30C3u30AF
        LOOP AT LT_MOD INTO LW_MOD.
          IF LW_MOD-FIELDNAME = CNS_ZZTTSN.
            LV_COLID-FIELDNAME = LW_MOD-FIELDNAME.
            LV_ROWID-ROW_ID    = LW_MOD-ROW_ID.
            CALL METHOD GO_ALV_GRID7->SET_CURRENT_CELL_VIA_ID
              EXPORTING
                IS_COLUMN_ID = LV_COLID
                IS_ROW_NO    = LV_ROWID.
            CALL METHOD GO_ALV_GRID7->GET_CURRENT_CELL
              IMPORTING
                E_VALUE = LV_RES.
            IF LV_RES IS INITIAL.
              CALL METHOD ER_DATA_CHANGED->ADD_PROTOCOL_ENTRY
                EXPORTING
                  I_MSGID     = CNS_MSGID
                  I_MSGTY     = CNS_MSGTY
                  I_MSGNO     = CNS_MSGNO
                  I_FIELDNAME = LW_MOD-FIELDNAME
                  I_ROW_ID    = LW_MOD-ROW_ID.
            ENDIF.
            CALL METHOD ER_DATA_CHANGED->MODIFY_CELL
              EXPORTING
                I_ROW_ID    = LW_MOD-ROW_ID
                I_FIELDNAME = LW_MOD-FIELDNAME
                I_VALUE     = LV_RES.
           ENDIF.
          CLEAR:  LV_RES,
                  LV_COLID,
                  LV_ROWID.
        ENDLOOP.
        CALL METHOD GO_ALV_GRID7->SET_CURRENT_CELL_VIA_ID
          EXPORTING
            IS_ROW_ID    = LV_ROW_ID
            IS_COLUMN_ID = LV_COL_ID.
      ENDMETHOD.                    "handle_data_changed
    Edited by: Changjiu Tan on Sep 7, 2009 1:31 PM
    Edited by: Changjiu Tan on Sep 7, 2009 1:32 PM

  • 925685 - Approval process is not triggered after documents are added

    Hi there,
    I was wondering if anyone found already a solution for the following problem.
    According to SAP Note: 925685 - Approval process is not triggered after documents are added.
    Within our SAP application, we want to approve purchase orders for departments based upon the document total.
    I was very astonished that employees are able to add a PO which will not trigger an approval stage and after the document is added, they have the possibility to change the document and at the update moment no approval will be started even if the document meets the approval requirements.
    Therefore I really want the flexibility to give users the possibility to change their PO.
    Meanwhile, documents which are added under approval, are also locked for changes, although this is another question it is also pretty annoying!
    I hope anyone has already found a method or work around for the stated problems above.
    (We are using SAP 8.8 PL 20)
    Thanks in advance.
    Kind regards,
    Marcel

    Hi Kambadasan,
    Thank you for your reply
    I'm sorry but I know how the approval templates work and they are configured correctly, however as SAP also mentioned in their own Note, this is due to the lack of SBO that SAP has such behaviour.
    Hi Gordon,
    Thanks for your reply.
    Unfortunately I have not found the post you mentioned...
    I will post my issue alson on the topic you mentioned.
    Hopefully they found a solution or maybe version 8.81 will solve the problem.
    Thanks a lot!!
    Kind regards,
    Marcel

Maybe you are looking for

  • How Can I play iTunes on my HDTV without Apple TV?

    I am looking for an affordable method of playing iTunes on my big screen HDTV. In other words, I just want to mirror whatever is on my iMac screen on my HDTV. So I want ALL the iTunes features like the visualizer, randomizer, etc. to work without a h

  • Iphoto '11 book upload stops problem

    I had the frustrating problem of iphoto '11 stopping during uploading of photo books and found a simple solution.  I left the process running overnight or during mornings and for 5 to 6 consecutive the process stopped midway and I found an error mess

  • Name Space Communication Error when Launching Workspace in Hyperion 11.1.2

    Hi All, I've installed Hyperion 11.1.2. All the links were working fine after configuration. Now when i'm launching Workspace, it is giving the message as "Namespace communication Error". Why it is giving this message ? Why it didn't show this messag

  • OS X Mavericks doesn't read my external hard drive

    Dear Apple Support Community, Yesterday I bought a new MacBook Pro with OS X Mavericks. I tried to connect by quite new external hard drive bought in Germany, a Spaceloop 3.0 1.5 Tb by CnMemory. I can see the external drive on my desktop but it looks

  • IPhoto has altered my photos during sharing so I can't open them on my Mac Mini

    I recently bought a Mac Book Air that is running Lion.  I opend the home sharing preferences on my network and then proceeded to view my photos with iPhoto on the Mac Book.  In order to view them the photos seemed to have been altered to open with th