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

Similar Messages

  • 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

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

  • Redelivery of message ,If there is an exception in onMessage() method

              Hi ,
              Is it possible to send acknowledge from the onMessage() method of any MDB to the
              JMS server (Queue). And how to make JMS server redeliver the message ? What properties
              are to be set for this in Weblogic server ,JMS server . And do we need to do modify
              onMessage() method . If anybody has the code snippet and properties setting ,pleas
              let me know .
              TIA
              Prabir
              [redelivery.txt]
              

    If MDB is transactional, you can call setRollbackOnly() on it (not sure of exact syntax),
              this is
              standard J2EE.
              If it is not transactional you can throw a RuntimeException (such as
              ArrayIndexOutOfBounds, etc)
              this will force a redelivery. (J2EE provides no standard here, but BEA does the sane
              thing here.)
              Note that 6.1 and above provides optional redelivery delays and redelivery limits.
              Tom
              Prabir wrote:
              > Hi ,
              > Is it possible to send acknowledge from the onMessage() method of any MDB to the
              > JMS server (Queue). And how to make JMS server redeliver the message ? What properties
              > are to be set for this in Weblogic server ,JMS server . And do we need to do modify
              > onMessage() method . If anybody has the code snippet and properties setting ,pleas
              > let me know .
              > TIA
              > Prabir
              >
              > ------------------------------------------------------------------------
              > Name: redelivery.txt
              > redelivery.txt Type: Plain Text (text/plain)
              > Encoding: base64
              

  • 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

  • Method not found when displaying report in viewer CR Basic for VS 2008

    I searched and couldn't find anything regarding this.  When I try to display a report in the CrystalReportViewer, I get the following error message:
    method not found: 'Void CrystalDecisions.Shared.PageRender.set_ExceptionWindowTitle(System.String)'
    If I call PrintToPrinter for the report, it prints exactly as expected with no errors.  The report viewer control is on a separate generic form (since I have many different reports) and the report is passed to that form after it has been generated.
    I can't find any information regarding this error either on these support forums, or anywhere else on the internet.  I've tried installing the latest service pack and also removing and re-adding teh crystal reports references to my project without any change.
    Thanks for any help you can provide.

    Ok, I tried a completely fresh install of Visual Studio 2008 on a brand new Windows XP machine, same result.  I tried to do this on another developer's machine (who also has Visual Studio 2008 Professional), which resulted in this error when trying to load the ReportViewer (sorry for the long text).  It mentions something about redirecting to version 12 of crystal reports in the error message, which is strange because my project references 10.5, and I don't have crystal reports 12, which as I understand is the full retail version of Crystal reports 2008.  Any ideas?
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in ICE.exe
    System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>ICE.exe</AppDomain><Exception><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
    at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81</StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' ---&amp;gt; System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    === Pre-bind state information ===
    LOG: User = SAGENET\aingraham
    LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    (Fully-specified)
    LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
    LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
    at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
    at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
    </ExceptionString><InnerException><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
    at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at ICE.My.MyApplication.Main(String[] Args)
    </StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    === Pre-bind state information ===
    LOG: User = SAGENET\aingraham
    LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    (Fully-specified)
    LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
    LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
    </ExceptionString></InnerException></Exception></TraceRecord>

  • 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

Maybe you are looking for

  • IMac with 2 user accounts & access to a external HDD/NAS

    Hi there, I'm about to put all my video (perhaps also my iTunes music library) onto an external drive. I'm still toying with a 2TB NAS or a 2TB USB or FW drive, but one thing has crossed my mind: If I had an HDD attached to my iMac, does it matter wh

  • Re-Install of 10.4.6 from original DVD will not complete on MacBook Pro

    I purchased a new MacBook Pro 15" laptop around Oct 1, 2006 and I am now unable to use it. It came with 10.4.6 installed. I updated the system to 10.4.7 and 10.4.8 using update packages directly from the Apple site. Then I ran a Security Update to 10

  • Tab Navigation in ABAP screens

    Hi All, Is the navigation sequence of the screen elements in a dynpro screen on "tab" event is from left to right and top to bottom always irrespective of whether the fields are in multiple subscreens/tab pages?. Is there a way to control the tab nav

  • What are the objects using PGA memory.

    Hi, i am newbie and time is less . 1)collections uses pga memory ,does globle tem table used in sp also uses PGA memory. 2)and does type of table of object type uses pga memory. yours sincerly. Edited by: 944768 on Feb 4, 2013 10:32 PM

  • Faces didn't inventory all the folders and projects

    So I had Faces turned off for many months to improve performance.  In the meantime, I imported about 10,000+ images into a variety of folders, etc.  I then turned on Faces because I thought it would be fun to play with 70 years of different pictures.