Generate SAP Portal URL in ABAP

Hi all
I am faced with a task that involves fetching data from SAP E-Recruiting, and presenting it in an XML document which is indexed by a search engine. The data I extract from E-Recruiting, will be used to display a short listing of available positions in the company on an internal website.
I am able to extract the data, and present it in XML, but the following is a bit more difficult for me.
The challenge is this:
For each position I exctract from E-Recruiting, I need to find a way to generate a complete "portal style" URL. This URL will take users browsing the website, to the E-Recruiting job advertisement in the SAP portal. The SAP Portal will display the complete E-recruiting job advertisement, when the users click a "Read more" link in the short listing.
An example URL is this:
http://<i>server:port</i>/sap(bD1lbiZjPTUwOCZkPW1pbg==)/bc/bsp/sap/hrrcf_req_dovr/application.do?BspClient=508&BspLanguage=EN&rcfSpID=0003&PARAM=UE9TVF9IUk9CSkVDVD0wMU5DNTAwMDExNTQ%3d
I need to do this in "regular" ABAP / ABAP OO programming, not BSP or something like that. Is there some function module that will do this for me? I collect all my information from the tables HRP51* (i.e. HRP5122).
Any help is greatly appreciated.
Regards,
Thomas K
Message was edited by: Thomas Kjelsrud
Message was edited by: Thomas Kjelsrud

the example url you have given is not portal url
An example URL is this:
http://server:port/sap(bD1lbiZjPTUwOCZkPW1pbg==)/bc/bsp/sap/hrrcf_req_dovr/application.do?BspClient=508&BspLanguage=EN&rcfSpID=0003&PARAM=UE9TVF9IUk9CSkVDVD0wMU5DNTAwMDExNTQ%3d
its a bsp url.
if you want to generate bsp url you can use the following method from your abap program
DATA:  params TYPE tihttpnvp.
FIELD-SYMBOLS: <wa_params> LIKE LINE OF params.
fill params table with other url parameters you want
like BspClient=508
APPEND INITIAL LINE TO params ASSIGNING <wa_params>.
    <wa_params>-name = 'BspClient'.
    <wa_params>-value = '508' .
CALL METHOD
      cl_http_ext_webapp=>create_url_for_bsp_application
      EXPORTING
        bsp_application      = 'HRRCF_REQ_DOVR'
        bsp_start_page       = 'application.do'
        bsp_start_parameters = params " other url params
      IMPORTING
        local_url            = url.
if this bsp is running inside portal as an bspiview and you want to reach this iview directly from a url then the url is different , it is basically the path of the iview in the Portal Content Directory
Hope this helps.
Regards
Raja

Similar Messages

  • How to encrypt Password while calling Portal URL from Abap

    Hi all,
    My requirement is to call portal from R/3 4.6C.  As part of it I'm calling Portal URL along with user id & Password by using the FM CALL_BROWSER. The problem here is User ID & Password are visible everyone in the URL.
    Is there any way that I can encrypt sothat it doesn't become a security issue?
    I really appreaciate for your help.
    Thanks
    Seshu

    can you please mention the abap code  by which you are sending the username and password to a portal via url.....
    are you able to log on to the portal...please share your code ......
    Edited by: Ashutosh Shukla on Apr 18, 2008 9:17 AM

  • SAP Portal URL

    Hi gurus,
    We have a portal implementation. For all the pages the url that appears in the browser is the same. I want to ask if I can have a link that calls direclty a page inside our portal.
    Thanks in advance

    Hi,
    If it dont want to ask for userid/password ..you should make that page accessable to anonymous users.
    give permissions to anonymous users for that page , then it wont ask for credentials.
    Check the below thread to call url by adding anonymous in the Navigation target url.
    Accessing Navigation target through anonymous content.
    Regards,
    Koti Reddy
    Edited by: Koti Reddy Chimalamarri on Apr 13, 2010 10:53 AM

  • Generate  Portal URL

    Hi,
    I would like to generate my Portal URL instead of hardcoding the values in javascript function.
    How can I get Server name and port number in javascript function?
    Thanks,
    Suparna

    Hi Suparna,
    Please read the Portal Developer Guide topic at http://help.sap.com/saphelp_nw04/helpdata/en/43/0029d0e7371aa2e10000000a422035/frameset.htm. which describes the ways for creating navigating links.
    Hope this helps.
    Daniel

  • How can generated EWA for SAP Portal system

    Hi Guru there,
    Usually generate EWA should maintenan RFC, We have SAP Portal systems ( prod PP1 and test PT1 and dev PD1), but they are not appeared at saplogon and no general SAP interface, only operationing system level we can start/stop SAP system and database and from the operating system browser can see the portal work normal ( 50000 port) or not.
    How can I generate EWA from solman?
    waiting for your kind reply!
    best regards,
    WEI

    Hi Wei,
    Do you already know SAP Note <a href="http://www.service.sap.com/sap/support/notes/976054">976054</a>?
    This SAP Note describes the setup of EWA for NON-ABAP Components.
    Please see the description and the attachments.
    Best regards,
    Ruediger

  • How Sap SDN do it? -  navigation change Portal URL

    Hi:
    If you check SDN home page you´ll see that almost every link changes the url site but the content is display in content area ( do not change the page completly). I was wondering how that could be done as my EP has always the same URL.
    I checked:
    URL Generator Service
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/236cfa17034a37a439dc392ec59eb0/frameset.htm
    Portal URL Aliases
    Portal navigation
    and ECPM stuff
    I´m not quite sure if there´s a configuration at Visual admin/Portal that enables this behavior.
    Thanks a lot for your time on this thread.
    Rocío.

    We can also create a unique url for every page or iview.
    There is a property called Quick Link  which exists for every page/iview
    Let us say open a page  as object and set the Quick Link property as 'abc'
    Then you can access that page directly from the url  // http://<yourhostname>:<portno>/irj/portal/abc
    hope it helps you to some extent.
    Raghu

  • Url Iview from SAP Portal to Infoview encounters "Access is denied"

    Hi
    We are using URL Iview to point to Business Objects Infoview from SAP Portal. Our requirement is to launch the Infoview within the portal content area. We are able to preview the iview, but encounter "Access is denied" error when we add the iview to page, we realised that we are only able to launch infoview when it is setup to open in a new window.
    Is there a way where we can show the Infoview in portal content frame.
    Regards
    Kamal

    Hi experts,
    i got the same problem how to integrate the InfoView Appl into the "Portal Content Area" and not only as an new Window.
    When i try to analyse the problems, the error stacks say some thin about that an Java Script is trying to change the browser size and the portal is not allowing this... thats my assumptions.
    Has anybody how we could solve this tricky topic ?
    For details to to customize the URL iView please refer to this thread: Integration of InfoView into SAP Portal using SSO
    kind regards
    Stefan

  • How to close sap portal IE window using WD ABAP

    Hi All,
    I'm asked to close sap portal window by clicking a button in one of my WD Abap applications.
    Is that possible, if so can you please provide me with a coding example.
    Thanks
    Ziv

    Thanks Prashant
    The link was very helpful indeed.
    It wasn't entierly correct but it got me on the right track to solving my problem.
    Here is the complete solution :
    Step 1.
    Create an outbound plug in your view , O_<VIEW>_EXIT.
    Step 2.
    Create an inbound plug in your window , I_<WIN>_EXIT.
    Step 3.
    Create an outbound plug in your window , O_<WIN>_EXIT ,
    while creating the plug make sure that you make it as an exit plug.
    (In the normal course , system will not allow you create an exit plug
    unless and otherwise you specify the plug as an interface one.)
    Add a paramter close_window to the interface of the plug (this paramater is known by the framework)
    Step 4.
    Go to your HANDLEI_MAIN_EXIT method in your window and fire the exit plug.
    >>>>>> wd_This->Fire_O_V_Main_Exit_Plg( close_window = 'X' ).
    Step 5.
    Go to the window create the navigation link from the outbound plug of your <VIEW> to the inbound plug of your window.
    Ie , create a navigation from O_<VIEW>_EXIT ( view ) to I_<WIN>_EXIT ( window )
    Step 6.
    Whenever you want to close the window fire the outbound plug >>>>>> wd_This->Fire_O_<VIEW>_Exit_Plg( ) From your code.

  • Find user SAP Portal role in an abap program

    Dear all,
    We would like to check the SAP Portal role of a Portal user in a R/3 abap program.
    do you know if there is a bapi or a RFC module function to do that ?
    For example : the user CCDEMO (exists in EP and in R/3 backend) has a Buyer Portal role. In an abap program, I would like to have this information.
    Thanks
    kind regards
    Véronique

    Dear all,
    We would like to check the SAP Portal role of a Portal user in a R/3 abap program.
    do you know if there is a bapi or a RFC module function to do that ?
    For example : the user CCDEMO (exists in EP and in R/3 backend) has a Buyer Portal role. In an abap program, I would like to have this information.
    Thanks
    kind regards
    Véronique

  • Change html generated by SAP portal

    Hi all
    Along with our web team I am looking into re-skining the SAP portal and was just wondering if there is a way of effecting the html code generated for each page of it. I know you can change the CSS tags, images via the theme editor etc but was wondering if it was possible to actually change the html code. i.e. have the ability to remove certain <table> tags or add new div tags and assign a class to them which could them be re-styled by adding aditional code to the CSS file. Basically the more that can be accessed the better so any help/advice in this area would be much appreciated.
    Regards
    Mart

    Hi Mart,
    You can modify in the relevant .par files if you want to remove or add in the JSP file under relevant par files.
    Hope it helps
    Regards
    Arun

  • Webdynpro ABAP content authorization object in SAP portal ?

    Hi
    We are on EHP 6.06 , we have an authorization problem in sap portal for the webdynpro abap content. our standart users got the error "page can not be found" for the services provided from webdynpro abap. when I assign the user to administrator group in sap portal the services working fine. I also checked the SAP ERP roles no problem is there.  I guess I should create a new portal role for them cause its the only difference between users who can reach or not but have no idea what to put in it in SAP portal. Any idea ?

    in portal content directory => double click on the Content provided by sap folder. Than you should have a dropdown somewhere where you can select "Authorizations". You should add the group endusers and check the checkbox.

  • Is possible to change The URL of a SAP Portal ?

    I have a large URL for a SAP Portal. 
    http://sikpbj.grup-sig.corp:52100/irj/portal
    The end-user wants a short URL.    http://BI_Estrategico
    I don´t have experience with Portals
    Somebody could help me, pls,
    What i need to do ?
    Message was edited by:
            Carlos Trujillo

    Hi,
    By default, URLs in the portal are shortened, with the navigation target converted (hashed) into a short GUID.
         http://myServer:54000/irj/portal 
    NavigationTarget=ROLES://portal_content/every_user/general/eu_role/com.sap.portal.portal_personalization/com.sap.portal.persoUserMapping.
         A short version of the URL might be the following, with the navigation target hashed and shortened:
    http://myServer:54000/irj/portal?NavigationTarget=navurl://b3d6d9ebac16a46574d62757803b05d4
         Go to SystemAdministration->Navigation->ShortUrls(it is in detailed navigation area)->from here you can select Short URLs for custom roles.
         Give the Shorturl as NavigationTarget.
    Refer this blog
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2452">Short URL</a>
    You can also use Quick links for iView and pages
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2452">Quick Link</a>
    Regards,
    Hemalatha
    /Assign Points if helpful/

  • Rewrite PORTAL URL

    Hey ,
    I have a Strange Issue here . Our BI Production Landscape Consists of PORTAL and BI- ABAP ( CI + 2 App ) .
    The Hostname "bi.ril.com" is on DNS which POints to CI(ABAP) . There is a Web Dispatcher Configured on CI Which is Supposed to Route HTTP Requests to APP Servers for Load Balancing .
    Now , as per the LINK http://help.sap.com/saphelp_nw04s/helpdata/en/5f/7a343cd46acc68e10000000a114084/frameset.htm ,
    I have Performed the Mapping of URLs based on the SAP Logon Group and Request are getting ROuted to Application Servers.
    The Issue now is , When a HTTP Request goes to an APP Server the URL Generated is Somewhat like biapp##.ril.com which is Not on DNS .
    I can Put it on the DNS , but then the URL just wont be that Frindly . I am ready now the host these names on DNS .
    The Problem is , I want the CLIENT BROWSER to Display the URL as " bi.ril.com " , even though Internally it should be calling an APP Server .
    Is this EVEN Possible ???? I have Gone throught URL Rewriting , but then this feature only Rewrites the Prefixes and not the Entire URL .
    Regards,
    Ashish .A. Poojary
    Edited by: Ashish Poojary on Mar 28, 2011 8:38 AM

    Hi,
    The Issue now is , When a HTTP Request goes to an APP Server the URL Generated is Somewhat like biapp##.ril.com which is Not on DNS
    Do you speak of the URL generated from the web dispatcher to be sent to the app server ?
    If yes, I don't get this result on my system and I don't understand how you can get this.
    The URL sent to the appserver looks like http://appserver.domain.country/url
    The URL seen from the browser looks like https://webdispatcher.domain.country/url
    Regards,
    Olivier

  • Can we get a "Add to Browser Favorites" URL from ABAP-side?

    Hi,
    via "Add to Browser Favorites", you can get a URL for opening exactly the portal page you are currently on. Is there any possibility
    to get (or create/generate) the URL for such a page from ABAP-side? We have the requirement to send e-mails from the ABAP
    backend with links (URLs) to a corresponding portal page (like the example below). This has to be done quite generic, mi.e. the server,
    the port, the application parameters, etc. cannot be hardcoded but have to be generated in a generic way.
    Thank you and kind regards,
        Florian
    PS: Example:
    http://pwdf6460.wdf.sap.corp:50000/irj/portal/ajax?navigationtarget=roles://portal_content/com.sap.pct/every_user/com.sap.pct.erp.common.bp_folder/com.sap.pct.erp.common.roles/com.sap.pct.erp.common.erp_common/com.sap.pct.erp.common.lpd_start_wd_abap&&WebDynproApplication=CPROJECTS_FPM&WebDynproConfiguration=CPROJECTS_FPM&ApplicationParameter=OBJ_EVENT%253dDPO47BAB5FEB7A55A28E10000000A424B1D47BAB5FEB7A55A28E10000000A424B1DDPO++++++++++++++++++++++++NON&NavMode=3&System=SAP_cProjects&PrevNavTarget=ROLES%253a%252f%252fportal_content%252fcom.sap.pct%252fevery_user%252fcom.sap.pct.plm.ppm.PPM50%252fcom.sap.pct.plm.ppm.Roles%252fcom.sap.pct.plm.ppm.port_prj_mgmt_showcase%252fcom.sap.pct.plm.ppm.projectmanagement_showcase%252fcom.sap.pct.plm.ppm.pm_overview%252fcom.sap.pct.plm.ppm.ws_projects%252fcom.sap.pct.plm.ppm.cpr_projects_showcase&WebDynproNamespace=sap&&NavigationContext=merge(ROLES://portal_content/every_user/general/eu_core_role/com.sap.uwl.home_core_ws/com.sap.netweaver.bc.uwl.overview%7CROLES://portal_content/every_user/general/eu_core_role/com.sap.portal.home_core/com.sap.portal.home.overview)

    Hi,
    It is hard to know exactly what to suggest since I don't know the full story behind the process you are trying to implement. However I can make some suggestions:
    1. Use short URLs. These can be configured in the portal and will allow for easier navigation. you will see this as a "quick link" parameter in the page properties.
    2. Rather then hard coding any values use a configuration table in the ABAP system.
    3. If the process starts in the portal you could have your portal application send the necessary data to the ABAP system so it could use it to generate the email (e.g. Server/Port/Parameters etc...)
    4. If it is a dual stack system you may be able to leverage the co-existance of portal an ABAP on the same server.
    5. What about using a web service on the portal to supply the URL to the ABAP system. You could call this web service from the ABAP and have the portal provide the data that way. This would be good if your process kicks off on the ABAP side and not via the portal.
    Anyway, I hope some of those suggestions help.
    BRgds,
    Simon

  • How to generate Webdyn Pro URLs

    Hello,
    Within the class structure of our system hosting eRecruitment 6.03 there is a class and method with which I can generate a valid url for a posting object with the following code:
           CALL METHOD cl_bsp_runtime=>construct_bsp_url
              EXPORTING
                in_protocol    = 'https'
                in_application = 'hrrcf_pinstappl'
                in_page        = 'application.do'
                in_parameters  = lt_params
              IMPORTING
                out_abs_url    = abs_url
                out_local_url  = local_url.
    Is there an equivalent method for generating a URL which will call the Webdyn Pro interface instead of the BSP.
    Thanks,
    A-

    Hi
    Go throgh this link it will help u a lot
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7015b1f9-535c-2910-c8b7-e681fe75aaf8
    or u can also use this link it will solve your problem
    http://www.riyaz.net/blog/getting-started-with-web-dynpro-for-abap/
    Edited by: anand prakash rai on Oct 23, 2008 12:48 PM

Maybe you are looking for

  • Generic Object Services with SAPGui Classic Theme

    Dear Experts, the button for Generic Object Services is available in different transactions like VA03, ME23N, etc. We are facing now the problem that if a user has in his SAPGui the "Classic Theme" choosen the button for the GOS is not visible. The s

  • How to use the function module 'HR_ES_FEATURE_BACKFIELD'

    Hi, How to use the function module 'HR_ES_FEATURE_BACKFIELD'? I need the usage from both technical as well as functional point of view. What is the use of this function module and technically how it is to be used to retrieve a feature for a particula

  • Attribute mapping in replication

    Hi, We have around 10 servers running DS5.2P4. Now we are building DS6.3 servers for an acquired enterprise and would like to store the new directory information in one of the old 5.2 servers for data recovery. The problem is that the schema in 6.3 i

  • Jamming with the Arpeggiator not right

    So I know how to set up the arp in logic no problem, also delay lines and all that good stuff, the problem is this. On other Arps I can jam by playing arped notes very quickly then holding down the note when I want the arp to work. In logic this is n

  • Do I need to unlock my Iphone 3gs again after restoring it.?

    I have an iPhone 3gs running on version 5.0.1. When I inserted the Vodafone sim for the first time it got locked with the same sim. Now if I use any other sim the network doesn't come. Now I am thinking either to jailbreak the iPhone or restore the i