Global Object: ActionPerformed method

Hi...
I have created a GUI class and in I've passed in an account object, to the class. Now I was looking to use the actionPerformed method, behind the swing JButton to access the class and display the returned stings from the methods in the Account object.
I can't pass in the object directly into the actionPerformed method, but is there a way to make the object that was passed in GUI a global variable... so the method inside the GUI class can access an object (in this case it happens to be account)
thanx norman

One way is to make the ActionListener an anonymous inner class that calls a method of the enclosing class. That, and let the enclosing class have an instance var of type Account.
public class MyGUI {
  private Account account;
  private JButton button;
  public MyGUI() {
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        button_actionPerformed(e);
  public void setAccount(Account account) {
    this.account = account;
  void button_actionPerformed(ActionEvent e) {
    // do something with account
}

Similar Messages

  • Global object services: Method EXECUTE is not called

    Hi all,
    I implemented a new GOS service and therefore inherited the standard class CL_GOS_SERVICE and redefined the methods CHECK_STATUS and EXECUTE. I also made the entry in table SGOSATTR.
    When I test my new service, the CHECK_STATUS method is called and its ep_status is set to mp_status_active. Everything fine!
    But when I click the appeared menu entry (or service icon) nothing happens. The screen is repainted, nothing more. There is no exception or anything else.
    Does anyone as an idea?
    If you need further information, please let me know.
    Thanks for your help.
    Kind regards,
    Thomas

    Hello Thomas
    Perhaps the answers in thread
    New service in GOS - How to?
    may be helpful.
    Regards
      Uwe

  • Cannot save asset - Object [object global] has no method 'submitForm'

    Hi,
    I am getting following error message on the contributor UI everytime I create / save a flex asset. I am on 11G WCS.
    Object [object global] has no method 'submitForm'
    Anyone know how to fix this?
    thanks!

    It does seem like a Adobe code issue as I do not see any of
    your code in the trace stack.
    In the Adobe ListBase.as the line (1357) of code is commented
    as part of an if block. "if necessary, make the rows that will
    eventually be offscreen, above visible rows" There are a number of
    variables in the line and one or more of them is not defined. Thus
    that leads me to believe a timing problem with updating the
    DataGrid.
    However what code is listening to the event you are
    dispatching? Do you get there?

  • RE: Global Object -- the last word

    Chris,
    You are correct. My apologies for not testing my reply sooner. The
    OLM.RegisterObject method does touch the NameService, but OLM caches
    registrations and therefor OLM.BindObject is a local call. So there is one
    network call, but that's all (unless the cache entries are aged out).
    Andrew,
    After testing all of the proposed solutions, using task.part.apptitle seems
    the easiest one to implement. Subclass from TextNullable and add an
    attribute to hold the reference to LocalCache. Remember, TextNullable can
    not be anchored.
    Caveat, you are relying on a Forte feature which may not be guaranteed to
    work the same way in the future.
    At 01:59 PM 10/17/97 -0500, you wrote:
    Where would the network traffic come in? The object location manager
    is local, and if you assume the cache object is also local (there is
    one on each partition), I don't see where the network hit would be.
    Would you please enlighten me?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Chris Johnson
    BORN Information Services Group
    Forte National Practice
    Direct: 612-404-4409
    Fax: 612-404-4441
    http://www.born.com
    mailto:[email protected]
    From: David Vydra[SMTP:[email protected]]
    Sent: Friday, October 17, 1997 12:42 PM
    To: [email protected]
    Subject: RE: Global Object
    Guy,
    At 11:35 AM 10/17/97 -0500, you wrote:
    Another approach would be to use the partition's object locationmanager
    (task.part.objectLocationMgr) to register the partition's local cachecontainer object (LOCache) under a name based on the
    partition's name. Tasks needing the cache container can use the"bindObject" method to get the reference back.
    I believe this would generate network traffic for each bind, and if
    the
    objects in need of the local service are transient the overhead may be
    considerable.
    ========================================
    David Vydra
    Education Consultant
    Forte Software, Inc.
    [email protected]; phone: (510)986.3593

    Possible problems with using task.part.appTitle.
    1) Isn't appTitle part of the task? If it is, what happens when the
    task goes across a partition boundary? Does the appTitle get serialized
    and deserialized by Forte? As long as the cache itself is anchored this
    reference held in the appTitle is only a proxy. (But a TextNullable
    cannot be anchored.) If the cache is not anchored, won't the entire
    cache get serialized and deserialized at each partition boundary?
    2) If the appTitle goes with the Task when it crosses a partition
    boundary, what happens when some piece of code in the other partition
    attempts to use the cache? If the cache was able to be anchored,
    wouldn't there a network hit at this point? Also, haven't you just lost
    the 'local'ness of the local cache.
    3) What about serialization problems when you enter a partition that
    does not know about the cache object. Won't you get a deserialization
    error when you enter a non-application partition such as the Node
    Manager or Forte's run-time compiler?
    4) Version 3 provides appContext which can be used to hold any Object.
    This should probably only be used for very small objects or anchored
    object that are used infrequently on a different partition. Since
    appTitle cannot be anchored, why would you use it rather than
    appContext (Version 2 is a different story)? AppContext appears to be a
    more generic solution to the global object problem, one that Forte will
    support. Neither AppContext nor appTitle appear to be solutions to a
    local cache problem.
    John G. Bielejeski
    Born Information Services Group (http://www.born.com)
    Forte National Practice
    Voice: (612) 404-4116
    Fax: (612) 404-4440
    mailto:[email protected]
    From: David Vydra[SMTP:[email protected]]
    Sent: Sunday, October 19, 1997 7:04 PM
    To: [email protected]
    Subject: RE: Global Object -- the last word
    Chris,
    You are correct. My apologies for not testing my reply sooner. The
    OLM.RegisterObject method does touch the NameService, but OLM caches
    registrations and therefor OLM.BindObject is a local call. So there is
    one
    network call, but that's all (unless the cache entries are aged out).
    Andrew,
    After testing all of the proposed solutions, using task.part.apptitle
    seems
    the easiest one to implement. Subclass from TextNullable and add an
    attribute to hold the reference to LocalCache. Remember, TextNullable
    can
    not be anchored.
    Caveat, you are relying on a Forte feature which may not be guaranteed
    to
    work the same way in the future.
    At 01:59 PM 10/17/97 -0500, you wrote:
    Where would the network traffic come in? The object locationmanager
    is local, and if you assume the cache object is also local (thereis
    one on each partition), I don't see where the network hit would be.
    Would you please enlighten me?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Chris Johnson
    BORN Information Services Group
    Forte National Practice
    Direct: 612-404-4409
    Fax: 612-404-4441
    http://www.born.com
    mailto:[email protected]
    From: David Vydra[SMTP:[email protected]]
    Sent: Friday, October 17, 1997 12:42 PM
    To: [email protected]
    Subject: RE: Global Object
    Guy,
    At 11:35 AM 10/17/97 -0500, you wrote:
    Another approach would be to use the partition's object locationmanager
    (task.part.objectLocationMgr) to register the partition's local
    cache
    container object (LOCache) under a name based on the
    partition's name. Tasks needing the cache container can use the"bindObject" method to get the reference back.
    I believe this would generate network traffic for each bind, and if
    the
    objects in need of the local service are transient the overhead maybe
    considerable.
    ========================================
    David Vydra
    Education Consultant
    Forte Software, Inc.
    [email protected]; phone: (510)986.3593

  • Global Object Building

    I am using flash MX and looked in the actionscript dictionary
    and it came with that example:
    function Book(name, price){
    this.name = name;
    this.price = price;
    book1 = new Book("Confederacy of Dunces", 19.95);
    book2 = new Book("The Floating Opera", 10.95);
    Now the problem is I want my object to be globaly usable by
    other movieclips
    I tried
    function _global.Book(name, price)
    and it wouldn't accept it
    I tried:
    _global.Book = new function (name, price)
    but obviously it wasn,t an object that it gave...
    So my qustion is how do I make global objects or
    classes

    You're second try was very close. Check F1 reference:
    Learning ActionsScript 2.0 in Flash > Functions and
    Methods > About functions and methods > About types of
    methods and functions > Writing anonymous and callback functions
    ----------[ From F1 reference ]----------
    To write an anonymous function:
    Create a movie clip on the Stage, and then select the clip.
    Open the Property inspector, and type my_mc into the Instance
    Name text box.
    Select Frame 1 of the Timeline, and type the following code
    into the Actions panel:
    var myWidth = function () {
    trace(my_mc._width);
    //later in code you can add
    myWidth();
    Select Control > Test Movie.
    The width of the movie clip is displayed in the Output
    panel.

  • Passing the array into actionPerformed method

    Hi friends! I am new at java. I made a tictactoe game board with GUI and it is designed according to nxn (desired any n value). When I pressed to any button, it should write an X to my board but I could not passed the button's action. My problem is that my actionPerformed method does not accept array button[j]. In the below there is a part of my code :
    for(int j=0;j<button.length;j++)     // adding the buttons
    button[j].addActionListener(this);
    public void actionPerformed(ActonEvent evt)
    // what can I read here for detecting the right button? button length is changable, it is depent on what we desire at first.
    // I tried this code in this area but it does not work:
    // if (evt.getSource()==button[j])
    // button[j].setText("X");
    // normally, it works if I write every button individually like that:
    // button1.addActionListener(this); (same for other buttons)
    // public void actionPerformed (ActionPerformed evt)
    // if (evt.getSource()==button1)
    // button1.setText("X"); (same code for other buttons)
    // but I want to make a generalized board action
    }I will be appreciated with your helps...
    Musty

    Hi musty4284,
    The getSource method of ActionEvent(not ActonEvent) returns an object and the way you're comparing objects is wrong.
    Theorically, you should do something like this :
    public void actionPerformed(ActionEvent evt) {
        JButton b = (JButton) evt.getSource();
        if ( button[j].equals(b) ) {
    }Edit :
    When using a listener for an array of JButton, it is a good idea to give a unique identifier to each button (for example, their index in the array). The JButton class has a setName method not to confuse with the setText method.
    While building your array of JButton, you can do :
    JButton[] button = new JButton[9];
    for (int i = 0; i < 9; i++) {
        button[i] = new JButton();
        button.setName(i);
    While handling the event :public void actionPerformed(ActionEvent evt) {
    JButton b = (JButton) evt.getSource();
    int index = Integer.parseInt(b.getName());
    button[index].setText("X");
    Edited by: Chicon on Oct 4, 2009 11:20 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • More than one entity found for a single-object find method

    Hi everyone...
    I have this error when my webservice is running..I don't know what it means and what would be the best solution..
    <pns:message>More than one entity found for a single-object find method.</pns:message>
    it throws an Exception..
    Thanks!

    = More than one row found in a DB with the "unique" key supplied...
    Your method is returning an object where it should return a collection ?
    Enjoy

  • Need to Hide Objects Default method in Approval Task

    Dear All,
      I have a requirement, where I need to hide the default method that is getting displayed in the approval task of the workflow.
    The employee object and Trip objects default method are getting displayed in the preview of approval task. And same is getting displayed in the universal worklist in the columns of attachments.
      There is an option in univesal worklist configuration where we can remove the attachments for display.
      But to our requirement , only certain objects and attachments should be shown in portal and R/3 of the approval task.We need to restrict the employee object and trip object which is shown in objects and attachments column of the standard descision task.
    Let me have any suggestion on this.
    Thanks in advance.
    regards,
    Sabari Prabhu.

    Hi,
    I took a look into this same issue some time ago, and at least I didn't find a way to restrict only certain attachments for displaying in UWL. If the attachments cannot be hidden, I have tried to avoid using the business objects as much as possible. For example the employee object is many times binded to the task only because you want to display certain attributes in the task description. Then I have just binded the needed attributes into separate container elements. Of course this will not solve all the cases.
    Then other useful options are that you change the default method, and this method is implemented in a way that it either does not display anything, or displays something (maybe just an error message etc.) that makes more sense than the default method that SAP delivers. Or then you can implement for example your own web dynpro application that will be launched when you click the attachment.
    Regards,
    Karri

  • Cs3 bug - global objects and frame labels

    Just found a bug that took me an hour to figure out.
    A strange problem occurred when I had a global object and a
    frame label named the same.
    Example:
    _global.discussion = new Object();
    //lots of functions here
    I was directing the timeline of a movieClip to the frame
    label "discussion". On this frame there were a number of actions
    involving the discussion object. However, flash was treating the
    object as if it didn't exist. All variables / functions residing in
    this object were completely gone. Has anyone seen this problem. If
    not, watch out for it.
    james

    that's coder bug, not a flash bug.

  • Global Object Services (GOS) Attachments Deleted from Maintenance Task List

    We use the Global Object Services (GOS) Attachments function to attach Word and Excel Documents to Maintenance Task Lists (transactions IA02, IA09). Recently we noted that more than 300+ Attachments had been deleted/removed from the GOS list visible via IA03/IA09. We are at a loss for explaining how this occurred- all Attachments appear to have been deleted at once/instantaneously. We can see the underlying tables (SGOSHIST and others) still contain entries, but we do not understand why the Attachments are no longer visible in the GOS list via Maintenance Task Lists, or how the ability to access these via GOS can be restored. This is not occurring with other PM Object Attachments - only Task Lists. Any help or suggestions appreciated.

    Is it possible that there was some authorisation change in a role associated with task lists? That would be consistent with the immediate loss - but only in the task list area. Another thought - has anyone been doing any programming in the Generic Object Services Business Add-Ins (perhaps for another module?) - They might have inadvertently clobbered your use?
    Do you use the GOS notes functionality? Does that still work?

  • Error:Work item 000000001099:Object FLOWITEM method EXECUTE cannot be execu

    Hello experts,
    I have created a Sales order workflow whr after creation sales order will go to 1 person inbox and he will check the SO thoroughly and thn i hv added a user decision step for APPROVED or REJECTED for same person.
    Now after creation of sales order it goin to the person inbox for checkin SO but when he is saving it thn decision screen with button APPROVED or REJCTED is not coming and m getting error :Work item 000000001099: Object FLOWITEM method EXECUTE cannot be executed. and error: Error when processing node '0000000024' (ParForEach index 000000)
    i checked the agent mapping for both step....and thr is no error in agent mappin...in both steps i have mapped same rule with responsibility IDs
    PLz suggest urgently wht can be cause of error.
    Regards
    Nitin

    Hi Nitin,
    I think this seems to be an agent assignment issue.
    To debug this issue go to the workflow log and check if the agents are correctly being picked by the rule or not. Simulate the rule and check for the agents being picked.
    In the workflow log, check the agent for the User Decision step. If there is no agent found then there might be some issue with the data passed to rule.
    Hope this helps!
    Regards,
    Saumya

  • BPM error: exception cx_merge_split occured,object FLOWITEM method EXECUTE

    Hi Guys
    I am working on a interface involving BPM.....
    I am facing this problem while executing the interface...
    I am getting error texts as below:
    exception cx_merge_split occured,
    object FLOWITEM method EXECUTE
    I am trying to fix it....Please provide any iputs on this...
    Thanx in adavance.

    Is your Transformation step designed for multimapping (n:1 or 1:n)?
    If yes the payload seems to be incorrect....did you check the working of your mapping (MM/ IM) using the expected payload structure...
    the transformation step in BPM has been given exception as System Error
    There is one block step before the transformation step...in which exception is not given...?can this be the cause??
    Does it mean...you have a Block step in your BPM and your Transformation Step is placed in it....the Block should have an exception handling branch...have the exception handling logic as per your need....the Block step needs to use Exception Handler...same Handler to be used in the Transformation Step's System Error section.
    Press F7 and check if your BPM is giving any warning message.
    Regards,
    Abhishek.

  • Object CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed

    Hi there,
    We are getting this error in our BPM:
    Object CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed
    while sending a message synchronously. This doesn't happen for all the sync send, but I see sometimes. Why do we see this inconsistency in the sync send step of the BPM?
    Has anyone encountered this problem, and fixed it? Your help is greatly appreciated.
    Thanks a lot.
    Karma

    Hi
    First of all check the mapping i.e transformation step in the BPM (Sync mapping). This you can check from the workflow log. Check all these interface mappings are using correct message type and interfaces
    Have a look into these SAP notes-830803,710445
    Regards
    krishna

  • Difference between Object equals() method and ==

    Hi,
    Any one help me to clarify my confusion.
    stud s=new stud();
    stud s1=new stud();
    System.out.println("Equals======>"+s.equals(s1));
    System.out.println("== --------->"+(s==s1));
    Result:
    Equals ======> false
    == ------------> false
    Can you please explain what is the difference between equals method in Object class and == operator.
    In which situation we use Object equals() method and == operator.
    Regards,
    Saravanan.K

    corlettk wrote:
    I'm not sure, but I suspect that the later Java compilers might actually generate the same byte code for both versions, i.e. I suspect the compiler has gotten smart enough to devine that && other!=null is a no-op and ignore it... Please could could someone who understands bytecode confirm or repudiate my guess?Don't need deep understanding of bytecode
    Without !=null
    C:>javap -v SomeClass
    Compiled from "SomeClass.java"
    class SomeClass extends java.lang.Object
      SourceFile: "SomeClass.java"
      minor version: 0
      major version: 49
      Constant pool:
    const #1 = Method       #4.#15; //  java/lang/Object."<init>":()V
    const #2 = class        #16;    //  SomeClass
    const #3 = Field        #2.#17; //  SomeClass.field:Ljava/lang/Object;
    const #4 = class        #18;    //  java/lang/Object
    const #5 = Asciz        field;
    const #6 = Asciz        Ljava/lang/Object;;
    const #7 = Asciz        <init>;
    const #8 = Asciz        ()V;
    const #9 = Asciz        Code;
    const #10 = Asciz       LineNumberTable;
    const #11 = Asciz       equals;
    const #12 = Asciz       (Ljava/lang/Object;)Z;
    const #13 = Asciz       SourceFile;
    const #14 = Asciz       SomeClass.java;
    const #15 = NameAndType #7:#8;//  "<init>":()V
    const #16 = Asciz       SomeClass;
    const #17 = NameAndType #5:#6;//  field:Ljava/lang/Object;
    const #18 = Asciz       java/lang/Object;
    SomeClass();
      Code:
       Stack=1, Locals=1, Args_size=1
       0:   aload_0
       1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
       4:   return
      LineNumberTable:
       line 1: 0
    public boolean equals(java.lang.Object);
      Code:
       Stack=2, Locals=2, Args_size=2
       0:   aload_1
       1:   instanceof      #2; //class SomeClass
       4:   ifeq    25
       7:   aload_1
       8:   checkcast       #2; //class SomeClass
       11:  getfield        #3; //Field field:Ljava/lang/Object;
       14:  aload_0
       15:  getfield        #3; //Field field:Ljava/lang/Object;
       18:  if_acmpne       25
       21:  iconst_1
       22:  goto    26
       25:  iconst_0
       26:  ireturn
      LineNumberTable:
       line 6: 0
    }With !=null
    C:>javap -v SomeClass
    Compiled from "SomeClass.java"
    class SomeClass extends java.lang.Object
      SourceFile: "SomeClass.java"
      minor version: 0
      major version: 49
      Constant pool:
    const #1 = Method       #4.#15; //  java/lang/Object."<init>":()V
    const #2 = class        #16;    //  SomeClass
    const #3 = Field        #2.#17; //  SomeClass.field:Ljava/lang/Object;
    const #4 = class        #18;    //  java/lang/Object
    const #5 = Asciz        field;
    const #6 = Asciz        Ljava/lang/Object;;
    const #7 = Asciz        <init>;
    const #8 = Asciz        ()V;
    const #9 = Asciz        Code;
    const #10 = Asciz       LineNumberTable;
    const #11 = Asciz       equals;
    const #12 = Asciz       (Ljava/lang/Object;)Z;
    const #13 = Asciz       SourceFile;
    const #14 = Asciz       SomeClass.java;
    const #15 = NameAndType #7:#8;//  "<init>":()V
    const #16 = Asciz       SomeClass;
    const #17 = NameAndType #5:#6;//  field:Ljava/lang/Object;
    const #18 = Asciz       java/lang/Object;
    SomeClass();
      Code:
       Stack=1, Locals=1, Args_size=1
       0:   aload_0
       1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
       4:   return
      LineNumberTable:
       line 1: 0
    public boolean equals(java.lang.Object);
      Code:
       Stack=2, Locals=2, Args_size=2
       0:   aload_1
       1:   instanceof      #2; //class SomeClass
       4:   ifeq    29
       7:   aload_1
       8:   ifnull  29
       11:  aload_1
       12:  checkcast       #2; //class SomeClass
       15:  getfield        #3; //Field field:Ljava/lang/Object;
       18:  aload_0
       19:  getfield        #3; //Field field:Ljava/lang/Object;
       22:  if_acmpne       29
       25:  iconst_1
       26:  goto    30
       29:  iconst_0
       30:  ireturn
      LineNumberTable:
       line 6: 0
    }

  • Global object Services ( GOS ) in WD4A

    Hi Gurus,
    does anybody know if the former Global object Services ( GOS ) are availabel in WD4A?
    Any planning for transforming them to the new UI-technology?
    Best regards
    Andreas

    Even i am looking for a standard web dynpro interface for the same.
    there are no Non Dialog services for Attachments to Business objects.
    Currently i am using my custom code.
    Get the folder ID
      CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
       EXPORTING
      OWNER                       = ' '
         region                      = 'B'
       IMPORTING
         folder_id                   = ls_fold
       EXCEPTIONS
         communication_failure       = 1
         owner_not_exist             = 2
         system_failure              = 3
         x_error                     = 4
         OTHERS                      = 5
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = CS_ATTACH-FILE_CONTENT
      APPEND_TO_TABLE       = ' '
    IMPORTING
       OUTPUT_LENGTH         = LV_SIZE
      TABLES
        BINARY_TAB            = LT_CONTENT
    DESCRIBE TABLE LT_CONTENT LINES LV_LINES.
    LOOP AT LT_CONTENT INTO LS_CONTENT.
    LS_BIN-LINE = LS_CONTENT-LINE.
    APPEND LS_BIN TO LT_BIN.
    ENDLOOP.
    CALL FUNCTION 'SO_LOIO_PHIO_CREATE'
    IMPORTING
       LOIO_OBJECT            = LS_LOIO
       PHIO_OBJECT            = LS_PHIO
    EXCEPTIONS
      KPRO_MODEL_ERROR       = 1
      X_ERROR                = 2
      OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LS_ACCESS-COMP_ID = CS_ATTACH-FILE_NAME.
    LS_ACCESS-COMP_SIZE = LV_SIZE.
    LS_ACCESS-BINARY_FLG = 'X'.
    LS_ACCESS-FIRST_LINE = 1.
    LS_ACCESS-LAST_LINE = LV_LINES.
    APPEND LS_ACCESS TO LT_ACCESS.
    CALL FUNCTION 'SCMS_R3DB_EXPORT'
      EXPORTING
      MANDT                 = SY-MANDT
        CREP_ID               = 'SOFFDB'
       DOC_ID                =  LS_PHIO-OBJID
      PHIO_ID               =
      DOC_PROT              = ' '
      OVERWRITE             = '-'
      CREA_TIME             =
    IMPORTING
      DOC_ID_OUT            =
    TABLES
       ACCESS_INFO           = LT_ACCESS
      CONTENT_TXT           =
       CONTENT_BIN           = LT_BIN
    EXCEPTIONS
      ERROR_EXPORT          = 1
      ERROR_IMPORT          = 2
      ERROR_PARAMETER       = 3
      FORBIDDEN             = 4
      OTHERS                = 5
    SPLIT CS_ATTACH-FILE_NAME AT '.' INTO TABLE LT_FILE_NAME.
    READ TABLE LT_FILE_NAME INTO LS_HD_CHANGE-OBJDES INDEX 1.
    READ TABLE LT_FILE_NAME INTO LS_HD_CHANGE-FILE_EXT INDEX 2.
    LS_HD_CHANGE-OBJLEN = LV_SIZE.
    LS_HD_CHANGE-OBJPRI = '5'.
    ls_hD_CHANGE-extct = 'K'.
    CONCATENATE '&SO_FILENAME=' LS_HD_CHANGE-OBJDES '.'
                LS_HD_CHANGE-FILE_EXT INTO LS_OBJHD.
    APPEND LS_OBJHD TO LT_OBJHD.
    CLEAR LS_OBJHD.
    CONCATENATE '&SO_FORMAT=BIN' LS_OBJHD INTO LS_OBJHD.
    APPEND LS_OBJHD TO LT_OBJHD.
    CONCATENATE '&SO_KProObjectID=' LS_LOIO INTO LS_OBJCONT-LINE.
    APPEND LS_OBJCONT TO LT_OBJCONT.
    CALL FUNCTION 'SO_OBJECT_INSERT'
      EXPORTING
        FOLDER_ID                        = LS_FOLD
      OBJECT_FL_CHANGE                 = ' '
       OBJECT_HD_CHANGE                 = ls_hD_CHANGE
        OBJECT_TYPE                      = 'EXT'
      ORIGINATOR_ID                    = ' '
      OWNER                            = ' '
    IMPORTING
      OBJECT_FL_DISPLAY                =
       OBJECT_HD_DISPLAY                = LS_HD_DISP
       OBJECT_ID                        = LS_OBJECT
      TABLES
        OBJCONT                          = LT_OBJCONT
        OBJHEAD                          = LT_OBJHD
      OBJPARA                          =
      OBJPARB                          =
    EXCEPTIONS
      ACTIVE_USER_NOT_EXIST            = 1
      COMMUNICATION_FAILURE            = 2
      COMPONENT_NOT_AVAILABLE          = 3
      DL_NAME_EXIST                    = 4
      FOLDER_NOT_EXIST                 = 5
      FOLDER_NO_AUTHORIZATION          = 6
      OBJECT_TYPE_NOT_EXIST            = 7
      OPERATION_NO_AUTHORIZATION       = 8
      OWNER_NOT_EXIST                  = 9
      PARAMETER_ERROR                  = 10
      SUBSTITUTE_NOT_ACTIVE            = 11
      SUBSTITUTE_NOT_DEFINED           = 12
      SYSTEM_FAILURE                   = 13
      X_ERROR                          = 14
      OTHERS                           = 15
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LS_OBJ_A-OBJKEY = IM_VBELN.
    LS_OBJ_A-OBJTYPE = '/IRM/GCR'.
    LS_OBJ_B-OBJKEY = LS_FOLD.
    LS_OBJ_B-OBJKEY+17(17) = LS_OBJECT.
    LS_OBJ_B-OBJTYPE = 'MESSAGE'.
    CALL FUNCTION 'BINARY_RELATION_CREATE'
      EXPORTING
        OBJ_ROLEA            = LS_OBJ_A
        OBJ_ROLEB            = LS_OBJ_B
        RELATIONTYPE         = 'ATTA'
      FIRE_EVENTS          = 'X'
    IMPORTING
      BINREL               =
    TABLES
      BINREL_ATTRIB        =
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    Abhi

Maybe you are looking for

  • Badi: ME_PROCESS_PO_CUST Method: IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE

    Hi, in method: IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE of Badi ME_PROCESS_PO_CUST i will get schedule-data and item data. I try this: METHOD IF_EX_ME_PROCESS_PO_CUST~PROCESS_SCHEDULE.   DATA: LS_ITEM TYPE MEPOITEM.   LS_ITEM = IM_ITEM->GET_ITEM( ).

  • BI Content 3.5.x  to 7.0.x Newbie Question

    What is the procedure to migrate BW3.5 installed (active) content to BW7.0 content?  If I have installed BI Content for 3.x (example - Standard InfoCubes for HR), and plan on doing an upgrade to NW2004s, will I have to reinstall the HR standard cubes

  • User exit-Actual day

    Hi all, I need the ABAP code to have the actual day in the query's variable, could you help me with this, 'cause i have no idea for this code and i need the actual day in one column.. Thanks for your help Regards Giovanni

  • Restore single table

    I've accidentally truncated a table for the wrong schema and I need to get the data back. I realize this isn't an easy task with rman, but I'm looking for advice for the best method. I am running Oracle Standard Edition 11.1.0.6.0 on Linux. A cold ba

  • I want to cancel my adobe illustrator subscription

    Hi, I wanto to cancel my adobe illustrator auto renovation