UWL Item URL Links

Hello Experts,
I have created a Webdynpro application in which i have the UWK Items. I am able to read all the properties of the items.
But I don't know how to create the URL for the specific ITEMS,  to open the item, when clicked.
Can you please provide me information of how to create the specific Item URLs, which i can link to the Item.
Regards,
Gursimran Singh

Hi,
Try the following
package samplepackage;
import java.util.Iterator;
import java.util.Locale;
import java.util.Properties;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import com.sap.netweaver.bc.uwl.IUWLItemManager;
import com.sap.netweaver.bc.uwl.IUWLService;
import com.sap.netweaver.bc.uwl.IUWLSession;
import com.sap.netweaver.bc.uwl.Item;
import com.sap.netweaver.bc.uwl.ItemCollection;
import com.sap.netweaver.bc.uwl.QueryResult;
import com.sap.netweaver.bc.uwl.UWLContext;
import com.sap.netweaver.bc.uwl.UWLException;
import com.sap.security.api.IUser;
import com.sap.security.api.UMFactory;
public class Sample {
  public void retriveItems() {
    try {
      // look up UWL service
      IUWLService uwlService = findService();
      // define session timeout perios
      final int sessionIdleTimeout = 60;
      // create context
      UWLContext uwlContext = new UWLContext();
      // find logged in user.
      IUser user = //TODO Get the user for whom the items are to be retrieved.
      uwlContext.setUser(user);
      uwlContext.setLocale(Locale.getDefault());
      // begin session
      IUWLSession uwlSession;
      uwlSession = uwlService.beginSession(uwlContext, sessionIdleTimeout);
      uwlContext.setSession(uwlSession);
      IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
      QueryResult result = itemManager.getItems(uwlContext, null, null);
      ItemCollection items = result.getItems();
      Item item = null;
      for (int i = 0; i < items.size(); i++) {
        item = items.get(i);
        Map params = new HashMap();
        params.put("taskId", item.getExternalId());
        String executionURL = WDURLGenerator.getApplicationURL("sap.com/tcbpemwdui~taskinstance", "ATaskExecution", params);
        //TODO Add code send mail which contains above URL.
    } catch (UWLException e) {
      e.printStackTrace();
    } catch (NamingException e) {
      e.printStackTrace();
  // look up UWL service
  private IUWLService findService() throws NamingException {
    Properties env = new Properties();
    env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "com.sapportals.portal.prt.registry.PortalRegistryFactory");
    // create initial context
    InitialContext ctx = new InitialContext(env);
    // retrieve UWL service
    IUWLService uwlService = (IUWLService) ctx.lookup("/broker/services/" + IUWLService.ALIAS_KEY);
    return uwlService;
which is taken from the following blog : <br>
/people/kenichi.unnai/blog/2009/10/19/how-to-use-uwl-api-for-netweaver-bpm-tasks

Similar Messages

  • UWL Item URLS

    Hello Experts,
    I have created a Webdynpro application in which i have the UWL Items. I am able to read all the properties of the items.
    But I don't know how to create the URL for the specific ITEMS, to open the item, when clicked.
    Can you please provide me information of how to create the specific Item URLs, which i can link to the Item.
    Regards,
    Gursimran Singh

    Hi,
    So you have created your own "custom made UWL"? Did I understand correctly? And you want to launch other applications from it? This depends on the type of application you want to lanch. It will be different for web dynpro, BSP, etc.? You might want to ask this from different forums. If you need to launch another abap web dynpro application, you can do it with CL_WD_UTILITIES=>CONSTRUCT_WD_URL (but this is if your custom made UWL is made with web dynpro ABAP. If you have a custom Java Web Dynpro application, you need to check the UWL programming API (which I guess you should be already familiar, if you managed to create a custom UWL with Java).
    Or did I understand it all wrong?
    Regards,
    Karri

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

  • UWL Item action url

    Hello Experts,
    I have created a Webdynpro application in which i have the UWL Items. I am able to read all the properties of the items.
    But I don't know how to create the URL for the specific ITEMS, to open the item, when clicked.
    Can you please provide me information of how to create the specific Item URLs, which i can link to the Item.
    Regards,
    Gursimran Singh

    That would look like this.
    Regards,
    Kai
    <ItemType name="uwl.task.webflow.TS12323123123" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynProiView" executionMode="default">
          <ItemTypeCriteria externalType="TS12323123123" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynProiView" groupAction="" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="iview" value="ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.iviews/com.sap.pct.erp.ess.working_time/com.sap.pct.erp.ess.leaverequest"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default="bla_DE">
                <ShortDescriptions>
                  <Description Language="de" Description="bla_DE"/>
                  <Description Language="en" Description="blabla_EN"/>
                </ShortDescriptions>
              </Descriptions>
            </Action>
          </Actions>
        </ItemType>

  • Dashcode iPhone Webapp - Adding url links to multiple list item

    I was wondering if anyone knew how to add a url link to multiple list items without the use of a button part.
    Say For Instance i Have
    Item 1 > I want to go to www.mysite.com/index.html
    Item 2 > I want to go to www.mysite.com/help/index.html
    Any help would be greatly appreciated

    After hours of reading and experimentation, I have solved my immediate problem thus:
    function jsonLoaded(jsonRequest) {
    if (jsonRequest.status == 200) {
    events = eval( "("jsonRequest.responseText")" );
    document.getElementById('list').object.reloadData();
    } else {
    alert("Error fetching JSON data: HTTP status " + jsonRequest.status);
    var feedURL = "http://www.foo.com/bar.php";
    var onloadHandler = function() { jsonLoaded(jsonRequest); };
    var events = [];
    var jsonRequest = new XMLHttpRequest();
    jsonRequest.onload = onloadHandler;
    jsonRequest.open("GET", feedURL, true);
    jsonRequest.setRequestHeader("Cache-Control", "no-cache");
    jsonRequest.send(null);
    var listController = {
    numberOfRows: function() {
    I had to do two things:
    1. Declare the array 'events' outside the function.
    2. Reload the list data (thanks to http://osdir.com/ml/safari-iphone-web-dev/2009-05/msg00013.html )
    Now I've got to figure out how to pull in different data for different list levels!

  • Remove Hyper link from UWL ITems

    Hi All,
    How to remove Hyperlink from the UWL items list? Is that possible?
    I have list of tasks in UWL and I do not want to give hyper link to the end users since they already ahve "View Detail"  Button on UWL, Please help how to hide or remove hyper link?
    Thanks
    Krishna

    In the UWL configuration, you specify the default action for a UWL item using the attribute "defaultAction".
    This default action is performed when you click on the UWL item.
    You can set any of the available actions as the default action for the UWL item.
    As mentioned by Karri, it is usually not common to disable the hyperlink of a UWL item and make it non-clickable.
    However, if you would like to achieve this, you can identify and check the UWL configuration file being used for the given UWL item and modify it as below:
    <ItemType name="uwl.task.webflow.decision.TS20000999.MYUWL_SYSTEM" connector="WebFlowConnector" defaultView="yourDefaultView" defaultAction="dummyAction" executionMode="default">
          <ItemTypeCriteria
    Since dummyAction is something UWL doesn't recognize, the hyperlink should be disabled.
    You might have to do this for all the UWL item types you use.
    Thanks,
    Shanti

  • URL Link In Gnome Desktop

    Hello,
    If I drag an URL from the Firefox address bar to my personal desktop in Gnome an icon is created and I can latter access that site by clicking on it. But when I do that the browser that opens the page is Epiphany rather than Firefox as I expected to be.
    How can I change this behavior for the link being open with my favorite browser (in System/Preferences/Preferred Applications I have Firefox set as my default browser)?
    Thanks in advance for your help.

    Hi,
    I think that you need to do the possible development in the ECC backend system - not in Portal/UWL - since as far as I understood from your message, your workflow is in ECC.
    You could take a look into this recent thread:
    Empty URL Link with SAP_WAPI_ATTACHMENT_ADD
    I don't know if it will work in UWL. You could easily test it by adding and URL attachment to a work item in backend (in business workplace) and then see how it looks in UWL and does it work. If it works, you can find a solution in the above mentioned thread or perhaps you can ask further questions from the author of the thread.
    Regards,
    Karri

  • Opening a Portal page from UWL item's click

    Hi,
    I have written a custom UWL connector that connects to 3rd party system to fetch tasks.
    This custom connector has  been registered with UWL and tasks from this 3rd party system are now appearing in my UWL.
    The requirement is to open a Portal page on click of these UWL items.
    That is, when user clicks on this custom UWL item, a Portal page should be opened in new window.
    I tried setting item's executionURL to following (inside getItems() method of connector) : -
    1. https://myportal.com/irj/portal?navigationtarget=roles://portal_content/com.mycompanyPurchaising/com.mycompany.Purchase_Request/com.mycompany.Roles/com.mycompany.purch_pr/com.mycompany.purch_pr/com.mycompany.purchaseRequest
    2. https://myportal.com/irj/portal?navigationtarget=roles://portal_content/com.mycompany.Purchaising/com.mycompany.Purchase_Request/com.mycompany.Roles/com.mycompany.purch_pr/com.mycompany.purch_pr/com.mycompany.purchaseRequest&target="_blank"
    3. Set Quick link property of corresponding page and then set executionURL as: -
    https://myportal.com/irj/portal/purchaserequest
    Issue being faced: -
    When user clicks on this UWL item, it opens following URL which just displays blank portal page: -
    https://myportal.com/irj/servlet/prt/portal/prteventname/navigate/prtroot/pcd!3aportal_content!2fcom.mycompany.layout.PortalLayoutFolder!2fcom.mycompany.layout.DesktopFolder!2fmycompanyDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.Purchaising%2Fcom.mycompany.Purchase_Request%2Fcom.mycompany.iViews%2Fcom.mycompany.purchaseRequest&CurrentWindowId=WID1326775699455&NavMode=1
    Any idea what is going wrong here?
    I am not able to figure out what & from where its preparing above URL instead of opening the URL that I specified in Connector's executionURL attribute.
    Regards,
    Amey

    Issue was with iView that I was trying to open in DEV portal.
    It worked fine in TEST & PROD portals.
    Hence, NavigationTarget=<> approach works fine.

  • URL link Attachment Limitation in Foreground

    Hi Experts,
    When i am attaching a URL link through Services of Object for a invoice document.
    The Complete URL link is not copied to the Address field. Only it is accepting 1000 character.
    My question is how to increase the URL length. Since my requirement is the URL link are having more that 1000 characters.
    Example :
    Tcode : MIR4 --- Invoice Document , year
    when i goto the services of Object ---> Create the Attachment
    It popup a dialog box which contain the Title and Address.
    In the Address we will copy the URL Link ,
    URL :  documentum\Docbases\dmbsip_prd_docbase\Hydrocarbon Supply Chain 
              Management\Integration\Application Documentation\WORKFLOW\SCC- 
              HSM-07-00011 (T & I Automation Workflow)\Misc. DPSR Documents
    when i try to copy this URL link in the Address Field , it is not taking the Full URL link.
    Venkat

    Hi,
    I think that you need to do the possible development in the ECC backend system - not in Portal/UWL - since as far as I understood from your message, your workflow is in ECC.
    You could take a look into this recent thread:
    Empty URL Link with SAP_WAPI_ATTACHMENT_ADD
    I don't know if it will work in UWL. You could easily test it by adding and URL attachment to a work item in backend (in business workplace) and then see how it looks in UWL and does it work. If it works, you can find a solution in the above mentioned thread or perhaps you can ask further questions from the author of the thread.
    Regards,
    Karri

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

  • How to display the one BSP View page (not a start page)Through URL link..

    Hi Sir/Madam,
                 I want to open one BSP view page through URL link...
    Let me Explain clearly..
                I have an Z application ZHRRCF_APPROVAL..In this application approve.bsp file i have added som more Fields..and Finally I am going to click ApproVe Buton /Reject Button.When i click the reject button the the items are rejected.Its working fine.....
              My Requirement is :
                   1. I want to display the approval page directly when i click the URL link from mail box.--i am getting this .. No issues..(Got the URL link from function module)
                   2. After opening the approval page when i click URL link, when i click the reject button-- i am getting the error "The following Error Text was processed in the system GR2."Access via NULL object reference not possible"
                   3. How to proceed the this URL link without error .. the URL link is
    https://abd00093.de.abb.com:8200/sap(bD1lbiZjPTIwMA==)/bc/bsp/sap/zhrrcf_approval/application.bsp?objid=50003421&otype=NB&plvar=01&requestdate=20090121&requestedRsnCode=01&requestedstatus=1&requester=USRECRUITER1&SAPWFCBURL=https%3a%2f%2fabd00093%2ede%2eabb%2ecom%3a0000000000008200%2fsap%2fbc%2fwebflow%2fwshandler%3f_sapwiid%3d000000018491%26_saptask%3dTS51807979%26_saplogsys%3dGR2CLNT200%26_sapuname%3dLINEMANAGER%26_saplangu%3dE%26sap-client%3d200
    ( I got this URL directly using my own function module.. In this function Module i was not getting the SAPGUID -- the error is because of that i am not sure..)How to get this sapguid dynamically..
                    Please guide me to proceed this req asap..
    I am waiting for your reply ....Please
    Thanks and Regards
    Mohan,P

    Please have BPEL loggers both at domain and system level to DEBUG mode. Set all loggers to DEBUG as you are interested to see the entire sequence flow..however, some loggers give you unnecessary info ;/ apart from cube, activation, delivery, dispatch, persistence.
    Added to this, you might want to try SOAPUI, Fiddler, HTTP Analyzer.

  • IS it possible to provide URL link in Notification Mail and logon to SAP

    Hi firends,
        when the user gets a notification mail to his outlook,
    he opens that notification mail in outlook.
    Is it possible to provide a URL Link ? in that notification mail.
    When the user clicks on that URL LINK, then is it possible to open the SAP Initial Screen,
    where user can provide his User name and Password. and logs on to the SAP.
    If these things are possible.
    Please guide me step by step.
    Thanks in Advane,
    Ganesh

    Refer the following links for Extended Notifications..
    /people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d5/581ee8d56f1247bf34cfcd66d16d81/frameset.htm
    Specific answer to your question is
    Maintian the link in "INBOX_LINK_URL" parameter in the "General Settings".
    Regards,
    PR.

  • With version 3.6.3 I can no longer do a right click with the mouse and check the properties of a live url link on web pages

    Windows XP Pro, SP3. Firefox 3.6.3. Ever since updating to this version a few weeks ago I can no longer do a right click of the mouse and check the properties of an active url link on webpages. I've always had the option before. I want this feature back!!!!

    In Firefox 3.6 Properties has been removed from the right click context menu.
    You can use ''View Image Info'' or ''View Page Info'' in the right click context menu to see the (image) properties.
    You can use the above mentioned extension (Element Properties 6) to get that context menu item back.
    See also Link And Forminfo: https://addons.mozilla.org/firefox/addon/6939

  • How can I find that an URL link is tored in which transparent table in SAP?

    I have a requirment that, I have to display a MSDS( Material Safety Data Sheet ) for every material, that is a line item in any particular sales order.
    How can I find that in which table this URL link is getting stored, such that I can retrieve this URL for this particular material.

    is this document attached to sales order using GOS (generic object services)
    Regards
    Raja

  • URL link not clickable on APLEX html page

    I create a Page, type is HTML Text. I have a Region with template "Reports Region"
    In region source, I have text looks similar to :
    [td] [a herf="http://yahoo.come"] http://yahoo.com [a][td]
    ([] means less than and greater then sign )
    But after run the page, the url link is not clickable to take me to the website. How can I fix this problem?
    - Denis
    Edited by: Denis Sun on Jun 5, 2012 2:45 PM

    You should wrap your code in {noformat} {noformat} tags
    Always include the following information when asking a question:
    <ul>
    <li>Full APEX version</li>
    <li>Full DB/version/edition/host OS</li>
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>
    Denis Sun wrote:
    I create a Page, type is HTML Text. I have a Region with template "Reports Region"
    In region source, I have text looks similar to :
    [td] [a herf="http://yahoo.come"] http://yahoo.com [a][td]
    ([] means less than and greater then sign )
    But after run the page, the url link is not clickable to take me to the website. How can I fix this problem? The correct syntac of an anchor tag is this, and where did you enter this HTML code?
    //notice the href typo
    <a href="http://yahoo.com">http://yahoo.com</a>

Maybe you are looking for

  • Performance with null parameters

    The below is the main cursor for a small report with some horrible performance. The report is taking 30 to 40 minutes to generate just a few rows of data. After checking my joins and whether the indexes were correct and all the other simple things, I

  • How can I control modal dialogs in Applescript without a mouse?

    I am trying to use a Griffin PowerMate button to select between two options in an Applescript modal dialog and cannot seem to figure out how to do this. I can set a default button, but I want the user to select between two options (shifting the highl

  • Extreme Base Station suddenly dropping internet connection

    I have an Extreme Base Station (802.11n Fast Ethernet) which has been providing wireless internet and printing to two imacs pretty flawlessly for several years. It seems to be a fairly simple network. DSL modem (to WAN port) and USB printer cable plu

  • Need a new printer. I own & LOVE a Photosmart C7180, and want my new one to be at least as capable.

    I use a wireless connection and will soon have a new iphone, so air printing would also be nice. I am a teacher and do tons of copying so an auto duplex adf would be preferred. I also do fax occasionally, so I need to keep that. I am having a hard ti

  • Error 1011 in shopping cart - HELP

    I selected The Postal Service "Give Up" album. iTunes will not let me purchase it, or remove it from the list. It will also not let me purchase anything else while it is on the list - and I can't remove it. When I try to purchase I get the message "Y