Forms in BSP

Hello BSP gurus,
I have a quick question which I really need help with:
How can I handle FORMS in BSP?
I have used regular statement:
perform myform.
form myform.
  XXX
  XXX
endform.
However, I'm getting this error message:
"Statement ENDMETHOD missing"
Please advise.
Thanks in advance.
Ol.

Hi Ol,
the suggested way is to implement methods for your BSP application in a separate class (e.g. via SE24) and then add the name of this class to your BSP application in the field Properties - Application Class.
If you still want to use classic form routines (as I also sometimes do, e.g. to do some non-unicode-compliant operations), you can create a separate report (e.g. ZMYFORMS), wherein you implement your form routines. You can then call these forms from within the BSP by using
PERFORM myform IN PROGRAM zmyforms...
Greetings
Klaus

Similar Messages

  • Integrating Dynamic Adobe Form with BSP: SAP Objectives setting &Appraisal

    Hi all,
    My users ask me whether wecan use Adobe Form to replace SAP standard BSP appraisal form (generated by HAP_DOCUMENT).
    I konw that it's possible to integrate Adobe Interactive form with BSP.
    But my Adobe form must contain dynamic table, with ability to insert/delete row on the form. This is just like what's there when you can adding objectives by client scripting in SAP OSA.
    Please tell me if the integration of dynamic Adobe form with BSP is possible?
    (We are on ECC 6, EPH2).
    Thank you so much.
    Giang

    Hello,
    have you worked with the following document?
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d0e58022-2a39-2a10-69a8-c1a892e2b3f4&overridelayout=true
    Did you try to develop a demo version of the form to try if it is possible to do what you need to?
    Do you plan to replace "only" the standard non-Adobe form or to develop a whole custom application?
    PRovide more details about the steps you´ve tried and we can solve this out. Regards, Otto

  • How to Use Interactive Forms in BSP Applications - trouble with demo

    Is anyone else out there having trouble with the subject how to guide? https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e58022-2a39-2a10-69a8-c1a892e2b3f4
    I think I have everything built out correctly but I get the following run time error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    Exception Class CX_SY_REF_IS_INITIAL
    Error Name 
    Program Z_PROCESS_BOOKING_FORM========CP
    Include Z_PROCESS_BOOKING_FORM========CM002
    ABAP Class Z_PROCESS_BOOKING_FORM
    Method DO_REQUEST
    Line 33 
    Long text An attempt was made to execute a dynamic method callon an initial(NULL-) object reference. The reference must refer to an object.
    Following is my code:  line 33 reads as strChecked = node->get_value( ).
    method DO_REQUEST.
    *CALL METHOD SUPER->DO_REQUEST
      data: bookingxml type string.
      bookingxml = request->get_cdata( ).
      data: streamFactory type ref to
      if_ixml_stream_factory.
      data: iStream type ref to if_ixml_istream.
      streamFactory = g_ixml->create_stream_factory( ).
      iStream =
      streamFactory->create_istream_string(
      bookingxml ).
      data: document type ref to if_ixml_document.
      document = g_ixml->create_document( ).
      data: parser type ref to if_ixml_parser.
      parser = g_ixml->create_parser( stream_factory =
      streamFactory
      istream =
      iStream
      document =
      document ).
      parser->parse( ).
      data: node type ref to if_ixml_node.
      data: strChecked type string.
      node = document->find_from_name( name = 'RESERVED'
      strChecked = node->get_value( ).
      data: reserved type BAPISBODAT-RESERVED.
      data: checked type i.
      move strChecked to checked.
      if ( checked = 1 ).
        reserved = 'X'.
      else.
        reserved = ''.
      endif.
      data: custbook type BAPISBONEW.
      node = document->find_from_name( name = 'AIRLINEID'
      custbook-airlineid = node->get_value( ).
      node = document->find_from_name( name = 'CONNECTID'
      custbook-connectid = node->get_value( ).
      data: fd type BAPISBONEW-FLIGHTDATE.
      data: strFd type string.
      node = document->find_from_name( name =
      'FLIGHTDATE' ).
      strFd = node->get_value( ).
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
      DATE_EXTERNAL = strFd
    * ACCEPT_INITIAL_DATE =
      IMPORTING
      DATE_INTERNAL = custbook-flightdate
      EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID = 1
      OTHERS = 2
      IF SY-SUBRC <> 0.
    * Do something
      ENDIF.
      node = document->find_from_name( name =
      'CUSTOMERID' ).
      custbook-customerid = node->get_value( ).
      node = document->find_from_name( name = 'CLASS' ).
      custbook-class = node->get_value( ).
      node = document->find_from_name( name = 'AGENCYNUM'
      custbook-agencynum = node->get_value( ).
      node = document->find_from_name( name = 'PASSNAME'
      custbook-passname = node->get_value( ).
      data: pb type BAPISBONEW-PASSBIRTH.
      data: strPb type string.
      node = document->find_from_name( name = 'PASSBIRTH'
      strPb = node->get_value( ).
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
      DATE_EXTERNAL = strPb
    * ACCEPT_INITIAL_DATE =
      IMPORTING
      DATE_INTERNAL = custbook-passbirth
      EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID = 1
      OTHERS = 2
      IF SY-SUBRC <> 0.
    * Something
      ENDIF.
      data: bn type BAPISBOKEY-BOOKINGID.
      data: return type bapiret2_tab.
      data: errmsg type string.
      CALL FUNCTION 'BAPI_FLBOOKING_CREATEFROMDATA'
      EXPORTING
      RESERVE_ONLY = reserved
      BOOKING_DATA = custbook
    * TEST_RUN = ' '
      IMPORTING
    * AIRLINEID =
      BOOKINGNUMBER = bn
    * TICKET_PRICE =
      TABLES
    * EXTENSION_IN =
      RETURN = return.
      data: wa type bapiret2.
      loop at return into wa.
        if wa-type = 'E'.
          move wa-message to errmsg.
          response->append_cdata( errmsg ).
          response->append_cdata( '<BR>' ).
        endif.
      endloop.
    response->append_cdata( 'Flight booked, booking reference number: ').
      data: strBn type string.
      move bn to strBn.
      response->append_cdata( strBn ).
    endmethod.
    The first page works fine but when I submit my form it fails.  I debugged and the request object doesn't look right.
    Any ideas would be greatly appreciated.
    Regards,
    Dan
    Message was edited by:
            Dan Scheck
    Message was edited by:
            Dan Scheck

    Hi Surija,
    there is an issue with Internet Explorer that causes this problem when you launch the BSP applicaiton using the test menu in SE80. The issue does not occur with Firefox...very strange I know.
    Anyway, to get around this you just copy the BSP application URL and open a browser and paste the URL in...so essentially do not use the "Test" in SE80 to launch your application.
    Hope this fixes your problem!
    Cheers,
    Jeff

  • Call a form from BSP

    Hello,
    I want to display a form from within BSP when a user hits a button.  Allow me to explain :
    I've got a BSP page written in HTML and/or HTMLB combined with ABAP.  There's a button on the form.  In the OnInputProcessing, a custom Function Module is called when the button is selected. This FM then submits a standard SAP program and return.  Export parametres exists, no import parametres.
    When executed in R/3, the result are displayed in a form.
    When executed via BSP, nothing happens. 
    Do any of you know what I can do to make this happen?
    Thank you

    Hi,
    For SAPscript and SmartForms, you can ouput them as OTF and then convert this format to PDF using FM 'CONVERT_OTF' or 'CONVERT_OTFSPOOLJOB_2_PDF'
    I am not sure about the last one (Form Painter) though.
    Thus, I would proceed as follows :
    1) Run the form (whatever sort it is)
    2) Get the OTF output
    3) Convert to PDF
    4) Push it to the user through BSP
    Best regards,
    Guillaume

  • Sending email by attaching adobe form through BSP

    Hi All,
    I'm working on the e-recruitement project.
    I have requirement that on the publication page there is table view where all the publication and there posting channels are displayed.
    Now i have to create a button " Send Email". by selecting the the required posting channel when i click on the button send email.
    It should pick the data overview form and this form should be attached to email and should be send to the respective posting channel.
    Can you please guide me to solve this issue.
    Your commnets will highly appreciated.
    Regards,
    Nikita.

    Look at this [document|https://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/e0bba346-cb84-2910-2aa9-ba1f8a1c8617&overridelayout=true] to create & send adobe form via email.
    You can use the same code for BSP too.
    Raja

  • AdobeInteractive form with BSP

    Dear All.
    we have designed a BSP with Adobe interactive forms.we are able to display the form and edit
    the form.
    The problem we r facing is after editing we are unable to retrive the edited values.
    Can anyone tel how to retrive the edited values for further processing.
    Thanks in advance.
    Regards,
    shiva

    Dear Shiva Kumar,
    Kindly refer the following links and the PDF represented by Raja.
    [Interactive Form-1|SAP Interactive Forms by Adobe;
    [Interactive Form-2|Adobe Interactive Form "Submit To SAP"-Button;
    Hope it will be helpful for your requirement.
    Regards,
    Gokul.N

  • Looking for methodology of calling a sub (FORM) in BSP

    Hello all,
    I'm relatively new to BSP.  I've written a few one-off web-apps for our team, however one thing I find strange, and am probably barking up the wrong tree in terms of terminology, would be running a sub in BSP.  Since it uses ABAP for the sytax, I would have thought that it would use the normal FORM ... ENDFORM, however this ends with an error about ENDMETHOD every time.
    I come from an ASP background, and would at times want to use a sub to render an arbitrary chunk of HTML.  I just can't find an equivalent for BSP.  I've explored just using page fragments, and to a degree this accomplishes what I need.  This is not really the best solution, as one or more page fragments may call another one which causes a recursive loop it seems like.  Either way, I'd like to avoid page fragments.
    Below is a simplified scenario of something I'm trying to acheive.  Can anyone point me in the right direction?
    <%@page language="abap"%>
    <%FORM example.%>
    <strong>abc123</strong>
    <%ENDFORM.%>
    <html>
    <body>
    Hello.<br>
    <%PERFORM example.%>
    </body>
    </html>
    Edited by: Mike Howles on Apr 2, 2008 11:40 PM

    Hi,
    You can put any code you like in a BSP layout between <% %>.
    Anyway, if you really want to have something like a sub, you can create a class (transaction SE24), let's say ZCL_EXAMPLE, with one static method called example. This method will have the BSP page context as a parameter:
    METHOD example.
    DATA out TYPE REF TO if_bsp_writer.
    out = i_page_context->get_out( ).
    out->print_string( '<strong>abc123</strong>' ).
    ENDMETHOD.
    In the BSP layout:
    <%@page language="abap"%>
    <html>
    <body>
    Hello.<br>
    <% zcl_example=>example( i_page_context = page_context ). %>
    </body>
    </html>
    Regards,
    Tanguy

  • Adobe form error in BSP controller

    Dear Friends
            How are you?
            I am attaching one adobe interactive from in my bsp application. I have created the form and interface both are activated. while attaching adobe form to bsp application I am having error in controller class's method do_request. the erro says that "Function call aborted: Function l_name could not be found".  can you please tell me where I am making mistakes. I will greatly appreciate your reply. Any help will be appreciated.
    Thanking you
    Regards
    Naeem
    Pleas see the following code.
    runtime->server->response->delete_header_field( name = 'Cache-Control' ).
      runtime->server->response->delete_header_field( name = 'Expires' ).
      runtime->server->response->delete_header_field( name = 'Pragma' ).
      data: l_name type rs38l_fnam.
      data: f_name type fpwbformname.
            f_name = 'ZTRAVEL_REQ '.
      try.
          call function 'FP_FUNCTION_MODULE_NAME'
            exporting
              i_name     = f_name
            importing
              e_funcname = l_name   <--- I m failed to receive l_name here,,  so it gives
            exceptions
              others     = 0.
        catch cx_fp_api_repository.                         "#EC NO_HANDLER
        catch cx_fp_api_usage.                              "#EC NO_HANDLER
        catch cx_fp_api_internal.                           "#EC NO_HANDLER
      endtry.
    when i debug more and run method directly I received the error  like
    Access via 'NULL' object reference not possible.
    and error location is
    runtime->server->response->delete_header_field( name = 'Cache-Control' ).
    I have run function module by passing form name i come to know that it gives me the l_name on return,
    Thanks.
    Regards
    Naeem
    Edited by: Naim Khan S Babi on Sep 29, 2009 6:55 PM

    Re: ADOBE Error in PCR
    see this.. u might get some idea..
    GS

  • Adobe forms, non-interactive (HR)

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generate the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generate the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

  • Extracting HTML data in BSP from Browser

    Hello,
            I am displaying an Adobe Interactive form as HTML using an IFRAME in BSP, I know there is another way of using Adobe Interactive form in BSP, but it would occupy the entire BSP page and would overwrite any other BSP elements and they will not be displayed. Since the requirement is to enhance the existing BSP page and display buttons like SAVE, SUBMIT on the top of the BSP page and have the Interactive Adobe form occupy the rest of page as HTML display in IFRAME. I do understand that such functionality can easily achieved using web dynpro ABAP or JAVA, but I have very limited options, I used the below code to render the Interactive Adobe form :-
    DATA: cached_response TYPE REF TO if_http_response.
        CREATE OBJECT cached_response
          TYPE
            cl_http_response
          EXPORTING
            add_c_msg        = 1.
        cached_response->set_data( file_content ).
        cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                           value = file_mime_type ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        DATA: guid TYPE guid_32.
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid INTO display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
    Once displayed as HTML using the IFRAME in BSP, is there a way I can capture the data entered Interactive Adobe Form in BSP? I can still extract data even if it were in XML format or XSTRING. Please let me know if there is way to extract the data.
    Regards,
    Shishir.P

    Hi,
    Have you gone through this link
    [check this|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0e58022-2a39-2a10-69a8-c1a892e2b3f4?quicklink=index&overridelayout=true]
    Cheers,
    bhavana

  • ADOBE form interactive and non-interactive... (HR)

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generates the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

    Reader credential rights missing. Now it works.

  • Data passing from Adobe from submit button to BSP controller with XML

    Dear Friends
    How are you. I am developing one BSP application with Adobe interactive form. To complete this task I have use following linked solution. ( A PDF file that tells how to use Adobe forms with BSP application ).
    My application runs fine 50%. I did the same things what the tutorial told me and I am seeing the page in the webbrowser with Adobe from what i have developed.
    In the form I have put SUBMIT button and I have set properties as well... I have give full url as well for the controller to take data there over XML.
    In the controller I am not receiving any value. I have attached the code beneath as well... please tell me where I am making mistakes. I am thanking you. Any help will be appreciated.
    data: formxml type string.
    formxml = request->get_cdata( ).
    data: streamfactory type ref to if_ixml_stream_factory.
    data: istream type ref to if_ixml_istream.
    streamfactory = g_ixml->create_stream_factory( ).
    istream = streamfactory->create_istream_string( formxml ).
    data: document type ref to if_ixml_document.
    document = g_ixml->create_document( ).
    data: parser type ref to if_ixml_parser.
    parser = g_ixml->create_parser( stream_factory = streamfactory
                                    istream = istream
                                    document = document ).
    parser->parse( ).
    data: node type ref to if_ixml_node.
    data: strchecked type string.
    node = document->find_from_name( name = 'ACC_REQ').   <------ Node is empty
    strchecked = node->get_value( ).
    This is the link of the solution what i refered to complete this application:
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417500)ID0005508150DB01147043631230799453End?rid=/library/uuid/d0e58022-2a39-2a10-69a8-c1a892e2b3f4&overridelayout=true

    Dear Naeem,
    Actually i also tried the same link. For me its displayed the form. After giving the input when i click for submit nothing will happen.
    Its blinked and displayed the same page. I think for the node is getting value and some where its doesnt retrive the value.
    I will check and get back you soon once i found.
    Regards,
    Anita Vizhi Arasi B

  • Benefits Open Enrollment using BSP

    Hi All,
    I am new to the BSP forum. I am a HCM functional person. I wanted to know your view in this matter. We are live in SAP ECC 6.0 with all modules but dont have ESS/MSS right now. We have been doing Open Enrollment via sharepoint forms till now. After employee completes the form the data is udpated in Sharepoint library and then we download these data to excel. We finally upload these data via LSMW/custom program to update Benefits Infotypes. This is a tedious process and takes a lot of time especially the download values from Sharepoint has to to be mapped to SAP fields etc. ESS/MSS may happen next year. We are weighing the pros and cons of creating the forms in BSP instead of Sharepoint. With BSP it might be easy to update the Benefits infotypes.
    Is it possible to create forms in BSP and store it in an internal table and then upload these data via a custom program / standard function modules to udpate IT167, IT168 etc.
    Please share your thoughts.
    Thanks
    Sanghamitra

    if those form fields needs F4, etc better to go with ABAP webdynpro.
    Is it possible to create forms in BSP and store it in an internal table and then upload these data via a custom program / standard function modules to udpate IT167, IT168 etc.
    Yes very much possible and much easier to develop and maintain.
    Regards
    Raja

  • Order upload page in BSP

    Hi all
    I want to develop one upload form in BSP, it should contain File name(Flatfile)and if i just do upload of any flatfile..needs to get store in R/3 and create sales order..
    Can anybody suggest me
    Regards
    PRadeep

    hi pradeep,
    u can take input from file using html tag <input type='file'>.
    now after taking input as file, u just write code for java script, which assign the values of the fields in the file to some internal table. for that u check the weblog link by craig.
    now u just call the BAPI for creating sales order.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
      EXPORTING
        order_header_in           = order_header_in_struc
      WITHOUT_COMMIT            = ' '
      CONVERT_PARVW_AUART       = ' '
    IMPORTING
       salesdocument             = sales_doc_number
      SOLD_TO_PARTY             =
      SHIP_TO_PARTY             =
      BILLING_PARTY             =
        RETURN                    = return
      TABLES
        order_items_in            = order_items_in_tab3
        order_partners            = order_partners_tab3
      ORDER_ITEMS_OUT           =
      ORDER_CFGS_REF            =
      ORDER_CFGS_INST           =
      ORDER_CFGS_PART_OF        =
      ORDER_CFGS_VALUE          =
      ORDER_CCARD               =
      ORDER_CFGS_BLOB           =
      ORDER_SCHEDULE_EX         =
    you set the field in BAPI call as u required.
    regards,
    kamaljeet

  • Smartforms and webforms.

    hi All,
    I am a R/3 programmer and i am assigned a query of ESS which is developed in BSP and HTMLB. There is a smartform and that is not picking up the values properly so i m asked to sort that problem out. Basically they have designed the form such a way that once i go to that page and that i push the 'Print' button, the output of the form comes straight in the pdf format. Now generally there is a call 'SSF_FUNCTION_MODULE_NAME' to call the form in abap, is it the same in BSP??
    also if it is so i did not see the call in my forms. So is it possible to conver the OTF straight to PDF without calling the smartform . I knw its confusing but i have tried to put it as clear as i can.
    please ask me further questions if u feel the need.
    thanks in advance,
    Reena..

    Reena,
      Yes calling smart form in BSP is same like in ABPA. Yes you can convert the smartform output into PDF from SPOOL output into OTF. But you need to call the FM to generate the OTF data.
    To call smartforms: you can use FM 'SSF_FUNCTION_MODULE_NAME' " or you can generate the FM from smartforms then you can use that. Here is the sample code to call the smartforms & covert into PDF.
    <b>OnInputprocessing or Oninitialization.</b>
    * event handler for checking and processing user input and
    * for defining navigation
      data: output_options      type ssfcompop,
            control_parameters  type ssfctrlop,
            output_data         type ssfcrescl,
            devtype             type rspoptype.
    DATA: cached_response TYPE REF TO if_http_response.
    DATA: guid TYPE guid_32.
    * generated result: PDF format
      data: l_pdf_xstring  type xstring,
            lt_lines       type table of tline,
            ls_line        type tline,
            l_pdf_len      type i.
    case event_id.
    when others.
        call function 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language             = sy-langu
        IMPORTING
          e_devtype              = devtype
        EXCEPTIONS
          no_language            = 1
          language_not_installed = 2
          no_devtype_found       = 3
          system_error           = 4
          others                 = 5.
    * set device type in output options
      output_options-tdprinter = devtype.
    *control_parameters-DEVICE = 'LOCL'.
      control_parameters-langu = sy-langu.
      control_parameters-no_dialog = 'X'.
      control_parameters-getotf    = 'X'.
    CALL FUNCTION '/1BCDWB/SF00000063'
      EXPORTING
       CONTROL_PARAMETERS         = control_parameters
       OUTPUT_OPTIONS             = output_options
       NAME                       = 'First name'
        PHONE                      = '264-466-4657'
    IMPORTING
       JOB_OUTPUT_INFO            = output_data
      call function 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = l_pdf_len
          bin_file              = l_pdf_xstring
        TABLES
          OTF                   = OUTPUT_DATA-OTFDATA
          LINES                 = LT_LINES
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          others                = 5.
      if sy-subrc EQ 0.
        CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING add_c_msg = 1.
        l_pdf_len = xstrlen( l_pdf_xstring ).
        cached_response->set_data( data   = l_pdf_xstring
                            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.
    endcase.
    <b>In BSP Layput</b>
    <%  IF display_url IS NOT INITIAL.
          %>
          <script language="Javascript">
            window.open("<%= display_url%>").focus();
          </script>
          <%
      ENDIF.
    %>
    <b>* Page Attibutes:</b>
    display_url type string.
    Let me know if you have any issues.
    Raja T
    Message was edited by:
            Raja T

Maybe you are looking for

  • Tons of packet loss and Verizon techs say its fine

    As you can see from the below test ran from dslreports.com, I'm having a lot of packet loss issues. This has been going on for nearly two weeks now and tech support has been more of an annoyance than a help upto this point. I've talked to tech suppor

  • ExceptionInInitializerError & Xerces

    I have the following codes to parse xml using xerces and I think when I have line #2 and line #3 I got ExceptionInInitializerError as shown bellow. The error message is not very helpful, could anyone give me some ideas why I got this error? I also no

  • GFX Card) Intel(r) 82815 Graphics Controller

    when i play counter strike or other games my fps drops i have tryed every thing even down to reformating i think i got a onboard gfx card but when i look in bios i theres no option to disable it  (GFX Card) Intel(r) 82815 Graphics Controller.

  • A lot of unknown traffic.

    My goal is to reduce traffic loads and save some money. Now I am exporting Netflow to AdventNet Netflow Analyzer - it is helping me to understand what traffic is passing through router. It gives a lot of useful information. But, I still have a lot of

  • AIR and Authentication

    The company I work for is thinking of ways to develop a desktop application that will download mp3 files for subscribers to there hard drives. The application needs to authenticate users before allowing download. Is this process possible using Adobe