Calling Dynpro apps from Portal using NW - How?

I am new to NetWeaver.  I am trying to write a simple Portal application in NetWeaver that calls two Dynpro applications.
So, I downloaded from the SDN download page the latest stuff (2 days ago) the following: "SAP NetWeaver Enterprise Portal on MaxDB, and Developer Edition Sneak Preview", and the "Portal Development kit 6.0".  Installed them, and wrote the two Dynpro apps.
Then, using the Portal Perspective, I wrote a simple portal that is just empty.  Now, I want to connect this portal to the Dynpro applications I wrote.  The Help Tutorial in NW has a good start on how to do this, but it talks about "In the portal, navigate to Content Administration -> Portal Content...".  What is this portal tool?  It is not part of NW.
Now, it looks like I can use the Portal Perspective to create a "service" or a "web service" to service views for my portal.  But, I can't tell it to use my Dynpro applications for views.
Does anybody know how to do this?  Easy declarative way would be better than writing code!

Hi,
You should have a look to this documentation:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to access a portal service within a web dynpro java application.pdf
Regards,
Frederic

Similar Messages

  • Not able to run web dynpro application from portal.

    Hi portal experts,
    I want to run my web dynpro application from portal.
    So created a seperate iview  and a role  for the purpose.
    Assigned the iview to the role and also mapped a abap user id to the new role created.
    But when I click on 'preview'  the iview , getting the following dump.
    Error when processing your request
    What has happened?
    The URL http://mnghcmsap:8000/sap/bc/webdynpro/sap/zhr_cp_admin/ was not called due to an error.
    Note
    The following error text was processed in the system HRM : Die URL enthält keine vollständige Domainangabe (mnghcmsap statt mnghcmsap.<domain>.<ext>).
    The error occurred on the application server mnghcmsap_HRM_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: STARTUP_CHECKS of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system HRM in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server mnghcmsap_HRM_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server mnghcmsap_HRM_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 200 -u: INF51515 -l: E -s: HRM -i: mnghcmsap_HRM_00 -w: 0 -d: 20110209 -t: 121224 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Please let me know if I am doing the process correctly and also let me know if I am missing somthing.
    Thanks,
    Aditya.

    Are you able to run teh web dynpro application independtly i.e. without creatin an iview.
    http://mnghcmsap:8000/sap/bc/webdynpro/sap/zhr_cp_admin/ by using this link.
    or there also you are getting the error.
    i guess there also you should be gettign the error.
    this is some problem with the FQDN settings in the abap system.
    in the host name of the web dynpro applciation server one .(dot) is must.
    so you might have to change the host name to some thing like mnghcmsap. from mnghcmsap
    thanks
    sarbjeet singh

  • Calling Java API from ABAP using JCo (Part 2)

    Hello,
    This is an additional question to thread Calling Java API from ABAP using JCo
    Has anyone managed to get the input parameter value
    input.getString("REQUTEXT")
    that is being passed from ABAP?
    If yes, what kind of setting you need to do? Because when I execute, it has no value.
    Thus, the below ECHOTEXT parameter returns blank value:
    output.setValue(input.getString("REQUTEXT"),"ECHOTEXT");
    When I debug by printing the below line, the input XML is indeed without value:
    System.out.println(input.toXML());
    Anybody knows how to pass input variable from ABAP to JAVA using JCo?
    rgs,
    hiroshi

    Hallo Hiroshi,
    as far as I can see, you are doing it the right way. The problem might be that the ABAP program does not fill in this parameter because something went wrong in the SAP System.
    Have you tried setting a breakpoint (an HTTP session - remote breakpoint) and tried checking step by step if the value is being processed and put into the REQUTEXT field?
    Bye,
    Sameer

  • Updating iphone4 apps from iphone using Wi-Fi

    I could not seem to get my iphone4 to update any apps from iphone using Wi-Fi. It simply goes into the menu and no update shows up.

    I fixed the problem by following instructions on http://appletoolbox.com/2012/10/app-store-not-working-blank-screen/
    I have copied the instructions below for convenience:
    Several users have reported an inability to access the App Store, meaning that when the buttons Purchased, Search, Categories, or Charts are tapped, users are shown blank pages and nothing loads when they want to use the App Store on an iPad or iPhone. Several people also reported that this problem started after they updated to iOS 6.
    How to Fix
    Please try each step until you resolve your issue:
    Tap Settings > General > Date and Time > Set Automatically > Off. Set the date one year ahead. Then try to access the App Store.
    It may be a connection issue. Try changing your DNS settings to Google’s open DNS by tapping Settings > Wi-Fi >, tap the blue arrow next to your current Wi-Fi network, and then tap the “DNS” field and enter the DNS servers; 8.8.8.8 (Google’s Public DNS). (see this article)
    Close the App Store completely by pressing the home button twice, pressing and hold the App Store icon until it starts to wiggle, then tapping the minus sign to close it. Re-launch the App Store.
    Restart your device by pressing and holding the sleep/wake button until “Slide to Power off” appears.
    Launch the App Store; if it is still blank with nothing shown, wait a few minutes. Sometimes apps may load slowly because of networking issues.
    If still nothing appears, try changing the device’s language by tapping Settings > General > International > Language. Pick a language. Pick any other second language you already know or be familiar with. If you don’t, do not forget to navigate back in a different language. Change the language, launch the App Store, then change the language back to what it was originally.
    Sign out of your Apple ID by tapping Settings > iTunes & App Store, tap your Apple ID and select “Sign Out”. Wait one minute and sign back in by reentering your Apple ID and password.

  • So a long time ago I accidentally deleted the mail app from my computer. How do I get it back? My computer is an old MacBook running on Mac OS X 10.5.8.

    So a long time ago I accidentally deleted the mail app from my computer. How do I get it back? My computer is an old MacBook running on Mac OS X 10.5.8.

    This Knowledge Base Article may be of some help to you.

  • Is there a way to password protect certain apps from being used? Example I don't want my child to access my apps while he's using his on the iPad

    Is there a way to password protect certain apps from being used? Example I don't want my child to access my apps while he's using his on the iPad. I don't want to lock him out of the iPad. Let him use Angry birds, but not Sims or Games not appropriate for him that I play.

    Sorry, but it is not possible to restrict use of specific apps other that the few restrictions provided in the Restrictions settings, not unless the app itself provides some sort of lock. If you don't want your child playing certain games, the only answer is to not load them on the iPad he uses.
    Regards.

  • I have deleted the music button/app from my phone. How do I get it back in my main settings?

    I have deleted the music button/app from my phone. How do I get it back in my main settings?

    You can't delete it.  Look on all your screens and inside all your folders.  If you still can't find it go to Settings>General>Reset>Reset Home Screen Layout.  This will restore the home screen to its original configuration but may move other apps around to do so.  (You may want to take some screenshots of your screens first so you can recreate your app layout.)

  • How to call Flex app from Javascript in portal question

    I've setup my flex 4 app with a callback function. The flex app is embedded in a Java portlet on a WebLogic Portal 10.3.2. How can I call the Flex app from the portlets javascript function? Code below shows how the flex app is embedded in the wrapper jsp.
    <script language="JavaScript" type="text/javascript">
            AC_FL_RunContent(
                        "src", "<%= srcPath %>",
                        "id", "<%= (String)request.getAttribute("portlet_name") %>",
                        "name", "<%= (String)request.getAttribute("portlet_name") %>", 
                        "width", "<%= request.getAttribute("width") %>",
                        "height", "<%= request.getAttribute("height") %>",
                        "align", "middle",
                        "quality", "high",
                        "FlashVars", "PORTLET_WS=<%= request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
                        "allowScriptAccess","sameDomain",
                        "type", "application/x-shockwave-flash",
                        "pluginspage", "http://www.adobe.com/go/getflashplayer");         
    </script>

    Thanks for the response. I followed the instructions in the link, but it does not appear to work within a Weblogic 10.3.2 portal. My Flex app is wrapped in a Java JSR 286 portlet. Should this approach work or is there a different approach for the portlets wrapper JavaScript to call a Flex callback function?
    thanks
    Dan

  • Web Dynpro Java UI Customization from Portal Using CTRL+Right Click in Prev

    Hi Team,
    I am able to hide some Web Dynpro UI elements from Portal Content Administration >> Web Dynpro iView >> Preview and by Pressing CTRL+RIGHT CLICK.
    Here I need to understand the concept like how things work in this case. If we hide some UI in Web Dynpro Java iView customization will there not be any RFC/BAPI calls associated with that particular UI
    For Example: Web Dynpro iView is made up of CompA and CompB and I am going to hide the UI associated with CompA. When I invoke the application will there not be any activity like invoking CompA calling associated RFC/BAPI etc related to CompA
    Please help me in understand the concepts and performance implications on this.
    Regards
    Sudhir

    Hi Sudhir
    You are quite right to raise this concern
    If you start hiding elements you may find a change to functionality
    For example - in ESS - if you hide a field that is set to mandatory in the back-end ECC when the user
    goes to edit the screen they will not see the field and not maintain the field but they will get an error
    "fill in all required fields" - which will completely confuse them as they will have filled in all displayed fields
    Also if you hide one field in ESS that is required to populate another field this too many causes inconsistencies or errors
    Ideal UI elements to hide are those that have been set to unsued (in the case of ESS in the back-end) and have no dependancies to other fields - however there is no complete list - you must test each scenario to your satisfaction
    Best wishes
    Stuart

  • How to fetch published data from portal using ABAP

    Hello,
    I have a file published in the portal (with broadcaster). Now I want to use this file in an ABAP program. I can't call the web address directly because my program can't handle the Portal authentication. So I have two questions:
    - is there any way to call Portal-websites which require authentication from ABAP?
    or
    - how can I directly get access to the file without detour over the Portal (where is the place in file system).
    Thank you very much!
    Martin

    Hello Adrian,
    Thank you very much for your reply.
    > You can publish the report in MHTML format using the
    > BEx Broadcaster to a mapped drive  (completely
    > independent of the portal)  then you could pick this
    > up from your ABAP program if you have access to that
    > share.
    What do you mean with "mapped drive" - <a href="http://http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/e915d951f23ee0e10000000a1553f6/frameset.htm">this</a>? I guess I could choose this drive in broadcaster at "export document in any folder" (don't know exactly English label because my system is in German language...)?
    > I dont really see the value of publishing the report
    > to KM if all you are wanting to do is read this back
    > into your ABAP program.  Why are you wanting to
    > publish the report to the portal in the first place?
    I need to get the image of a BW-chart in ABAP because I want to use it in SAP Interactive Forms by Adobe (I have an ABAP program to fetch my data and create the form). I could create my own chart of the data with the Internet Graphics Service but this would be a lot of work. You can create this charts very easily using the Chart Designer which i.e. is included in the Web Application Designer. If you create a Web Site containing a chart you can access this via browser and you have the chart as an image (created from current data). I tried simply to call this website with ABAP but I can not "log in" and so I have no access to this page. Because of this I had the idea to use the broadcaster to automatically publish this Web Application when my data were updated. If I use MHTML my chart-image is saved separately. This just would work for me. And now I want to get this image as a binary with ABAP.
    I hope you understand my problem.
    Martin

  • How to flush apps from iPad2 using a "Restore from backup"

    When I receive an iPad back from loan (library environment) it frequently has additional apps loaded by the borrower, over and above the small set of apps that we provide when the iPad is checked out.
    If we reset the iPad (Settings/General/Reset/Erase All Content and Settings) and then restore from a canonical backup, the iPad is rendered "fresh" with no evidence of the previous borrower and ONLY the small set of apps that we provide.
    However,
    If we simply restore from the canonical backup, without the reset, the evidence of previous use is limited to just the additional apps that the previous borrower installed. In effect, the iPad contains the union of our standard set and the previous borrower's additions. All the data, media and settings (even defaults such as iCloud and Store IDs) are removed. The iPad is "fresh" except for the additional app or apps.
    The simple restore from backup is much faster than the reset+restore and would be preferred.
    Manual inspection and removal of borrower-installed apps is too time consuming.
    Looking for a procedure that would force the app list down to only the one in the backup...
    Any comments?

    => ex_spy_guy
    Thank you for your prompt and thoughtful comment.
    The library is institutional but is not publicly funded. Our policies are not traditional, therefore.
    We wished to give the early patrons the ability to experiment with apps of their own discovery that they provision using credentials that they already have or that they create for the purpose. We have no record of their credentials and they do not have the Library's credentials. We never attempt nor allow the iPads to be sync'd on our duplication station. I agree with almost everything that you are saying but:
    - we loan a "fresh" iPad that has been restored from a tightly controlled (never sync'd) backup
    - we are returned an iPad that contains the initial app set + user settings, media, bookmarks, history etc. + one or more apps that the user has installed using his own credentials
    - the iPad is connected to iTunes (on Lion) with automatic sync disabled
    - we control-click on the iPad device name and restore from backup using the virgin backup mentioned above
    - the restore takes 10 seconds or less since no new apps nor media is added
    - the resulting iPad contains no user settings nor data but does still contain the app(s) that the user added
    - if the iPad is reset to remove ALL non-firmware apps and then is restored from the same image, the users apps do not appear, just as one would expect. This takes 10-12 minutes with the app set that we currently provide. We find this burdensome for frequent use but it's perhaps necessary...
    It surprises me that the users' apps survive a "Restore from Backup" process.
    Unlike a traditional disk image (OS X .dmg for example) the iPad restoral "image" (~Library/Application Support/MobileSync/Backup/) contains no binaries. It's just a manifest of XML files in a folder and describes what .ipa binaries should be loaded from the iTunes library. iTunes does not, apparently, exclude (delete the encryption key of) binaries that are not provisioned in the manifest. Everything else gets zeroed-out of the iPads but not the foreign .ipa files. Is this a feature or a bug?

  • CALL a report from WDA using SUBMIT to sap-spool

    Hi,
    I need to call a report from one of the methods of a WDA application.
    The out of this report is a sapscript. I want show it in WDA (PDF).
    The report is called when a user clicks EXECUTE button.
    The piece of the code is:
      call function 'GET_PRINT_PARAMETERS'
        exporting
          immediately            = 'X'
          new_list_id            = 'X'
          no_dialog              = 'X'
          receiver               = sy-uname
          release                = 'X'
          sap_cover_page         = 'X'
        importing
          out_archive_parameters = t_arcpar
          out_parameters         = t_pripar
          valid                  = i_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
          submit hbrcced0
                          with pnppernr-low eq i_pernr
                          with pnpbukrs-low eq t_p0001-bukrs
                          with pnpbegda     eq i_begda
                          with pnpendda     eq i_endda
                          with p_expot      eq ''
                          with ano          eq v_gjahr
                          with respcc       eq v_sachn
                         to sap-spool
                         spool   parameters t_pripar
                         archive parameters t_arcpar
                         without spool dynpro
                         and return.
        if sy-calld eq ''.
          message 'err' type 'E'.
        else.
    If i execute this code in WDA, the sy-calld never is equal 'X'.
    But if i execute it in program (SE38) the sy-calld is 'X'.
    How i can call the program 'hbrcced0' in WDA ?
    Cheers,
    Silvio Galery

    Hi Silvio,
    a submit REPORT to spool does work from WDA.
    ONLY when "and return" is used.
    You have that, so it should work.
    Note you had print immediate on, so it will be output on printer,
    and not available to read after the call.
    (which option was the keep after print?, I would have to check docu)
    The sy-calld will be set to X  inside the REPORT when it is running.
    After the submit has run back inside WDA it is of course reset to space again.
    Cheers
    Phil.

  • Calling Java API from ABAP using JCo

    I need to call Java API from ABAP & BSP also. For this I have got useful information related to JCo from following blog:
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    But, I am facing one problem. On executing Java program myExample5.java (recommended by Gregor Wolf) from command line I get following error message:
    Server JCOSERVER01 changed state from [ STOPPED ] to [ STARTED ]
    Exception in server JCOSERVER01:
    com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 26 13:46:32 IST 2007.
    This is caused by either a) erroneous server settings, b) the backend system has
    been shutdown, c) network problems. Will try next startup in 1 seconds.
    Connect to SAP gateway failed
    Connect_PM  TPNAME=JCOSERVER01, GWHOST=gateway, GWSERV=3300
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       hostname 'gateway' unknown
    TIME        Thu Apr 26 13:46:32 2007
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -2
    MODULE      ninti.c
    LINE        336
    DETAIL      NiPGetHostByName2: hostname 'gateway' not found
    SYSTEM CALL gethostbyname_r
    COUNTER     1.
    Can anyone please help me out. Do I need to do any setting?
    I'll surely reward points.
    Thanks & Regards,
    Nilesh Kumar

    Hi Nilesh,
    From the error i think that the error is with the hostname.
    Please enter the the Application Server IP/Hostname.
    If you are loggin to SAP System "XX1" from SAP GUI. Then click the change Item tab and see Application server name/IP let say "XX2" for hostname or "xx.xx.xx.xx" for IP.
    Replace <i>srv[0] = new Server("gateway","sapgw00","JCOSERVER01",repository);</i>
    with <i>srv[0] = new Server("XX2","sapgw00","JCOSERVER01",repository);</i>
    If App Server is IP then replace with
    <i>srv[0] = new Server("xx.xx.xx.xx","sapgw00","JCOSERVER01",repository);</i>
    Let me know if it is throwing any error.
    Thanks,
    Prashil

  • Direct access to a file in IFS from Portal using SSO

    Hi,
    we need to be able to access a file in IFS directly from a link in Portal using SSO.
    I take it is possible. Has anybody done it? Any tips?
    thanks,
    Inga

    Hi,
    If u want to increase the speed of reading then u can try this.
    If each line of the file is almost the same length then u can fix a particular size for each record.
    For example each record will occupy 50 bytes. If u want to access the 10th record u can just use skip method to skip 450 bytes and read 50 bytes from that location.
    In this method there will be wastage of space, but memory consumed when running the app will be less since u dont store full content of the file in memory(vector)

  • Call Unix Command From Reports Using Java

    Hi,
    Could somebody please show me a sample coding to call Unix command from 10g report using java?
    In metalink doc id 361857.1 does not show much.
    Thanks,
    neemin

    Hi,
    I have a problem with synchronization of the java commands.
    In the Before Parammeter Form trigger, I have:
    function BeforePForm return boolean is
    rt ORA_JAVA.JOBJECT;
    proc ORA_JAVA.JOBJECT;
    v_txt varchar2(32000);
    i integer := 0;
    v_cd_modulo int;
    v_arqlog text_io.file_type;
    cursor c_evento is
    select codigo,
    nome
    from
    (select e.cd_evento || e.cd_edicao codigo
    ,nm_evento nome
    from grh_ev_evento e
    where e.CD_GRUPO in (select cd_grupo
    from grh_ev_adm
    where cd_usuario = (select cd_usuario
    from usuario
    where login_usuario = :AUTHID)))
    order by substr(nome, 11);
    begin
    -- Create the context for logged user
    if instr(upper(nvl(:AUTHID,'RWCLIENT')),'RWCLIENT') > 0 then
    :AUTHID := :SSO_USUARIO;
    end if ;
    TCEENV.SET_TCEENV(:AUTHID);
    if PK_SCA.SCA_GET_USER_RIGHTS(:sca_module_name, :AUTHID) IS NULL then
    srw.message(100, 'Access denided!');
    return (FALSE);
    end if;
    -- Create file in Report Server (UNIX)
    v_txt := '<BR>' || htf.formSelectOpen('P_EV_EDICAO', 'Evento: ');
    :p_file := '/u03/SCAWEB/repout/' || :sca_module_name || '_' ||
    pk_sca.sca_encrypt(:AUTHID || to_char(systimestamp, 'ss.ff'));
    v_arqlog := text_io.fopen (:p_file, 'A');
    text_io.put_line (v_arqlog, v_txt);
    for reg in c_evento loop
    i := i + 1;
    if i = 1 then
    v_txt := '<OPTION SELECTED VALUE="' || reg.codigo || '">' || reg.nome;
    else
    v_txt := '<OPTION VALUE="' || reg.codigo || '">' || reg.nome;
    end if;
    text_io.put_line (v_arqlog, v_txt);
    end loop;
    v_txt := '</SELECT></CENTER></form></BODY> </HTML>';
    text_io.put_line (v_arqlog, v_txt);
    text_io.fclose (v_arqlog);
    SRW.SET_AFTER_FORM_HTML(SRW.FILE_ESCAPE, :p_file);
    rt := RUNTIME.GetRuntime();
    proc := RUNTIME.exec(rt,'rm ' || :p_file);
    return (TRUE);
    end;
    The problem is that there isn't a "synchronize" command, and the
    RUNTIME.exec(rt,'rm ' || :p_file) don't works (it does nothing) because
    the SRW.SET_AFTER_FORM_HTML has a large delay and the following
    command is ignored.
    How can I solve it?
    thanks,
    lmprestes

Maybe you are looking for

  • Limited or no connectivity to wireless on XP using Boot Camp

    Hi all, I need a little help! I just installed Windows XP with SP2 on my Intel Mac using Boot Camp. Everything seemed fine until I tried to connect to my wireless network. I've installed and reinstalled all of the drivers, and I can see the driver fo

  • Error in transaction FNB1

    Hi while trying to execute the transaction FNB1 I am getting the error : Table TZB06 not maintained     Message no. 67102 I am using the product type 33B and have the flow type is 1001. Current status in contract. I have done the config at Loans Mana

  • LDAP versus TNSNAMES.ORA

    Have a client with lots of Oracle all over the place. They have indicated they are looking at an "enterprise TNSNAMES.ORA" file. Not given an specifics on how they think it can be done/why they want it done. Can Oracle use an LDAP directory to perfor

  • Keyboard scratches Screen and Reinstall OSX takes 8 hours

    Only 2 months ago I bought a macbookpro. I was all excited, my first mac. 2 months later... I had bought a case for it to protect it. I carry it in my backpack in a separate sleeve designed to not allow pressure on the device when carried in the back

  • Itunes sync after win7 rebuild

    My PC's HDD crashed - I installed new HDD and reinstalled Win7 -  Now when I want to sync with Itunes - I tunes wants to delete all the Music on my Iphone ? I do not want to have my Iphone have 5 songs like my pc - I want my PC to have 500 songs like