How to add BOR link to SAP Mail document

I would like to use "WF Program Exit" class to add a BOR object to an existing "Send Mail" without a big re-write.
I have the Sales Order # on an Send Mail step and want to add link on this message to open the Sales Order.
Simple snip of code, like SAP_WAPI_ATTACHMENT_ADD_REF? Or is there a class wrapper out there somewhere?
Rick Sample

Rick, I agree 99% of the time. KISS.
But this time, if I could get the Prg Exits working and just create an attachment at WF startup with a link, all I would have to change on 3 diff WFs is add this class into the existing WF startup and bind the Send Mail task with the attachment. Done! Not much retooling for the WFs.
This piece of code I got 99% working. Only problems, I still can't get link in Description area text (must still go to attachments) and when I do click the link, it keeps me on the VA03 search screen. i.e. can't figure out how to SKIP FIRST SCREEN.
If anyone has a clue, please let me know. Will post results. Otherwise, starting code for this issue with SO_NEW_DOCUMENT_ATT_SEND_API1.
Thanks much Rick! Really appreciate another set of eyes...
  l_wiid = me->wi_context->get_workitem_id( ).
  l_workitem_id = l_wiid.
  l_att_header-file_type = 'T'.
  l_att_header-file_name = 'Sales Order.sap'.
  l_att_header-file_extension = 'SAP'.
  l_att_header-language = sy-langu.
remove hard code...
  CONCATENATE 'AUN = ' '0300056134' '; DYNP_OKCODE=/00; DYNP_OKCODE=ENTR'
    INTO l_parameter
    SEPARATED BY space.
  CALL FUNCTION 'SWN_CREATE_SHORTCUT'
    EXPORTING
      i_transaction           = 'VA03'
      i_parameter             = l_parameter
    IMPORTING
      shortcut_string         = l_shortcut_string
    EXCEPTIONS
      inconsistent_parameters = 1
      OTHERS                  = 2.
  IF sy-subrc <> 0.
  ENDIF.
  CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
    EXPORTING
      workitem_id = l_workitem_id
      att_header  = l_att_header
      att_txt     = l_shortcut_string
    IMPORTING
      return_code = l_return_code
      att_id      = l_att_id.

Similar Messages

  • How to add check box in SAP B1 grid controls..

    hi all,
    Anyone know how to add check box in SAP grid control?
    It will be great if you could show me some sample code.
    thanks.
    regards,
    sohch

    Hi Sohch,
    1. First of all you should define the Column in a matrix as it_CHECK_BOX. Like
            oColumns = oMatrix.Columns
            oColumn = oColumns.Add("chk_YesNo", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
            oColumn.TitleObject.Caption = "YesNo"
            oColumn.Width = 60
            oColumn.Editable = True
    2. Bind it with a DBDataSource as defined
            oColumn = oColumns.Item("chk_YesNo")
            oColumn.DataBind.Bind("UDTable", "U_YesNo")
    3. Make Sure that the value that is being put into the Database is either 'Y' or 'N'.
    Hope this Helps
    Rizwan Hafeez
    Team Lead
    SAP Addon Development Section
    Abacus Consulting - Pakistan

  • How to add a link to your message

    Does anyone know how to add a link to a message?

    laptopman,
    As Klaus1 posted, you can also use the Character Palette.
    In the Palette, select View : Glyph > Glyph Catalog. You will find the , among others, there.
    You can copy & paste, or position the cursor where you want the glyph in a document, highlight the glyph, and click on Insert with Font.
    If the Character Palette is not in your Menubar, open System Preferences > International > Input Menu: Checkmark Show input menu in menubar.
    To open the Palette, click on the Flag icon in the Menubar, and select Show Character Palette.
    ali b

  • How to add a link button in system form?

    how to add a link button in system form in the edit text?

    HI
    see the following code
    This creates an item "55" caption, and exittext ("550") and creates linked button "51" linked to "550"
            oItem = otmpform.Items.Add("55", SAPbouiCOM.BoFormItemTypes.it_STATIC)
            With oItem
                .Top = 315 + 30 + 15
                .Left = 12
                .Width = 100
                .Specific.Caption = "Többlet"
            End With
            otmpform.DataSources.UserDataSources.Add("550", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
            oItem = otmpform.Items.Add("550", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            With oItem
                .Top = 315 + 30 + 15
                .Left = 120
                .Width = 100
                .Specific.DataBind.SetBound(True, "", "550")
                .AffectsFormMode = True
                .Description = otmpform.Items.Item("55").Specific.Caption
                .DisplayDesc = True
            End With
            oItem = otmpform.Items.Add("551", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            With oItem
                .Top = 316 + 30 + 15
                .Left = 120 - 14
                .Width = 13
                .LinkTo = "550"
                .Specific.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts
            End With
    Regards,
    J.

  • How to add custom link to shopping cart

    hello,
    can anyone tell me how to add a link to the shopping cart page (rather than using the View cart link on the module_shoppingcartsummary)?
    also, is it possible to customise the module?
    instead of:
    2 item(s), Total: £0.00 View Cart
    i'd like to display:
    <cart image> My Cart 2 item(s)
    thanks and regards,
    Frank

    I am getting pretty frustrated with all the broken links in here. Why can't you guys forward these deprecated links?
    If the only results in my searches for help end in broken links to a decrepit website, then you erode any hint of professionalism here.
    These links are only a few months old and yet youve shut them down without even a thought of who've you have left hanging.
    We pay for this abuse?
    Argh!

  • How to add .js link in custom list form through sharepoint designer 2013

    hi friends
    so far i was adding jquery code to script editor webpart in custom list form.
    but i need to know how to add .js link in custom list form through sharepoint designer 2013
    please help me.

    Hi,
    We can add the "JS Link Property" in the “WebPart” node in the custom list form page through SharePoint designer 2013.
    Here is an example for your reference:
    <JSLink xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">~site/Style Library/js/custom.js</JSLink>
    Noticed that, we should not lose the 'xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm' attribute.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to add drop down in SAP screen module pool

    Hi,
    Can you please advise me on how to add drop down in SAP module pool screen (a drop down with fixed set of values).
    Thanks
    Mohit

    Hi,
    Hope it helpful.
    Refer the Program : rsdemo_dropdown_listbox
    Regards,
    Venkat.

  • How to add a dropdown menu in flash document (.swf, .fla) ??

    How to add a dropdown menu in flash document (.swf, .fla) ??
    as i am developing a website for my semester proj, i need to add some flash contetn in the website..
    here is the link, http://www.mediafire.com/?wnx1jkwkkx9c118
    Check Out..
    the thing is i want a dropdown list/menu in "language selection - tab " (check the html page in above link).. plz help me out..
    Thank You,
    sairam

    For Flash questions check the Flash Forums. 
    http://forums.adobe.com/community/flash
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How to get the link of already archived document

    Dear all,
    How to get the link of already archivied document. for example i have a sales order for which subsequent documents have been archived. now i want to get the link of subsequent document.
    please give some solution
    Thanks in advance
    Thanks,
    Hemachandran.

    Hemachandran,
                The archiving object for sales order is SD_VBAK. If you run the program S3VBAKAU by transaction se38 and search based on the document numbers ( as you mentioned it is the preceeding document numbers to the current document), you will be able to retrieve the information regarding the previous sales orders.
    More information on the sales order archiving object can be found at,
    http://help.sap.com/saphelp_45b/helpdata/en/a9/55c7b690a111d1a5510000e82deaaa/content.htm
    Sojan
    <<text removed by moderator>>
    Edited by: Matt on Nov 16, 2008 5:08 PM - Do not request points

  • How to upload the data to SAP-DMS(Document Management System)

    Dear sir,
    How to upload the data to SAP-DMS (Document Management System) please give me the code for this .ex for (excel format or tab  deliminated) to sap system through BAPI i have to pass.
    regards
    R M Patil

    Hi,
    May be following link may help you.
    /thread/315373 [original link is broken]
    /message/205534#205534 [original link is broken]
    Thanks,
    Sree.

  • [Ai-CS4] How to add an  art board to existing document ?

    hi all,
    can anybody suggest me how to add a new artboard to existing document? I didn't find any ArtBoard Palette in CS4. But in CS5 it is given.
    thanks,
    D.A

    The Artboard panel is new to AiCS5. In CS4, a new artboard can be added by doing either of the two:
    1. Pick the Artboard Tool and click-drag it in the canvas area of the Illustrator document.
    2. Pick the Artboard Tool, click on the 'New Artboard' button in the Control Panel. Then select the desired size from the list of Artboard Presets in the Control Panel and then click in the desired area of the canvas to add a new Artboard.
    Hope this helps.
    Neeraj

  • How to add a link in the masthead in the portal

    Hi,
    Actuallly i want to add a new link for ex-help link or user info etc..in the masthead in theportal,can any one please suggest me how to go about it as iam completely new to E.P and have not done any development ,till now have been dealing with support issues ,so your help will be greatly appreciated.
    Regards
    Pooja

    Hi,
    Follow this link,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d07bf112-1705-2a10-1a9f-d0a705e550fa
    This article will clearly explain how to add a new link in masthead.
    I hope this is helpful for you. You have any doubt regards this ask me, i will help you.
    Regards
    Prakash T

  • How to add button in standard SAP transaction

    Hi All,
    I would like to know how to add a button in the application toolbar of the standard SAP transaction CO01/CO02. Is there a screen exit for this?
    Hope you can help. Thanks
    Regards,
    April

    Check Enhancment CCOWB001. If not then u can search the below list, all of which are called from the T-code.
    CCOWB001            Customer exit for modifying menu entries                    
    COIB0001            Customer Exit for As-Built Assignment Tool                  
    COZF0001            Change purchase req. for externally processed operation     
    COZF0002            Change purchase req. for externally procured component      
    PPCO0001            Application development: PP orders                          
    PPCO0002            Check exit for setting delete mark / deletion indicator     
    PPCO0003            Check exit for order changes from sales order               
    PPCO0004            Sort and processing exit: Mass processing orders            
    PPCO0005            Storage location/backflushing when order is created         
    PPCO0006            Enhancement to specify defaults for fields in order header  
    PPCO0007            Exit when saving production order                           
    PPCO0008            Enhancement in the adding and changing of components        
    PPCO0009            Enhancement in goods movements for prod. process order      
    PPCO0010            Enhancement in make-to-order production - Unit of measure   
    PPCO0012            Production Order: Display/Change Order Header Data          
    PPCO0013            Change priorities of selection crit. for batch determination
    PPCO0015            Additional check for document links from BOMs               
    PPCO0016            Additional check for document links from master data        
    PPCO0017            Additional check for online processing of document links    
    PPCO0018            Check for changes to production order header                
    PPCO0019            Checks for changes to order operations                      
    PPCO0021            Release Control for Automatic Batch Determination           
    PPCO0022            Determination of Production Memo                            
    PPCO0023            Checks Changes to Order Components                          
    STATTEXT            Modification exit for formatting status text lines

  • Rejection Applicant: How to add plain text to the mail E Mail Letter?

    Dear All:
    I'm working with a ECC6 version.
    In transaction PB60, when we do the candidate rejection activity, the E Mail letter generates a mail with empty body text, and an attachment with the letter in PDF format. The letter is OK, but I would like to know how to add some plain text to this E Mail letter. An empty mail is not a good practise.
    I searched across the forums and SAP documentation, but I could not find any clue.
    I would appreciate any help regarding to this matter.
    Best regards
    Jordi

    Here you go !  ( you need to create Text in t-code SO10 for ID = PAML " )
    Two Default texts under  ID = PAML :
    *MAIL-APP-INTERVIEW     *EN     TEXT     PAML     SYSTEM
    MAIL-APPLICANT     EN     TEXT     PAML     SYSTEM
      Personnel Management->Applicant Activities->Mail Connection ->Create standard texts for mail connection
    Create standard texts for mail connection
    In this step you can create the standard texts to be used in mails.
    Example
    u2022     Request for return of applicant file
    u2022     Notification of date of job interview
    Requirements
    u2022     You should have assigned a standard text to the activity.
    u2022     You should also have set the variables which are to be used.
    u2022     Finally, you should also have made the settings for supplying the variable with values.
    Standard settings
    The standard system contains two examples of standard texts. You can use these examples as references to help you create your own standard texts. The standard texts have the following names:
    u2022     MAIL-APPLICANT (note on an applicant activity)
    u2022     MAIL-APP-INTERVIEW (note on appointment for interview)
    Please note that the standard texts are stored under text ID PAML.
    Activities
    Now create the standard texts you require under text ID PAML.
    Further notes
    Every mail is made up of a heading and contents. In the first line of the standard text you enter the heading of the mail and from the second line on, the contents.
    The standard default settings for style and layout are used for mails.
    The SAP System treats standard texts as application data. This is why there is no automatic connection to the transport system. If you want to copy texts from one client to another within the same system, please use the functions of the transaction to create the texts. If you want to send the texts to a different system, please enter the transport manually as follows:
    PgmID   Obj     Objectname
    R3TR    TEXT   TEXT,XYZ,PAML,E
                     |    |   |   --- Language (e.g. E for English)
                     |    |   -
    Text ID (e.g. PAML for standard mails)
                     |    -
    Text name (probably not XYZ)
    Text object (TEXT ist fixed)
    Good luck
    Saquib Khan

  • How to post URL link in sap script

    How to give link in sap script..
    For example if someone select [sap|www.sdn.sap.com]. it will direct to www.sdn.sap.com
    Regards
    Sas
    PS: Insert Test --> Hypertext option tried but not working properly...
    Hey no replies....any one any idea?

    I don't think sapscripts does  have the  option for  entering  hyperlinks.
    SAP has provided  smartforms/advance forms:
    Link: [hyperlink - smartform;
    Link: [https://help.sap.com/saphelp_47x200/helpdata/en/9b/e3b0e0c2a711d3b558006094192fe3/
    frameset.htm]
    Link: [Hyperlink in smartform]
    Link: [How to create a hyperlink in smartform]

Maybe you are looking for

  • How do I transfer files from mac with snow leopard to a new retina display mac

    What is the easiest way to transfer files from my old mac(2008) snow leopard to my new retina display mac book pro?

  • Web service security: XML signatures and encryption

    Hi users - I am trying to figure out how to implement XML signatures and encryption for my web service.  We are only on AS ABAP 7.0, SP 11 - we do not have SOAMANAGER yet.  Yet all documentation I can find on configuring encryption and signatures, re

  • Translation Pattern for a Route Pattern

    I´m trying to make a translation pattern for a route pattern to add a * or a # in the end of the number I'm dialing for example the route pattern is 9.0414XXXXXXX and I want to change to XXXXXXX*. If I dial 904141309131 I see in the phone 4130913*. I

  • Error when calling inbound proxy

    Hi all, I´m facing the following problem in the R/3 monitoring: <SAP:Code p1="Request Message" p2="CX_XSLT_RUNTIME_ERROR" p3="/1SAI/XS00000000000000000035: 0000000000" p4="Error Text: No valid source context supplied Kernel ErrorId: CX_XSLT_RUNTIME_E

  • Need access to version 4.2 service pack 2 to work with Outlook 2000

    Hello - JSanders or anyone else who may be able to assist..... I have a Blackberry Curve 8330. I am using Windows Vista Home Premium. I am using Outlook 2000. I would like to sync my contacts, tasks and calendar between Outlook 2000 and my Blackberry