Extend a field set

Hi Gurus,
I'm working with new SAP CRM2007 User Interface and I would like to know how I could extend the field set for a block in the configuration. The example is this: if I try to create a new trade promotion and by pressing F2 button on the block of "Trade Promotion: Details" I'm not able to get the field set which are available for the "History" block.
How can I get it?
Points if helpful,
thanks a lot,
A.

User, tell us your jdev version, please!
Please take your time to rephrase your question. It's hard to understand what you really try to do. The better you describe the use case the better is the help we can give.
Timo

Similar Messages

  • Change fields via field.set

    I don't quite know if this is the right approach for the problem, but I hope, anyone can make that clear to me:
    I got two Applications called "app1" and "app2". app2 is a simple swing-application which, to make it simpler, only consists of a JTextField (pseudocode following).
    JTextField vlaue_1 = new JTextField("test");
    ...The application app1 now starts app2 (using Class.forName and Method.invoke). Then, it gets all of app2's fields, in this case value_1, via getDeclaredFields.
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    public class app1 {
         public app1() {
              super();
           public static void main(String[] args) throws Exception {
                Class testClass = Class.forName("app2");
                Method mainMethod = findMainMethod(testClass, "main");
                mainMethod.invoke(null, new Object[] { String[] arguments });
                Field[] fields = testClass.getDeclaredFields();
         private static Method findMainMethod(Class clazz) throws Exception {
              Method[] methods = clazz.getMethods();
              for(int i = 0; i < methods.length; i++){
                   if(methods.getName().equals(name))
                        return methods[i];
              return null;
    Now, app1 knows about the TextField in app2.
    And finally, the question is: Can I change the String in app2's value_1 into something different out of app1? For example, app1 says "Hey TextField, you are no 'test' any longer, you are now a 'foo'" and app2 updates its swing-GUI instantly?
    I already tried a field.set(Obj arg1, Obj arg2) and got only exceptions, but probably because I don't quite know which objects are meant for arg1 and arg2.
    Perhaps someone has some (pseudo-)code to clarify this issue.
    Any help would be nice. Thanks

    Ok, the original code for app2 is the following (the app doesn't make much sense, was only created for testing this issue):
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class TestApp extends JFrame implements ActionListener{
         public static JTextField wert1 = new JTextField("15");
         public static JTextField wert2 = new JTextField("12");
         public static JLabel ergebnis = new JLabel("0");
         public static JButton berechnen = new JButton("Berechnen");
         public TestApp() {
              JFrame frame = new JFrame("TestApp");
              JPanel north = new JPanel();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(north, BorderLayout.NORTH);
              north.add(wert1, BorderLayout.CENTER);
              north.add(wert2, BorderLayout.CENTER);
              frame.getContentPane().add(ergebnis, BorderLayout.CENTER);
              frame.getContentPane().add(berechnen, BorderLayout.SOUTH);
              berechnen.addActionListener(this);
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args) {
              TestApp gui = new TestApp();
         public void actionPerformed(ActionEvent event) {
              double ergebnis_1;
              double wert_1 = Double.parseDouble(wert1.getText());
              double wert_2 = Double.parseDouble(wert2.getText());
                  ergebnis_1 = wert_1 + wert_2;
                  ergebnis.setText(Double.toString(ergebnis_1));
    }The code for app1 follows here:
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    public class JavaTester {
         public JavaTester() {
              super();
         public static void main(String[] args) throws Exception {
              Class testKlasse = Class.forName(args[0]);
              String[] neueArgs = uebergebeArgs(args);
              Method mainMethode = findeMethode(testKlasse, "main");
              mainMethode.invoke(null, new Object[] { neueArgs });
              Field[] felder = testKlasse.getDeclaredFields();
         private static String[] uebergebeArgs(String[] args) {
              String[] rueckgabe = new String[args.length - 1];
              for(int i=1; i<args.length; i++) {
                   rueckgabe[i-1] = args.toLowerCase();
              return rueckgabe;
         private static Method findeMethode(Class klasse, String name) throws Exception {
              Method[] methoden = klasse.getMethods();
              for(int i = 0; i < methoden.length; i++){
                   if(methoden[i].getName().equals(name))
                        return methoden[i];
              return null;
    I'm sorry that I can't print the stacktrace, because I just don't know, how to call the field.set function.
    Is it for e.g. felder[0].set(???, ???)?

  • Reflection and the field.set method

    OK, I've made 2 classes, a ClearParent and ClearChild (which extends ClearParent). I'd like to have a "clear" method on the parent which dynamically sets all the fields to null. I'd like to be able to have any child that inherits from the parent be able to call clear and dynamically have all it's fields set to null.
    Part of the restriction that I'm facing is that the fields are Objects (Integer) but the getter and setter methods take and return types (int). So I can't just loop through the Methods and call the setters with null.
    I'd like to be able to loop through the fields and call set for all the fields with the parent class.
    I'm inserting the code that I have for the parent and child classes at the end. Basically, the problem that I'm seeing is that if I do a
    this.getClass().getName()
    from the parent (when clear is called from the child) it shows me the child name ("ClearChild"). But when I try to do the
    field.set(this, null)
    it tells me this:
    Class ClearParent can not access a member of class
    ClearChild with modifiers "private"
    How come when I get the name it tells me that it's the child but when I pass "this" to the set method, it says that it's the parent?
    Any one know what's going on here? Is there anyway that I can have the parent set all the fields to null?
    Thanks in advance.
    Here's the code:
    ClearParent
    import java.lang.reflect.*;
    public class ClearParent {
        public boolean clear() {
            try {
                System.out.println(this.getClass().getName());
                Field[] fields = this.getClass().getDeclaredFields();
                Field   field;
                for (int i = 0; i < fields.length; i++) {
                    field = fields;
    field.set(this, null);
    } catch (Exception e) {
    e.printStackTrace();
    return true;
    ClearChild
    public class ClearChild extends ClearParent {
    private Float f;
    public ClearChild() {
    super();
    public float getF() {
    if (f == null) {
    return 0;
    return f.floatValue();
    public void setF(float f) {
    this.f = new Float(f);
    public static void main (String[] args) throws Exception {
    ClearChild cc = new ClearChild();
    cc.setF(23);
    cc.clear();
    System.out.println("cc.getF: " + cc.getF());

    It is an instance of ClearChild that is being used so
    that class name is ClearChild. However, the method
    exists in the parent class and thus cannot act upon a
    private field of another class (even if it happens to
    be a subclass).Ahh...makes sense.
    Why don't you just override clear in the child?We were trying to avoid this because we run into problems in the past of people adding fields to the class, but not adding to the clear, and things not being cleared properly.
    I talked it over with the guys here and they have no problem making the fields protected instead of private. If it's protected, then the parent has access to it and my sample code works.
    Thanks for your help KPSeal!
    Jes

  • CRM 2007 UI - Add Field Set to an Assignment Block

    Hello Community,
    We would like to enhance an assignment block with additional field sets in BSP WD Workbench.
    Example:
    - the Assignment Block "Private Date" - BP_Cont/ContactAltOV - within the contact component BP_Cont has several SAP Standard field sets in the BSP WD Workbench; Examples are: NAME1; TEXTHEADER; BUILHEADER ...
    - We need to extend this assignment block with fields of the field set STANDARTADRESS from Component BP_ADDR/StandardAddress
    Does anyone has documentation describing this development or knows how to do this. The WebUI cookbook and RKT material is not really helpful on this.
    Thanks for your help
    Michael
    Edited by: Michael Thiel on Apr 23, 2008 4:42 PM

    Hi,
    this would not work within a few from my understanding.
    What you need to do to get additional fields or set of fields available in the configuration of this view is to enhance the context of thie view in the component workbench.
    For being able to do this you need to enhance the componentn BP_CONT and the view itself.
    - Select the view in the component view so that the view structure appears on the right side.
    - Expand "Context" and then "Context Node"
    - Right-click "Context-Node" and select "Create"
    - Follow the wizard...
       - create a new context node (e.g. zAddress ) of type BuilStandardAddress
       - you don't need attributes or custom controller assignment for this case
       - make it dependent from BuilHeader via relation BuilStandardAddressRel
    After having generated the new node you should see the new field set in configuration.
    If you need F4-helps or specific controls you might have to generate P-/V-getters for the attributes you have in mind.
    Good Luck!
    Peter

  • Importing CIS: Extended Suppliers fields

    We are migrating supplier (and sub-con) data for our client. Sub-contractor requires data in additional fields
    CIS_ENABLED_FLAG
    CIS_VERIFICATION_DATE
    UNIQUE_TAX_REFERENCE_NUM
    NATIONAL_INSURANCE_NUMBER
    COMPANY_REGISTRATION_NUMBER
    VERIFICATION_NUMBER
    SALUTATION
    FIRST_NAME
    SECOND_NAME
    LAST_NAME
    TRADING_NAME
    PARTNERSHIP_UTR
    PARTNERSHIP_NAME
    WORK_REFERENCE
    MATCH_STATUS_FLAG
    These fields are available in AP_SUPPLIERS but not available in supplier open interface table.
    How can we import these fields?
    As of now my plan is to create suppliers and supplier sites by Oracle Supplier open interface. Then write a manual update to update the CIS information.
    Please confirm the correct approach. Is there an API to import the CIS: Extended Suppliers fields
    Edited by: user13656910 on 01-Mar-2011 03:56

    (Do Not Post Product-Related Questions Here)
    (Do Not Post Product-Related Questions Here)
    (Do Not Post Product-Related Questions Here)
    (Do Not Post Product-Related Questions Here)
    (Do Not Post Product-Related Questions Here)
    I think you meant to ask on one of the E-Business Suite forums

  • How to create Field Set in flex

    I need to know best way to do create Field Set as following
    You can see the HTML field set reference from here..
    HTML CODE
    <form>
      <fieldset>
        <legend>Personalia:</legend>
        Name: <input type="text" size="30" /><br />
        Email: <input type="text" size="30" /><br />
        Date of birth: <input type="text" size="10" />
      </fieldset>
    </form>
    So,how can I do it?

    This link should set you off on the right track.
    http://livedocs.adobe.com/flex/3/html/help.html?content=layouts_08.html

  • Reading in Latin Extended-A character set from a text file

    Hello all,
    I am writing a small program that reads in a text file containing special characters (beyond the ASCII char set) and converting it into "regular" characters. For example I would read in a uaccent and replace it with a u.
    Now I realize that Unicode support is built into Java from ground up but it goes only so far, you actually have to have the relevant character set to read it. My code is as follows:
    InputStreamReader inStreamReader = new InputStreamReader(new FileInputStream("input.txt"), "ISO-8859-1");
    BufferedReader bufferedReader = new BufferedReader(inStreamReader);
    String line = null;
    StringBuffer buff = new StringBuffer();
    while((line = bufferedReader.readLine()) != null) {
    char[] charArray = line.toCharArray();
    for(int i = 0; i < charArray.length; i++) {
    int x = (int)charArray;
    switch(x) {
    case 224: // this is agrave .. we need to replace it with a
    buff.append('a');
    break;
    case 230: // this is aelig .. we need to replace it with ae
    buff.append("ae");
    break;
    ///////// and so on
    Since I am reading in as ISO-8859-1, this works up to unicode 255. For the rest of the characters, apparently I need a Latin Extended-A and Latin Extended-B character set. How can I get that installed on my Windows OS machine? I am using jdk 1.4.1 on Windows XP. Any help is appreciated.
    Thanks,
    -vk4t

    vkat wrote:
    Since I am reading in as ISO-8859-1, this works up to unicode 255. For the rest of the characters, apparently I need a Latin Extended-A and Latin Extended-B character set. How can I get that installed on my Windows OS machine? I am using jdk 1.4.1 on Windows XP. Any help is appreciated.If your file has characters outside of 8859-1's range (0 - 255), then it isn't ISO-8859-1 encoded. You need to know what encoding was used to store the file. It sounds like you it actually may be Unicode text, in which case you need to know which encoding (UTF8, UTF16, etc) was used.

  • Do you have any fonts with the Latin Extended Additional character set?

    I would like to know what fonts in the Adobe catalog support the Latin Extended Additional character set and/or display all of the following diacritics & characters:
    Macrons: ā  ī ū
    Dot below: ṭ ḍ ṇ ḷ ṃ
    Dot above: ṅ
    Tilde: ñ
    Thanks,
    MZ

    All those characters seem to be included in the Adobe Latin 4 character set.
    I believe that currently the only families that support the characters you're looking for are:
    Source Sans Pro
    Hypatia Sans Pro
    Trajan Pro 3
    Trajan Sans Pro
    Adobe Text Pro

  • Enhance Component BP_CONT with additional Field Set

    Hi Experts,
    I want to achieve following scenario. In sales account master, when you create a contact out of an account you get view BP_CONT/ContactQuickCreateEF. This view does not offer the the field set STANDARDADDRESS which is the one used for contact individual address.
    Hence, I want to enhance the view BP_CONT/ContactQuickCreateEF with the field set STANDARDADDRESS from view BP_ADDR/StandardAddress.
    Can you give me a solution on how to enhance view BP_CONT/ContactQuickCreateEF with the wizard. I want to make the STANDARDADDRESS fields (from contact master main address) available here. We do not want to use the Work/Relationship address for contacts.
    Any help on this is higly appreaciated, as I am new to WebUI dev.
    thx
    Makroeis

    For button creation, code in DO_PREPARE_OUTPUT of the result IMPL class after redefining. Once done. On-Click event name should be created in the same IMPL class. This method id where you will code the logic.
    Since the netity would be available from the context node RESULT, you will have the collection for all the entities. STRUCT.BP_GUID  will give you the necessary GUID of the concerned contact person.
    Rg,
    Harshit

  • Extended lookup field results in HTML encoded string in list view

    Hello again,
    I have built an extended lookup field to provide picker support. For this I have custom field type and custom field control. Field type looks like this:
    <FieldType>
    <Field Name="TypeName">LookupWithPicker</Field>
    <Field Name="ParentType">Lookup</Field>
    <Field Name="TypeDisplayName">$Resources:FieldDescriptions, LookupWithPickerDisplayName</Field>
    <Field Name="TypeShortDescription">$Resources:FieldDescriptions, LookupWithPickerTypeShortDescription</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="FieldTypeClass">Sharepoint.Fields.Types.LookupWithPicker, $SharePoint.Project.AssemblyFullName$</Field>
    <PropertySchema>
    <Fields>
    <Field Name="LookupList" Type="Text" DisplayName="Lookup List Id" MaxLength="36" DisplaySize="36" Hidden="TRUE" />
    <Field Name="LookupField" Type="Text" DisplayName="Lookup Field Name" MaxLength="36" DisplaySize="36" Hidden="TRUE" />
    <Field Name="LookupContentType" Type="Text" DisplayName="Lookup Content Type Id" MaxLength="255" DisplaySize="255" Hidden="TRUE" />
    </Fields>
    </PropertySchema>
    </FieldType>
    public class LookupWithPicker : SPFieldLookup
    #region Constructors
    public LookupWithPicker(SPFieldCollection fields, string fieldName)
    : base(fields, fieldName)
    public LookupWithPicker(SPFieldCollection fields, string typeName, string displayName)
    : base(fields, typeName, displayName)
    #endregion
    #region Public properties
    public override BaseFieldControl FieldRenderingControl
    get
    LookupWithPickerFieldControl ctrl = new LookupWithPickerFieldControl(this);
    ctrl.FieldName = InternalName;
    return ctrl;
    #endregion
    At this point everything works as expected except for the list view part:
    I wonder why it's HTML encoded? Do I need to provide custom XSL too? I find it a bit confusing when display form renders this field properly without any customization required.

    Hi, 
    Can you try to put the following code under the </PropertySchema>:
    <RenderPattern Name="DisplayPattern">
    <Column HTMLEncode="FALSE" />
    </RenderPattern>
    Please remember to indicate if your question/comment has been answered or is helpful.

  • DATE FIELD SET TO NO UPDATE IN UPDATE RULES

    DATE FIELD SET TO NO UPDATE IN UPDATE RULES :
    hi friends,
    i have a keyfigure(custom) of type date , but while creating the update rule it is automatically set to
    no update and i have no option to change it ,
    could any one suggest me how to handle this..
    thaks,
    raky.

    Hi Rakesh,
    select "source chracteristics" radio button and MAP the date field which you have in your infosource though the color will be gray after selecting the radio button but system will allow you to map that field (I mean do not care about gray color).
    Hope this will help you.
    Suneel

  • FIELD-SET , FIELD-TRANSPORT?

    Hi All,
    what is the use of FIELD-SET and FIELD-TRANSPORT?There is no enough documentation available in HELP..
    Thanks,
    Rakesh.

    they are macros but they are used for ITS.
    Rakesh, kindly avoid double posting
    FIELD-SET , FIELD-TRANSPORT?
    Raja

  • How to remove the mandatory field setting in output control

    Hi everybody,
    While printing a Payment Voucher through F-58 and FBZ5(reprint), there are two output devices, the first one is - printer for forms and second is - payment advice printer.
    In our case we have configured the cheque printing and payment voucher printing seperately. The cheque goes to first printer(kept mandatory field) and the payment voucher goes to second printer. One of our plant does not print the cheque from SAP, they only print the payment voucher because the cheque is manually prepared. How do I avoid the cheque printing. Is there any way out to print only the payment voucher through F-58 and FBZ5
    Please guide me how to tackle it or how to remove the mandatory field setting in the output control screen?
    Regards
    Paul

    Hi
    As of my understanding, there is no relation ship between the Sales Organization and this mandatory partner function.
    Here are few suggestions.
    1. Since Partner functions are defualted and made mandatory in the Partner Determination Procedure so you have to remove this Mandatory option for PE from the Partner Determination Procedure that is AG if using standard one.
    2. If you are using a single partner function than , Copy and create a New partner procedure and a new account group . Where in one you can default PE as mandatory and in another one you make a optional where it can be choosen manually while creating the customer.
    Follow the path to check for entries :
    SPRO > sales & distribution > Basic Function > Partner Determination > set up partner determination > select for customer master > select the partner procedure you are using AG as standard > then partner function in procedure > here maintian the check as required like, Mandatory or No check for Non Mandatory .
    Thanks
    RB

  • Field.set(Object obj, Object value)

    As I parse an XML file (Using SAX XML Reader) I'm also building objects dynamically as I go on parsing. I'm using Field.set() successfully to assign values to String or Integer instance variables, but If one of these objects has an instance variable which is say, a vector. then how can I dynamically add (using addElement(object)) objects to it? Could please someone help?
    // Get the Class object of member
    // Assume member is the current object
    Class memberClass = member.getClass();
    // Dynamically access the instance variable
    memberField = memberClass.getDeclaredField(currentElement);
    // Set the value of the instance variable
    memberField.set(member,newValue);
    Thanks,
    Ahmet

    This is still a problem for me and I am yet to find a solution. I'd like to define the problem once again and hope for a suggestion that might lead to a solution:
    I've got an object called "member" whose instance variables are dynamically being set from a SAX parser ContentHandler modules. In this "member" object all but one instance variables are of type String. With the below logic, I have no problem of setting values for these dynamically;
    // Get the Class object of member
    Class memberClass = member.getClass();
    // Dynamically access the instance variable
    memberField = memberClass.getDeclaredField(currentElement);
    // Set the value of the instance variable, which is parsed value gotten from String s = new String(ch, start, end); in characters method in ContentHandler class
    memberField.set(member,s);
    The problem arises when I want to set the only instance variable in the member class which is of type Vector. My intention is to use xxxx.addElements(someObject) where someObject is already created and initialized. How can I use memberField.set(member,s) when the field is Vector and instead of setting a value I want to use addElements.

  • Field setting HDV to SD DVD

    I experience field problems in scene's where there is a lot of motion on DVD's.
    It's shot in HDV and I export in fcp with compressor to PAL SD DVD, the default field setting in compressor is top field first, because PAL is bottom field first I change this to bottom field first.
    Can anyone tell me if this is correct or should I leave it at top field first and how is this when I want to play this DVD on a NTSC DVD player(wich is actually what is going to happen)
    Thank a lot, Core

    I've followed Bonsai's instructions to create DVDs from HDV footage from this link:
    http://www3.telus.net/bonsai/Welcome.html
    But my current problem is that when I drop my HDV sequence into the DV50 timeline, it doesn't resize and scale at all.
    Here's a photo of my canvas for reference:
    http://i172.photobucket.com/albums/w27/bcpatters/canvas.jpg
    Does anyone know why this is happening and how I can solve it?

Maybe you are looking for