Smart form -- PDF -- Application layer(AL11)

Hi All,
I have a question . I have developed a smart form. As per the requirement I have converted the Smart form to PDF.
Now my next job is to upload this to AL11.
Can  any one help me in doing so ?
Thanks In Advance,,
James.

Hi
When the smartform output is available as PDF file on presentation server move it to Application Server (AL11) using the Transactions <b>CG3Y or CG3Z</b>
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Smart Form PDF layout issue

    I developed a from in smart form to send it as PDF attachment in email. It worked fine but I have a issue.
    When I send PDF it send in the way the the layout was designed but if some user sends it the fields are printed zigzag. Alignment is getting messed up. I have page layout defined in the smartfom. I am not printing the form so no printer is involved in development.
    How to handle the issue?
    Thanks,
    AP

    hello mate,
    i suggest to  2  things
    1.  the layout you see even though u r not printing it is dependent on the device type like ....LOCL ..etc
    2. the user settings have an effect
    Edited by: Tcode on Apr 9, 2008 11:44 PM

  • Smart forms PDF

    Hi experts,
    Iam trying to get the smartform into PDF.Iam working on VF02>billing doc>Issue output to...
    Instead of going to spool request & RSTXPDFT4 program, i want to generate PDF in the output Message type itself.
    So iam trying to modify SAP standard program RLB_INVOICE. Here iam confused that where to insert PDF function module and where have to make changes....to get report into PDF form??
    Any suggestions pls...
    thanks
    kaki

    Hi
    Insert a code like this after calling the smartforms:
    CALL FUNCTION <SMARTFORM>
    EXPORTING
    IMPORTING
    job_output_info = job_output_info
    TABLES
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    IF sy-subrc = 0.
    Convert to pdf forms
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
    bin_filesize = filesize
    TABLES
    otf = job_output_info-otfdata
    doctab_archive = doctab_archive
    lines = t_pdf
    EXCEPTIONS
    err_conv_not_possible = 1
    err_otf_mc_noendmarker = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    download file
    CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
    bin_filesize = filesize
    filename = filename
    filetype = 'BIN'
    CHANGING
    data_tab = t_pdf
    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
    OTHERS = 22.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    Open file
    CALL FUNCTION 'WS_EXECUTE'
    EXPORTING
    commandline = filename
    program = 'AcroRd32.exe'
    EXCEPTIONS
    frontend_error = 1
    no_batch = 2
    prog_not_found = 3
    illegal_option = 4
    gui_refuse_execute = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    endif.
    You can also insert a module to opena dialog to choose the filename.
    Max

  • Display Smart form (PDF) in SAP UI5 Error

    Hello everyone,
    I was following the blog Display Smartform (PDF) in SAPUI5 by @Chandarshekhar .
    I am getting nothing displayed in the pdf. Just the logo is displayed. I really don't know what the problem is . Any help would be appreciated.

    Hi..
    Try this PDF URL.... u might get useful things...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    Web Dynpro Java
    yours GS

  • Smart forms convert to pdf binary data

    Dear All,
    I'm working on smart forms integrations with .net and  I need to send the smart forms PDF binary data though custom rfc .
    For that i'm  converting smart forms otf  data  to pdf in and pass this data  through rfc but this idata is is not wokring on .net guys when they are converting this on pdf..
    so is there any need of decoded smart forms otf data before passing through or i'm missing some basic step?
    Please guide me?
    Rg
    Anuj

    hi,
    Have a look on this wiki:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformoutputtoPDFformat]
    And maybe this one could also interest you:
    [|http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment]
    regards
    mickael

  • E-Recruiting - 'Z' Smart Form Configuration.

    Hi,
    We need to change the smart form for Application/Candidate Data Overview in E-Recruiting.
    Application Data Overview path,
    Recruiter Application -> Personal Pages -> Candidate Selection -> Select ‘Requisition’ and click Assignment -> Click highlighted application number in the Application column.
    Candidate Data Overview path,
    Recruiter Application -> Personal Pages -> Candidate Selection -> Select ‘Requisition’ and click Assignment -> Click highlighted Candidate Name in the Candidate column.
    May I know IMG steps to call the ‘Z’ smart form and parameters as well?
    Do let me know, if you need anything else.
    Regards,
    ...Naddy

    Hello Naddy,
    the IMG node Ollivier pointed to is correct. For the release 600 there is just an additional level separating bsp and webdynpro but the nodes for bsp and their use stay the same.
    To replace the 2 smartforms all you have to do is to change the following 2 entries in the table which are usually in the system from the original client copy 000 -> development client:
    NAME                 Paramtype                 Parameter
    hrrcf_appl_dovr      SF_VIEW_APPL              HRRCF_DATA_SUMMARY_APPLICATION
    hrrcf_cand_dovr      SF_VIEW_CAND              HRRCF_CANDIDATE_PREVIEW
    Just set your customer smartform instead of the SAP one as parameter. If the 2 entries are missing just add them to the table. Be sure to use NO capital letters for the application name.
    Best Regards
    Roman Weise
    PS: the mantenance view will check the interface of the smartform you customize against the standard one. The interfaces have to be equal including flage like optional and handing as value.

  • F4 to application layer

    Hi,
    f4  functinality for storing data in Application server, ie on the selection screen I have to have the f4 functionality which has to navigate to the application layer (AL11), is there any FM for this, please let me know what I have to pass, a sample code is welcome.
    Thanks & Regards,
         Varun.K
    Edited by: vikram kagada on Jun 20, 2008 3:28 PM

    Hi,
      DATA:
        c_fnh_mask TYPE dxfields-filemask VALUE '.',
        search_dir TYPE dxfields-longpath VALUE 'F:\USR\SAP\',
        file_path LIKE dxfields-longpath.
      CLEAR p_fpath.
    To provide the F4 help for Application Server File Path
      CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
        EXPORTING
          i_location_flag = 'A'
          i_server        = ' '
          i_path          = search_dir
          filemask        = c_fnh_mask
          fileoperation   = 'R'
        IMPORTING
          o_path          = file_path
        EXCEPTIONS
          rfc_error       = 1
          OTHERS          = 2.
      IF sy-subrc EQ 0.
        p_fpath = file_path.
      ENDIF.                               " IF sy-subrc EQ 0
    Reward if helpful.
    Bye

  • Smart forms tutorials

    hi all
    can any one give me some tutorials for the smartform
    i want only examples not the theoratical concepts
    plz give some complex smartform examples
    thanx

    hi,
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Smart Form PDF Link
    http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-img.com/smartforms/smart-001.htm
    regards,

  • How to store pdf files in application layer

    Hi friends,
    Can any body tell me how to this.when ever we give a print a spool number will be created.we can give this spool number to rstxpdft4 program and we can convert it into pdf.
    how to put this pdf into application layer as a unix file.is it possible to do that.
    Regards,
    Sasi

    Complete code right from spool request :
    FORM convert_spool_to_pdf.
      IF is_otf IS INITIAL .
    List to PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
             EXPORTING
                  src_spoolid              = p_spool
               dst_device               = 'LOCL'
             IMPORTING
                  pdf_bytecount            = bytes
                  pdf_spoolid              = pdf_spool
                  list_pagecount           = pages
                  btc_jobname              = job_pdf
                  btc_jobcount             = jobcount_pdf
             TABLES
                  pdf                      = i_pdf
             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   = 9
                  err_btcjob_submit_failed = 10
                  err_btcjob_close_failed  = 11.
      ELSE .
    OTF ( SAPSCRIPT ) To PDF
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
             EXPORTING
                  src_spoolid              = p_spool
                  no_dialog                = ' '
             IMPORTING
                  pdf_bytecount            = bytes
                  pdf_spoolid              = pdf_spool
                  otf_pagecount            = pages
                  btc_jobname              = job_pdf
                  btc_jobcount             = jobcount_pdf
             TABLES
                  pdf                      = i_pdf
             EXCEPTIONS
                  err_no_otf_spooljob      = 1
                  err_no_spooljob          = 2
                  err_no_permission        = 3
                  err_conv_not_possible    = 4
                  err_bad_dstdevice        = 5
                  user_cancelled           = 6
                  err_spoolerror           = 7
                  err_temseerror           = 8
                  err_btcjob_open_failed   = 9
                  err_btcjob_submit_failed = 10
                  err_btcjob_close_failed  = 11.
      ENDIF .
      IF sy-subrc <> 0 OR
         i_pdf[] IS INITIAL .
    Error creating PDF File .
        Message e000.
      ELSE .
    Got PDF Structure . Now transfer to App. Server.
      ENDIF .
    ENDFORM.                    " convert_spool_to_pdf
    FORM send_spool_app.
      OPEN DATASET p_fname FOR OUTPUT IN BINARY MODE .
      IF sy-subrc = 0.
        LOOP AT i_pdf .
          TRANSFER i_pdf TO p_fname.
        ENDLOOP.
        CLOSE DATASET p_fname .
        MESSAGE s000 WITH p_fname.
      ELSE.
        MESSAGE e502(0u) WITH p_fname .
      ENDIF.
    endform.
    This is a working code as we are using the same concept.
    Hope it helped.

  • Retrieving PDF form from Application server

    hi all,
    i am saving a pdf form in application server and when the user wants the same file then i want to retrive that file from application and show the user and it should not be saved to presentation server only he should see it.
    iam able to save it to presentation layer using gui_download but my requirement is not to save it show only display the form.
    Thanks in advance,
    Sree
    helpful answers will be surely rewarded points

    Hi,
    1st solution - use DOI (desktop office integration). This way you can open Adobe, Microsoft, and others application documents directly in the SAP windows. See SAP document how to do it. It's not a little work, but it should fulfill your requirements.
    2nd solution - share the folder with the PDF documents and then with shell command (start
    server\folder\xxxxxx.pdf) at the front end access it and start the associated application at the frontend. I don't recommend this one, sharing folders at the appl.server is a security threat...
    You know about the points and useful answers...

  • Conversion of Smart form to PDF in Webdypro UI

    Hi Gurus,
                 I want to display a smart form as PDF by converting OTF to PDF and thereby passing the PDF format data to Interactive Form UI element in a Webdynpro application (via portal iview). Do I need ADS server for publishing the OTF converted PDF data in the Interactive Form UI element of the WDA framework.
    Is there a better way to display a smartform in Webdynpro application by avoiding ADS?
    Regards,
    Subhadip

    Hi Thomas,
                    Great to see reply from you. I still cherish the memories of your TechEd sessions that  I have attended in 2007.
    Well back to the topic I'm able to publish a Smartform as PDF via OTF conversion and passing the binary PDF string to pdfsource. While I'm testing the webdynpro application in the WebAS backend I can see the PDF screen with data but when I'm trying to run it from prortal as an iview I can only see a blank screen even without the PDF container. Can you please suggest me whether ADS is a requirement in this kind of scenario (ie portal integration via iview) or this different issue altogether. In case if you feel it's not due to ADS can you please give me a clue on the issue.
    Regards,
    Subhadip

  • PDF Form giving different data compare to smart form

    Hi Friends,
    There are few scenerion in my system where my application produce a PDF form (Smart Form Convert to PDF through OTF)
    In some case when I execute/print the form it shows me all PO form  represnt me a differnt PO form althought their smartform is showing up correct PO.
    Please help me out what can be a issue.
    -Rick

    Hi ,
    Like I have print of 5-6 PO then I am getting a refrence of some other PO in all print of these 5-6 PO.
    for example...I have a print of series 1000000001 to 1000000005 then I am getting the details of other PO 1000000011 into all 5 print of PO starting from 1 to 5.
    Note- I have a custom program which convert smartforms to OTF and send a PDF to mail id.
    -Ricky

  • Smart Form as PDF within iframe

    Hi all,
    the problem i'm facing today is that i can't display a SMART FORM as a PDF in an <iframe> Tag.
    If i call a simple PDF (which is stored on my PC as a local file) everything works fine and the PDF is
    shown within the iframe Tag.
    <html>
    <head>
    </head>
    <body>
    Test<p>
    <iframe src="C:Test.pdf" width="90%" height="400" name="test"></iframe>
    </body>
    </html>
    If i try to do the same with my test BSP the PDF is not shown within iframe Tag. Instead the iframe Tag
    stays empty and the PDF is called directly by the Adobe Reader and not by my Browser (IE7).
    <html>
    <head>
    </head>
    <body>
    Test<p>
    <iframe src="https://vsapex2ci.daksap.de:44320/sap/bc/bsp/sap/zpdf_test/test.htm"
    width="90%" height="400" name="test"></iframe>
    </body>
    </html>
    On my test.htm only OnInitialization is implemented. Here's the Code:
    DATA: lv_pdf         TYPE xstring,
          ls_output_data TYPE ssfcrescl,
          ls_ctrl_param  TYPE ssfctrlop,
          lv_fm_name     TYPE rs38l_fnam,
          lt_lines       TYPE TABLE OF tline,
          lv_pdf_len     TYPE i.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZTESTPDF'
        IMPORTING
          fm_name            = lv_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      ls_ctrl_param-no_dialog = 'X'.
      ls_ctrl_param-getotf    = 'X'.
      CALL FUNCTION lv_fm_name
        EXPORTING
         CONTROL_PARAMETERS         = ls_ctrl_param
         USER_SETTINGS              = space
        IMPORTING
         JOB_OUTPUT_INFO            = ls_output_data
    * Conversion of output format OTF into PDF format
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = lv_pdf_len
          bin_file              = lv_pdf
        TABLES
          otf                   = ls_output_data-otfdata
          lines                 = lt_lines.
        response->set_header_field( name  = 'content-type'
                                    value = 'application/pdf' ).
        response->set_header_field( name  = 'cache-control'
                                    value = 'max-age=0' ).
        response->set_header_field( name  = 'content-disposition'
                                    value = 'attachment; filename=test.pdf' ).
        lv_pdf_len = XSTRLEN( lv_pdf ).
        response->set_data( data   = lv_pdf
                            length = lv_pdf_len ).
        navigation->response_complete( ).
    How can i display my generated PDF (SMART FORM) within an iframe Tag?
    Regards
    Mark-André

    here is the code
    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 ).
      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 ).
      return.
    now in the layout use display_url as the src for iframe
    Raja

  • Integrate pdf (converted from smart form ) into portal

    Hi,
    My Requirement is as follows,
    We are using FPM framework and the application is developed on Webdynpro Java,
    When a end user fills up the details on this application form and clicks on a Review button,
    it will display the summary of the above details in a PDF format.
    This PDF will be converted from a smart form in backend.
    My question is how do we integrate this PDF at runtime into Portal via WebDynpro Java?
    Thanks in advance,
    ~Veena.

    Hi.
    First tell your abapper to make a RFC for you that returns the binary of the smartform.
    Then import that RFC.
    Create an Interactive Form UI Element.
    -In its properties, select "usePdf" option and then in pdfSource select the attribute where the binary from the zfunction is returned.
    If you dont have problems with encoding the pdf will be shown.
    Wish you luck.
    Bye

  • Form smart forms vs pdf

    dear experts,
    do you have any experience with the forms in GTS. we have to print LTVD (long term vendor declarations) and have to decide wether to go for smart forms or pdf (adobe, incl this java stacks and ads configuration)
    appreciate any experience feedback.
    many thanks for you time
    peter

    Hi,
    No, there is no technical restriction on using particular layout. u can use whatever u wanna to use. For know more about smartforms go thru,
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    Smartform have following advantages:
    1. Creating and maintaining forms in less time than SAPScript.
    2. Adapting forms without any programming knowledge due to entirely graphical user interface. ( ofcourse you need to write driver program for smartforms, but you can write most of your code in smartform itself.. see the above given link for more detail)
    3. Integrating input elements into the HTML output, which enables you to use a form in Internet applications as well.
    I hope this will help you.
    Pratik

Maybe you are looking for