Hiding fields in BSP application

Hi Friends,
Iam using HRRCF_TRM_srch BSP Application, i have a requirement to hide few fields in BSP pages. Can any one tell me what BADI and what BAPI is this BSP application is triggering at the behind. so that can will enhance the BADI or modify the BAPI, without modifying BSP page or controller.
Thanks in advance
Srikanth

Hi James,
Firstly, do you need to have the hidden items on the page? If you don't, you should just delete the items. If you do (perhaps because of the calculations you need for your second question - see below), you can set them to "Hidden" fields - select each item and set the Display As setting to Hidden.
Secondly, there are at least two ways to perform calculations on fields - either using a Page Process or a table Trigger. Page Processes will work on any fields available in the session and triggers will work on the fields on a table.
Which you choose typically depends on whether or not data is likely to be inserted or updated outside of your application.
Regards
Andy

Similar Messages

  • Steps to enable fields on BSP application page.

    Hi,
    What are the steps of enabling some fields present in a BSP application?
    The layout is already having the fields present but in disabled state. So can anyone point to some good tutorials which stress on how to make the changes to enable the fields and activate the corresponding BSP page.
    Thanks,
    SK

    Hi,
    in you BSP application you need to start the webclient UI URL like this:
    http://<crmserver>:<Port>/SAP/BC/BSP/SAP/CRM_UI_START/DEFAULT.HTM?SAP-SYSTEM-LOGIN-BASIC_AUTH=X&CRM-OBJECT-TYPE=BT111_OPPT&CRM-OBJECT-ACTION=B&CRM-OBJECT-VALUE=0003000452&CRM-OBJECT-KEYNAME=OBJECT_ID&SAPROLE=ZVTR_WO_CTI
    CRM-OBJECT-TYPE is the type of transaction, here opportunity
    CRM-OBJECT-ACTION is the mode, here B = display mode
    CRM-OBJECT-VALUE is the ID of your document
    SAPROLE is the businessrole where you whish to start your webui
    Kind regards
    Manfred

  • How to increase the field lenght of file uplaod in BSP application

    Hi All,
       I am facing a problem with u201Cuploadu201D filed length in BSP application.
    When we upload the file in BSP page, the path displayed should be the full path (i.e. from where the file is being upload the file)
    Now this field is appearing 20 char length
    Now I want to increase the length of the upload field (Input field) to be 100 char so that the path is visible.
    In the current application the file upload is being done through a structure (attributes)
    In this structure the fields are like this
    PAGE_NAME
    ID
    FOR
    TAGS
    ROW_INDEX
    COLUMN_INDEX
    OTR_NAME
    REQUIRED_NAME
    MAXLENGTH
    SIZE
    TABLE_NAME
    ON_SELECT
    VALUE
    DISABLED
    ONCLICK
    TEXT
    TYPE
    Using this method:
    CALL METHOD cl_htmlb_fileupload=>factory
              EXPORTING
                Id      = ls_form_save-id
              RECEIVING
                Element = lv_fileup.
            bee_table->add ( level = 2 element = lv_fileup ).
    This cl_htmlb_fileupload is named as class interface.
    Which has the CLG_HTMLB_FILEUPLOAD (it is a class) it is defined in attributes.
    In this class it has the attribute u201CSIZEu201D by default string 20.
    Now I need to change this attribute length from 20 to 100
    For this I copied the standard class CL_HTMLB_FILEUPLOAD into ZCL_HTMLB_FILEUPLOAD.
    This ZCL_HTMLB_FILEUPLOAD contains all attributes of the standard class CL_HTMLB_FILEUPLOAD
    Including the one class (CLG_HTMLB_FILEUPLOAD), this is defined as an attribute (ABOVE MENTIONED?)
    This class is appearing in non editable mode, so   I have copied this class into zclass (ZCLG_HTMLB_FILEUPLOAD).but still I am not able to edit the attribute called u201Csizeu201D
    And also I am not bale to add the zclass in place of the ZCLG_HTMLB_FILEUPLOAD
    Kindly tell me how to modify the length of the field u201Csize u201Cand also how to add the zclass in the attributes of one class (syntax)
    Thanks in advance
    Rambabu.A

    Hi,
    Class CLG_HTMLB_FILEUPLOAD is a class automatically generated when a BSP Element is created. You should not change/create such a class, unless by creating your own BSP Element.
    As per your requirement, you can use the SIZE parameter of method factory:
    ls_form_save-size = '100'.
    CALL METHOD cl_htmlb_fileupload=>factory
    EXPORTING
    Id = ls_form_save-id
    Size = ls_form_save-size
    RECEIVING
    Element = lv_fileup.
    Regards,
    Tanguy

  • Custom fields for ROS initial page in BSP application

    Hi,
    We want to add some more customer fields in ROS initial page, for example TIN number. We have added a field to ZZTIN in the include CI_CUF_REQ_FIELDS of structure ROS_CUF_REQ_FIELDS and also implemented BAdI ROS_REQ_CUF. After adding custom codes in BSP application ROS_SELF_REG under page u201Caddress.htmu201D we are able to see this field in the initial registration page.
    Now the question is WE ARE UNABLE TO KNOW HOW TO STORE THE VALUE ENTERED HERE. We are facing below issues.
    (1)     If we try to input  ZZTIN to structure u201Cgs_address u201C it is asking us to add custom fields here also.
    (2)      But when we tried to append ZZTIN to structure BAPIBUS1006_ADDRESS,  it is not allowing to activate it.
    (3)     We have also appended ZZTIN to ADRC table. How can we input to ADRC table from here?
    Ganapathi

    Dear VASILIEVA Irina,
    Thanks for the reponse. Could not get what do you menat by "core mod", did you meant you created a separate table with key field business partner id... Can you just elaborate?
    However we would prefer to add a custom filed in the standard strcucure itself.. both type suggetions are welcome....
    Ganapathi

  • Hiding fields in phtmlb:formLayout (new thread)

    Original Thread:
    hiding fields in a bsp...
    What Kevin is talking about, is some special development we did for HR eRecruitement. Well, let us turn it around. They helped us, and we returned the favour. And yes, this is actually some of the more interesting bits and pieces of BSP. (Fresh meat to discuss:).
    Effectively, the <phtmlb:formLayout> has two functionalities. The first is a very easy way to layout a form. The second is a way via customization to dynamically have customers overwrite the visibility/required property of each field. So the SAP puts the maximum number of fields into the formlayout, and the customer can then via customization remove some, flag some as required, etc.
    (If anybody should feel like writing a long weblog on this, I will provide technical detail, plus examples offline.)
    The interesting database tables are these PHTMLB_FLI* ones. Part of the agreement was that the application itself provides for a UI to update the table. Also, the application itself controls which fields are changable.
    If you really want to play, look at SBSPEXT_PHTMLB, the formLayout example. In the top part, there are also a serious of dropdown listboxes. What these do, is that they update the customization tables first, before the formlayout is rendered. So what you are seeing is actually the formlayout as it has been programmed, plus then the effects of a (customer) customization on it.
    Also the example shows the effect of using an XML bee to dynamically add entries into the fieldLayout (if the application added these hooks).
    brian

    Hallo Thomas,
    No, unfortunately we never build something to also customize the labels. They HR colleagues did not ask for this :).
    I first started to write you here a loong text with answers. But then I got lazy, and searched my archive mailbox. Here below is the <b>draft</b> input that I wrote initially for the documentation. It describes everything pretty good. (But it is draft document, never proofread again, so read it lightly!)
    bye, brian
    <u><b>Why?</b></u>
    Typically when an application is developed at SAP, the developer must make provision for all possible fields of information that must be displayed and/or queried from the user. However, in specific business cases, or depending on specific country laws, all fields might not be required. Also in some cases, fields in one scenario can be flagged required, versus in another they are only optional.
    The typical starting point will be a complete formlayout done during the development. On top of this a customization layer is placed. The automatic reading and applying of the customization layer is automatically done by the phtmlb fL.
    <b><u>What?</u></b>
    For each field, a default behaviour is assumed. This is the behaviour that is defined by the developer during development time. For example, it could be specified that email address must be required. During the runtime it is now possible to overwrite the default behaviour with a customization entry for the field.
    The following options are supported:
    <b>As Defined:</b> The formLayoutItem in displayed as it has been defined during development.
    <b>Invisible:</b> The formLayoutItem is not placed on the formLayout. It is immediately removed. All following items below it, will be moved up to fill its position.
    <b>Hidden:</b> In this case, the formLayoutItem is placed on the formLayout, but not displayed. The item reserves its slot, and an empty slot will be displayed. However, after all items have been placed on the formLayout, a row "compression" is done, whereby all rows that contain only hidden elements are removed. Hidden is important for cases where columns next to one another must align. A typical example would be name & surname horizontally aligned. If now one item is invisible before this row, the two items will not be aligned anymore. With hidden, this alignment will be kept, and we still have the benefit of empty rows been removed.
    <b>Required:</b> Sets the required flag for the item. Label of item will be rendered an indication that it is required (usually little red asterix after the label).
    <b>Optional:</b> Can be used to customize a required field to be not required.
    <b>Read Only:</b> Field value is only displayed.
    <u><b>What is index?</b></u>
    Customization is stored for a formLayout under the key that is build from the BSP application namespace, BSP application name, plus the page/view on which the formLayout is placed. It is assumed that there will only be one formLayout per view. A typical example would be:
         SAP/SBSPEXT_PHTMLB/FORMLAYOUTSAMPLE.HTM
    In addition, a customization key must be specified. Typical examples would be to say this is the default customization for USA, or for the specific branchen Losuegn. The customization key must be supplied with the <phtmlb:fL> tag, and only then will the customization data be read from the database.
    <b><u>Tables</u></b>
    For customization there are three interesting tables.
    The first table PHTMLB_FLI is completed by the developer, and defines a list of all the formLayout items that can be customized. Only for those flItems which customization is possible, will entries be made in this table. The table contains three components:
    <b>NS_APPL_PAGE</b> This is the unique key that identies the formLayout, consisting of namespace, application and page/view.
    <b>FLI_ID</b> Id string of the specific formLayoutItem.
    <b>COMPONENT</b> This is software component to which development applies, for example SAP_BASIS for all BSP development work done by us.
    The second table PHTMLB_FLI_TEXT is just a language dependant text table that describes each item in the formLayout.
    The tables PHTMLB_FLI and PHTMLB_FLI_TEXT are not using during the runtime. They are only of interest for design time. Note that NO tools are provided to make any entries in these tables. This is considered to be in the application domain, and will usually be part of the customization process of the application.
    The third table PHTMLB_FLI_CUST is the only table that is read during the runtime. It is assumed that a customization tool has made the relevant entries for this table.
    <b>NS_APPL_PAGE</b> see above
    <b>VARIANT_KEY</b> This is the specific customization layer that is currently active. This string is equavalent to <pthmlb:fL  customizationKey>. It is used to pull a specific customization.
    <b>FLI_ID</b> see above
    <b>MODIFIER</b> This is the new value to apply. For the possible values, see DDIC domain PHTMLB_FLI_MODIFIER.
    For an example of customization, see BSP application SBSPEXT_PHTMLB, pages formLayout.htm. In this example, the customization can quickly be set via dropdown listboxes. On each request the PHTMLB_FLI_CUST is quickly updated and then the formLayout will find the set of new customization data to use.

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • How to create custom BSP application in SAP CRM?

    Hi Experts,
    I would like to seek help from you. I am new in developing CRM objects. My first requirement is to create a custom program that will generate a PDF report.
    First thing I would like to know is the transaction code where I need to create a BSP application that will be able to run in crm webclient. Please clarify if it is in BSP_WD_CMPWB or in SE80 because it is said that I should create BSP application using MVC.
    Second thing is how will I be able to call a smartforms in a BSP application. The scenario for my custom program would be, I should have a two input fields in the selection-screen which are Business Partner ID and Product Lines. together with a button that will trigger the form when ticked.
    Hope to hear from all of you. Your help will be very much appreciated.
    Thanks and Regards,
    Monica

    Hello MonicAnna,
    You can find some information on this page.
    (http://help.sap.com/saphelp_nw70/helpdata/en/59/cd7daa07d711d5b66f006094192fe3/content.htm)
    And also you dont have to use se80 to create new Bsp appliaction. You can create new application by this transaction BSP_WD_CMPWB.
    Zafer,
    Edited by: Zafer Kuru on Dec 5, 2011 10:12 AM

  • Creating a New PO using BSP Application

    Hello BSP Gurus,
    Newbie in BSP and want to create a BSP application that uploads PO data using Transaction ME21N. Its like this, an BSP application displays the Header and Line item data. and then I need to create a New PO by inputting the fields in the BSP Application.
    Any suggestions would be rewarded.
    Regards
    Leo

    <b>Since you are new to BSP refer the below links to create the BSP..</b>
    https://wiki.sdn.sap.com/wiki/display/BSP/Main
    http://www.sapdevelopment.co.uk/webapps/bsp/mvc_example1.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/e5/edae3b59e17646e10000000a11402f/frameset.htm
    http://www.sapdesignguild.org/resources/htmlb_guidance/
    Look at the below links.. Some of them are step by step procedures.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/24
    http://help.sap.com/saphelp_nw04/helpdata/en/7a/b86041397211d5992200508b6b8b11/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7a/b86041397211d5992200508b6b8b11/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/ac0b94c47c11d4ad320000e83539c3/content.htm
    https://www.sdn.sap.com/irj/sdn/weblogs
    /people/durairaj.athavanraja/blog/2005/08/21/running-your-first-bsp-application-in-sap-netweaver-04-abap-edition--nsp
    www.thespot4sap.com/Articles/SAP_WAS_BSP_Apps.asp
    www.thespot4sap.com/Articles/SAP_WAS_Overview.asp
    help.sap.com/saphelp_nw04/helpdata/ en/56/e6f3409ade8631e10000000a1550b0/content.htm
    New to BSP
    New to BSP. Where do I start from?
    New to BSP's ....Please Help me.......................
    And also recommend you to go through the BSP Weblogs in the BSP forum...highly Suggested and Helpful
    ;\ New BSP Weblogs
    <b>TO Create the PO:</b>
    Get the data from BSP & Use the BAPI:- <b>"BAPI BAPI_PO_CRE</b>ATE1 " to create the PO.
    See the link for more detail..
    BAPI_PO_CREATE1
    <i>* Reward each helpful answer</i>
    Raja T

  • Conversion of the ABAP Report (ALV based) into BSP Application

    Hello Friends,
    I tried to convert the abap report into a bsp application. I have followed all the steps mentoined in the previous threads regarding this topic.
    I have created a simple Z report in CRM, that displays the business partner details from the table BUT000 based on the partner entered. Partner is the input given to this report. I have defined the partner field in PARAMETERS.
    Now I have written all the code in the onInitialization of the BSP Page looking at the previous threads and also in the layout of the page.
    submit ZTEST_PARTNER
    exporting list to memory and return
    with p_part = 'HR10079430'.
    and also the rest of the code.
    It is working fine. The BSP page is displayed with all the Business Partner details.
    Now the problem is I have another Z report that displays the result in the ALV grid. The report uses the Function Module REUSE_ALV_GRID_DISPLAY to display the output.
    If I use the same method above this is giving a dump, I mean it says the page cannot be displayed.
    So, how should I use the above method to convert the ALV Grid based Z report into a BSP Application.
    Please give your suggestions.
    Thanks & Regards,
    Raju.

    you cannot .
    even if you use a normal report to
    submit the alv grid report
    exporting list to memory and return
    it will show the alv on screen and will nt just export the list to memory.

  • Download the PDF Form as a attachment when button click in BSP application

    Hi All,
    I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
    I have written this code:
    data: pdf type fpformoutput-pdf.
    < Logic for populate value to pdf field ....
    .>
    response->set_header_field(
                         name  = 'cache-control'
                         value = 'max-age=0' ).
      response->set_header_field(
                         name  = 'content-disposition'
                         value = 'attachment; filename=webforms.pdf' ).
      response->set_data( data   = pdf ).
    Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
    How can I resolve this problem ?
    In the IE i need to change any settings ?
    IE version = 7.0
    Adobe reader = 9.0
    I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
    The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
    Regards,
    Boopathi M

    Hello Ravi,
    Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
    Best regards,
    Thomas

  • Download of a webform within a BSP application

    Hi SDN members,
    I wrote a ESS BSP application with a 3 step wizard. Within the first step the user can enter some data in some form fields.
    In the second step a webform (SMARTFORM) with the form data is displayed and in the third step the user can save the document.
    Is there any possibility to save the web form as a document when the user saves the document. It would be sufficient to save the webform to the application server and get back a link.
    Later on the webform should be linked as a kind of attachment. This means when the user calls again the saved document a link should be available where the form can be called.
    The webform is called in the following way within my BSP:
    Call the generated function module
      call function l_function_module_name
           exporting
                    archive_index        =
                    archive_parameters   =
                      control_parameters   = ls_control_parameters
                    mail_appl_obj        =
                    mail_recipient       =
                    mail_sender          =
                      output_options       = ls_output_options
                      user_settings        = space
                      customer             = lt_customer
                      bookings             = lt_bookings
                      connections          = lt_connections
           importing
                    document_output_info =
                      job_output_info      = ls_output_data
                    job_output_options   =
           exceptions formatting_error     = 1
                      internal_error       = 2
                      send_error           = 3
                      user_canceled        = 4
                      others               = 5.
      if sy-subrc <> 0.
      error handling
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      ls_xmloutput = ls_output_data-xmloutput.
      lt_html_raw  = ls_xmloutput-trfresult-content[].
    Fill HTTP request
      response->set_header_field( name = 'content-type'
                                   value = 'text/html; charset=UTF-8').
    SAP Smart Forms returns XML data island in raw data format.
    method 'set_data' of the response object needs the output
    in XSTRING. The next loop convertes the raw table into xstring.
      loop at lt_html_raw into l_xstring.
         concatenate l_html_xstring l_xstring into l_html_xstring
                                                   in byte mode.
      endloop.
      l_xlength = xstrlen( l_html_xstring ).
      response->set_data( data   = l_html_xstring
                          length = l_xlength ).
    Any ideas how to save the form in any way?
    Best regards
    Thomas

    Hi,
    thanks for your answer!
    Let me explain more in detail what I want to do.
    I am calling my BSP application from our SRM system. When the user saves the data which were entered in my BSP application, the data are transferred via OCI (Open Catalog Interface). This is already working.
    The only thing which is missing is the transfer of my webform to the SRM via OCI.
    OCI is waiting for a link to my form. Only then, the SRM can attach a document. See OCI description
    http://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/ff03d072-0501-0010-aa88-8018506a2ebe">oci [original link is broken] [original link is broken]
    Therefore I have to download the form to get a link which can be written to the OCI interface. This could also be a temporary link.

  • Download and upload bsp application

    Hi All,
    Pl. guide me with my requirement. I have a bsp application in one server and for some reasons the same bsp application is required in another server but these two servers are not in land scape and hence i cannot transport. Is there any way to download the whole application and upload it into the target server. I feel this approach is silly but is there any other way or should i create it again fron the scratch in the new server.Pl. guide me.
    thanks & regards,
    jeeva.

    Hi Jeeva
       Why dont you try the above link given by Raja..
    It works fine .... You will get the sourcecode downloaded in a .bsp extension file for each page....But the only major problem is ... It doesnot talk about anything related to How to upload those files in the application....For that you had to take the help of BASIS ..
    But if your problem get solved by just getting the source code downloaded then try this code...This is the same code that RAJA has linked to...Just paste the code in a report program...and execute it...
    type-pools: SO2.
    types: t_page_list type standard table of o2pagkey.
    parameters: g_appl type O2APPLNAME.
    constants: c_separator_line type string value
    perform main.
    form main.
      data: l_pages type t_page_list,
      l_ref_page type ref to cl_o2_api_pages,
      l_table type o2pageline_table,
      l_folder type string,
      l_lower type string,
      l_filename type string.
      field-symbols: <f_page> type o2pagkey.
    * get local directory path
      call method CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
    * EXPORTING
    * WINDOW_TITLE =
    * INITIAL_FOLDER =
      CHANGING
      SELECTED_FOLDER = l_folder
      EXCEPTIONS
      CNTL_ERROR = 1
      ERROR_NO_GUI = 2
      NOT_SUPPORTED_BY_GUI = 3
      others = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        return.
      ENDIF.
      if l_folder is initial. return. endif.
    * get all pages of selected BSP application
      perform get_all_pages changing l_pages.
    * perform each page
      loop at l_pages assigning <f_page>.
    * load page data
        perform load_page using <f_page>
        changing l_ref_page.
        if l_ref_page is bound.
    * collect the content of the page in an internal table
          perform print using l_ref_page
          changing l_table.
          if not l_table is initial.
            l_lower = <f_page>-pagekey.
            translate l_lower to lower case.
    * determine file path for the page
            concatenate l_folder '' l_lower into l_filename.
    * download the content of the page to file
            perform download using l_filename l_table.
          endif.
        endif.
      endloop.
    endform.                    "main
    form download using p_filename type string
    p_table type standard table.
    * download the content of an internal table to a local file
      call method CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
          FILENAME                = p_filename
        CHANGING
          DATA_TAB                = p_table
        EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21
          NOT_SUPPORTED_BY_GUI    = 22
          ERROR_NO_GUI            = 23
          others                  = 24.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endform.                    "download
    form get_all_pages changing p_pages type t_page_list.
    * get all pages of the application
      select applname pagekey from o2pagdir into table p_pages
      where applname = g_appl and
      pagetype <> so2_controller.
    endform.                    "get_all_pages
    form load_page using p_key type o2pagkey
    changing p_data type ref to cl_o2_api_pages.
    * load the data of one page
      clear p_data.
      call method cl_o2_api_pages=>load_with_access_permission
        EXPORTING
          p_mode    = 'SHOW'
          p_pagekey = p_key
          p_version = 'A' "'I' for inactive version
        IMPORTING
          p_page    = p_data
        EXCEPTIONS
          others    = 1.
    endform.                    "load_page
    form print using p_data type ref to cl_o2_api_pages
    changing p_table type o2pageline_table.
    * collect the content of a page into an internal table
      data: l_attrs type o2pagattr,
      l_params type o2pagpar_tabletype,
      l_source type rswsourcet,
      l_layout type o2pageline_table,
      l_ev_handlers type so2_ev_handler_list,
      l_typtyp(11) type c,
      l_line type string.
      field-symbols: <f_param> type o2pagpars,
      <f_evh_name> type so2_ev_handler_name.
      refresh p_table.
    * get page properties
      CALL METHOD P_DATA->GET_ATTRS
        IMPORTING
          P_ATTRS = l_attrs
        EXCEPTIONS
          others  = 1.
      check l_attrs-pagetype <> so2_controller.
      append c_separator_line to p_table.
      concatenate '*' l_attrs-applname '/' l_attrs-pagekey into l_line.
      append l_line to p_table.
      append c_separator_line to p_table.
      append space to p_table.
    * local types
      if l_attrs-pagetype = so2_full_page.
        CALL METHOD P_DATA->GET_TYPE_SOURCE
          IMPORTING
            P_SOURCE = l_source
          EXCEPTIONS
            others   = 1.
        if not l_source is initial.
          append c_separator_line to p_table.
          append '* local types' to p_table.
          append c_separator_line to p_table.
          append lines of l_source to p_table.
          do 3 times.
            append space to p_table.
          enddo.
        endif.
      endif.
    * page attributes
      if l_attrs-pagetype = so2_full_page or
      l_attrs-pagetype = so2_view_page.
        CALL METHOD P_DATA->GET_PARAMETERS
          IMPORTING
            P_PARAMETERS = l_params
          EXCEPTIONS
            others       = 1.
        if not l_params is initial.
          append c_separator_line to p_table.
          append '* page attributes' to p_table.
          append c_separator_line to p_table.
          loop at l_params assigning <f_param>.
            if <f_param>-typtype = so2_paramtyp_type.
              l_typtyp = 'TYPE'.
            else.
              l_typtyp = 'TYPE REF TO'.
            endif.
            concatenate <f_param>-aliasname l_typtyp
            <f_param>-type into l_line
            separated by space.
            append l_line to p_table.
          endloop.
          do 3 times.
            append space to p_table.
          enddo.
        endif.
      endif.
    * layout
      append c_separator_line to p_table.
      append '* layout' to p_table.
      append c_separator_line to p_table.
      CALL METHOD P_DATA->GET_PAGE
        IMPORTING
          P_CONTENT = l_layout
        EXCEPTIONS
          others    = 1.
      append lines of l_layout to p_table.
      do 3 times.
        append space to p_table.
      enddo.
    * event handler
      if l_attrs-pagetype = so2_full_page.
        CALL METHOD P_DATA->GET_EVENT_HANDLER_LIST
          EXPORTING
            P_WITH_ALL_PREDEFINED = ' '
          IMPORTING
            P_EV_HANDLER_L        = l_ev_handlers
          EXCEPTIONS
            others                = 1.
        loop at l_ev_handlers assigning <f_evh_name>.
          append c_separator_line to p_table.
          concatenate '* eventhandler' <f_evh_name>-name into l_line
          separated by space.
          append l_line to p_table.
          append c_separator_line to p_table.
          clear l_source.
          CALL METHOD P_DATA->GET_EVENT_HANDLER
          EXPORTING
          P_NAME = <f_evh_name>-key
          IMPORTING
          P_SOURCE = l_source
    * P_ATTRS =
          EXCEPTIONS
          others = 1.
          append lines of l_source to p_table.
          do 3 times.
            append space to p_table.
          enddo.
        endloop.
      endif.
    endform.                    "print
    RGDS
    Mithlesh

  • BSP Application Error : Access Denied

    Hi Gurus,
    I have developed a BSP application with an input field and a search help. I am using Java script to popup the search help window and "opener.document.<form>.<field>.value=value;" to pass selected value from search help window to main page. At BSP application level I have checked "Allows Portal Integration" check box. Now, when I try to select the value from search help at runtime, I am getting an error "Access Denied". It works perfectly fine when the check box "Allows Portal Integration" is unchecked. How do I resolve this issue keeping the check box checked.
    Thanks in advance
    John
    <* Input Field *>
    <htmlb:inputField id            = "sales_order"
                       value         = "<%= controller->sale_order %>"
                       maxlength     = "30"
                       showHelp      = "TRUE"
                       onValueHelp   = "showSalesOrderHelp()"
                       submitOnEnter = "X"
                       size          = "30" />
    <* Java script routine to popup search help window *>
    function showSalesOrderHelp()
       newDialog =    window.open("salesOrderHelp.htm","_blank","resizable=no,height=500,width=475");

    The problem is that your popup windows probably do not have their domain relaxed. (Usually popp windows are implemented in an iframe, which must also be relaxed in the same way as the main page.)

  • Hiow to add a new field in bsp page.

    Hi Experts,
    I am new to BSP,
    I am doing project in erec, I want to know how to add new fields in BSP page.
    Like I want to add a new field in portal where I could write some comment.
    Regards,
    amod

    Please try to post this question in BSP forum for getting better answers.
    For Enhancing an existing Standard BSP application , refer the below link.
    http://help.sap.com/saphelp_crm70/helpdata/EN/20/b0f4f819e844df9f47bc9c70c795f4/content.htm
    Raghu

  • How can I execute a query from a BSP application?

    How can I execute a query from a BSP application?
    I´m trying to execute a Query from intranet. I´ve been looking for examples, but the templates I´ve found doesn´t help me.
    does anybody has an example?
    Thanks.

    Hi
    Have you designed the BSP application ?
    design it first with one page
    page will have layout and Event handlers
    Design the layout with the fields
    in the event handler there are events
    in the event On Initiailization or ON inputprocessing write the select query similar to what we write in routine ABAp and fetch the data into ITAB and that has to be passed to the Layout
    see the doc
    BSP
    To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
    If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
    The following tutorials are available:
    · First Tutorial: First Steps with Business Server Pages…
    · Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
    · Third tutorial: Our First Online Bookshop
    · Fourth tutorial: Further Developing the Bookshop
    · A small Tutorial is also available for your first steps with the Model View Controller design pattern.
    · For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
    When creating BSP applications, note the browser dependencies described in Note 598860.
    steps:
    1) start the transaction RZ10.
    2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
    3) u will also find three options in the same window.
    Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
    4) Now click on change button.
    5) here u will find parameter icm/host_name_full, so now set it as FQDN.
    6) Now copy ur settings with new version number.
    7) Activate that version.
    8) And now please restart ur WAS.
    So this will set ur FQDN, and also don't forget to login using Admin User.
    Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_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
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    if not then activate all.
    check this link
    Read this weblog...
    /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
    it consists of screen shots also
    Check it.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
    Regards
    Anji

Maybe you are looking for

  • How do i make Jframe scrollbar - urgent please

    Hi, i have a jframe with jtabbedpane and multiple tabs in it. problem when i set the windows display size to 600x800, it cuts the lower half, please tell me how can i fix it or how can i add scroll bar to jframe so user can scroll down if it is not d

  • Retrieving filepath of file in fileevent

    Hi I am writing some code that fetches a file using the file event generator in BEA Integration. How can I find properties for this file, like the name of the file, the path, and maybe the size? The channel is xml, and I have set the 'Pass by filenam

  • How to handle the error: GP_CAT:1235:ERROR:Could not initialize random algorithm?

    Hello,all, My tuxedo server is running on the Solaris 8 platform.Sometimes the application services could not be started and the GP_CAT:1235 message was found in the ULOGs. Once I restart the service or reboot the machine, the service is OK. I wonder

  • Can you help with a misplaying online Flash game?

    I don't know if this question is appropriate for this forum, but here's taking a chance, and I hope you can help. A Flash game I play at discovery.com worked fine about a year ago. I stopped playing it for several months, and then went back to it. Wh

  • Image won't open after copy from lr 3 to ps3

    hello, ps cs3  won't open an image after i select copy or use original from LR 3 3.5 /camera raw 6.5. if i select open with LR adjustments (first choice at top) image will open. i'm guessing this has something to do with the version of camera raw?? t