Problem in Subroutnine in BSP

Hello Experts ,
I want to use the subroutines.
Please tell me how can i do this.
Kuldeep

Hi,
Pls check this thread:
Re: Subroutines in BSP ??????
Eddy

Similar Messages

  • Problem with My First BSP Application

    Hi
    I have developed my BSP Application using the tutorial at http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    I created a Package, a BSP application and htm page.
    I copied the code and activated both the BSP App and the page.
    When i execute i get the following on the browser.
    The page cannot be displayed
    The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings
    What is the problem
    Sharath

    Hi,
    In order to see if the service is activated simply right click on it in SICF. There you will see whether or not the service is activated. Additionaly when you are activating the services from the OSS note you will see 2 YES buttons. Be sure to click the one on the right. Its the one with the little arrow and folder picture on it. Clicking this button will also activate the sub nodes.
    Your BSP will be in the following path:
    default_host/sap/bc/bsp/sap/yourbspname
    Although you shouldn't have to activate it in SICF if its properly activated via SE80 and all the system services listed below are active.
    Here are the BSP services that must be activated:
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /default_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /default_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    /default_host/sap/bc/bsp/sap/it00
    /default_host/sap/bc/bsp/sap/sbspext_htmlb
    /default_host/sap/bc/bsp/sap/sbspext_xhtmlb
    /default_host/sap/bc/bsp/sap/htmlb_samples
    Like I said make sure you click on the right hand side YES button to ensure all the sub node get activated as well.
    It is not enough to just activate your BSP application node. All parents should be activated also. Doesn't hurt thats for sure
    Let me know if this helps
    Cheers,
    Rich

  • Problem displaying PDF in BSP

    Hi All,
    With the help of Craigs Blog
    /people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
    I coded a BSP to display PDF from a spool number.
    I did everything mentioned in the blog. When i execute, the pdf gets displayed, however the data is some unconverted junk data. Can any one suggest what i am doing wrong here.
    Heres the coding in the Event handler (OnInputProcessing) :
    DATA: radioButtonGroup TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
    DATA: fileUpload TYPE REF TO CL_HTMLB_FILEUPLOAD.
    DATA: cached_response TYPE REF TO if_http_response.
    DATA: response TYPE REF TO if_http_response.
    DATA: guid TYPE guid_32.
    fileUpload ?= CL_HTMLB_MANAGER=>GET_DATA(
                           request = request
                           id      = 'myUpload'
                           name    = 'fileUpload' ).
    file_name      = fileUpload->file_name.
    file_mime_type = fileUpload->file_content_type.
    file_length    = fileUpload->file_length.
    file_content   = fileUpload->file_content.
    radioButtonGroup ?= CL_HTMLB_MANAGER=>GET_DATA(
                           request = request
                           id      = 'display_type'
                           name    = 'radioButtonGroup' ).
    display_type = radioButtonGroup->selection.
    IF display_type = 'convertspool'.
      DATA: itab TYPE TLINE,
            witab TYPE TABLE OF TLINE,
            output TYPE STRING,
            outputx TYPE XSTRING.
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID              = 0002344365
          NO_DIALOG                = 'X'
        TABLES
          PDF                      = witab
        EXCEPTIONS
          ERR_NO_ABAP_SPOOLJOB     = 1
          ERR_NO_SPOOLJOB          = 2
          ERR_NO_PERMISSION        = 3
          ERR_CONV_NOT_POSSIBLE    = 4
          ERR_BAD_DESTDEVICE       = 5
          USER_CANCELLED           = 6
          ERR_SPOOLERROR           = 7
          ERR_TEMSEERROR           = 8
          ERR_BTCJOB_OPEN_FAILED   = 8
          ERR_BTCJOB_SUBMIT_FAILED = 9
          ERR_BTCJOB_CLOSE_FAILED  = 10
          others                   = 11.
      if sy-subrc EQ 0.
        LOOP AT witab INTO itab.
          CONCATENATE
            output
            itab-tdline
          INTO output.
        ENDLOOP.
    ****Convert the Character String to Binary String
        data: r_string  type string.
        data: R_XSTRING type xstring.
        call function 'SCMS_STRING_TO_XSTRING'
          EXPORTING
            text   = output
          IMPORTING
            buffer = outputx.
        CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING
    add_c_msg = 1.
        l_pdf_len = xstrlen( outputx ).
        cached_response->set_data( data   = outputx
                            length = l_pdf_len ).
        cached_response->set_header_field( name  =
    if_http_header_fields=>content_type
                                           value = 'application/pdf' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.pdf' INTO
    display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      ENDIF.
      RETURN.
    ENDIF.
    Regards
    Sri

    With the help of some other posts and blogs.. am able to display the pdf now.
    However, the default magnification(zoom) is always 44.5%. Any ideas as to how this can be increased or set to a default value.
    Sri

  • Problem with extension ZDOWNLOAD ( BSP hangs)

    Hi,
    In our application we initially implemented the possibility to download tableview data to Excel via Thomas' and Brian's custom extension ZDOWNLOAD. Everything worked fine but then the users decided that they won't need this capability so we took it out. Now they decided that they want the download back so I put it back in. Everything works fine, the popup prompts for "save", "open" or "cancel" and the XLS data is downloaded correctly, but as soon as I close this dialog, a white rectangle appears in the center of the BSP page and the application seems to hang showing the hour glass. I found that this rectangle is actually a separate page called <server>:8000/sap/public/bsp/sap/htmlb/domainRelaxMin.htm.
    Even though I made a lot of changes since we first had the download working, the overall architecture of the app (controller, sub controllers etc.) remained the same.
    I tried to clear the download URL in all possible methods (i.e. DO_HANDLE_DATA etc.) of the controller and the sub controllers, I ran it through the portal, portal integration set/not set, I ran it through SE80 - no luck.
    Does anybody have an idea what’s going on?
    WEB AS 6.40/SP10
    IE 6.0.2900
    Thanks,
    Guenther
    Update: I just found out that the issue seems to be related to my specific scenario (browser, access through VPN etc.) since the download apparently works for our users that do UAT overseas.
    Message was edited by: Guenther Schober

    Hello
    please check wether you have protectDoubleSubmit element on the page. As when this element is on the page and no HTML page is rezurned there is no event to activate the page again.
    Best regards,
    Dezso

  • Problem in testing (deployin)BSP

    Hi all
    Im  new to BSP when i tried to build sample bsp application  and deploy it has been showing some
    500 error .
    It showing some error like this
    Please help me .
    Thanks&regards
    Prasad
    Error when processing your request
    What has happened?
    The URL http://xxx.xxx.xxx.xxx:8000/sap/bc/bsp/sap/tutoriala_htmlb/default.htm was not called due to an error.
    Note
    The following error text was processed in the system ECC : An exception that could not be caught occurred.
    The error occurred on the application server xxxxand in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: ON_CHECK_BSP of program CL_BSP_RUNTIME================CP
    Form: ON_REQUEST of program CL_BSP_RUNTIME================CP
    Form: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
    Form: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

    Hi prasad,
      Go through the weblog,
    /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    Also go through the following forums ,
    Not Able to display the BSP pages
    Unable to execute BSP Applications
    Regards,
    Azaz Ali.

  • Problem with E-Recruiting BSP access

    Hi,
    I'm getting an error that's been mentioned before on some threads, but I don't see any solution.
    I'm configuring a fresh E-Recruiting 6 system on the same box as HCM. (So note in T77S0, I've left the RECFA/HRRFC switch blank).
    I've set up a Recruiter user assigned to the standard Recruiter security roles.
    I try to log in as the Recruiter user using this generated URL:
    http://iwdfvm2160.gcsap.com:51080/sap/bc/bsp/sap/hrrcf_start_int?sap-client=200&sap-language=EN&rcfSpId=0003
    On the logon screen, I first get a message "No switch to HTTPS has occurred".
    Then after I login, I get the error message "An internal error occurred. Please try again later."
    Note that I haven't configured any start pages or contexts. Just trying to get to the default out-of-box initial screen for the Recruiter.
    Thanks, Vlad
    ([email protected])

    Check Tcode SMICM
    Refer the below thread related to HTTPS..it may help you
    HTTPS error
    ICM Monitor-Service display Protocol HTTPS is not active
    Have a look at the following SAP Help Link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/65/6a563cef658a06e10000000a11405a/frameset.htm
    /people/gregor.wolf3/blog/2005/10/11/setup-https-ssl-for-the-sneak-preview-sap-netweaver-04-abap-edition-on-windows
    <i>* Reward each useful answer</i>
    Raja T

  • BSP user verification problem.

    hi,all
    We are facing a bsp user verification problem:
    We put the bsp page into a web dynpro iframe,and it is showing well. But after several tests using several users,Some problems are shown: when we use "USERA" to logon Portal,when we turn to the bsp page,it is shown like using "USERB".
    I do think SSO has no problem. We are using BW Portal.
    Something should be edited about the bsp application?
    Best Regards,
    delma

    Hi Delma,
    I guess a default user is defined for this BSP application.
    Please check it for BSP Application node in SICF.
    Regards,
    Anubhav

  • Dynamic HTML Content in iFrames of a BSP application

    Hey Folks,
    I am currently having to build a context sensitive URL, which is built dynamically and accordingly load the page within a given view during runtime. The URL points to a simple HTML page.
    The application whcih is embedded in the view is a BSP application. The BSP application comprises of an iFrame which should hold the value of the URL built, within the attribute "src". Is there a way in which the value of this attribute "src" of the tag "iframe" can be populated during runtime for BSP applications?
    Please do let me know of your thoughts on this.
    Thanks and Best Regards,
    Puja.

    @Rodrigo,
    Did you make sure you have included the end tag </iframe>? am not sure about this, but maybe you would need to include the htmlb page extension too?
    <%@ extension name="htmlb" prefix="htmlb"%>
    @Others,
    My problem is that the BSP in question has been generated by a framework, the content of which i need to tweak programatically.
    I forgot to make a mention of the crutial aspect that, the Page Type of my BSP application is 'View'. I could have used the oninitialization event to my convinience , had the page type of the application been 'Page with Flow Logic'. I do not have the various event processing options such as 'onInputProcessing' or 'OnInitialization' or 'OnLayout' here which I can work upon.
    Has any body worked with BSPs of type 'View'. Any help would be much appreciated.
    Thanks and Best Regards,
    Puja.

  • BSP OTRs and MIME Objects do not appear

    Dear SDN Members:
    I have been facing a very peculiar issue. At first we had problems in our Z* BSP Application with SY-SUBRC values after a
    READ TABLE itab INTO wa WITH KEY field1 = var_field1.
    If there were no matching record(s) in Internal table, the SY-SUBRC value was still '0' (Zero) and not 4 etc..
    Now another problem has cropped up...
    At a point in the program (Layout section), there are some HTML lines and OTRs+MIME objects to be executed.
    The program executes those lines as visible in debugger, but does not display the same on Internet Explorer screen. The OTRs and .gif files do not appear in this case. A small preview of the code is pasted here below:
    We have recently upgraded our Quality/Testing server to CRM 4.0 from CRM 3.0 and are doing Application Testing.
    <td class="body" width="100" style="vertical-align:middle; text-align:center">
    <% if a_fcode_tknra = 'change' and application->c_rolle_user <> 'P' and ls_release-releaseid = '-'. %>
    <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_chng.gif" name="onInputProcessing(change_au_detail__<%=ls_au_ext-auid%>)"
    alt="<%=otr(ZSM_SAMOS/ZSM_TKN_RA_RA_KE_P05_AENDERN)%>">
       <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_dele.gif" name="onInputProcessing(delete_au_detail__<%=ls_au_ext-auid%>)"
    alt="<%=otr(zsm_samos/delete)%>" onClick="delete_and_confirm();">
    <% endif. %>
    <% if a_fcode_tknra = 'change' or a_fcode_tknra = 'display'. %>
       <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_disp.gif" name="onInputProcessing(display_au_detail_<%=ls_au_ext-auid%>)"
    alt="<%=otr(ZSM_SAMOS/ZSM_TKN_RA_RA_KE_P05_ANZEIGEN)%>">
    <% endif. %>
    </td>
    Please help me understand how to go about solving this.
    Regards.
    Vivek.

    Thanks Raja for posting back. The issue is slightly more complex: there are other "src" usages, but they are working fine in other sections of the layout code. The MIME objects have all been stored at right places.
    This BSP Application has been in use since 2-3 years. Only while we posed for CRM 3.xx to 4.xx upgrade, we are facing these issues in Quality Testing.
    We have tried some 2-3 permutations and combinations for this part of code, but nothing works. Do you think the source path changes in different CRM versions? Or do OTRs face some compatibility issues? Do guide me with them.
    The READ table issue is a shocker for us as well!
    Ofcourse the work area is empty, as nothing's there to be read! Now we have placed a double check with "work area NOT INITIAL" to override this problem. In fact this is on SAP OSS as Priority 1 issue but no definite solution has been provided till date, except that they were talking of some Kernel patch (...??).
    Do let me know if you can think of some reason for this abnormal behavior, as right now everything is "out-of-the-box".
    Thanks.
    Vivek.

  • Timeout in BSP

    Hi,
    we have currently a strange problem with a generic bsp application.
    In different cases it shows timeouts during application execution.
    This happens in SOME actions from the users (not all).
    I assume that this is not a real timing problem. The waiting time of the user isn't the problem (sometimes the action is triggered immediately after another one)
    Maybe this is a memory administrative problem. But i don't know the special variables responsible for BSP Pages. Maybe one of you out there knows them?
    Any other hints regarding this?
    Thx, best regards and a happy new year
    Florian
    Message was edited by:
            Florian Koch

    Thanks Bhaskar for the help,
    but like i said, this is(was) not normal timeout problem because it occurs in regular situations - even after immediate user actions.
    I have solved it on my own in the meantime. It was based on an internal coding error (session got lost).
    Best Regards
    Florian

  • BSP html code arrives imcomplete at the browser

    Hello BSP Gurus,
    I have a strange problem with a "freestyle" BSP page. (no bsp-extensions, htmlb etc)
    The page displays a table of data. At the end there should be a button "Submit". Occasionally, this button is not displayed in the browser, but only a fraction of the html code, like:
    <input type="submit" value="change" name="OnInputProcessing(change) style="width:80
    and nothing more.
    so to me it seems that a part of html is missing, and therefore the browser cannot render the button, but displays the html coding (as text).
    I have this problem on different BSP pages, but it happens only occasionally and is not reproducable for me. However, the users (in this case external partners) are not amused.
    I have already played around with transmission compression options, but no effect. Had the error with and without compression.
    Has anyone had this before, and solved it ?
    I am on NW7.0 SP14
    best regards,
    Johannes

    HI
      As u said " the browser cannot render the button, but displays the html coding (as text). " it means there is problem in ending TAGS properly .
    eg
    <input type="submit" value="change" name="OnInputProcessing(change) style="width:80
    should be
    <input type="submit" value="change" name="OnInputProcessing(change) style="width:80  />
    this may help u.
    Rgeards
    Sachin

  • Starting with a BSP

    Hi everybody, I am starting with a tutorial of BSPs and I am having a problem. I have followed all the steps that the tutorial says but when I want to see the BSP application I don't have anything in the browser. It is like nothing was found. Everything is activated and I don't get any error.
    Does anybody know which could be the problem??

    post BSP related  questions  in BSP forum at Business Server Pages (BSP)
    coming to your question. if you are running the BSP for the first time, it tries to compile the ABAP code. just reactivate the bsp from se80 and run it. if you still hit with blank page just keep refreshing few times.
    also uncheck the "show friendly http error messges" check box fom your browsers tools->internet options->advanced tab to see any server thrown errors on the browser
    Raja

  • BSP - Service is not active

    Hi all,
    We are currently implementing Performance Management using Appraisal (MBO).
    I have created a template that works fine in the R/3 backend but are having problems displaying anything via BSP - we are at 4.7
    I have activated all BSP sites in transaction SICF and in SE80.
    When testing the BSP Application hap_document via SE80 I get an empty page containing the message 'Service is not active'.
    Does anybody know what I could have missed (is it not enough to just activate via SICF)?
    Best regards
    Ronnie Nielsen

    Hi Bernd,
    The service is now active and I'm now able to test a BSP page (HAP_DOCUMENT).
    This just creates a new problem.
    When trying to create a new Appraisal document I'm presented with a list of appraisal templates that we have created.
    When I click on create the system just waits for 60 sec. and then returns with time out.
    Does anybody know which parameter we have to chang in order to increase the amout of seconds?
    Best regards
    Ronnie Nielsen

  • Problems with E-Recruiting Data Overview Smartforms

    Hello,
    We recently upgraded from E-Recruiting 3.0 sp12 to sp15.  During this upgrade we have noticed that our custom Data Overview Smartforms have not being displayed.  Instead the system is calling the original SAP delivered forms.  The problem is that in table T77RCF_UI_PARAM we have the parameters set to display the correct forms.  As strange as that sounds we were able to fix most of them by changing the case, i.e. from lower to upper or upper to lower, of the BSP application name.  We are still however having problems with one particular BSP application:
    <b>Name                         Paramtyp             Parameter</b>
    HRRCF_CAND_DOVR    DISPLAY_PDF     Z_ER_CANDIDATE_PREVIEW
    HRRCF_CAND_DOVR    SF_VIEW_CAND     Z_ER_CANDIDATE_PREVIEW
    The SAP delivered smartform is HRRCF_CANDIDATE_PREVIEW.
    This one, regardless of what case the BSP application is in, continually displayes the SAP delivered smartform.
    I have verified that the custom form is indeed active.  And we also went as far as appying oss notes:
    Note 1017662 - T77RCF_UI_PARAM: Application name is case-sensitive
    Note 1037121 - T77RCF_UI_PARAM: Length of Input Field ‘Parameters” too short
    Yet another twist to this is that when I log on as an Internal Candidate and click on the Data Overview link on the external candidate personnel page the custom form is displayed.  However, when I log on as an External Candidate and click on the same link the SAP delivered form is displayed.
    Could this have something to do with the type of roles assigned?  Just incase I verified that the roles for the External Candidate were indeed SAP_RCF_EXTERNAL_CANDIDATE and the internal role was SAP_RCF_INTERNAL_CANDIDATE.
    Any help would be appreciated!
    Respectfully,
    Ryan

    Well the error you are facing, that the external candidate does not see the custom smartform depends on a new BSP application that is delivered with SP14.
    You need to copy the customizing of hrrcf_cand_dovr to hrrcf_cdovr_ext.
    Regards

  • bsp:call

    Hi!
    Hope someone can help.
    I have two MVC controllers. One main- and one subcontroller. The subcontroller is not in the same bsp application as the main controller.
    At the moment i call the subcontroller from init method with
      obj_mate_navigation ?= create_controller( application_name = 'Y0_TEST_APP1'
                                               controller_name = 'app1.do'
                                               controller_id = 'AP1'
    But i will call the subcontroller from main view. Now my problem is, that the <bsp:call> tag has no application parameter.
    Is it possible to call subcontroller from other bsp applications directly from the main view??
    Regards,
    Anto

    I dont think so you can call subcontroller which belongs to another application using <bsp:call> tag.
    Raja T

Maybe you are looking for

  • Various schedule in terms of payment during sales process

    Dear experts,           One of our international customer is having one requirement for having "Various schedule in different terms of payment". Meaning, they want to collect the advance (Down payment) from customers in various schedules during sales

  • MRP run is generating for HALB & ROH excess inventory though wip is availab

    Dear Gurus, SUB:Scheduling & Procurement of semi finished/ raw materials,ie for the Raw materials & semi finished materials the Scheduling agreements are generted by MRP Run much before the time it is actually required ,as in reality some of the mate

  • Deploy BPM application and keep all data of old tasks

    Hi all, Currently, whenever i redeploy bpm application to weblogic server, all tasks information saved in database will be changed (the value of state attribute will be changed to 9). So i think it's not good in Production environment. I want to conf

  • Flash Album Generator Problems

    I end up with an error during the conversion of images in FW an error halts the conversion of images for the gallery. THE ERROR says Could not run the script. This command requires an active document. Please help. I purchased this thing today and nee

  • I need to find a Business Catalyst specialist in the Plymouth MA area

    I am a small business owner with a website in business catalyst.  My virtual assistant is unable to continue working with me.