Getter & Setter Method not getting called for a field enhanced through AET

Hello,
I am new to SAP CRM 7.0 and working on a requirement.
A Z-field was added by our functional guy in CRM 7.0 WebGui through AET in the 'Create Opportunity' transaction (Header data).
Now the requirement is, as soon as the opportunity is created through the WebGui, I should post a document in R/3 and paste that document number back to the enhanced Z-field in opportunity.
Work done by me:
I pressed F2 on the enhanced Z-field in the WebGui screen and took the details of view, component name etc. After this I went to normal SAP CRM system and open tcode "BSP_WD_CMPWB", located the corresponding view "BT111H_OPPT/Details" and right clicked & enhanced the same.
Then I opened the structure of this view, expanded context node, located context "BTOPPORTH" and inside this, located my Z-attribute. Now right clicked on the Z-attribute & selected the option "Generate SETTER & GETTER Methods" and these were generated successfully.
Problem:
The problem is even after putting external break points in these methods, these methods are not getting called while creating, modifying & displaying the Opportunity in WebGui.
I hope that for the requirements that I have, I have to do the coding in "Getter & Setter" methods. But since these are not getting called, I am unable to proceed.
Please help/suggest how to achieve this.
Thanks in anticipation.
Best Regards,
Rahul Malani

Hi,
If you can see the field in UI and still get_ method is not being triggered then try to regenerate these methods. If it still doesn't work then please look for SAP notes or raise an OSS.
There should be some note for the issue you faced.
please refer:
Help Needed immediately - AET getter setter methods not getting triggered
Regards,
BJ

Similar Messages

  • Setter method not getitng called in the custom tag

    Hi,
    I have written a custom tag and I have declared an attribute in the tld file and have specified the setter method for the same in the java tag file but that setter method is not getting called...for rest of the attributes, the methods are getting called and not just for one!! any idea what could be the problem....
    Regards
    Deepak Saini

    Do you have a getter method to match that property?
    Post some example code - what does your tld define for this property, and what get/set methods have you defined for it?

  • Service request fields enhanced through AET are not reflecting in BW DS

    Hi All,
    the CRM developer has added 3 service request fields to crmd_orderadm_h, crmd_service_h via AET. He has marked all the 3 fields as 'BW reporting relevant'.
    I have now checked the BW extractors in the hope that these 3 fields will now be appended to the BW service request datasources automatically.
    But instead of adding the fields to service request datasource(0CRM_SRV_REQ_INCI_H)(BUS2000223), it added the 3 custom fields to process datasource 0CRM_SRV_PROCESS_H.
    I am not sure what exactly have gone wrong . Is there a way to get these custom fields automatically into 0CRM_SRV_REQ_INCI_H.
    Thanks in advance,
    Ramz

    Hi Ramz,
    this seems to be identical to
    Re: Fields enhanced through AET are not reflecting in CRM DS Extract structure
    Please find my reply there.
    Best regards
    Matthias

  • Confusion about get/set method not working

    Hi
    Hopefully someone can point out the elementary mistake I have made in my code. I have created a get/set method to hold a value"total" so that I can then get it to display it further down my code in an HTML page. I am setting the value as I can check this by printing it out (line 102) but when I try to use it again it displays 0.0. What have I done wrong?
    class ReportListener implements ActionListener
         Context context;
         ResultSet resultAll;
         ResultSet resultTotal;
         JFrame frame;
         int daysInMonth;
         int i;
         DisplayCurrencyOnBills d;
         DateFormatSymbols symbols;
         String[] newWeekday;
         Date theDate;
         String date;
         ReportListener (Context theContext)
              context = theContext;
         public void actionPerformed(ActionEvent e)
           try
              printWeeklyReport();
              //countDaysInMonth();
              getReportMoneyTotal();
         catch (SQLException s)
                   s.printStackTrace();
         public void countDaysInMonth()
         public void getReportMoneyTotal() throws SQLException
              Calendar todayTotal =Calendar.getInstance() ;
               SimpleDateFormat reportDateFormat = new SimpleDateFormat("dd MM yyyy");
              PreparedStatement preparedT =context.getConnection().prepareStatement(
                   "SELECT Sum(tblSession.Fee) AS Total, Count(tblBooking.BookingID) AS CountOfBookingID FROM tblSession INNER JOIN "+
                   "(tblBooking INNER JOIN tblCustomer_Booking ON tblBooking.BookingID = tblCustomer_Booking.BookingID) ON tblSession.SessionID = tblBooking.SessionID "+
                   "WHERE (((tblBooking.EventDate)>DateAdd('m',-1,#"+reportDateFormat.format(todayTotal.getTime())+"#)) AND ((tblSession.Session)='Morning' Or (tblSession.Session)='Evening')) OR (((tblSession.Session)='Afternoon') AND ((tblBooking.Extension)=Yes))"
              ResultSet resultTotal =preparedT.executeQuery();
              resultTotal.next();
              double total =resultTotal.getDouble("Total");     
              context.setReportIncomeTotal(total);
              System.out.println("Line 102 "+context.getReportIncomeTotal());
              preparedT.close();
         public void printWeeklyReport() throws SQLException
              Calendar today =Calendar.getInstance() ;
               SimpleDateFormat reportDateFormat = new SimpleDateFormat("dd MM yyyy");
              PreparedStatement prepared =context.getConnection().prepareStatement(
                   "SELECT tblBooking.EventDate, tblSession.Session, tblBooking.Extension, tblSession.Fee, Count(tblBooking.BookingID) AS CountOfBookingID "+
                   "FROM tblSession INNER JOIN (tblBooking INNER JOIN tblCustomer_Booking ON tblBooking.BookingID = tblCustomer_Booking.BookingID) ON "+
                   "tblSession.SessionID = tblBooking.SessionID GROUP BY tblBooking.EventDate, tblSession.Session, tblBooking.Extension, tblSession.Fee "+
                   "HAVING (((tblBooking.EventDate)>DateAdd('m',-1,#"+reportDateFormat.format(today.getTime())+"#)) AND ((tblSession.Session)='Morning' Or "+
                   "(tblSession.Session)='Evening')) OR (((tblSession.Session)='Afternoon') AND ((tblBooking.Extension)=Yes))"
              ResultSet resultAll =prepared.executeQuery();
              resultAll.next();
              System.out.println("Line 123 "+context.getReportIncomeTotal());
                        PrintWriter printWriter;
                        try
                             JFileChooser fc=new JFileChooser();
                             int returnVal = fc.showSaveDialog(frame);
                             if (returnVal != JFileChooser.APPROVE_OPTION)
                                  return;
                             FileOutputStream outputStream=
                                  new FileOutputStream(fc.getSelectedFile());
                             OutputStreamWriter writer=
                                  new OutputStreamWriter(outputStream,"UTF-8");
                             printWriter=new PrintWriter(writer);     
                           printWriter.println("<html><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'><body><h1>Monthly Usage Statistics</h1>");
                           printWriter.println("<table width='100%' border='1'><tr><td width='100%' colspan='8'><h2 align='center'>Monthly Summary</h2></td></tr>");
                         System.out.println("Line 152 "+context.getReportIncomeTotal());
                         int count = 0;
                             while ( resultAll.next() )
                              count++;
                              String session = resultAll.getString("Session");
                              Double fee= resultAll.getDouble("Fee");
                           // display currency correctly
                         //double d=Double.parseDouble(fee);
                         Locale locale = new Locale("GBP");
                         NumberFormat gbpFormat = NumberFormat.getCurrencyInstance(locale);
                             symbols = new DateFormatSymbols(new Locale("en"));
                         newWeekday =symbols.getWeekdays();
                             SimpleDateFormat formatter = new SimpleDateFormat("EEEE",symbols);
                             Date theEventDate = new Date();
                             theEventDate=resultAll.getDate("EventDate");
                             date = formatter.format(theEventDate);
                             // set date for Usage Report
                             Calendar reportDate = Calendar.getInstance();
                             Calendar reportToday =Calendar.getInstance();
                             reportDate.add(Calendar.MONTH,-1);
                             SimpleDateFormat reportFormat = new SimpleDateFormat("EEEE ,dd MMM yyy");     
                             //setDecimalFormat for report total
                             DecimalFormat decFormat = new DecimalFormat(".##");
                             printWriter.println(
                             "<tr><td width='100%' colspan='8'>For month from "+reportFormat.format(reportDate.getTime())+" to "+reportFormat.format(reportToday.getTime())+"</td></tr><tr><td width='100%' colspan='8'>Total amount of income from occasional bookings "+decFormat.format(context.getReportIncomeTotal())+"</td>"+
                               "</tr><tr><td width='100%' colspan='8'>Percentage use for all bookings</td></tr><tr><td width='8%'></td><td width='8%'>MON</td><td width='9%'>TUES</td>"+
                            "<td width='9%'>WEDS</td><td width='9%'>THURS</td><td width='9%'>FRI</td><td width='9%'>SAT</td><td width='9%'>SUN</td></tr><tr><td width='8%'>AM</td><td width='8%'></td>"+
                            "<td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td></tr><tr><td width='8%'>PM</td><td width='8%'></td>"+
                            "<td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td></tr><tr><td width='8%'>EVE</td><td width='8%'></td>"+
                            "<td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td><td width='9%'></td></tr>"
                             System.out.println(count);
                             printWriter.println("</table>");
                             printWriter.println("</body></html>");
                             printWriter.close();
                             prepared.close();
                             JDialog reportDialog=new JDialog(frame);
                             reportDialog.setSize(800,600);
                             JEditorPane editorPane=new JEditorPane(fc.getSelectedFile().toURL());
                             editorPane.setContentType("text/html; charset=UTF-8");
                             reportDialog.getContentPane().add(editorPane);
                             reportDialog.setVisible(true);
                        catch (IOException exception)
                             exception.printStackTrace();
         This code finds data from a database(this works as it also prints a report). Here is the extraxt of my get/set method which is located in a "context" class.
    public void setReportIncomeTotal(double total)
              this.total=total;
         public double getReportIncomeTotal()
              return total;
         }I'd be grateful for any help.

    but when I try to use it again it displays 0.0This seems to mean that either the value has been reset or you are calling the method on another (new) ReportListener.
    It's hard to say, as you didn't provide us with the code sample that illustrate the corresponding scenario (did you?.)
    Note that I didn't get into details, but I just noticed that your actionPerformed method first print weekly report, and then get the money total. (Shouldn't it be the opposite order?)

  • 'BuilHeader not bound' error for custom field added by AET

    Hi,
    We created a Custom field through AET in IC Web UI Screen
    The field is in the Accont Identification screen
    But the field is showing 'Buiheader nto bound error' on loading of the screen.
    We generated the GETTER and the SETTER Methods for the corresponding field in the context node CONTACT PERSONS of the ICCMP_BP_SEARCH Component.
    While Debugging its seen that the
        DATA: current TYPE REF TO if_bol_bo_property_access.
    if iterator is bound.
          current = iterator->get_current( ).
        else.
          current = collection_wrapper->get_current( ).
        endif.
    current  is not getting populated and thats reason why its giving the 'Buiheader not bound error'
    Any suggestions on this will be highly appreciated.
    Regards,
    Sijo
    Edited by: sijokjohn85 on Oct 21, 2009 3:01 PM

    Hi Masood,
    I checked the method create_contactpersons but I couldnt find anything unusual there.
    The code below is present in the  CREATE_CONTACTPERSONS Mehtod of the context class
    model = owner->create_model(
            class_name     = 'ZL_CRMCMP_B_BUPASEARCHB2B_CN01'
            model_id       = 'ContactPersons' ). "#EC NOTEXT
        ContactPersons ?= model.
        CLEAR model.
    * bind to custom controller
      owner->do_context_node_binding(
               iv_controller_type = CL_BSP_WD_CONTROLLER=>CO_TYPE_CUSTOM
               iv_name =
               'ICCMP_BP_SEARCH/CuCoSearch' "#EC NOTEXT
               iv_target_node_name = 'CONTACTPERSONS'
               iv_node_2_bind = CONTACTPERSONS ).
    Any suggestions like how to fix this issue.
    Regards,
    Sijo

  • Data not saved in the table (for the field created through AET)

    Hi,
    I have created few fields using AET for a transaction type.
    The fields are created successfully and we are able to add them in my custom config.
    I followed step by step the following link The New AET table Extension Feature of Ehp1- Creating your own components
    However the values of these fields are not stored in the ZTable.
    I had  defined  Form view ( 1:1 cardinality)  within the wizard itself.
    Help!!!
    Regards
    Omar BB

    Hi,
    Check whether your ZRelation Depenedent object entity is getting filled or not.....after input some values.....
    Regards,
    Sumeet

  • Setter is not always called for a h:inputText

    It is really very strange beahvioure in a JSF componenet <h:inputText ..../>.
    Sometimes the entered value is mapped to its corresponding field in the bean (value="#{mybean.someproperty}") and sometime it negelects the user data and keep the value is "" ? even if the user entered data to that text box ?
    There is no validation for that component.
    Any idea or help is greatly appreciated

    Thanks a lot BalusC for offering continous help;
    Actaully I found the probelm !
    I have 20 tables in a JSF page, each table represents a single Service.
    so I have Service1,Service2,......Service20
    <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="eBasicInfoTB">                                   
                                       <tr class="cnt_tabl_bg">
                                            <td colspan="4" class="cnt_title_bg">
                                                 <div align="left">
                                                 <h:selectBooleanCheckbox id="service1" binding="#{approvalManagementBean.selectBooleanService1}"></h:selectBooleanCheckbox>
                                                 Service #1</div>
                                            </td>
                                       </tr>
                                       <tr class="cnt_tabl_bg">
                                            <td width="25%" class="td_alr">Service Date</td>
                                            <td width="24%">
                                                 <table    border="0" cellspacing="0" cellpadding="0" class="ClaTB">
                                                      <tr>
                                                           <td width="100%"><h:outputText id="service1_date" value="#{approvalManagementBean.service1.serviceDateStr}" styleClass="fieldNormalClassDBlue"></h:outputText></td>
                                                      </tr>
                                                 </table>
                                            </td>
                                            <td width="25%" class="td_alr">Service Code</td>
                                            <td width="26%"><h:outputText id="service1_code" value="#{approvalManagementBean.service1.serviceCode}" styleClass="fieldNormalClassDBlue"></h:outputText>
                                            </td>
                                       </tr>
                                       <tr class="cnt_tabl_bg">
                                            <td class="td_alr">Service Description</td>
                                            <td colspan="3"><h:outputText id="service1_desc" value="#{approvalManagementBean.service1.serviceDesc}" styleClass="fieldNormalClassDBlue"></h:outputText>
                                            </td>
                                       </tr>
                                       <tr class="cnt_tabl_bg">
                                            <td class="td_alr">Unit Price</td>
                                            <td><h:outputText id="service1_unitPrice" value="#{approvalManagementBean.service1.unitPrice}" styleClass="fieldNormalClassDBlue"></h:outputText>
                                            </td>
                                            <td class="td_alr"> Unit Type</td>
                                            <td>
                                                 <h:outputText id="service1_unitType" value="#{approvalManagementBean.service1.unitType}" styleClass="fieldNormalClassDBlue"></h:outputText>                                             
                                            </td>
                                       </tr>
                                       <tr class="cnt_tabl_bg">
                                            <td class="td_alr">Quantity</td>
                                            <td><h:outputText id="service1_reqQty" value="#{approvalManagementBean.service1.reqQuantity}" styleClass="fieldNormalClassDBlue"></h:outputText></td>
                                            <td class="td_alr"> Requested Cost</td>
                                            <td><h:outputText id="service1_reqCost" value="#{approvalManagementBean.service1.reqCost}" styleClass="fieldNormalClassDBlue"></h:outputText></td>
                                       </tr>
                                       <tr class="cnt_tabl_bg">
                                            <td class="td_alr">Provider Service Comments</td>
                                            <td colspan="3"><h:outputText id="service1_provComments" value="#{approvalManagementBean.service1.provComments}" styleClass="fieldNormalClassDBlue"></h:outputText></td>
                                       </tr>
                                  </table>The field that had the bug was the field Requested Cost
    value="#{approvalManagementBean.service1.reqCost}"I found that Service No19 aslo has
    value="#{approvalManagementBean.service1.reqCost}"which was overrides the first value if it left empty :)
    Thanks again our Expert

  • Get/set methods

    I've been programming in java for a while now, but just recently i started wondering about something. Doesn't get/set methods that contain no other code defeat the point of encapsulation? i.e
    public void getXxx() {
    return xxx;
    But now to the important question. Does the javac compiler inline get/set methods and if yes, how does it work around the private access to the data members?

    yes you are right. first all variables should be private (there are some cases where protected is useful). that being hte case, all access methods do is expose the way this class does its storage. and will break if that changes. for example, a rectange using int for width and height, has corresponding setWidth( int ), getHeight() etc. now the author of the class changes int to a Point. now there should only be get/setPoint and the previous should be removed. this changes the API and breaks code using this class.
    Lets say one keeps the setWidth etc as 'doing no harm', then the question is why does one need this? commonly used in eg
    setWidth( getWidth() + 10 );
    to lenghten the width.
    A better way is to capture this need in the messaging system. therefore have a method:
    widenBy( int w ) {
    width += w;
    notice this way, when changing the private width variable from int, to Point, to Long or any other, does not break code. there is no need to tidy up the access methods either.
    classes that have no behaviour are often created to group variables together and passed along for convenience. These are not strictly classes. Then why not have variables public and save the method calls to access methods. Having access methods does not make it more OO. These 'classes' should be defined as inner classes of the enclosing class.
    I've been programming in java for a while now, but
    just recently i started wondering about something.
    Doesn't get/set methods that contain no other code
    defeat the point of encapsulation? i.e

  • Change the properties of a field dynamically using Getter/Setter methods

    Thanks
    Raj
    Edited by: RajICWeb on Aug 12, 2009 4:31 AM

    Hi Harshit
    Thanks for the reply. Like you suggested, I redefined the get_i_zfield( ) method. But the program is not going through this method.
    FYI.....I created the getter/setter methods manually for my zfield. Plz let me know if I am missing anything. Your help will be greatly appreciated.
    Below is my requirement:
    I need to add an additional column (zfield) to a tree view. The name of the component is BTRESTREE. (there is only one view in this component- this view is having only one context node).
    I tried adding my zfield to the attributes (of the context node) through the wizard by right clicking on the 'Attributes'. But I am not getting the 'Create' Option.
    I posted a thread few days back regarding the same problem. One of the experts (Vikash Krishna) suggested me to add some my zfield by redefining the 'GET_TABLE_LINE_SAMPLE' method. As per his suggestion, I was finally able to see my zfield in
    the configuation tab.
    Now, I have to change the properties of my zfield (make this column editable) in the tree view. For that, the only option that I can see is to change the get_i_zfield( ) method (here we have 'rv_disabled') for my zfield. For this, first I need to add my zfield to the Attributes. To achieve this, I added getter/setter methods manually in the Proxy class.
    Thanks
    Raj

  • Do Get-Set methods break encapsulation?

    Some of my mates, who have been programming more time than me, say tha if you have a private variable which is accesible v�a two public methods "get" and "set" this breaks the encapsulation principle, and is equivalent to do the variable public, as anybody can read or modigy thge variable.
    I disagree, I think that two public get set methods still hide the implementation, you can acces directly to the variable, and so don't break the encapsulation principle.
    Can anybody tell me if I or them are right?

    As everybody else in the thread has indicated, accessors do not
    necessarily break encapsulation. However, I do not think the situation is as
    cut and dried as everybody seems to be making out.
    Accessors (by definition?) provide a mechanism to safely modify the member data of an object. Generally accessors match 1:1 the member data of an object (at least initially). By looking at accessors it is generally possible to make some good guesses about what member data an object contains. Which is a Bad Thing(TM). Of course, over time, accessors may reflect underlying implementation less and less accurately (which is when they become useful).
    Many years ago when I started OO programming, most "accepted" wisdom was that methods should represent object behaviour. For this reason, accessors were generally deemed to be a bad thing, and led to poorly encapsulated objects (since they do not really model behaviour; if you fill your car's petrol tank with petrol (gas? :>), "car.fillTank()" is preferred to
    "car.setCurrentTankVolume(car.getMaxTankCapacity())" in this mindset.
    The first defines object behaviour, and is safe, the second uses accessors to perform the same task (and is also pretty safe, but far less expressive).
    Generally I'd avoid accessors if only on the argument of them making code less clear and self-documenting, but that's a personal viewpoint.
    Another way to look at it is that accessors as most people view them are implemented after the member data has been defined; I prefer to break my object behaviour down first, define methods, and then define member data as needed to support the behaviour my object will exhibit.
    I certainly use accessors; a bank balance object is highly likely to have a "getBalance()" method. It's less likely to have a "setBalance()" object (very few people ever go into a bank and "set their balance". They always "make deposits" or "make withdrawals". They do, however, often "get their balance"). But my member data is derived from the object behaviour (including these "accessors") rather than vice versa. Are these "accessors" still "accessors"? A "setBalance()" method might be useful if the balance object is stored in a database so the database layer can populate it - but this is a design decision that should be taken in a measured way rather than "I have a balance member, let's add accessors".
    My guess is you would say "yes", whereas your friends would say "no"!

  • Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Plug your phone into the wall charger for at least 30 minutes...make sure you have a sim card in the phone...then:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.
    Make sure you have no anti-virus software running or any firewalls...turn all of that stuff off.

  • Set methods aren't called

    For some of my managed beans, the set methods are not being called for the properties. Instead, it appears that the get methods are being called, and it modifies the reference in order to modify the stored property. I am using Facelets 1.1.12, MyFaces 1.1.4, and tomcat 5.5.17 (the one bundled with netbeans). The bean is a Spring managed being, which JSF accesses through Spring's DelegatingVariableResolver.

    I have a Java object which has a field which references another object. On my jsf page, I have:
    <h:inputText value="#{myBean.innerObj.val}" />When the form is submitted, the setVal method in innerObj is called, but the setInnerObj method in myBean is not called. Instead, it calls getInnerObj and probably uses the reference to modify the object.

  • Exception message, failed to get value, could not load managed metadata, invalid field name

    Hi, i have created some site collection columns with managed metdata and taxonomy term sets. I have then created some site content types of those site columns. Some of them function properly and some don't.
    When i have created or uploaded a document to the document library i start to "tag" the document by first choosing witch conent type i want too use, but when it comes to save the document it renders an error message(its not the full content
    of the message):
    "exception message, failed to get value, could not load managed metadata, invalid field name"
    I have created some other site content types before and with the same site columns and they do not generate a error message. Is there a solution for my dilemma?

    try these links:
    https://prashobjp.wordpress.com/2014/02/14/failed-to-get-value-of-the-column-name-column-from-the-managed-metadata-field-type-control-see-details-in-log-exception-message-invalid-field-name-guid-site-url/
    http://www.sharepointconfig.com/2011/03/issues-provisioning-sharepoint-2010-managed-metadata-fields/
    http://blog.goobol.com/category/sharepoint/sharepoint-issue-troubleshooting/
    http://www.instantquick.com/index.php/correctly-provisioning-managed-metadata-columns?c=elumenotion-blog-archive/random-whatnot
    https://pholpar.wordpress.com/2010/03/03/taxonomy-issues/
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • I keep getting a can not get mail message yet I'm getting mail

    I Keep getting message "can not get mail" but im getting mail?

    Hi Mel82384,
    Do you have multiple email accounts on your iPhone? It is possible that one (or more) of them are functioning correctly and others are not. I would suggest that you troubleshoot using the steps in this article - 
    iOS: Troubleshooting Mail
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Setting currency and measurement unit for a field in an ALV report

    Plz give sample code to set currency and measurement unit for a field in an ALV report

    dear friend
    i am seanding you
    the display form
    if you need select form
    and process form also pls keep in touch.
    if help full rewards are expecting.
    yours
    vivek
    FORM build_field_catalog .
      DATA: w_dthigh(10).
      CLEAR fcat.
      fcat-fieldname = 'VBELN'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'COMMERCIAL INVOICE'.
      fcat-seltext_m = 'Commercial Invoice'.
      fcat-seltext_l = 'COMMERCIAL INVOICE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      fcat-hotspot = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'EXNUM'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'EXCISE INVOICE'.
      fcat-seltext_m = 'Excise Invoice'.
      fcat-seltext_l = 'EXCISE INVOICE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-hotspot = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'EXDAT'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'EXCISE DATE'.
      fcat-seltext_m = 'Excise Date'.
      fcat-seltext_l = 'EXCISE DATE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'D'.
      fcat-datatype = 'DATS'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'NAME1'.
      fcat-outputlen = 30.
      fcat-seltext_s = 'CUSTOMER'.
      fcat-seltext_m = 'Customer'.
      fcat-seltext_l = 'CUSTOMER'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'ZZPD'.
      fcat-outputlen = 15.
      fcat-seltext_s = 'COUNTRY'.
      fcat-seltext_m = 'COUNTRY'.
      fcat-seltext_l = 'COUNTRY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'WERKS'.
      fcat-outputlen = 4.
      fcat-seltext_s = 'PLANT'.
      fcat-seltext_m = 'Plant'.
      fcat-seltext_l = 'PLANT'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'ARKTX'.
      fcat-outputlen = 40.
      fcat-seltext_s = 'MATERIAL DESCRIPTION'.
      fcat-seltext_m = 'Material Description'.
      fcat-seltext_l = 'MATERIAL DESCRIPTION'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'FKART'.
      fcat-outputlen = 4.
      fcat-seltext_s = 'Billing type'.
      fcat-seltext_m = 'Billing type'.
      fcat-seltext_l = 'Billing type'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'INCO1'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'INCO TERMS'.
      fcat-seltext_m = 'INCO TERMS'.
      fcat-seltext_l = 'INCO TERMS'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'INCO2'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'INCO TERMS DES'.
      fcat-seltext_m = 'INCO TERMS DES'.
      fcat-seltext_l = 'INCO TERMS DES'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
    CLEAR fcat.
    fcat-fieldname = 'FKIMG'.
    fcat-outputlen = 14.
    fcat-seltext_s = 'QUANTITY'.
    fcat-seltext_m = 'Quantity'.
    fcat-seltext_l = 'QUANTITY'.
    fcat-ddictxt = 'M'.
    fcat-inttype = 'P'.
    fcat-datatype = 'QUAN'.
    APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'FKLMG'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'QUANTITY'.
      fcat-seltext_m = 'QUANTITY'.
      fcat-seltext_l = 'QUANTITY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'QUAN'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'MEINS'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'UNIT'.
      fcat-seltext_m = 'UNIT'.
      fcat-seltext_l = 'UNIT'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'KBETR'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'RATE'.
      fcat-seltext_m = 'Rate'.
      fcat-seltext_l = 'RATE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'NSR'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'Exmill'.
      fcat-seltext_m = 'Exmill'.
      fcat-seltext_l = 'Exmill'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'KURSK'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'EXCHANGE RATE'.
      fcat-seltext_m = 'Exchange Rate'.
      fcat-seltext_l = 'Exchange Rate'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'WAERK'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'CURRENCY'.
      fcat-seltext_m = 'Currency'.
      fcat-seltext_l = 'CURRENCY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CUKY'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'LCURR1'.
      fcat-outputlen = 14.
      fcat-seltext_s = 'GROSS AMT'.
      fcat-seltext_m = 'Gross Amt'.
      fcat-seltext_l = 'GROSS AMT'.
      fcat-ddictxt = 'L'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
    fcat-do_sum = 'X'.
      APPEND fcat.
    ================================= *****************
      fheader-typ = 'H'.
      SELECT SINGLE butxt
        FROM t001
        INTO fheader-info
       WHERE bukrs EQ '1000'.
      APPEND fheader.
      CLEAR fheader.
      fheader-typ = 'H'.
      fheader-info = 'Daily Shipments For Exp'.
      APPEND fheader.
      CLEAR fheader.
    Plant
      SORT s_werks BY low.
      READ TABLE s_werks INDEX 1.
      fheader-typ = 'S'.
      WRITE s_werks-low TO fheader-key.
      SORT s_werks BY high DESCENDING.
      READ TABLE s_werks INDEX 1.
      IF s_werks-high NE space.
        CONCATENATE fheader-key 'TO' s_werks-high INTO fheader-info
                                SEPARATED BY space.
      ELSE.
        WRITE fheader-key TO fheader-info.
      ENDIF.
      CLEAR fheader-key.
      fheader-key = 'PLANT : '.
      APPEND fheader.
      CLEAR fheader.
    Billing Typ
    SORT S_FKART BY LOW.
    READ TABLE S_FKART INDEX 1.
    FHEADER-TYP = 'S'.
    WRITE S_FKART-LOW TO FHEADER-KEY.
    SORT S_FKART BY HIGH DESCENDING.
    READ TABLE S_FKART INDEX 1.
    IF S_FKART-HIGH NE SPACE.
    CONCATENATE FHEADER-KEY 'TO' S_FKART-HIGH INTO FHEADER-INFO
                             SEPARATED BY SPACE.
    ELSE.
       WRITE FHEADER-KEY TO FHEADER-INFO.
    ENDIF.
    CLEAR FHEADER-KEY.
    FHEADER-KEY = 'DOCUMENT TYPE : '.
    APPEND FHEADER.
    CLEAR FHEADER.
    Date...
      fheader-typ = 'S'.
    FHEADER-KEY = S_FKDAT-LOW.
      WRITE s_fkdat-low  TO fheader-key.
      WRITE s_fkdat-high TO w_dthigh.
      CONCATENATE fheader-key 'TO' w_dthigh INTO fheader-info
                              SEPARATED BY space.
      CLEAR fheader-key.
      fheader-key = 'PERIOD : '.
      APPEND fheader.
      CLEAR fheader.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = fevents[]
        EXCEPTIONS
          list_type_wrong = 1
          OTHERS          = 2.
      READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc = 0.
        fevents-form = 'TOPOFPAGE'.
        MODIFY fevents INDEX sy-tabix.
        CLEAR fevents.
      ENDIF.
      rptname = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
                        EXPORTING
                          i_callback_program                = rptname
                          it_fieldcat                       = fcat[]
                          i_default                         = 'S'
                          it_events                         = fevents[]
                          i_save                            = 'X'
                         TABLES
                           t_outtab                          = it_output[]
                      EXCEPTIONS
                        PROGRAM_ERROR                     = 1
                        OTHERS                            = 2
    ENDFORM.                    " BUILD_FIELD_CATALOG

Maybe you are looking for

  • Display non-english characters

    Hi, How can i display Japanese, Chinese characters in a java application or applet? do i need some special tools? Thanks, eileen

  • Spry content slide show

    Hello i'm not great at dreamweaver, my background is more in print, I'm teaching my self dreamweaver. how do you change the colors of the buttons in spry content slide show?

  • Affter the update i can only airplay on my apple tv

    someone has the same problem ?

  • BES required or not for CUMA ?

    Hi, Does any of you have already deployed Cisco Unified Mobile Communicator on blackberry devices? I have a doubt, cisco's docs states that BlackBerry Enterprise server 4.1.6. must be deployed with MDS, only this version is support?? There is no othe

  • Trouble launching Encore CS4

    Hmmm.... I was using Encore sucessfully for months, no issues.  I closed a properly closed a project.  I went back to edit it and found that Encore won't finish loading.  I tried to open Encore from the programs menu (ie not trying to open an exisiti