Calling an iview from webdynpro do not run

Hello,
my environment consists of a Sap Netweaver Portal 7.0 (SP15) and ECC 6.0 (SP9).
On portal I have configured UWL, so when the user click on workitem a custom webdynpro is run.
Webdynpro is composed by some container, with some alv lists
included.
In an alv list an hotspot is linked to a purchase requisition
document number.
At the click on cell a method is called. Below the source.
REFRESH: lt_lp, lt_bp.
l_api_component = wd_comp_controller->wd_
l_portal_manager = l_api_component->get_portal_
ls_lp-key = 'P_TCODE'.
ls_lp-value = 'ME53N'.
APPEND ls_lp TO lt_bp.
ls_lp-key = 'P_BANFN'.
ls_lp-value = l_banfn.
INSERT ls_lp INTO TABLE lt_bp.
l_target =
'ROLES://pcd:portal_content/com.ieo.it.portaleieo/
_rilascio/ME53N'.
ls_lp-key = 'OkCode'.
ls_lp-value = 'ONLI'.
APPEND ls_lp TO lt_lp.
CALL METHOD l_portal_manager->navigate_absolute
EXPORTING
navigation_target = l_target
navigation_mode = '1'
use_sap_launcher = abap_true
business_parameters = lt_bp
launcher_parameters = lt_lp.
Variable "l_target" contain the link to a custom SAP Transaction
iview.
The SAP transaction calls the transaction received as parameter
(P_TCODE) with the other parameter (P_BANFN).
All is run perfectly on Develop system, but in Production the target
iview is not called. The two systems seems identical.
Could anyone help me to understand what happen?
Regards,
Corrado Audero

Hi Praveen,
My code is given below  :
<b>package scheduler;
import java.util.Properties;
import com.sapportals.wcm.service.scheduler.ISchedulerTask;
public class scheduler implements ISchedulerTask {
  public void run( String id, Properties properties ) {
     //     implement the tasks to be scheduled
}</b>
I have to write some code in this run() to run the iView. How do I use ur statement?<b></b>

Similar Messages

  • How to call IAC Iview from WebDynpro java code

    Hi Team,
    I am tring to call IAC Iview from WebDynpro Java code. we are passing value but blank page  displayed and there is no error show on error log.
    Below is Java Code which i am calling.
      public void wdDoInit()
          try {
                String strURL = "portal_content/TestSRM/iView/TestSRM";                           //WDProtocolAdapter.getProtocolAdapter().getRequestParameter("application");
                 String random = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("random_code");     
                 //wdContext.currentContextElement().setRandomNumber(random);
    //below we are call URL           
    WDPortalNavigation.navigateAbsolute("ROLES://portal_content/TestSRM/iView/TestSRM?VAL="+random,WDPortalNavigationMode.SHOW_INPLACE,(String)null, (String)null,
                       WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String)null,(String)null, " ");
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    I am passing value from URL.
    http://<host Name>:<port>/webdynpro/resources/local/staruser/StarUser?random_code=111111111
    when we call above URL we getting blank screen.
    Regards
    Pankaj Kamble

    Hi Vinod,
    read this document (from pages 7 ).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
    In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
    It may be helpful for you.
    Best regards,
    Gianluca Barile

  • How to Call standard iView from WebDynpro custom iView

    Hello all Experts
    I want to know whether there is any way to call (navigate to) standard iView from my cutom WebDynpro iview or not?
    If yes please tell me how to code it.
    (Points will be awarded for helpful answers)

    Hi Vinod,
    read this document (from pages 7 ).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62</a>
    In addition lok at these links: (Navigation Between Web Dynpro Applications in the Portal)
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/ae/36d93f130f9115e10000000a155106/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/frameset.htm</a>
    It may be helpful for you.
    Best regards,
    Gianluca Barile

  • Call SAPGUI-iView from WebDynpro-iView

    How can i call a SAPGUI-iView from a WebDynpro-iView?

    You can create a Transaction iview on portal and point it to a particular transaction in R/3....
    Regards,
    Shikhil

  • Calling a webservice from webdynpro ABAP.

    Hi,
    Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls )  with clear steps ?
    Thanks in advance. Ponts will not be a constraint for right answers
    Praveen
    Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AM

    Hi Praveen,
    1st Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Greetings
    Prashant

  • How to call Standard Iviews in Webdynpro application?

    How to call STD iviews  in the wwbdynpro application.
    can any of friends give the code

    Use this snippet to call standard iviews from your webdynpro code :
    //use LinktoAction UI element
    onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
    WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
    Hope this helps.
    Rgds
    Prabhakar

  • Calling BSP Iview from a BSP Iview

    How to call another BSP Iview from a BSP Iview ?
    Is it the same like we call BSP Iview from a Controller ?
    My problem is ..Intially i had only one Iview called from the controller. It was working fine.
    I've added some includes in the View and while activating, i got the error msg
    +Internal error Occured during runtime generation of the class CLOLkshdksjhfk ....+_
    +(Dump id : GENBRANCHOFFSET_LIMIT_REACHED)+_
    I found from the forum that, instead of calling all things in a single Iview, we can split that into different Iviews.I did the same. and the error had gone.
    My Q is ...
    I Have built code for tray (maximize and minimize). It works fine if the controller has One Iview and its not working if the controller has 3 iviews.
    How to sort it ? If i call the other 2 Iview s from the parent one, will the prob solved ?
    Thanks and Regards,
    Kanal.

    Hi,
    Please check this weblog by Brian McKellar. You will surely find a way to avoid the error you mentionned.
    [/people/brian.mckellar/blog/2005/04/25/bsp-programming-gen-branchoffset-limit-reached|/people/brian.mckellar/blog/2005/04/25/bsp-programming-gen-branchoffset-limit-reached]
    Regards,
    Tanguy

  • Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?

    Hi All,
           Has anyone created Iview from Webdynpro Java component in CE7.1.
    Because the wizard that appears for creation of Iview has only "Webdynpro ABAP"
    component.There is no option to create iview from "Webdynpro Java" component.
               Althought in portal content--->Template folder i can see there is also
    another template for "SAP Webdynpro iview" which i think is for the Java scenario.
    But issue is, its not coming in the wizard.Can anyone tell me how to make it appear in the wizard ? It will be of great help to me.
    Thanks and Regards
    Ashis

    Hi Ashis,
    your deployed webdynpros are published under "web dynpro applications". just copy the webdynpro from there and paste it into the portal content section.
    http://help.sap.com/saphelp_nwce10/helpdata/en/ce/e0d6f54ae641fc9566501cffaa8c6c/frameset.htm
    Hope that helps you.
    Best wishes, Jens

  • Trying to opn SAP Transaction IView from Webdynpro

    Hi Friends,
    I need to open a SAP Trancation Iview from Webdynpro (on click of some button) and pass some values to the screen fields,
    I am using the code below(which I found in many threads):
    WDPortalNavigation.navigateAbsolute("ROLES://<Iview ID excluding pcd>",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String)null,
    (String)null,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    (String)null,
    (String)null,
    (String)null);
    The problem is nothin happened on account of execution of this code,
    I mean not even a blank screen gets opened.
    I am not even getting any error/exception.
    Please advice what could be the possible cause.
    Regards
    Deepak
    Edited by: Deepak Gupta on Mar 17, 2008 12:15 PM

    I wrote the code like below:
    WDPortalNavigation.navigateAbsolute("ROLES://<IViewPath>", WDPortalNavigationMode.SHOW_EXTERNAL,
    (String)null,
    (String)null,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    (String)null,
    (String)null,
    "number=123456");
    In IView application property, I wrote:
    CRMT_SEARCH_LOC-CARD_NO=<Request.number>
    (L.H.S is the screen field name)
    then I got following exception at portal:
    An exception occurred while processing a request for :
    iView : pcd:portal_content/<Iview path>
    Component Name : com.sap.portal.appintegrator.sap.Transaction
    Exception in SAP Application Integrator occured: Unable to process template 'CRMT_SEARCH_LOC-CARD_NO=<Request.number>', because 'number' is an invalid terminal property of context 'Request.'..
    what went wrong????

  • How to call a webService from WebDynPro ABAP ?

    We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
    How exactly do we call a WebService from a WebDynPro-ABAP application?
    What are the main steps involved ?

    Hi Phani,
    You will need to create a service call as follows.
    Right click on your WD component name and select Create->Service Call
    The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
    Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN.

  • Calling SAP scripts from WEBDYNPRO

    Hi
    We need to call SAP scripts from WebDynpro application.  As per my understanding we need to do following steps
    Create a new RFC function module and create sap script output in PDF format.For this
        - use OPEN_FORM , by assigning TDGETOTF='X' in the Options(Structure
          ITCPO). 
        - call function module CLOSE_FORM with option OTFDATA
        - convert OTF data to PDF by using function module CONVERT_OTF_2_PDF
    Now I would like to know how to display the PDF string from WebDynpro.
    Please help....
    Regards
    Sujith

    Hi,
    You can call by creating external window method.
    create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
    data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
      data: api_component  type ref to if_wd_component,
              window_manager type ref to if_wd_window_manager,
              window type ref to if_wd_window.
      api_component = wd_comp_controller->wd_get_api( ).
      window_manager = api_component->get_window_manager( ).
      window = window_manager->create_external_window(
                     url = iv_url
                     modal = abap_false ).
      window->open( ).
    Cheers,
    Kris.

  • Problem with special charecter while calling a BAPI from Webdynpro JAVA.

    Hi Experts,
    I am calling a BAPI from Webdynpro JAVA. I am passing a special charecter  u2018 as input to BAPI. But I am getting a # as input in R/3.. Can any one explain why it is getting changed?
    Any inputs regarding this issue are appreciated.
    Thanks,
    Kasinath.

    Hi,
        I had same problem before..For this I have created function module in backend for removing #. It was for converting Stream to ITF text.
    CONVERT_STREAM_TO_ITF_TEXT.
    Try this.
    Thanks,
    Prajakta

  • Calling a Report/Transaction iview from Webdynpro..

    Hi all,
              Our first issue is we have a scenareio, where we need to execute reports(ABAP Program) from webdynpro. Is it possibile to execute a standard report from webdynpro? using JCO. Also tell me how to pass the input/output parameters.I am not allowed to create RFC.I can use only standard BAPI.
              Our second issue is we created one transaction type callable object, and we want to call this transaction callable object from webdynpro, in another callable object in GP. Is this Possibile in webdynpro. We tried using portal navigation, but it is working for normal webdynpro iviews only, not for url iviews also.
              Does any body know the answer for the above issues. please let us know.
             Thanks in advance.

    hi,
    1) it is not possible in web dynpro to call abap reports, what you can do is creating wrapper of Remote enabled FM around the report. But you dont have authorisation to create BAPI, so gotta take use of standard BAPIs.
    ABAP Report in WebDynpro
    this link will help you out for that(calling standard bapi in WD)
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715 [original link is broken]
    2) go thru this links
    WebDynpro Application as callable object in GP?
    Webdynpro callable object - RFC model
    implenting webdynpro as a Calable Object with GP Interface
    hope it helps
    regards

  • Calling Portal iView from a WebdynPro ABAP application

    Hi ,
    I have a requirement where I need to call an iView in my portal from the Webdynpro application also existing in the portal.
    Can anyone provide me the method with source code( if possible ) to call an iView existing in the portal from the WebDynPro ABAP application.
    Best Regards
    Sid

    Hi Siddharth,
    Well, I think you can go for Portal Navigation concept.
    Please check the required source code in WDR_TEST_PORTAL_NAV Web Dynpro component. That will illustrate both Page based Navigation and Object based Navigation.
    Hope that should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • Calling Console Application that uses WebBrowser from SQL Server - Not Running

    Hi there. I am working in a program automation that needs to get files from a website and put it in a database. It is done but as I need a console application and need webbrowser that comes from Windows Forms, I am trying to call it from the SQL Server using
    the xp_cmdshell but when it runs the .exe, it execute the block that is before the Application.Run() command but when it reaches this line, it stay running on Task manager but it not execute my code. How can I fix this? I had first created a Windows form application
    but it was not working anyway and then I tried a console application and then I use the [STAThread] and Application.Run(). At least it runs the file from SQL Server but is not executing all my code, I think that it stops on Application.Run() line. Any help
    will be very useful.
    Thanks for now.

    Thanks for the response. What I mean is that it just run the part of the code that is just using the Console, that's the code:
    // Main Method
    [STAThread]
    public static void Main()
    clearDatabase(myConnection);
    Console.Title = "Suframa Itens Robot";
    //If log file exists, it is deleted
    if ( File.Exists(@"suframaLog.txt") )
    File.Delete(@"suframaLog.txt");
    wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(loginWebsite);
    try
    //It is called as the program uses the WebBrowser Class from Windows Forms namespace
    //and it is a console Application
    Application.Run();
    catch ( Exception ex )
    Log(ex.Message);
    As you can see, I call a function on start named ClearDatabase, when I call the file from sql server it executes, the tables are cleared, but what I think is that the problem stop when reach the line Application.Run() as it is the line that allows the remaining
    code to execute as it uses events from WebBrowser class. 
    It is a program automation that needs to get a lot of files from a website that needs login and read line by line from the files and put on server, if I call it from the executable it runs fine, the only problem is when calling from SQL Server, Do you know
    how to fix this?
    Thanks.

Maybe you are looking for

  • What to do when your ipod touch is in recovery mode and you dont have access to itunes

    I just got done updating the Ipod . And I had to conect it to iTunes but I am not able to access my iTunes. Anything i can do ?

  • Hey does apple charges for free applications mentioned in Itune??

    Yesterday i bought a Apple IPAD2. i have connected my IPAD2 to itunes at that my there was no applications in it. I have installed some free applications listed in the Itunes. i m curious about, does the apple charge for the free applications as well

  • Custom aac importing bug

    I use itunes on my pc and when I try to import songs in AAC custom form the program returns 2 the AAC default (128KBPS\64KBPS). the custom option does work in MP3 importing and stuff and it used to work in AAC as well but now I cant shake this bug:'(

  • About mysql 6.0 data

    Hi friends, I was using mysql 4.0 as my data base before one week and now I have to use mysql 6.0 to store my data. Now in mysql 4.0 I was having a folder named data from where I can get my full data I can't get that folder in mysql 6.1 and I have to

  • Export map?

    Hi gang, I would like to get a high res version of my Places map with the pins in it. I can get a screen capture, but is there some way to export the map? Cheers!