Send BDC session link via SAP Office

I know I've seen this somewhere.  If you have some code I can use, that would be wonderful.  If you even know a way to generate a SAP Office message with a link in it to process a BDC session, I'll debug it myself to figure it out and repost here.
Basically, I'm doing a Call Transaction in a background process, if it fails, it will write to a BDC session.  I'd like to instantly send a SAP Office message to a group with a link in it to process the specific session that was generated.
Thank you for any suggestions, code snippets, or references to where something like this is currently done in SAP.  I know I've seen it somewhere!

Hi Ivan,
I'm not sure of the exact details but I believe you have to change the processing type of the email action. I think there is a method call that you can select to send a mail to the SAP office mail.
regards,
Jason

Similar Messages

  • Changing sender on sent email via SAP

    I need to change the sender on sent email via sap; i mean, no sy-uname, something like [email protected]
    Regards

    Check the sample code
    *& Report  ZASD
    REPORT  ZASD.
    This example shows how to send
      - a simple text provided in an internal table of text lines
      - and an attached MS word document provided in internal table
      - to some internet email address.
    All activities done via facade CL_BCS!
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: text               TYPE bcsy_text.
    data: binary_content     type solix_tab.
    DATA: document           TYPE REF TO cl_document_bcs.
    DATA: sender             TYPE REF TO cl_sapuser_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    DATA: bcs_exception      type ref to cx_bcs.
    data: sent_to_all        type os_boolean.
    START-OF-SELECTION.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'c:\wagonTrain.gif'
       FILETYPE                      = 'BIN'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            = VIRUS_SCAN_PROFILE
    IMPORTING
      FILELENGTH                    = FILELENGTH
      HEADER                        = HEADER
      TABLES
        data_tab                      = binary_content
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
        PERFORM main.
          FORM main                                                     *
    FORM main.
      try.
        -------- create persistent send request ------------------------
          send_request = cl_bcs=>create_persistent( ).
        -------- create and set document with attachment ---------------
        create document from internal table with text
          APPEND 'Hello world!' TO text.
          document = cl_document_bcs=>create_document(
                          i_type    = 'RAW'
                          i_text    = text
                          i_length  = '12'
                          i_subject = 'test created by BCS_EXAMPLE_2' ).
        add attachment to document
        BCS expects document content here e.g. from document upload
        binary_content = ...
          CALL METHOD document->add_attachment
            EXPORTING  i_attachment_type = 'GIF'
                       i_attachment_subject = 'My attachment'
                       i_att_content_hex    = binary_content.
        add document to send request
          CALL METHOD send_request->set_document( document ).
    <b>*     -
    set sender -
        note: this is necessary only if you want to set the sender
              different from actual user (SY-UNAME). Otherwise sender is
              set automatically with actual user.
          sender = cl_sapuser_bcs=>create( sy-uname ).
          CALL METHOD send_request->set_sender
            EXPORTING i_sender = sender.</b>
        --------- add recipient (e-mail address) -----------------------
        create recipient - please replace e-mail address !!!
          recipient = cl_cam_address_bcs=>create_internet_address(
                                        'YOUR [email protected]' ).
        add recipient with its respective attributes to send request
          CALL METHOD send_request->add_recipient
            EXPORTING
              i_recipient  = recipient
              i_express    = 'X'.
    CALL METHOD send_request->set_send_immediately( 'X' ).
        ---------- send document ---------------------------------------
          CALL METHOD send_request->send(
            exporting
              i_with_error_screen = 'X'
            receiving
              result              = sent_to_all ).
          if sent_to_all = 'X'.
            write text-003.
          endif.
          COMMIT WORK.
    *                     exception handling
    * replace this very rudimentary exception handling
    * with your own one !!!
      catch cx_bcs into bcs_exception.
        write: 'Fehler aufgetreten.'(001).
        write: 'Fehlertyp:'(002), bcs_exception->error_type.
        exit.
      endtry.
    ENDFORM.
    *Check the BOL Part
    Message was edited by: Amandeep  Singh

  • Sending mail to Internet or Sap office users id -required settings

    Hi All,
    Here I am having requirement that I need to send one mail format to email id of the employees. For this I have used FM .
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
            EXPORTING
            document_data = maildata
            document_type = 'RAW'
            put_in_outbox = 'X'
            commit_work = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
            TABLES
       object_header = mailtxt
            object_content = mailtxt
    CONTENTS_HEX =
    OBJECT_PARA =
    OBJECT_PARB =
            receivers = mailrec
    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.
    But its not sending mail. It's giving error  the  ' DOCUMENT_NOT_SENT = 2'  due to connection error(final).
    Please let me know solution. Thanks for reading this and Verymuch thankful if you send any solution.
    Thanks&Regards,
    Prakash.

    Hi Prakash,
    firstly you should check that sending email messages works okay from SAP Office. If you can't send messages from there then you have no chance doing it from a program.
    Then, if you want to send email externally, you need to ensure the SMTP plug-in is properly configured. http://help.sap.com/saphelp_47x200/helpdata/en/af/73563c1e734f0fe10000000a114084/frameset.htm covers this.
    Then, yet again, ensure you can send messages to external recipients <b>and receive their replies</b> in SAP Office before trying to do it from a program.
    There are lots of weblogs and forum messages on sending email from ABAP. I very much prefer using the BCS Interface to do this. Check out one of Thomas's great web logs at /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Cheers
    Graham

  • Error when sending a document link via email

    Hi people,
    I am on SAP EP 6.0 SP15 and below I describe my scenario.
    I have some documents created in some KM folders. Today, I tried to send one of those documents via email to another portal user. If I go through Send To > Send Copy..., that other portal user receives the email with the document attached and he is able to open it... so far so good.
    However, if i try to send the same document but now using a link (Send To > Send Link...), the other guy receives the email, but the link results in a 404 error when clicked.
    I investigated a little and found that the link sent contains "" signals to indicate spaces in the folder names, instead of "%20". I believe this is the issue, because if I change manually the "" signals to "%20", the link works perfectly.
    My question is: is there a way to configure the sistem to use "%20" instead of "+" to represent spaces? Or I will have to remove the spaces from ALL my folder names?
    Thanks
    Fernando Urzedo

    Hi Fernando,
    this seems to be a bug. In the release notes of KMC SPS16 incl. P1, this is not reported as fixed (on the other hand, not every fixed bug gets reported in the release notes).
    You could try to patch your portal first; if you don't can do this at the moment or if the bug persists after patching, please open an OSS message.
    Hope it helps
    Detlev

  • Question: Sending a HTML-Link (via email) for updating data

    Hello,
    I have an simple application which is club member request form.
    Anyone who will get a member in our club can type in some personal data and after pressing the create button he will get a confirmation e-mail.
    Till here everything works fine.
    Now I will put an confirmation link (HTML) in the confirmation e-mail.
    The new member should click on this link and the link should update (and commit) a the column "confirm" in my new_member table depending on an ID.
    Now my problem:
    I have no idea how this link should look like.
    Thanks for help

    Generally, this kind of implementation goes deeper than just what the link looks like. In fact, what the link looks like depends entirely on how you've implemented the confirmation process in your database.
    Although I've never done this specifically, I have given considerable thought to how it would be implemented. I thought that I would have a specific table that would hold pending confirmations. This table would hold some kind identifying data as well as a unique ID that would identify the row, probably something that looked like a GUID.
    Given this table structure there would probably be a trigger or PL/SQL process that took the pending member information and moved it into the members table when the member clicked on a confirmation button on the confirmation page. Therefore, the link that is sent to the user would need to look something like this:
    http://[yourhost.domain:port]/pls/[your DAD]/f?p=&app_id.:[your confirmation page #]&session.::::[your page item name]:[the unique ID for the member]
    The page item name is the item you define on the confirmation page that will hold the confirmation ID and the unique Id comes out of the table for the specific membership you're confirming.
    Again, this is conceptual since I've not done this specifically, but it should give you a place to start.
    Earl

  • How i can send a mail to the user SAP Office mailbox through the spool.

    hi all,
    I have created an report and scheduled for background and it generated a spool now how i can send a mail to the user SAP Office mailbox through that spool.
                          please provide me the sample code if possible.
                   thanks.

    Read the spool number with this...
        SELECT RQIDENT
        INTO (T_TSP01-RQIDENT)
        FROM TSP01
        WHERE RQOWNER EQ SY-UNAME
          AND RQCLIENT EQ SY-MANDT.
        APPEND T_TSP01.
        ENDSELECT.
    Use this FM RSPO_IRETURN_RAW_DATA to read the content of the spool into an Internal Table...
    Finally use this FM SO_OBJECT_SEND to send the mail to an SAP Office user...
    Greetings,
    Blag.

  • Send mail sap office

    hi,
    what difference there is in to send to mail to the sap office or to the outside of the system?
    thk.

    HI,
    You can get a good answer if you would have post the same query in SAP BASIS forum.
    To my knowledge there will a domain difference not more than that.
    Cheers!!
    VENk@

  • Can u send me the link which describes me in about bdc with direct method

    Can u send me the link which describes me in about bdc with direct method with examples in detail

    Hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
    For BDC:
    http://myweb.dal.ca/hchinni/sap/bdc_home.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm
    reward if useful
    regards,
    Anji

  • Link between SAP Ztables and MS-ACCESS database via XI

    Hi All,
    I have two application one is in Ms-Access and other is in SAP . I have to link the SAP ztables to the MS-Access databse, is this be done with via XI. If yes, do i need to write the interface programs while fetching the data from the XI to SAP, or XI will take care of the updation and linking between the SAP and access application , since the cross flow of data between two application will be there .
    Regards
    Gajendra

    hi !!
    It is possible with XI, of course.
    You can use jdbc as sender at the MS-Access end and at R/3 (as reciever) you can have an RFC to put the data into the tables.
    There is no need of interface programming to be done manually.
    you have to be clear at what condition the synchronizations should happen and there is more enhancements that could be done.
    regards,
    nikhil.
    **reward if helpful

  • I'm having a problem sending a word doc via email. I have Mac for Office 08, when I save the document as a .doc or .docx, and send it to someone, they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon. How do I fix?

    I'm having a problem sending a word doc via email. I have Mac for Office 08, and I'm using Mavericks OS. When I save the document as a .doc or .docx, and send it to someone, (doesn't matter if its safari, chrome or firefox or on my yahoo or gmail accounts) they receive it as a blank document. Yet, when I open it on my Mac, it has a "word" icon and I can read it. How do I fix?

    I suggest you post on the Microsoft Mac forums since it's their software you're having issues with.
    http://answers.microsoft.com/en-us/mac

  • User is getting email delivery failure when processing via SAP as it tries to send an email to a user who have left the company

    Hi Experts,
    I need to remove a name on a group list in Outlook as the user is getting email delivery failure when processing via SAP (He sends the invoice for approval and emails get sent to different users for approval.) One of those users has left the company and so the user gets a email delivery failure error.
    How do I remove this user who is no longer with the company?
    The user is saying: When I approve an invoice in SAP it sends an email notification through outlook. One of those users is no longer with the company so it cannot deliver the notification, and in return send a delivery failure (in outlook). I am approving the invoices from my SAP Workplace inbox.
    How do we know what group the email is going to?
    Please let me know if you have seen this issue before. Greatly appreciate your help.
    Thanks,
    Asad

    Hi,
    Please check whether you are using a custom z program for sending emails of approved invoices to users. If yes then either the user email ids are hardcoded in the program else a ztable is maintained for them.

  • How to send a link via email

    how do I send a link via email with my ipa

    LIke this:
    http://i1224.photobucket.com/albums/ee374/Diavonex/1906911d.jpg

  • When I try to send a link via email a lot of incoherent information comes up in the To.... box and not in the body of the email or in the Subject.........

    When I try to send a link via email a lot of incoherent information comes up in the To.... box and not in the body of the email or the Subject.

    Does this happen in Thunderbird? http://www.mozillamessaging.com/en-US/support/
    Or in a web based interface? Then check whether same happens in another browser to see whether that's a browser or website issue.

  • Send mail sap office with notification

    Hi experts,
    I send an email in sap office (Business Workplace sbwp). I want send an automatic notification with this email for warning a user
    How can i do?
    Thanks in advance.

    HI,
    You can get a good answer if you would have post the same query in SAP BASIS forum.
    To my knowledge there will a domain difference not more than that.
    Cheers!!
    VENk@

  • I updated Firefox and now, when I select File, Send Link, a dialog box pops up asking me to establish a new account before I can send the link via email.

    I updated Firefox and now, when I select File, Send Link, a dialog box pops up asking me to establish a new account before I can send the link via email. I use Outlook, so how do I avoid setting up some new account and yet am able to send the link via Outlook?
    I have a feeling it may have something to do with HotMail.com.

    My Error: I found out that it was Mozilla Thunderbird that was causing the problem. I uninstalled it and the problem went away.

Maybe you are looking for

  • X axis labels in Charts

    Hello All, I am using column charts in my Xcelsius Dashboard (Xcelsius 2008 - SP5). The X-axis labels are too lengthy, it is displaying vertically. The requirement is to display the names horizontally and wrap the text. I cannot use label component a

  • How can I disable taskbar transparency in windows 8 RTM?

    how can I disable taskbar transparency in windows 8 RTM?

  • E abnd F fact tables

    I understand that there are 2 fact tables in cube. can u please explain when "E" is created and afterwards whats the role of "F". where the subsequent data goes after transfer to "E". means new data. regards rajesh

  • Hyperlink destinations

    I'm trying to create links from a webpage to specific spots in a pdf. I can get it to work perfectly if I create the hyperlink destinations in the pdf, using the Acrobat software. However, I was told you can create the hyperlink destinations in InDes

  • HT1199 Accessing hidden files on external hard drive

    My external hard drive I've used to store my newspaper back issues for years has suddenly stopped accessing the files on the drive. I can see by the amount of storage that the files are there, but I can no longer see them, nor access them. There's st