How to redefine GOS toolbar function "SEND OBJECT WITH NOTE" for deliveries

Hello Abapers,
for inbound and outbound deliveries (tcodes VL01N, VL02N, VL03N, VL31N, VL32N, VL33N) I have to replace the GOS toolbar function SEND OBJECT WITH NOTE with a redefined function matching the following specifications:
- Title field needs a different content
- Text (note content) should be filled by default, maybe with standard text, but can be overwritten
- All attachments in the attachment list of the object should be included by default or be selectable thru an additional button
Also possible could be an addiitonal toolbar function SEND ATTACHMENTS WITH NOTE as a copy of SEND OBJECT WITH NOTE.
Although I checked the SDN forums for a matching solution, I couldn't find one in tons of GOS threads.
Perhaps someone had solved a similar problem to send obejct with notes from GOS toolbar with several of the object's attachments.
Maybe some GOS classes have to be redefined for that, but this should only be available for deliveries, not for the other BOR types.
I'm waiting for your ideas.
Best regards,
Klaus
Edited by: Klaus Babl on Feb 16, 2012 10:13 AM

No the list of steps done to solve the issue:
1. Copy of class CL_GOS_SRV_SEND_OBJECT to new class /SIE/IS_BSD_GOS_SRV_SEND_ATT.
2. SM30 for table SGOSATTR: New entry for new service ZSO_SENDATT for the new class.
3. Copy of methods ON_SERVICE_SUCCEEDED, CHECK_STATUS, CREATE_ROOT_ITEM and ON_LINK_CREATED from class CL_GOS_SRV_ATTACHMENT_LIST to the new class.
4. New code added to the top of method CHECK_STATUS to show the service for deliveries only:
IF  is_lporb-typeid  NE  'BUS2015'
AND is_lporb-typeid  NE  'LIKP'.  
    ep_status = mp_status_invisible.
    EXIT.
ENDIF.
5. Copy of function group SAPLSGOS_OUTBOX and function module SGOS_SEND_OBJECT_WITH_NOTE to own copies.
6. Before calling cl_bcs=>short_message  there are several steps to do:
- CALL METHOD cl_binary_relation=>read_links
- CALL FUNCTION 'SO_DOCUMENT_READ_API1' for all links
- cl_document_bcs=>create_document for all those documents (we are using types ATTA, NOTE and URL)
- APPEND those created documents to the attachment table and pass it to i_attachments of cl_bcs=>short_message
Solved issue!
COMMENT: This SDN wiki document is outdated and doesn't work any more:
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-SendingGOSattachmentstoanemailaddress
Best regards,
Klaus

Similar Messages

  • How to setup Send Object With Note

    Hi all,
    I was trying to send a message to external email.
    So, for eg, in ME23N, I click on this "Send object with note" to a address which is type U.
    And in SCOT, business object is send as htm file type.
    However, when I receive this mail that i send, there is no url being generated.
    Below is the content of the email:
    If you are not forwarded automatically, use the following link:
    If the link is not to a valid server, log on to the SAP system and check the following object:
    System:     DEV
    Client:     123
    BOR Object Type:     BUS2012
    BOR Object Key:     4000000001
    Which setting am I missing?
    FYI, I'm using ECC 6. Extended notification has been setup.
    Thanks
    Edited by: Jack Wong on Jan 24, 2008 5:07 AM

    Hi Martin,
    Thanks for your reply.
    However, I don't think it's because of the mail server deleted the attachment.
    The htm file is attached to my external mail.
    And the htm file said that it will forward me to the link.
    I'm wondering which setting am I missing.
    Thanks.

  • When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message. I use Exchange 2010 only local users.

    When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message.  I use Exchange 2010 only local users.

    I think there is not native rule for this, but you could try a transport rule which removes all attachments over a very small file size like 1KB.
    http://blogs.technet.com/b/exchange/archive/2009/05/11/3407435.aspx
    CRM Advisor

  • Send Object With a Note

    Hi
    When selecting 'Send object with a note' from a purchase order and clicking on the 'Attributes' tab the Sensitivity is set to '502 Confidential'.  Can you please advise how to change the sensitivity to '501 Standard'?
    Thanks

    Hi all,
    I have found the solution for it.
    Share with you.
    Inside Function Group:CRM_1O_UI
    Include LCRM_1O_UIF17
    for the 'is_disabled' field control the status of the corresponding fcode.
    Update following code:
    {   INSERT         xxxxx                                      1
    if sy-cprog = 'SAPMCIC0'.
        CALL METHOD toolbar_create_process0->add_button
          EXPORTING
            fcode       = lv_fcode
            icon        = lv_icon
            butn_type   = lv_type
            text        = lv_text
            quickinfo   = lv_tip
            is_disabled = 'X'.
    else.
    *}   INSERT
        CALL METHOD toolbar_create_process0->add_button
          EXPORTING
            fcode       = lv_fcode
            icon        = lv_icon
            butn_type   = lv_type
            text        = lv_text
            quickinfo   = lv_tip
            is_disabled = ' '.
    *{   INSERT         xxxxx                                       2
    endif.
    *}   INSERT

  • How to achieve Check point functionality in SSIS with out using check point.

    I got question from
    interview!!! How
    to achieve Check
    point functionality in SSIS with out using check point. If package
    fails it has to be re-run from the point that it failed instead
    of rerunning the entire package.without
    using check point.
    Please
    any one can explain step by step...

    Sorry you have failed your interview question. Good thing you remembered it, thought about it, and ask a question about it. The solution is actually very straightforward.
    Create a table to store the state of your progress. Before each step read the table to find out where left off, then skip each completed step. After each step write to the table which step you have completed. A step can be anything, a task, a component,
    a row, an import file, an export file. You don't have to use a table, it could also be a file, just something you can read and write, and does not disappear when your package stops.
    If you find this difficult to comprehend, think of a checklist of things you do everyday and work from there.

  • Why jvm maintains string pool only for string objects why not for other objects?

    why jvm maintains string pool only for string objects why not for other objects? why there is no pool for other objects? what is the specialty of string?

    rp0428 wrote:
    You might be aware of the fact that String is an immutable object, which means string object once created cannot be manipulated or modified. If we are going for such operation then we will be creating a new string out of that operation.
    It's a JVM design-time decision or rather better memory management. In programming it's quite a common case that we will define string with same values multiple times and having a pool to hold these data will be much efficient. Multiple references from program point/ refer to same object/ value.
    Please refer these links
    What is Java String Pool? | JournalDev
    Why String is Immutable in Java ? | Javalobby
    Sorry but you are spreading FALSE information. Also, that first article is WRONG - just as OP was wrong.
    This is NO SUCH THING as a 'string pool' in Java. There is a CONSTANT pool and that pool can include STRING CONSTANTS.
    It has NOTHING to do with immutability - it has to do with CONSTANTS.
    Just because a string is immutable does NOT mean it is a CONSTANT. And just because two strings have the exact same sequence of characters does NOT mean they use values from the constant pool.
    On the other hand class String offers the .intern() method to ensure that there is only one instance of class String for a certain sequence of characters, and the JVM calls it implicitly for literal strings and compile time string concatination results.
    Chapter 3. Lexical Structure
    In that sense the OPs question is valid, although the OP uses wrong wording.
    And the question is: what makes class Strings special so that it offers interning while other basic types don't.
    I don't know the answer.
    But in my opinion this is because of the hybrid nature of strings.
    In Java we have primitive types (int, float, double...) and Object types (Integer, Float, Double).
    The primitive types are consessons to C developers. Without primitive types you could not write simple equiations or comparisons (a = 2+3; if (a==5) ...). [autoboxing has not been there from the beginning...]
    The String class is different, almost something of both. You create String literals as you do with primitives (String a = "aString") and you can concatinate strings with the '+' operator. Nevertheless each string is an object.
    It should be common knowledge that strings should not be compared with '==' but because of the interning functionality this works surprisingly often.
    Since strings are so easy to create and each string is an object the lack ot the interning functionality would cause heavy memory consumption. Just look at your code how often you use the same string literal within your program.
    The memory problem is less important for other object types. Either because you create less equal objects of them or the benefit of pointing to the same object is less (eg. because the memory foot print of the individual objects is almost the same as the memory footpint of the references to it needed anyway).
    These are my personal thoughts.
    Hope this helps.
    bye
    TPD

  • I want to use my send to one note for MS Office

    I have just come from IE and am trying out Firefox. The send to one note feature is not available and looked at the extensions and enabled all the ones I previously had. I would like to have the send to one note for MS 2010 as I did before. Is that option available?

    I am not sure what you are looking for.<BR><BR>
    Send the current page / link?<BR><BR>
    Send new e-mail?

  • How to read some images from file system with webdynpro for abap?

    Hi,experts,
    I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos from file system.
    How to read some images from file system with webdynpro for abap?
    Thanks a lot!

    Hello Tao,
    The parameter
       icm/HTTP/file_access_<xx>
    may help you to access the pictures without any db-access.
    The following two links may help you to understand the other possibilities as well.
    The threads are covering BSP, but it should be useful for WebDynpro as well.
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    http://help.sap.com/saphelp_sm40/helpdata/de/c4/87153a1a5b4c2de10000000a114084/content.htm
    Best regards
    Christian

  • How to find if Reconciliation Ledger is Active or not for Controlling Area

    Hi,
    How to find if Reconciliation Ledger is Active or not for Controlling Area?
    Thanks

    Hi,
    You can check using OKKP.
    Further TCode KALA is useful in activating/deactivating etc., for the Controlling Area.
    Rgds.

  • How to capture the screen and send it to attachment for that mail

    hi sir ,
         how to capture the screen shot and attach with that e-mail , whether it is possible or not ..
    Regards,
    kumar

    hi sir,
        i am asking about while creating the support message from help menu in sap..
    while creating the support message we have to give component , priority and text also .. after that click the send icon in that support desk message .. while clicking the send button the entire screen ( what  we have entered in that creen na ) i have to capture the screen ( it may be save in local file also )  after that it will attach into attachment and then send it to ...
    Regards,
    kumar

  • How to test whether XI is sending file or not?

    Hi all!
    My scenario is like this:File(File sender Adapter)->XI->(HTTP receiver adapter)J2EE appl.
    I placed the xml file in D:\somedir on my PC. It is picking up the file, after picking it should post the same xml file to my j2ee appl. My servlet receives the xml file and display it on browser. But nothing is displayed. How to test whether XI is sending XML file to J2EE appl or not? All helpful answers are highly appreciated.
    Thanks!

    Hi
    In the file adapter i set processing mode as delete, it is picking up well from my d:\somedir.
    I got success flag in SXMB_MONI and successful status in RWB->message monitoring?
    Why my servlet is not able to display?
    All helpful answers are rewarded.
    public class DisplayRes extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
                        doPost(request,response);
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
         String inputLine;
         StringBuffer sBuf = new StringBuffer();
         while ((inputLine = brin.readLine()) != null)
             sBuf.append(inputLine);
             brin.close();
             PrintWriter out = response.getWriter();
             response.setContentType("text/xml");
             //out.setContentType("text/xml");
             //out.println(sBuf.toString());
             out.write(sBuf.toString());
             out.flush();
    Thanks

  • How can I set information broadcasting (send Workbook with E-mail) in serv.

    FYI: I set a broadcasting schedule to send workbook with e-mail. The pre-calculated server was set already.
    How can I set information broadcasting (send Workbook via E-mail) when I cannot access enterprise portal ?

    Hi,
    Check this thread:
    Work book broadcasting
    Regards
    Pcrao.

  • Sending objects with sockets (and making a mess thereof)

    I'm playing about with client/server interaction and have made a simple program where a server waits for a connection on its given port, accepts a socket connection and every second checks for any input from the client and sends a Point object with co-ordinates to the client
    The client in renders the Point object and every second checks for an updated Point from the server, whenever the left or right arrow keys are used the server is sent the keyevent object to process and change the co-ordinates of the point which will then be sent back
    But it doesn't work, the server thread hangs on the if statement testing for a new object to read. If the code looking for a new object is comented out, the system works perfectly (with the random co-ordinates shown, the Point object itself is held in another class and would be used if the server could read the input)
              try
                   ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream());
                       ObjectInputStream in = new ObjectInputStream(socket.getInputStream());
                       boolean temp = true;
                       while (temp == true)
                        sleep(1000);
                        Object o = in.readObject();
                        if (in.readObject() != null)
                             parent.process.updatePoint((KeyEvent)in.readObject());
                        out.writeObject(new Point((int)(Math.random() * 200), (int)(Math.random() * 200)));
              } Could anyone advise me why it specifically doesn't work? Having said that I realise my design is probably rather inefficient and generally poor and any general tips are welcome to
    Any help appreciated

    I think we are going to need to see the other side of your program. If your code hangs at the if statement:
                        if (in.readObject() != null)
                             parent.process.updatePoint((KeyEvent)in.readObject());
                        }Then i would have to assume the object is never recieved.

  • Send Email with Webdynpro for Abap

    Hi,
    i want to send an email without a attachment after the customer has filled a form.
    The Webdynpro for Abap action must send a notification Email to the
    service department about these new request.
    Has anyone an example how to send an email with Webdynpro for Abap.
    Thanks
    Thomas

    Hi Micky,
    thanks for your help. I trying to used the SO_NEW_DOCUMENT_SEND_API1 in
    a action of my webdynpro for Abap. But I getting the error message that a structure parameter responce an error.
    Here the Code of the Action:
    DATA HEADER TYPE TABLE OF STRING.
    DATA RECEIVERS TYPE STRING.
    RECEIVERS = 'my-mailadress'.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
        DOCUMENT_DATA          = 'nothing'.
      DOCUMENT_TYPE          = 'RAW'
      PUT_IN_OUTBOX             = ' '
      COMMIT_WORK              = ' '
    IMPORTING
      SENT_TO_ALL                 =
      NEW_OBJECT_ID            =
      TABLES
        OBJECT_HEADER           = HEADER.
      OBJECT_CONTENT         =
      CONTENTS_HEX             =
      OBJECT_PARA               =
      OBJECT_PARB               =
        RECEIVERS                    = RECEIVERS.
    EXCEPTIONS
      TOO_MANY_RECEIVERS                     = 1
      DOCUMENT_NOT_SENT                       = 2
      DOCUMENT_TYPE_NOT_EXIST            = 3
      OPERATION_NO_AUTHORIZATION       = 4
      PARAMETER_ERROR                          = 5
      X_ERROR                                            = 6
      ENQUEUE_ERROR                              = 7
      OTHERS                                              = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    What's wrong ?
    Thanks for your help.
    Thomas

  • How to check whether ESBAgentListener listener is started or not for ESBSys

    Hi,
    I am working on Oracle ESB 10g, I want to know how to check whether the ESBAgentListener listener is started or not for particular ESB system. I know we can verify the logs but I want to know is it possible from database or any other sources.
    Thanks in advance.
    Ramesh

    Hi Jogdand ,
    You can get the PO total value change form the PO business Object BUS2201 attribute  POTotalValueIncreased .
    Below code sample decribes how to get the BO attribute values
    1. INCLUDE <swfcntn01>.
    2. Create an instance of the BO by calling the macro and passing the three parameter.
        swf_create_object     <po bor object>     <BUS2201>     <po_guid>
    3. Get the PO attribute by calling macro
      swf_get_property   <po BOR object>   < 'POTotalValueIncreased' >    < lv_pototalvalueincreased>
    OR
    You can query the table BBP_PDHGP and get the original Value of the PO and call the FM BBP_PD_PO_GETDETAIL to get the new Value of the PO. Check the difference and if there is any difference then the PO value is changed.
    I hope this will be very useful.
    Regards,
    Surender

Maybe you are looking for