JList Changing Components

I have a JList created using JModel etc during runtime I want to, depending on certain variables change the item to say a different color or font.
So say if a certain variable is true i want the string at say index[3] to change color.

You'll need to develop a custom ListCellRenderer. There are some good examples in the swing tutorials.
Cheers
DB

Similar Messages

  • BAPI to change components data of planned orders?

    Hi,
    Currently we are using BDC to change components at planned orders.
    Due to big data volume, we have performance issue now. Just checked
    if there is any BAPI to replace BDC. But can't find proper one. Anyone has
    any expeerience about changing components at planned order?
    Thanks.
    B. Regards,
    Nancy

    Hi,
    It's planned order due to biz requirement.
    B. Regards,
    Nancy

  • JList of components you can interact with

    Does anyone know how to populate a JList component with components you can interact with? The renderer you create to render the elements just uses the component paint method to paint the component but you can't click on it etc. e.g. if you have a JList of buttons when you click on the buttons they do not get pressed. Does anyone know how to get a JList of components that respond as if they were on say a JPanel?

    Cross posted: [http://www.java-forums.org/awt-swing/26380-jlist-components-you-can-interact.html]

  • Highly customized JList- change selection logic

    I've written a highly customized JList that lays cells out horizontally, wrapping, and is editable. This is presenting a problem with one piece of default JList behaviour that I need to change or remove and install my own functionality.
    My JList can appear to have a lot of white space potentially at the right and bottom depending on the number of items and preferred sizes, etc. Well, There is no such thing as a click inside a JList that doesn't register and select something. You can click into what appears to be never-never-land and guess what, it selects the nearest cell. I have better logic I'd like to install for when something gets selected, but how do I get at the default behaviour? What do I remove, override, etc?
    Sincerely
    Brian

    It appears the problem here is in BasicListUI.adjustFocusAndSelection(MouseEvent e). I'm not overly familiar with the UI framework that backs all the Swing components, but my intial guess is that you're in trouble if you need to customize some of the behaviour in BasicListUI?
    Your advice is appreciated

  • BAPI for changing components of a item in purchase order

    Hi All,
    I am working in VMS. In that i deal with Assembly purchase orders. There will be only one line item for such type PO's and there can be any number of components for that item.
        Now from the module pool screen i need to update the batch details of the components. I could not find any BAPI which suits my requirement. Which can change the components of a puchase order.
    Thanks in advance.
    Sanjay Gandhi.
    Ta

    Hello,
    I would also like to create purchase order with article components (DB view MDSB, table RESB) and can not find any BAPI or FM with component interface. I'm using BAPI_PO_CREATE1 for creating PO, but ther is no interface for components.
    Thank You in advance for help.
    J.
    EDIT: We are using version 4.6C...
    Edited by: Jana Bittnerova on Jan 23, 2008 9:28 AM

  • Change components and Routing of production order

    Hi, experts, I have such requirement that change quantity of a component or add a component, add a operation into current routing.
    I have look up answer, but can not find the right one.
    BAPI_PRODORD_CHANGE only can change header data.
    BAPI_ALM_ORDER_MAINTAIN seems can not change production orders, it is for service orders.
    CO_XT_ORDER_CHANGE will assign a new  routing number and a new bom number.
    Could somebody give me some FM and BAPI for reference? Thanks in advance.

    Hi Rick,
    Follow the below sample steps for changing component quantity:
    DATA:
        l_methods TYPE bapi_alm_order_method,
        it_boperations TYPE STANDARD TABLE OF  bapi_alm_order_operation_e WITH HEADER LINE,
        it_components TYPE STANDARD TABLE OF bapi_alm_order_component_e WITH HEADER LINE,
        it_components1 TYPE STANDARD TABLE OF bapi_alm_order_component WITH HEADER LINE.
    1. Call BAPI :BAPI_ALM_ORDER_GET_DETAIL , it will give existing order component details.
    CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL'
        EXPORTING
          number        = <production order number>
        TABLES
          et_operations = it_boperations
          et_components = it_components
          return        = it_bapiret2.
    2. Move it_components to components table compatibel to BAPI "BAPI_ALM_ORDER_MAINTAIN".
    LOOP AT it_components.
    MOVE-CORRESPONDING it_components TO it_components1.
    _*"Note here while moving change the component quantity"*_
    APPEND it_components1.
    CLEAR it_components1.
    ENDLOOP.
    3. Build the methods table for change production order :
    it_methods-refnumber = v_refnumber.
                it_methods-objecttype = 'COMPONENT'.
                it_methods-method = 'CHANGE'.
                it_methods-objectkey = v_objectkey.
                APPEND it_methods.
    "Note v_refnumber has 1 to 1 relation ship with the components table, if you want to change First component in it_components1 then you have to enter value '1' here for v_refnumber.
    it_methods-method = 'SAVE'.
            APPEND it_methods.
    4 . Call
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
              TABLES
                it_methods   = it_methods
                it_component = it_components1
                return       = it_bapiret2.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • Changing components to point to a different excel worksheet

    Hi,
    I have a canvas which displays several components using dynamic visibility. I need to duplicate this canvas for 8 other worksheets within excel...all of which will be in the same format as my original.
    I added a tab component to the canvas and copied everything 8 times, and I also copied the original worksheet 8 times.
    I have everything I need now, but all the components are still pointing to the original worksheet.
    Is there a simple way to change the 8 other canvases so each component will point to the proper worksheet. Currently I'm changing each component individually to point to the proper worksheet. This is time consuming due to the number of components that need to be changed.
    Is there an easier way to do this? Can you change all the components on a canvas to point to a different worksheet at one time?
    Thanks!!

    Can you please post the output of these commands?
    Get-clientAccessServer | fl Name,AutoDiscoverServiceInternalUri
    Get-OabVirtualDirectory | fl Server,Name,internalurl,externalurl
    Get-WebServicesVirtualDirectory | fl name,internalurl,externalurl
    And make sure you below ping commands returns your Exchange IP
    Ping mail.yourexternalname.com
    Ping autodiscover.yourexternalname.com.
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.
    So as far as the ping goes - I have split DNS setup, and they both point to the internal local IP of the exchange server (when inside our network, obviously).  Externally mail.externalname.com will point to the public IP.
    Here is the output from the commands - they all look like they should imo and thats why I dont understand why this is still pulling server.local for the server name:
    [PS] C:\Windows\system32>Get-clientAccessServer | fl Name,AutoDiscoverServiceInternalUri
    Name                           : LOCALSERVERHOSTNAME
    AutoDiscoverServiceInternalUri : https://mail.external.com.com/autodiscover/autodiscover.xml
    [PS] C:\Windows\system32>Get-OabVirtualDirectory |  fl Server,Name,internalurl,externalurl
    Server      : LOCALSERVERHOSTNAME
    Name        : OAB (Default Web Site)
    InternalUrl : https://mail.external.com.com/oab
    ExternalUrl : https://mail.external.com/OAB
    [PS] C:\Windows\system32>Get-WebServicesVirtualDirectory | fl name,internalurl,externalurl
    Name        : EWS (Default Web Site)
    InternalUrl : https://mail.external.com/ews/exchange.asmx
    ExternalUrl : https://mail.external.com/EWS/Exchange.asmx

  • JSF dynamically changing components name or id.

    I have a question that I am trying to find an answer.
    I have a dataTable setup and in each column, I have a select table.
    I would like to give these components specific names for each occurrence. For example:
    <h:dataTable id="serverTable" rowClasses="data" border="0" value="#{serverBean.serversData}" var="server">
    <h:selectOneListbox id="testCS" value="#{server.newImageName}" onchange="setDescr(this)" size="1">
    <f:selectItems value="#{server.imageList}" />
    </h:selectOneListbox>
    </h:dataTable>
    I want to do something list change the above line to
    <h:dataTable id="server.serverName" rowClasses="data" border="0" value="#{serverBean.serversData}" var="server">
    How would I do this..
    I would like the output to look like:
    <select id=�brasil�>

    </select>
    <select id=�oreo�>

    </select>
    Instead of
    <select id=�serverTable�>

    </select>
    <select id=�serverTable�>

    </select>
    Thanks
    Eric

    i think the easy way to do this would to use the forceID myfaces component
    http://myfaces.apache.org/tomahawk/forceId.html

  • Problem of dynamically change components in Applet

    Hello, All,
    I need to dynamically change Applet components. For example, remove a button, and replace it with drop down list etc. I use remove and add methods to perform the task. But it does not work. Applet just become blank. And repaint does not help either. Any of you know how to solve the problem. I will really apprecation that.
    [email protected]

    /*    <applet code="AddAndRemove" width="400" height="300"></applet>
    *  use: >appletviewer AddAndRemove.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class AddAndRemove extends JApplet {
      ButtonListener buttonListener = new ButtonListener();
      JButton
        addButton,
        removeButton;
      JPanel centerPanel;
      JLabel statusLabel;
      GridBagConstraints gbc;
      int buttonCount = 0;
      public void init() {
        addButton = new JButton("add");
        removeButton = new JButton("remove");
        addButton.addActionListener(buttonListener);
        removeButton.addActionListener(buttonListener);
        JPanel northPanel = new JPanel();
        northPanel.add(addButton);
        northPanel.add(removeButton);
        centerPanel = new JPanel(new GridBagLayout());
        centerPanel.setBackground(Color.yellow);
        gbc = new GridBagConstraints();
        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
        gbc.gridwidth = gbc.REMAINDER;
        statusLabel = new JLabel(" ", JLabel.CENTER);
        Container cp = getContentPane();
        cp.setLayout(new BorderLayout());
        cp.add(northPanel, "North");
        cp.add(new JScrollPane(centerPanel), "Center");
        cp.add(statusLabel, "South");
      private class ButtonListener implements ActionListener {
        public void actionPerformed(ActionEvent e) {
          JButton button = (JButton)e.getSource();
          if(button == addButton) {
            centerPanel.add(new JButton("Button " + ++buttonCount), gbc);
            // JComponent method
            centerPanel.revalidate();
            Component[] components = centerPanel.getComponents();
            statusLabel.setText("Currently " + components.length + " buttons showing");
          if(button == removeButton) {
            Component[] components = centerPanel.getComponents();
            if(components.length == 0)
              return;
            centerPanel.remove(components[components.length - 1]);
            // container method
            centerPanel.validate();
            // comment this out to see what happens without it
            centerPanel.repaint();
            statusLabel.setText("Currently " + (components.length - 1) + " buttons showing");
      public static void main(String[] args) {
        JFrame f = new JFrame("Add And Remove Applet");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JApplet applet = new AddAndRemove();
        f.getContentPane().add(applet);
        f.setSize(400,300);
        f.setLocation(400,300);
        applet.init();
        applet.start();
        f.setVisible(true);
    }

  • Change components parent container (owner)...

    Hi,  I have two containers which basically have draggable panels inside(components). on a button click I would like the panel(component) to change the parent container.. example..
    container A has three panels(components) inside Panel1,Panel2,and Panel3. Once I click on a button in either one of the panels i want the Panel(component) to move to container B. So it is no longer in A , now it is in B.  How is this possible...
    also.. how do you make a panel dissapear...destroy it.. on button click ??

    Hi,
    to remove panel from conatiner A
    In Flex 3 say A.removechild(panel) Flex 4 A.removeElement(panel)
    to add panel in to Container B
    In Flex 3 say b.addchild(panel) Flex 4 B.addElement(panel)
    to disapper panel say panel.visible = false.
    to appear it again say panel.visible = true

  • Change components parent state

    Let say there are two states in the main application.
    appState1 and appState2.
    Then there is a subcomponent subComp in the application which has two states.
    subCompState1 and subCompState2
    subComp also has a small subComponent called changeMenu
    changeMenu in subCompState1 wants to change subCompState1 to subCompState2 using an internal button.
    This is no posible since the states are no displayed in the interactions panel,  however in the list of posible states appState1 and appState2 do appear.
    What I do to work around this is add a button in the root of subComp, so that it can switch between states.
    My first question is how do you change the state of a parentComponent is posible.
    My second question is: Am I doing something wrong so that I get AppState1 and AppState2 but not the states from other components in the interactions panel.
    thanks
    roberto

    Buenos Dias Roberto,
    You haven't missing anything. Catalyst doesn't support setting the state of distantly-related components. This is basically to keep things simple, although it does seem to be blocking more advanced users.
    Having a component set the state of a distant component is bad programming practice. We think (although we could be wrong) that developers will want to create a more robust architecture when applications get to that level of complexity. Since we haven't figured out how to make that push-button simple, we simply allow you to do it yourself in Flash Builder. Of course, that means you'll have to write some code.
    In the meanwhile, you're stuck with your workaround...
    -Adam

  • Exit for changing Components in ME21N based on the production Order

    Hi,
          I have a scenerio in which, while creating PO in ME21N for subcontracting(Item category 'L') against a PR, the components for the material should come with my own logic i.e. it will have its production order number, with this production number i will get material of production order. Now i will get the BOM of this material and want to fill the next screen with the same BOM components. So please can anybody help me out how to work out for this problem. I looked for user exit and BADI but was not able to find anything, or is there some other way to do it. Help will be highly appreciated.
    Thanks and regards,
    Pankaj

    Hi,
                 Anybody having any idea. Plz help with your ideas if it is possible to do or not.
    regards,
    Pankaj

  • Change Components Subclass

    I have an abstract "GridCell" class that extends JLabel and two subclasses of this class: "EmptyGridCell" and "NonEmptyGridCell" that are the same except for the background and the border colors. Basically, when I click an "EmptyGridCell" it has to become a "NonEmptyGridCell" and vice versa which means the component has to change its color and text. The program runs but the component aspect doesn't change. Could you please tell me what I need to change or add to make the program work, here's the code and thanks in advance:
    /****** example.java ******/
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.border.*;
    import javax.swing.BorderFactory;
    import java.awt.image.BufferedImage;
    public class example extends JFrame implements MouseListener {
         GridCell[][] theGrid = new GridCell[2][2];
    private void initialize() {
         JPanel mainPnl = new JPanel(new GridLayout(2, 2));      
         for (int y=0;y<2;y++){
              for (int x=0;x<2;x++){
                   theGrid[y][x] = new EmptyGridCell(x, y, theGrid);
                   mainPnl.add(theGrid[y][x]);
         add(mainPnl);
    public example() {
    super("Example");
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    initialize();
    setSize(100, 100);
    setResizable(false);
    setVisible(true);
    public static void main(String[] args) {
    example gui = new example();
    public void mouseClicked(MouseEvent event) {
         GridCell src = (GridCell) event.getSource();
         if (src.isEmpty()){
              theGrid[src.getYCoordinate()][src.getXCoordinate()] = new NonEmptyGridCell(src.getXCoordinate(), src.getYCoordinate(), theGrid);
         } else {
              theGrid[src.getYCoordinate()][src.getXCoordinate()] = new EmptyGridCell(src.getXCoordinate(), src.getYCoordinate(), theGrid);
         System.out.println("Clicked");
    public void mouseDragged(MouseEvent event) {
    public void mousePressed(MouseEvent event) {
    public void mouseReleased(MouseEvent event) {
         public void mouseExited(MouseEvent event) {
    public void mouseEntered(MouseEvent event) {
    /****** End of example.java ******/
    /****** GridCell.java ******/
    import javax.swing.*;
    abstract public class GridCell extends JLabel{
         protected int xCoordinate;     
         protected int yCoordinate;
         protected boolean empty;
         public int getXCoordinate(){
              return xCoordinate;
         public int getYCoordinate(){
              return yCoordinate;
         public boolean isEmpty(){
              return empty;
    /****** End of GridCell.java ******/
    /****** EmptyGridCell.java ******/
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.BorderFactory;
    public class EmptyGridCell extends GridCell {
         final Color EMPTYGRID_COLOR = Color.BLACK;
         public EmptyGridCell(int x, int y, GridCell[][] theGrid){
              setText("Empty");
              setOpaque(true);
              xCoordinate = x;
              yCoordinate = y;
              empty = true;
              setBackground(EMPTYGRID_COLOR);
              setBorder(BorderFactory.createMatteBorder(2, 2, 2 ,2, Color.GREEN));
    /****** End of EmptyGridCell.java ******/
    /****** NonEmptyGridCell.java ******/
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.BorderFactory;
    public class NonEmptyGridCell extends GridCell {
         final Color NONEMPTYGRID_COLOR = Color.RED;
         public NonEmptyGridCell(int x, int y, GridCell[][] theGrid){
              setText("NonEmpty");
              setOpaque(true);
              xCoordinate = x;
              yCoordinate = y;
              empty = false;
              setBackground(NONEMPTYGRID_COLOR);
              setBorder(BorderFactory.createMatteBorder(2, 2, 2 ,2, Color.GREEN));
    /****** End of NonEmptyGridCell.java ******/
    Edited by: braddie on Feb 28, 2010 11:37 AM
    Edited by: braddie on Feb 28, 2010 11:38 AM

    Sorry, I'm new to the forum here's the code again:
    /**** example.java ****/
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.border.*;
    import javax.swing.BorderFactory;
    import java.awt.image.BufferedImage;
    public class example extends JFrame implements MouseListener {
         GridCell[][] theGrid = new GridCell[2][2];
        private void initialize() {
             JPanel mainPnl = new JPanel(new GridLayout(2, 2));         
             for (int y=0;y<2;y++){
                  for (int x=0;x<2;x++){
                       theGrid[y][x] = new EmptyGridCell(x, y, theGrid);
                       mainPnl.add(theGrid[y][x]);
             add(mainPnl);
        public example() {
            super("Example");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            initialize();
            setSize(100, 100);
            setResizable(false);
            setVisible(true);
        public static void main(String[] args) {
            example gui = new example();
        public void mouseClicked(MouseEvent event) {
             GridCell src = (GridCell) event.getSource();
             if (src.isEmpty()){
                  theGrid[src.getYCoordinate()][src.getXCoordinate()] = new NonEmptyGridCell(src.getXCoordinate(), src.getYCoordinate(), theGrid);
             } else {
                  theGrid[src.getYCoordinate()][src.getXCoordinate()] = new EmptyGridCell(src.getXCoordinate(), src.getYCoordinate(), theGrid);
             System.out.println("Clicked");
        public void mouseDragged(MouseEvent event) {
        public void mousePressed(MouseEvent event) {
        public void mouseReleased(MouseEvent event) {
         public void mouseExited(MouseEvent event) {
        public void mouseEntered(MouseEvent event) {
    /**** End of example.java ****/
    /**** GridCell.java ****/
    import javax.swing.*;
    abstract public class GridCell extends JLabel{
         protected int xCoordinate;     
         protected int yCoordinate;
         protected boolean empty;
         public int getXCoordinate(){
              return xCoordinate;
         public int getYCoordinate(){
              return yCoordinate;
         public boolean isEmpty(){
              return empty;
    /***** End of GridCell.java ****/
    /**** EmptyGridCell.java ****/
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.BorderFactory;
    public class EmptyGridCell extends GridCell {
         final Color EMPTYGRID_COLOR = Color.BLACK;
         public EmptyGridCell(int x, int y, GridCell[][] theGrid){
              setText("Empty");
              setOpaque(true);
              xCoordinate = x;
              yCoordinate = y;
              empty = true;
              setBackground(EMPTYGRID_COLOR);
              setBorder(BorderFactory.createMatteBorder(2, 2, 2 ,2, Color.GREEN));
    /**** End of EmptyGridCell.java ****/
    /**** NonEmptyGridCell.java ****/
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.BorderFactory;
    public class NonEmptyGridCell extends GridCell {
         final Color NONEMPTYGRID_COLOR = Color.RED;
         public NonEmptyGridCell(int x, int y, GridCell[][] theGrid){
              setText("NonEmpty");
              setOpaque(true);
              xCoordinate = x;
              yCoordinate = y;
              empty = false;
              setBackground(NONEMPTYGRID_COLOR);
              setBorder(BorderFactory.createMatteBorder(2, 2, 2 ,2, Color.GREEN));
    /**** End of NonEmptyGridCell.java ****/Edited by: braddie on Feb 28, 2010 1:10 PM

  • Transition to change components

    Can I do a transition to swap two components? Is this
    feasible?

    Can I do a transition to swap two components? Is this
    feasible?

  • Problem in changing Production order components.

    The problem is happening while changing components in Production order.
    Take a look at the source code.
    data :      IS_ORDER_KEY  TYPE  COXT_ORD_KEY,
    IS_ORDER_COMPONENT_KEY  TYPE  COXT_S_ORD_COMP_KEY,
    IS_REQUIREMENT_QUANTITY TYPE  COXT_S_QUANTITY,
    IS_REQUIREMENT_QUANTITYX  TYPE  COXT_S_QUANTITYX,
    IS_CONFIRMED_QUANTITY TYPE  COXT_S_QUANTITY,
    IS_CONFIRMED_QUANTITYX  TYPE  COXT_S_QUANTITYX,
    I_MATERIAL  TYPE  COXT_MATERIAL,
    I_MATERIALX TYPE  COXT_MATERIALX,
    IS_ORDER_OPERATION_KEY  TYPE  COXT_S_ORD_OPR_KEY,
    IS_ORDER_OPERATION_KEYX TYPE  COXT_S_ORD_OPR_KEYX,
    IS_REQUIREMENT_DATE TYPE  COXT_S_DATE,
    IS_REQUIREMENT_DATEX  TYPE  COXT_S_DATEX,
    IS_STORAGE_LOCATION TYPE  COXT_S_STORAGE_LOCATION,
    IS_STORAGE_LOCATIONX  TYPE  COXT_S_STORAGE_LOCATIONX,
    I_BATCH TYPE  COXT_BATCH,
    I_BATCHX  TYPE  COXT_BATCHX,
    I_MI_CONFIGURATION_OBJECT TYPE  COXT_CONFIG_OBJECT,
    I_MI_CONFIGURATION_OBJECTX  TYPE  COXT_CONFIG_OBJECTX.
    DATA  :wa_resb type resb,
           ES_BAPIRETURN TYPE  COXT_BAPIRETURN,
    E_ERROR_OCCURRED  TYPE  C.
    IS_ORDER_KEY = '000002098003'.
    select single * from resb into wa_resb where aufnr eq IS_ORDER_KEY
       and bwart eq '531'.
    move-corresponding wa_resb to IS_ORDER_COMPONENT_KEY.
    IS_REQUIREMENT_QUANTITY-quantity = '10.23'.
    IS_REQUIREMENT_QUANTITY-uom = 'KG'.
    IS_REQUIREMENT_QUANTITYX-quantity = 'X'.
    IS_REQUIREMENT_QUANTITYx-uom = 'X'.
    *IS_STORAGE_LOCATION-lgort = '1060'.
    *IS_STORAGE_LOCATIONX-lgort = 'X'.
    I_MATERIAL = wa_resb-matnr.
    IS_STORAGE_LOCATION-werks = wa_resb-werks.
    IS_STORAGE_LOCATIONx-werks = 'X'.
    IS_STORAGE_LOCATION-lgort = '1060'.
    IS_STORAGE_LOCATIONX-lgort = 'X'.
    CALL FUNCTION 'CO_XT_COMPONENT_CHANGE'
       EXPORTING
         IS_ORDER_KEY                     = IS_ORDER_KEY
         IS_ORDER_COMPONENT_KEY           = IS_ORDER_COMPONENT_KEY
         IS_REQUIREMENT_QUANTITY          = IS_REQUIREMENT_QUANTITY
         IS_REQUIREMENT_QUANTITYX         = IS_REQUIREMENT_QUANTITYX
         IS_CONFIRMED_QUANTITY            = IS_CONFIRMED_QUANTITY
         IS_CONFIRMED_QUANTITYX           = IS_CONFIRMED_QUANTITYX
         I_MATERIAL                       = I_MATERIAL
         I_MATERIALX                      = I_MATERIALX
    *   IS_ORDER_OPERATION_KEY           = IS_ORDER_OPERATION_KEY
    *   IS_ORDER_OPERATION_KEYX          = IS_ORDER_OPERATION_KEYX
    *   IS_REQUIREMENT_DATE              = IS_REQUIREMENT_DATE
    *   IS_REQUIREMENT_DATEX             = IS_REQUIREMENT_DATEX
         IS_STORAGE_LOCATION              = IS_STORAGE_LOCATION
         IS_STORAGE_LOCATIONX             = IS_STORAGE_LOCATIONX
         I_BATCH                          = I_BATCH
         I_BATCHX                         = I_BATCHX
         I_MI_CONFIGURATION_OBJECT        = I_MI_CONFIGURATION_OBJECT
         I_MI_CONFIGURATION_OBJECTX       = I_MI_CONFIGURATION_OBJECTX
    *   I_BATCH_SEL_CUOBJ                = I_BATCH_SEL_CUOBJ
    *   I_BATCH_SEL_CUOBJX               = I_BATCH_SEL_CUOBJX
    *   I_XFEHL                          = I_XFEHL
    *   I_XFEHLX                         = I_XFEHLX
    *   I_SOBKZ                          = I_SOBKZ
    *   I_SOBKZX                         = I_SOBKZX
    *   I_KDAUF                          = I_KDAUF
    *   I_KDAUFX                         = I_KDAUFX
    *   I_KDPOS                          = I_KDPOS
    *   I_KDPOSX                         = I_KDPOSX
    *   I_PSPEL                          = I_PSPEL
    *   I_PSPELX                         = I_PSPELX
    *   I_KZAUS                          = I_KZAUS
    *   I_KZAUSX                         = I_KZAUSX
    *   I_NAFKZ                          = I_NAFKZ
    *   I_NAFKZX                         = I_NAFKZX
    *   I_NOMAT                          = I_NOMAT
    *   I_NOMATX                         = I_NOMATX
    *   I_NFUML                          = I_NFUML
    *   I_NFUMLX                         = I_NFUMLX
    *   I_NFPKZ                          = I_NFPKZ
    *   I_NFPKZX                         = I_NFPKZX
    *   I_NOMNG                          = I_NOMNG
    *   I_NOMNGX                         = I_NOMNGX
      IMPORTING
        ES_BAPIRETURN                    = ES_BAPIRETURN "initial
        E_ERROR_OCCURRED                 = E_ERROR_OCCURRED"blank not showing 'X'.
    CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT'
      IMPORTING
        E_ORDER_KEY            = IS_ORDER_KEY
        ES_BAPIRETURN          = ES_BAPIRETURN
        E_ERROR_OCCURRED       = E_ERROR_OCCURRED
    * TABLES
    *   ET_ORD_KEY_MAP         = ET_ORD_KEY_MAP
    *   ET_BAPIRETURN          = ET_BAPIRETURN
    write : 'dfdfdf'
    Notable point is that after executing CO_XT_COMPONENT_CHANGE' parameters ES_BAPIRETURN and E_ERROR_OCCURRED are initial.
    This explains that the FM has been executed successfully.
    But still the changes are not done in production order.
    Please let me know where i am mistaken.

    nabheet,
    this is called expilicitly for commit.
    Not in any exit or something.
    Have a look at the source code which i have posted while starting this discussion.
    This below FM is called just after CALL FUNCTION 'CO_XT_COMPONENT_CHANGE'
    Look at the source code in starting of discussion. U will understand when it is executed.
    CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT'
      IMPORTING
        E_ORDER_KEY            = IS_ORDER_KEY
        ES_BAPIRETURN          = ES_BAPIRETURN
        E_ERROR_OCCURRED       = E_ERROR_OCCURRED
    * TABLES
    *   ET_ORD_KEY_MAP         = ET_ORD_KEY_MAP
    *   ET_BAPIRETURN          = ET_BAPIRETURN

Maybe you are looking for

  • Oracle Java connectivity

    Hi, I have installed Oracle 10g on Fedora Core 6. I've been trying to connect to the database via java using jdk1.5(using both drivers, classes12.jar and ojdbc14.jar). But its giving an error Network Adapter Failed. Can any one shed some light on thi

  • JDBC adapter - Oracle

    Hello all, I am trying to build a scenario that uses the JDBC adapter in two communication channels to connect to Oracle databases.  I am having difficulty connecting to the database so I have a few questions: 1.  Does a driver get installed with the

  • Help getting speed back up above 2mb???

    I had my bt vision installed a few months ago and it was working fine til recently. The engineer that installed it said my speed was borderline and it was sitting at 2.4mb. But now it has dropped below 2mb and im getting the v04 message when i try to

  • EJB, Servlet, JSP help

    I have built a small application which creates/maintains company divisions following the MVC design pattern. I now want to move the methods which create,update, add objects out of the controller possibly into the Model servlet. This I hope would allo

  • I know this sounds dumb ? But where is the restore and update button on itunes lol

    dummb ... ha