Mystery BSP + Smartforms

Hi,
I am facing a peculiar problem with our e-learning site.
Whenever an end user edits a letter(customized smartform) before sending, it is not sent as a PDF attachment but is sent as a simple text mail. If the letter is not edited then it works perfectly fine (ie it is attached like a PDF file).
I have debugged the BSP page and have finally concluded that SAP std does not change the name of the smartform but check marks it to be edited. The transaction SCOT is configured to send all the letters as PDF attachment.
Pleae help, its urgent.
Thanks!
Best regards,
Kanav

Hi,
I am facing a peculiar problem with our e-learning site.
Whenever an end user edits a letter(customized smartform) before sending, it is not sent as a PDF attachment but is sent as a simple text mail. If the letter is not edited then it works perfectly fine (ie it is attached like a PDF file).
I have debugged the BSP page and have finally concluded that SAP std does not change the name of the smartform but check marks it to be edited. The transaction SCOT is configured to send all the letters as PDF attachment.
Pleae help, its urgent.
Thanks!
Best regards,
Kanav

Similar Messages

  • How to display smartform output?

    Hi,
       Can anybody give me some hint on how to display a smartform output containing tables and texts in a bsp?? I have searched the forum but since I am new to bsp,I am not finding a caompact solution by following which I can get the idea. Please help..

    Hi,
    Check this link [Smartform PDF output in BSP|Smartform PDF output in BSP;
    Hope this helps you.
    Regards,
    Rajani

  • How to display the smartform of a purchase order from EBP (its) into a BSP

    Hello,
    I'm trying to make a bsp which lists the purchase orders (PO) for a user, that is not a problem.
    But I would like to open the smartform of a PO like in EBP (SRM) into my BSP.
    In EBP with the ITS i use this function :
    BBP_OUTPUT_PO_PREVIEW_SMART
    I give in input of this function the GUID (number) of my PO and the name of smartform to use with.
    I would like to reproduce this functionality in a BSP like on the ITS.
    Can someone help me ?
    Thanks a lot !
    Francois

    Indeed with the example of the bsp sf_webform_04 i can display my smartform !
    I have two choices : HTML or PDF.
    You only have to choose OTF for PDF or XSF for HTML !
    Thanks a lot !
    Francois
    Message was edited by: Francois Lavoissiere

  • Call SmartForms In BSP

    Hi experts,
    I am implementing of copy of standard bsp application "hap_document" and I would like to call a smartforms anytime I click on print button. Does anybody can tell me what are the different steps to call a smartforms which will display all the data in a nicer layout than the bsp?
    Thanks in advance,
    Best Regards,
    Murai

    Hi Murai,
      Please check the below links may helpful you :
        BSP/HowTo: Generate PDF Output from a BSP.
        Smart Form output into a BSP page?
    Regards,
    Prakash.

  • Archive Smartform from BSP

    Hello
    In our scenario we are entering data into a BSP and want to call a smartform and archive the smartform output as PDF on the click of a button. The displaying of the PDF file in the browser works fine. What I cannot get working is for the smartform to automatically archive the output using archive_index and archive_parameters. In ABAP this works fine but I cannot find why the same call in the BSP displays the form but does not archive the displayed data.
    Does anybody have any ideas?
    Thanks
    Harry

    Hello Prabu
    Thanks for your answer. I thought in my question I clearly stated that converting the OTF and displaying the PDF was not the problem. Sorry if it was not clear enough.
    In any case I have found a solution to the problem myself. After receiving the OTF data I copy it into an identical structure of the same type and use one to archive with FM CONVERT_OTF_AND_ARCHIVE and the other is used to display the PDF file in the browser. Surely not "state of the art" but it solves my problem.
    Thanks to all
    Harry

  • E-Recruitment extractor classes, BSP's, Smartforms, Workflows, classes

    Hi,
    Can anybody please provide any of the following to the email address [email protected]?
    List of Extractor classes available,
    List of BSP's,
    List of Smartforms for different activities,
    List of Workflows,
    All important classes,
    Any cookbooks,
    Any configuration documents,
    Any technical setting documents,
    Any list of reports,
    Any TREX config documents
    Thanks in advance.
    Naresh

    Thanks Mike, I am still septical about going for ABAP Classes - I know it is the direction that SAP wants to go, but with so little information about how to do it properly, I am afraid of doing more harm than good.
    You suggested that I should use a BO as an attribute of a class. So, are you suggesting that a should create a class called ZCL_EMPLOYEET, assign the BO EMPLOYEET as an attribute type SIBFLPORB and add any extra bits and pieces that I need in class ZCL_EMPLOYEET?
    Have you worked with classes CL_HRPA_INFOTYPE_*. I am assuming they represent the several Infotypes delivered in HR. Any hints about how to 'test' these classes - I didn't quite grasped yet how to 'test' these classes - I would like to see what they do, but I am not getting it.
    Thanks for any help you can provide,
    Regards,
    Cristiana

  • How to call a smartform in a bsp application

    Hi,
    I would like to have an example or code for calling a Smartform in a BSP program.Can anyone suggest me in this ?
    Thanks in Advance,
    shwetha

    Hi,
       Also chek the BSP application sf_webform_01 and page form.htm in it.
      Go through the event OnInitialization of the events of form.htm too.
      Hope this will be useful.
    Rgds,
    Vijayalakshmi

  • Smartform in BSP appl

    Hi ,
            How i can know which smartfrom is using in BSP application , is there any table or way for that.
    regards
    tarun

    Hello Tarun,
    I think there is no simple way to know that, because the call to the smartform is made by coding.
    Normally, the call to a smartform uses the function module SSF_FUNCTION_MODULE_NAME, to get the smartform function module.
    So, my suggestion is that you search in the BSP code for this call. Then, check the name that is passed into FORMNAME parameter, and you'll get the smartform name.
    Kind regards.

  • Smartform or BSP HTML Emails in Outlook 2007

    Hello,
    we create different HTML e-mails based on smartforms or BSP. Everything looks as it should with <b>Outlook 2003</b>. But if you send the same mails to user with <b>Outlook 2007</b>, no formats, boxes and colors are visible anymore.
    Does anyone has an idea what we could do to make it suitable for Outlook 2003 and 2007?
    Thank you in advance,
    Heiko

    There isn't a very good solution unless there are some recent updates.  I've answered on this before.  In 2007, Microsoft chanegd the HTML rendering engine to Word.  There is very limited support for HTML and CSS in Word's engine.  You can Google it or go to MSDN to read more about it.  I haven't looked for a better solution because 99% of our user community is still using 2003 though that will change soon.  We're actually considering dumping Microsoft altogether and switching to Google Apps.

  • URL or BSP link in smartform

    Hi,
      How to attach a URL or a BSP link to the smartform.

    Hi manoj,
    You can select the text, and clik insert url, this is step to create the text into
    url.
    If you want to convert smatform into html format, then it is possible that url will works.
    Use replace command into html internal data for getting actual url.
    Rewards points if it useful
    Regards,
    Shivshankar.

  • E-Recruitment BSP pages/SmartForms interface

    I've activated a Customer Include field for hrp5121. (Job Postings).  The BSP page methods have been modified to display this new field.
    I've copied SmartForm HRRCF_DATA_SUMMARY_POSTING and in my Z version, my new field is available in table POST_INFO_WT and has been added to the body of the form.  I've also updated table T77RCF_UI_PARAM to use my Z version form.
    From the BSP page "Job Posting for Requisition" (HRRCF_POST_MNT), I can click the posting link to view the SmartForm, but my new field has no value.
    What method(s) needs to be modified to get my field value from hrp5121 into the SmartForm interface?

    Hi,
    when reading your question i asked the following question: what do you expect to achieve by integrating fuctionality which is meant to be called by an external candidate (someone sitting 1000 miles away from your company at home) into your corporate portal? The external candidate has no access to the portal, so why add them? He has to call the applications directly via links sended to him or through links on you career web side.
    Technically you might face the problem that all applications for external candidates use the web user for authorization that means they use the ALIAS not the user for logging in, that's why you should always set your user name as ALIAS in SU01 for testing purposes on your development system, This makes life much easier during rollout.
    Kind Regards
    Roman

  • Using LP01 printer for printing smartforms in BSP

    Hi fellow BSPers,
    I have developped a BSP application in CRM which allows users to have a consolidated view on the data in an order.
    Also there is a button which can print a smartform of the order using the PostProcessingFramework of CRM.
    It works great but...
    For printing the user needs to use a printer which is defined in the system.
    As expected most users would like to print on the printer they defined in windows as their default printer. From SAPGUI this can be done using printer LP01 which sends the spool to the client printer deamon.
    Does anybody know how I can use this deamon via BSP?

    I hit similar requirements in the past.  You can't use LP01 because it needs the Gui Framework to communicate with the frontend of course. 
    I like the solution of converting the SmartForm (or Sapscript or Adobe Form for that matter) to PDF.  I then display the PDF out of the BSP application (there are several weblogs on different techniques for displaying PDF and Non-HTML documents - I like the ICM Cached Response and IFrame approach).  The user then can print the PDF with their local printers (or email the document, or save it, etc).  This give considerable flexibility.

  • Bsp + Pdf Smartform + browser bug

    Hi All
    I am displaying a smartform as a pdf in a browser.
    I fill in my selection criteria, hit submit and my smartform is displayed in the browser.  The problem is that when I hit the back button, an extra page has been created in the browser cache and it is expired.  It references the selection page.
    I have tried all the suggestions in the forum, but I cannot get this issue resolved.
    i am on 640 using IE 6 sp2.
    Any help would be great
    Darren

    Here is the complete code which works fine at my end..just compare with you code..
      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.
    DATA: fields    TYPE TIHTTPNVP,
          wa_fields TYPE IHTTPNVP,
          bStr      TYPE string.
        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
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = control_parameters
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       OUTPUT_OPTIONS             = output_options
    *   USER_SETTINGS              =
        NAME                       = 'Smith PY-TEST PA Creditor- BCS'
        PHONE                      = phone "'264-466-4657'
    IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = output_data
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5
    IF SY-SUBRC <> 0.
    ENDIF.
      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 'http://sc-sap-ghd.scs.bayerbbs.net:8000/' runtime->application_url '/' guid '.pdf' INTO display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      ENDIF.
      RETURN.
    endcase.
    Raja T

  • 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

  • How to create downloadable pdf report as hyperlink within BSP application

    Hi,
    I'm developing a BSP application using MVC and htmlb extensions on a WAS 6.40. One of the requirements of my webapplication is:
    - the ability to generate a report in pdf format at runtime, using data retrieved from a backend SAP CRM 3.0 system
    and
    - make this report available/downloadable via a hyperlink in the application.
    I am aware of tools like Smartforms and Adobe interactive forms but need some help to get started and choose the right tool.
    regards, Roelof Jan

    Hi,
    we've done that by firstly building a RFC which prints the report to sap-spool:
    call function 'GET_PRINT_PARAMETERS'
          exporting
            expiration     = 1
            immediately    = ' '
            new_list_id    = 'X'
            line_count     = 65
            line_size      = 132
            report         = sy-repid
            no_dialog      = 'X'
          importing
            out_parameters = wf_params
            valid          = valid_flag.
        if sy-subrc ne 0 or valid_flag eq false.
        endif.
        new-page no-heading no-title print on parameters wf_params
                          no dialog .
    ... list processing ...
    new-page print off.
      concatenate programname sy-uname+0(3) into lc_rq2name separated by '_'.
      select * from tsp01 into tsp01_wa
                          where rq2name = lc_rq2name
                          and rqowner   = sy-uname
                          order by rqcretime descending.
        wf_spono = tsp01_wa-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear wf_spono.
      endif.
    Then convert the spooljob:
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = wf_spono
          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 ne 0.
        return.
      endif.
    Delete Spooljob and generate cached response:
      data del_spono type  tsp01_sp0r-rqid_char.
      del_spono = wf_spono.
      call function 'RSPO_R_RDELETE_SPOOLREQ'
        exporting
          spoolid = del_spono.
      if witab is not initial.
        loop at witab into itab .
          translate itab using ' ~'.
          concatenate output itab into output in character mode.
        endloop.
        translate output using '~ ' .
        create object cached_response
               type cl_http_response
               exporting add_c_msg = 1.
        l_pdf_len = strlen( output ).
        cached_response->set_cdata( data   = output
                                    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 ).
        data: guid type guid_32,
              display_url type string.
        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 ).
        app ?= application.
        app->print_url = display_url.
      endif .
    The display_url has to be used in the normal response-view:
    <script type="text/javascript">
    var param = 'width=700'
          + ',height=550'
          + ',left=0'
          + ',top=0'
          + ',menubar=no'
          + ',location=no'
          + ',resizable=yes'
          + ',status=no';
      window.open('<%= application->print_url%>', 'DRUCK', param ).focus();
    </script>

Maybe you are looking for

  • Should i use a separate HDD for Logic?

    I've read some info that using a separate drive for Logic improves performance, so it is an option I am thinking of taking. BUT does having an external drive connected via firewire800 actually outperform the internal drive (performing all tasks) conn

  • More about multiple inheritance

    OK, you can solve problems where multiple inheritance is needed by using interfaces. But im facing a problem where it cant help me. Im constructing a system where there are componentes that need to extend JTextField as well Observable. I dont have in

  • Superfast broadband and Time Capsule

    I have just had superfast broadband installed - I live in the UK - and now my Time Capsule will not backup. It has not been moved and is always connected wirelessly but now it just does not show up on the Airport Utility for selection. Help!

  • Layout Blitz

    Hi all, Ok, I believe Oracle is a great company that makes great products. I have to ask myself this when I come to silly problems in reports designer. Now, I have a report that is built to a .pdf file. But when I am developing it, I just run it in t

  • Vacant Positions

    Hi, I have a general query about positions: As per Standard SAP, a position can be occupied by several persons/employees. My client requirement is : A position should only be occupied by single person and system should restrict whenever a 2nd person