Calling a BSP page from ABAP programme

Dear Friends...
        I am cslling a BSP... from an ABAP program... for that I have used this class and also a function module to ckeck.. actually from the abap program it invoks the BSP page very nicely and as my logic for invoking the BSP is a part of the Business Object and it is associated with the Enterprise portal so... when i reach the ep and trigger that business object to instantiate the BSP page from my calling logic of abap... it goes to the ITS and port 80 or something and didnt produce the BSP.. and only the blank screen was there...kindly help me how i am supposed to instantiate the BSP from properly from ABAP by interfacing the EP... my code is given below...
data :
    lv_url type string.
  concatenate
    'http://sapdevbp.sbic.co.za:8041/sap(bD1lbiZjPTIwMA==)'
    '/bc/bsp/sap/z_updatemng/bp.htm?bpid=' object-key-businesspartnerid
    into lv_url.
call method cl_gui_frontend_services=>execute
  exporting
    document = lv_url
  exceptions
    others   = 1.
please help....
me...
regards
Naim

Instead of hard coding the URL try to get the URL of the BSP application with the below code
CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
EXPORTING
bsp_application = '<BSP application name'
bsp_start_page = <start page e.g default.htm>
bsp_start_parameters = params " any parameter you want to pass along with url
IMPORTING
local_url = url.
Then try out passing the URL to the execute function

Similar Messages

  • Calling multiple BSP pages from parent BSP page

    Hi ,
    I have created 2 BSP pages and i want to call the 2nd BSP page from the 1st BSP page depending upon the user's company code. Please help me on this .
    I would really appreciate you quick response on this.
    Regards,
    Sanjeev

    Hi,
    Do you want to have both pages displayed at the same time?
    What about a popup or (i)frames?
    If not, what about navigation to the second page if a certain value is filled in:
    if var eq 'value'.
    navigation->goto_page('page2.htm' ).
    endif.
    Eddy
    Discover the new S(D)N search plugin for Internet Explorer 7 AND Firefox 2 in this <a href="/people/eddy.declercq/blog/2006/11/13/the-beloved-in-sweet-harmony log</a>

  • Call a HTML page from ABAP dynamically

    Hi,
    My requirement : I need send information to a specific URL in a HTML format and get a response ( just the status)
    We are using an implicit enhancement to gather the details for this. Once the values are populated into form we need to send this form to a specific URL when the customer is getting saved on XD01/ XD02.
    The HTML will not be shown to the user hence I cannot download and then use the execute option using CL_GUI_FRONTEND_SERVICES. ( I have already tried this option and it working perfectly fine )
    Any suggestions of the best way of achieving this ?
    Thank you.
    Regards,
    narayani

    Hi,
         to get the data from URL(http) we have so many function modules under function group SFTP ,recently i used HTTP_GET to get the data from url.
    but i don't know how to send the data to url ,but this following link may helps you,
    https://help.sap.com/saphelp_nw04/helpdata/en/2b/d920434b8a11d1894c0000e8323c4f/content.htm

  • Call BSP Application From ABAP

    Hi,
    I want to call BSP Application from ABAP. I've searched the forum and they all are displaying BSP Page in Container of the Screen. My requirement is to show it in a web browser. For that matter I am generating URL to call BSP Application. Following is the code which is throwing short dump.
    DATA: url TYPE string,
    l_appl TYPE string,
    l_page TYPE string,
    l_params TYPE LINE OF tihttpnvp,
    params TYPE tihttpnvp.
    l_appl = 'ZPWLS_SCH_RPT'.
    l_page = 'SELECTION_SCREEN.htm'.
      call method cl_http_ext_webapp=>create_url_for_bsp_application
        exporting
          bsp_application      = l_appl
          bsp_start_page       = l_page
          bsp_start_parameters = params
        importing
          abs_url              = url.
          CALL FUNCTION 'CALL_BROWSER'
           EXPORTING
             url                          = url
            WINDOW_NAME                  = ' '
            new_window                   = 'X'
            BROWSER_TYPE                 =
            CONTEXTSTRING                =
          EXCEPTIONS
            FRONTEND_NOT_SUPPORTED       = 1
            FRONTEND_ERROR               = 2
            PROG_NOT_FOUND               = 3
            NO_BATCH                     = 4
            UNSPECIFIED_ERROR            = 5
            OTHERS                       = 6
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Thanks,
    Usman Malik

    What is the dump? also you should uncomment the following lines to receive the exception thrown by the FM
    * EXCEPTIONS
    * FRONTEND_NOT_SUPPORTED = 1
    * FRONTEND_ERROR = 2
    * PROG_NOT_FOUND = 3
    * NO_BATCH = 4
    * UNSPECIFIED_ERROR = 5
    * OTHERS = 6

  • How to call a standard page from a custom BSP-iView by URL

    Dear readers,
    I have to implement a scenario as described in the guide "Administration of the Business Package for SAP CRM 4.0", chapter "Object Links in the Portal" scenario 1 and/or 2 (page 404).
    In my case, a custom iView-BSP lists certain business partners in a tree view as hyperlinks. Which URL do I have to use for these hyperlinks to call the "Accounts" page (within role Account Management (com.sap.pct.crm.AccountManager)) with the selected business partner.
    The guide informs that there exists among others a table CRMC_PRT_ROLE_MO where I can find the ID Page/Servie URL for each Role/CRM Object type/CRM Method.
    My question is if I can use this URL fragment within the URL I have to build, and if yes, how must I construct the full URL to call the account page? If now, which URL must I use to call the account page?
    thank you
    Andreas

    Hi Niladri,
    My requirement was calling the OAF page from standard form (menu), below are the steps that I followed,
    1) Get the OAF page function name
    2) Personalize the form, by calling the OAF page function
    a) Function Code: Give the OAF function code
    b) Parameter: Here pass the parameters
    example: ='contractLineId='||:OKS_LINES.ID
    Note: If you are calling from a custom form you can also try using fnd_function.execute to call the OAF page
    Thanks,
    Bharat

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • Calling a BSP application from another

    Hello,
        I have not a lot experince in bsp's programming.
        I am trying to call a bsp applicattion from another one. Do you know how can I do it?.
        Thanks in advance.  Javier.

    hi Javier,
    For questions on BSP programming,you should post your questions on the bSP forum.
    For your question,it depends on how you want to call your BSP application.
    Do you want to navigate from one BSP page to other or you want some link which leads to the other BSP application.?
    You can find sufficient help on the help.sap.com
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm</a>
    For more details, you can search SDN itself.
    IF you have more queries,your'e welcome.
    Regards,
    Siddhartha

  • As I can call to a API from ABAP (46C) ?

    Hello.
    As I can call to a API from ABAP (46C)?
    Any idea?
    THANKS.

    The answer to that question really depends upon the SAP WebAS (or Basis as it used to be known) release you are on.  
    Did you have a look at the weblog mentioned earlier in this thread:
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    It shows some examples on 620 and 640.  Let us know what you have to work with, and we will see if we can help.

  • Is there any way to trigger BSP Page from ITS..

    Hi,
      is there any way to trigger BSP Page from ITS?
      say for example i have a its service, when i click my its service i want to call BSP Page instead of calling module pool screen.
    thanks,
    Abhay.

    do you want to have a link the ITS page which calls a BSP page or do want a simple call the ITS url should redirect you to BSP page?
    for your explanation i understand that calling a ITS service should automatically redirect to BSP page -  in such a case you can just use url redirection by using meta tag or reidrect using javascript.
    <META HTTP-EQUIV="Refresh"
          CONTENT="5; URL=<BSP page>.htm">
    But i dont understand the reason why you would want to do this.
    Regards
    Raja

  • How to call OAF standard page from form by passing parameters?

    Hi,
    I have a requirement where I need to call a standard OAF page from Oracle form, I was able to call the page through personalization, but I also want to pass a parameter to the OAF page and query the OAF page using that parameter, could anyone please help?
    Note: Under the forms personalization I wrote the below code for parameters
    Actions --> Parameters--> ='contractLineId='||:OKS_LINES.ID
    Thanks,
    Bharat

    Hi Niladri,
    My requirement was calling the OAF page from standard form (menu), below are the steps that I followed,
    1) Get the OAF page function name
    2) Personalize the form, by calling the OAF page function
    a) Function Code: Give the OAF function code
    b) Parameter: Here pass the parameters
    example: ='contractLineId='||:OKS_LINES.ID
    Note: If you are calling from a custom form you can also try using fnd_function.execute to call the OAF page
    Thanks,
    Bharat

  • How to call a sub screen from abap report

    Hellow friends,
    how to call sub screen 1001 prog name SAPLMGD1
    and main program SAPLMGMM screen 4000 of tcode MM02.
    i need to call the sub screen from abap report

    Hi Rajesh,
    You can use FM MATERIAL_MAINTAIN_DIALOGUE to go to subcreen MRP1 in MM02.
    Please check this sample code from other thread and enter 'MRP 1' for p_dytxt.
    REPORT zsritest.
    TABLES mara.
    DATA: lv_bilds LIKE t133a-bilds,
    ls_t130m LIKE t130m,
    ls_rmmg1 LIKE rmmg1,
    lwa_view TYPE mbildtab,
    lwa_auswg TYPE mgauswg,
    lt_views TYPE STANDARD TABLE OF mbildtab INITIAL SIZE 0,
    lt_auswg TYPE STANDARD TABLE OF mgauswg INITIAL SIZE 0.
    PARAMETERS: p_matnr LIKE mara-matnr,
    p_werks LIKE marc-werks,
    p_dytxt LIKE mbildtab-dytxt.
    SELECT SINGLE * FROM mara WHERE matnr EQ p_matnr.
    CHECK sy-subrc EQ 0.
    CALL FUNCTION 'T130M_SINGLE_READ'
    EXPORTING
    tcode = 'MM02'
    kzrfb = 'X'
    IMPORTING
    wt130m = ls_t130m
    EXCEPTIONS
    not_found = 1
    wrong_call = 2
    OTHERS = 3.
    CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'
    EXPORTING
    branche = mara-mbrsh
    materialart = mara-mtart
    tcode_ref = ls_t130m-trref
    * KZRFB = ' '
    IMPORTING
    bildsequenz = lv_bilds
    * KZ_BILDS_CHANGED =
    EXCEPTIONS
    wrong_call = 1
    not_found = 2
    OTHERS = 3.
    CALL FUNCTION 'SELECTION_VIEWS_FIND'
    EXPORTING
    bildsequenz = lv_bilds
    pflegestatus = mara-pstat
    TABLES
    bildtab = lt_views[]
    EXCEPTIONS
    call_wrong = 1
    empty_selection = 2
    OTHERS = 3.
    ls_rmmg1-matnr = mara-matnr.
    ls_rmmg1-werks = p_werks.
    READ TABLE lt_views INTO lwa_view WITH KEY dytxt = p_dytxt.
    CHECK sy-subrc EQ 0.
    lwa_auswg-auswg = lwa_view-auswg.
    APPEND lwa_auswg TO lt_auswg.
    CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'
    EXPORTING
    irmmg1 = ls_rmmg1
    * IRMMG1_REF = ' '
    KZ_EIN_DARK = 'X'
    t_tcode = 'MM02'
    * FLG_MATNR_RES = ' '
    p_pstat = mara-pstat
    * FLG_STAT_ALL = ' '
    * CALL_MODE2 = ' '
    * IMPORTING
    * MATERIAL_NO =
    * UPDATE_OK =
    TABLES
    iauswg = lt_auswg[]
    EXCEPTIONS
    no_authority = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Ferry Lianto

  • How to call a jsp page from oaf and run in jDeveloper

    Hi all,
    I created sample jsp and then tried.
    String temp = "sample.jsp?";
    pageContext.setForwardURL(temp,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    It worked.
    But when i tried with one of the custom page that i downloaded from server it is giving error.
    But now i need to call that page.
    Its Code is given on below link:
    Re: how to call a jsp page from oaf
    Please help me to do this.
    Thanks in advance.
    Regards,
    Raj

    Raj,
    1. Hope you have placed the custom jsp page (which you have downloaded from server) under "jdevhome\jdev\myhtml\OA_HTML" directory ?
    2. Try to run the custom jsp page from Jdeveloper directly and check whether its working properly or not ?
    (i.e. add jsp page to any project in Jdeveloper then right click on jsp page and select Run xxx.jsp)
    3. If page errors out then custom jsp page seems require few parameters to run it successfully. Pass all requied parameters and test.
    4. There is no problem in the way you are calling jsp page from OAF page.
    regards,
    Anand

  • How to call a JSP page from Applications menu?

    Hi partners,
    I am still looking for "how to call a JSP page from Applications menu?", I mean instead of calling a form, I want to call a JSP page which is staying in a OC4J repository which is located in another server.
    Any idea will be really appreciated.
    Thanks in advance.
    Frank Mtz.

    Hi Frank,
    if u know the solution please share it with me. i'm looking for the same scenario.
    thanks in advance,
    anish

  • Error while calling standard OAF page from custom Oracle Form

    Hi,
    I am calling standard OAF page from custom oracle form using the following code.
    FND_FUNCTION.EXECUTE(FUNCTION_NAME=>'FUN_TRX_ENTRY_OUT_VIEW_BATCH',
    OPEN_FLAG =>'Y',
    SESSION_FLAG =>'N' ,
    OTHER_PARAMS =>'&ViewBatchID = "' || NAME_IN('FUN_AGIS_LINE_D.BATCH_ID') ||
                        '&CallingFunction = "' || 'MANEXPINQ' ||'"');
    But I am getting this error.
    oracle.apps.fnd.framework.OAException: This request was not processed as the request URL %2FOA_HTML%2FOA.jsp%3Fpage%3D%2Foracle%2Fapps%2Ffun%2Ftransaction%2Fentry%2Fwebui%2FViewOutBatchPG%26OAPB%3DFUN_PRODUCT_BRAND%26OAHP%3DFUN_SSWA_MENU%26OASF%3DFUN_TRX_ENTRY_OUT_SEARCH%26_ti%3D1217029204%26language_code%3DUS%26%26ViewBatchID%20%3D%20%22203148%26CallingFunction%20%3D%20%22MANEXPINQ%22%26CallFromForm%3D%27Y%27%26oas%3DqZqg3tmdEdUNyw_HtskVow.. contained potentially illegal or un-encoded characters. Please try again by submitting a valid URL or contact your systems administrator for assistance.
    Please let me know any thing I missed out here.
    Any suggestion will highly appreciated.
    Thanks & Regards,
    Sunita

    I am using FND_FUNCTION.EXECUTE to call a OAF page from PLSQL in R12. I am getting following error"Error(9,23): PLS-00302: component 'EXECUTE' must be declared"

  • Calling a BSP application in ABAP webdynpro

    Hi Friends,
    Is there any chance that i can call a BSP application from WEBDYNPRO.
    regards
    Nalinikanth.

    Hi Yashpal/ Pankaj,
    I have one question regarding this.
    The usage of the UI element link "link to URL" is pretty much understandable to call a stanalone application.
    Whereas the usage of suspend and resume plugs, how does it work for BSP applications? For two WD components we can connect the plugs and it works.
    As I do not know about BSP, does it have in/out plugs like WD components?
    If so how to create the navigation link for this.
    Please explain.
    Sankar.

Maybe you are looking for

  • How to add a button in the view at a specific position

    Hi Gurus, We have a requirement : To add a button or image at a specific position in the view which is like an indicator showing different color based on another field . Example : Adding a button next to a drop down flield and changing the color of t

  • Ipod touch 2G not recognized by itunes when using wifi

    I can connect to internet by wifi through network set up with Linksys. iPod recognized by network, Norton, and set as Full Trust. Windows Firewall turned off. iTunes does not show connection to ipod with wifi in iTunes. Tried everything on Apple webp

  • Where to find J2se Adapter

    Hi Friends,    I guess the J2se adapter has to be installed or configured locally.Please correct me if iam wrong. Can anybody here tell me where i could find this software so that i could download it and use?.. Thanks in advance. Regards, Tamilarasan

  • White line under graphic

    I have a sidebar <div> with a series of links and above the links I created another nested inside the sidebare. The graphic I am placing is a title for the links below but after I place the graphic I have a small white space beneath the the graphic w

  • Drawing a Rect2D selection box in reverse

    I have a drawing program where I have the ability to draw a Rect2D object onto the screen by clicking and dragging from top/left to bottom/right. It is used for selecting objects that have been drawn. I was wondering how to make it draw in reverse so