Word output from smartform

Moved to correct forum
Hi,
Is there any way to convert a smartform output to a word document? The document contains some graphics, lines and table objects in it. Do you have any suggestions about it?
Edited by: Matt on Apr 15, 2009 8:45 AM

Hi,
It can only be done to a certain level.
You cannot transfer the formatting etc. Only the text.....
So don't bother. Use a PDF. They can be change/edited easily and they look fantastic.
See the [link |http://help.sap.com/saphelp_nw70/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm]
Let me know if you need any further help...
Thank you,
Anupama.

Similar Messages

  • Need to have Word output from WebHelp

    My business is trying to create a word document from a
    WebHelp file. We have extracted the project from the server but
    can't get the project to open in RoboHelp. The orginal file was
    created in RoboHelp X3 and we currently have version 7. Can you
    please tell me how to get the project back into RoboHelp so we can
    output the project to a Word document?

    Hi there awarg
    What would be best case is for you to find the actual source
    files. But if you don't have those handy, this is the second best
    option. Follow the link below:
    Click
    here to read the article
    Cheers and good luck! Rick

  • Xml output from smartforms

    Hi,
    I need to get xml (xsf?) output from I-SU Print Workbench/Smartforms document. Has anybody done this? I would apriciate some hints of how to solve this?
    regards,
    erki

    Hello Erki,
                      This is how i did it.
    data :  s_archive_index     TYPE toa_dara,
           s_archive_index_tab TYPE tsfdara,
           s_archive_params    TYPE arc_params,
           s_control_param     TYPE ssfctrlop,
           s_mail_appl_obj     TYPE swotobjid,
           s_mail_recipient    TYPE swotobjid,
           s_output_options    TYPE ssfcompop,
           s_mail_sender       TYPE swotobjid,
           s_doc_output_info   TYPE ssfcrespd,
           s_job_output_info   TYPE ssfcrescl,
           l_line(1024)        TYPE C,
           l_table             like table of l_line,
           xsf_line            like line of s_job_output_info-xsfdata.
    s_output_options-xsfcmode = 'X'.
         s_output_options-xsf      = 'X'.
         s_output_options-xsfoutmode  = 'A'.
         s_output_options-XSFFORMAT  = 'X'.
        CALL FUNCTION v_fm_name
         EXPORTING
           ARCHIVE_INDEX              = s_archive_index
           ARCHIVE_INDEX_TAB          = s_archive_index_tab
           ARCHIVE_PARAMETERS         = s_archive_params
           CONTROL_PARAMETERS         = s_control_param
           MAIL_APPL_OBJ              = s_mail_appl_obj
           MAIL_RECIPIENT             = s_mail_recipient
           MAIL_SENDER                = s_mail_sender
           OUTPUT_OPTIONS             = s_output_options
           USER_SETTINGS              = 'X'
           LV_SALES                   = p_sales
           LV_PADDR                   = v_address_num
           LV_ADRNR                   = v_adrnr
           LV_EQUNR                   = v_equnr
           LV_SERNR                   = v_sernr
         IMPORTING
           DOCUMENT_OUTPUT_INFO       =  s_doc_output_info
           JOB_OUTPUT_INFO            =  s_job_output_info
         EXCEPTIONS
           FORMATTING_ERROR           = 1
           INTERNAL_ERROR             = 2
           SEND_ERROR                 = 3
           USER_CANCELED              = 4
           OTHERS                     = 5              .
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    loop at s_job_output_info-xsfdata into xsf_line.
      l_line = xsf_line.
      append l_line to l_table.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME                        = 'C:\temp\test.xml'
       TABLES
         DATA_TAB                        = l_table.

  • Pagination issues in Word output from RoboHelp HTML 8

    Hi All,
    We're generating a Word document from our online help (RoboHelp HTML 8) with MS Word 2003 installed. The page numbers inserted automatically are wrong in that it's skipping numbers. For example, in scrolling down through the document, the page number after 95 is 97. Sections of the doc are paginated correctly, but then we come to a few pages where it skips a number in assigning page numbers. Some of our users have MS Word 2003 and others have 2007, but the pagination issue is occurring in both versions of Word. (BTW, I'm developing WebHelp Pro on Windows XP.)
    Today when I clicked in the Word TOC and pressed F9 to regenerate, it corrected some of the pagination problems but not all (go figure).
    Is there a patch I need to download or anything?
    Thank you!
    Mendonite

    Do the unnumbered pages have any content? This is ringing a vague bell and it was a Word issue related to blank pages.
    Have you actually printed the document?
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • Some images don't transfer from RH8 to the Word output

    Why is it that some images don't transfer from the RH8 file to my Word output when I generate?
    They do transfer to the Flash Help, but not to Word.
    Some of them are small images - just shots of icons or tools - and others are quite a bit larger.
    It takes me at least another hour to format the Word document after the output.

    Hi Patti,
    I have had similar problems of images "softly and suddenly vanishing away" during export from RoboHelp to Word. I never really solved the problem, but I did find some useful tips.
    First you shouldn't embed your images; in the Printed Documentation Wizard you should select "Link to sub-directory"
    This has the advantage that lost images are now replaced by a small red cross -- easier to find when reviewing.
    Next, in Word, try Edit>Links. If you are lucky you will see something like this:
    Notice that some links have a Source File of ../Images; they are the ones I was missing. For some reason the path to the image file is moved up one level.
    I never found out why, but the workaround was simple: copy the entire Images directory and paste it one level higher in the directory hierarchy. A waste of disk space, to be sure, but it worked. The grabs above show Word2003 and RH8.
    Hope this helps,
    --- Derek

  • XSF Output from the Smartform

    Hi,
    How do I create XSF output from the Smartform(PO).
    Appreciate your reply.
    Thanks,
    Ramesh

    hi ramesh,
    below is the link i found some information about XSF output.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a5/28d3b6d26211d4b646006094192fe3/content.htm
    reward me if useful.......
    thanks,
    gupta pullipudi

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

  • Table Problems after Word Export from RH8

    I am running RoboHelp HTML 8 as part of Technical Communications Suite 2 on Windows XP Professional and exporting to Word 2007. This is a recent upgrade. Previously, I was just running RoboHelp 8 without TCS. All of the Adobe software is completely patched and up-to-date.
    The help system I am converting to Word is large and results in over 600 pages of Word content with a lot of tables (generally just for data presentation and not layout purposes). I'm also using build tags and single-sourcing this document to another, shorter document that is over 400 pages long.
    I have exported various documents from RoboHelp to Word many, many times before, and although I don't like the amount of reformatting I have to do, I'm used to the effort involved. However, the behavior seems to have changed recently.
    These days (possibly after the conversion to TCS?), after I export the help system to Word, all tables are set to have the text wrap around them (Table Properties | Table | Text wrapping | Around). Before, this setting always defaulted to no wrapping. I wouldn't mind this, because I could simply set the tables to have no wrapping, but even after I do so, the full functionality of tables is still not available to me. For example, I can't set to header row to repeat across pages (Layout ribbon | Repeat Header Rows). I also can't set rows to not break across pages (Table Properties | Row | Allow to break across pages). In fact, I can't select a single row of the table generally without selecting the entire table. My coworker found out that you can copy each table into Word Pad and then copy it back into Word as a workaround, but that is extremely tedious. We already waste a lot of time reformatting these documents for various other reasons.
    As a (probably irrelevant) footnote, I convert to .doc rather than .docx, because RoboHelp crashes when I export to .doc. I then save the .doc as a .docx file to conserve file size. The same problem exists in both file formats.
    Thanks in advance for any help you can provide!

    Hi, Peter. Thank you for your thoughtful response.
    Yes, after exporting to Word, I couldn't set the tables' heading rows to repeat and couldn't select individual rows. Also, if I selected the entire table, normally Word would offer me the option to convert the table to text. However, Word seems to think that the table isn't a table, so instead it offers me the option to convert the text to a table. Good times. :-)
    I write the above in the past tense, however, because I discovered a solution. I found a table in the Word output that didn't have the problem, possibly the only one of its kind in the project. In RoboHelp, I compared the HTML source of that table to a table that did have the problem. I discovered that the problematic table had two HTML tags that the unproblematic table did not: <?rh-align_start align="left" ?> and <?rh-align_end ?>. I deleted the tags and presto! The problem was fixed for this table in the Word output. This worked for a couple of other bad tables as well, so I decided to do a global find and replace. Using Find and replace in files in RoboHelp, I replaced each of these tags with nothing (i.e., a null value, essentially deleting them). Searching for the entire string didn't detect all instances, so I searched again for "rh-align" only and found about 50 instances, which I manually corrected in the HTML source.
    So far, so good!
    I didn't try the options you suggested, but I was suspecting a template problem as well. Thank God it wasn't because I wasn't relishing the prospect of tracking that down.
    And yes! We tried your macros. Actually, the world-class tech writer Sue McKinney, who works with me, tried it, and she says it took three minutes to reformat the rows in the tables so they wouldn't break, which is a requirement of ours. We look forward to implementing the other table-related macro functionality you developed. Thanks for providing it for our use!

  • Generate a MS Word report from PDF Form

    Is there a way to generate a MS Word file output from the contents of a PDF form?
    Background:
    Back in the days when Acrobat Pro was packaged with LiveCycle Design for PDF form development, I created a very extensive document that walked the reader through a series of questions and then gathered the answers into a printable form.
    Unfortunately, the new version of Acrobat no longer is integrated with LiveCycle and I need to make updates to the document. LiveCycle only works on Windows machines and since I am on a Mac, it seems that I am left with few options.
    What would be the best possible solution is if after the reader entered all of the data in the PDF form, they could click a button and the document would generate a MS Word file with all of the variables and input fields arranged in a meaningful format.
    Is there any way to accomplish this in the new Acrobat Pro?

    Apparently you had LiveCycle Designer in the past.
    Unfortunately, the format of the form field names used by LiveCycle are different than the format used by Acrobat.
    You could try exporting the Forms Central form to the PDF format and you might be able to use the form to import the data.

  • Word outputting nothing

    So I have this strange problem, would be really grateful if someone could give me a little help...
    So I have this project that is constantly being updated, and every time it is updated, the whole thing has to change (so the project itself is basicaly just a template). So everytime it has to change, I copy the old files into a folder called "old", tag it as NOT_FOR-PRINT then start again. i am sure there is a more elegant way of doing this but for now I have to carry on what the old guy was doing until I have time to change everything.
    Anyway this project has two outputs, a webhelp and a word doc - The webhelp is generating fine but the Word output is just completely blank. I think I have checked every condition tag and I can't see any reason why it wouldn't be generating anything...
    Does anybody have any thoughts on things to try? I've checked the source files and the TOC. Doesn't seem to be any errant condition tags - what is the next thing to check?
    Thanks in advance...

    Have you updated the properties for the Printed Document (Word) output?
    On the second page of the Printed Documentation wizard, be sure to remove all of old topics from  the Chapter Layout window on the right. Then, add all of the the new topics in your TOC. Only those topics that are listed in the Chapter Layout will appear in the printed document.

  • Send output of smartforms by mail to a specified e-mail adress.

    Dear all ,
            How can I send output of smartforms to purchase order pdf format and send this pdf file to a specified e-mail address.
    Best regards,
    Merry

    zhang for the pdf you need to put the code as given below..........:-) .This include the complete sequence.
    Converting the Smartform into PDF Format
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
       FORMAT                      = C_PDF
       MAX_LINEWIDTH               = 132
    IMPORTING
       BIN_FILESIZE                = V_LEN_IN
      TABLES
        OTF                         = I_OTF
        LINES                       = I_TLINE
    EXCEPTIONS
       ERR_MAX_LINEWIDTH           = 1
       ERR_FORMAT                  = 2
       ERR_CONV_NOT_POSSIBLE       = 3
       ERR_BAD_OTF                 = 4
       OTHERS                      = 5
    IF SY-SUBRC <> 0.
      MESSAGE 'Error in CONVERT_OTF'(049) TYPE C_MSGTYPE_I.
    ENDIF.
    Convert PDF from 132 to 255.
    LOOP AT I_TLINE INTO W_TLINE.
    TRANSLATE W_TLINE USING ' ~'.
    CONCATENATE W_BUFFER W_TLINE INTO W_BUFFER.
    APPEND W_BUFFER TO I_BUFFER.
    ENDLOOP.
    LOOP AT I_BUFFER INTO W_BUFFER.
    TRANSLATE W_BUFFER USING '~'.
        DO.
          W_RECORDS = W_BUFFER.
          APPEND W_RECORDS TO I_RECORD.
          SHIFT W_BUFFER LEFT BY 255 PLACES.
          IF W_BUFFER IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
    ENDLOOP.
    Object with PDF.
    I_OBJBIN[] = I_RECORD[].
    Content of the email.
      W_OBJTXT-LINE         = 'Smartform_output is attched'(020).
      APPEND W_OBJTXT TO I_OBJTXT.
    *I_OBJTXT[] = I_RECORDS[].
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_BIN.
    Document Data
        CLEAR W_DOC_CHNG.
        W_DOC_CHNG-OBJ_NAME  = 'ZSAS_TRAVAGREE'.
        W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
        W_DOC_CHNG-OBJ_DESCR = 'Form for Travel Agreement'(021).
        W_DOC_CHNG-PRIORITY  = C_HIGH_1.
        W_DOC_CHNG-DOC_SIZE  = V_LINES_BIN * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
    Start line of object header in transport packet
    CLEAR W_OBJPACK.
    REFRESH I_OBJPACK.
    I_OBJPACK-HEAD_START = 1.
    Number of lines of an object header in object packet
    I_OBJPACK-HEAD_NUM = 0.
    Start line of object contents in an object packet
    I_OBJPACK-BODY_START = 1.
    Number of lines of the object contents in an object packet
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    Code for document class
    I_OBJPACK-DOC_TYPE = 'RAW'.
    CLEAR I_OBJPACK-TRANSF_BIN.
    APPEND I_OBJPACK.
    To specify the mail content and subject.
      DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    Packing as PDF.
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'ZSAS_TRAVAGREE'.
    I_OBJPACK-OBJ_DESCR = 'Form for Travel Agreement'(021).
    APPEND I_OBJPACK.
    Document information.
    REFRESH I_RECLIST.
    e-mail receivers.
    W_RECVLIST-RECEIVER = G_MAIL_ID.
    W_RECVLIST-EXPRESS = C_X.
    W_RECVLIST-REC_TYPE = C_EXTERNAL_EMAIL. "Internet address
    APPEND W_RECVLIST TO I_RECLIST.
    REFRESH I_OBJHEAD.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA                    = W_DOC_CHNG
        PUT_IN_OUTBOX                    = C_X
        COMMIT_WORK                      = C_X
      TABLES
        PACKING_LIST                     = I_OBJPACK
        OBJECT_HEADER                    = W_OBJHEAD
        CONTENTS_BIN                     = I_OBJBIN
        CONTENTS_TXT                     = I_OBJTXT
        RECEIVERS                        = I_RECLIST
    EXCEPTIONS
       TOO_MANY_RECEIVERS               = 1
       DOCUMENT_NOT_SENT                = 2
       DOCUMENT_TYPE_NOT_EXIST          = 3
       OPERATION_NO_AUTHORIZATION       = 4
       PARAMETER_ERROR                  = 5
       X_ERROR                          = 6
       ENQUEUE_ERROR                    = 7
       OTHERS                           = 8
    IF SY-SUBRC <> 0.
    ENDIF.
    let me know if you wanna any help ....
    Edited by: varghese oommen on Apr 29, 2009 10:16 AM

  • What is the proper interpretation of the output from PID vi?

    Can someone clarify the meaning of the output from the NI PID vi's? From the documentation for the PID control toolkit, it appears that the output is an absolute quantity and not a delta (change) to the previous output. The problem I have is that if I am running proportional control only, and the controller is moving into a steady cooling air flow rate to achieve my setpoint temperature, the error goes to zero and the output from the controller drops to zero. This completely ruins the temperature control.
    Simply: assume that the output to the control valve I am using needs 12mA (4-20mA controlled) constant value (flow rate) to maintain my setpoint. When the error goes to zero, the controller output goes to zero. This, of course, leads to terrible oscillation etc.
    Other PID implementations I have used are all delta (change) based. In other words, you calculate a P, I, and D correction to the previous output.
    What am I missing? All of the NI labview PID examples use the output directly to drive I/O, and never use it as a change (delta).
    I read this newsgroup's archives and found a similar question, but the answer was not helpful.
    thanks much in advance!

    Hi Darth,
    You have read the documentation correctly. The output of the PID VI is an absolute value. If you are using a P algorithm then you will need to use the PID Output Rate Limiter VI to control the rate of the oscillation. Your other option is to use a PID algorithm rather than just the P algorithm. The I and D portion of the PID algorithm are based on the current and previous error and output respectively. For further information on how the PID output is calculated please reference chapter 2 of the LabVIEW PID Control Toolset User Manual
    Hope this helps!
    Brooks W.
    National Instruments

  • Producing a WORD document from RoboHelp

    Hi,
    I am trying to produce a WORD document from RoboHelp using the Single Source Layout. The Output View says," Waiitng for Project Documentation VBA macros to be registered." I then receive an error message stating that WORD is not responding.
    How do I resolve this issue? Thank you in advance for your feedback.
    okaye

    Hi there
    Sorry, but my crystal ball is broken again so I can't tell what version or flavor of RoboHelp you are using. Nor am I able to discern what version of Word is on your system.
    Can you help us out a tad and tell us this info?
    Thanks... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Is possible work with boleto from SmartForm using the Tcode FBZP  ?

    HI,
    SAPScript bar code output in PDF format
    As a SAP does not intend to deliver this solution for SAPscript  because The report - RSTXPDFT4 does not work correct to bar code in the boletos (Brazil) when convert to PDF, we are going to change to Smart Form.
    The problem now.....Does someone know if is possible use this boleto from SmartForm using the Tcode FBZP ?
    Here in the customer there were a lot of problems about bar code (Critical) and in the past the Basis consultant had problems to import all Basis Support Packages and kernel patches in Release 4.6C.
    if someone can help me, I really apreciate.
    Since now....Thank you !!!!!!
    Best regards,

    Hello!
    SAP doesn´t have a SMARTFORM for boleto. We're sorry, but  you can´t put a barcode on a SMARTFORM for the boleto in the standard system.
    REgards,
    Renan Correa

  • Word output troubleshooting

    TCS 3.5 (RH9), source in FrameMaker, trying to generate Word output, Word 2010, macros enabled. It's a large project, PDF's around 1,000 pages. Generation stalls / hangs about 80% of the way through with no message. Occasionally I get a message from Word that it's trying to recover my document, but that's not when it hangs.
    Same project exports fine to WebHelp.
    Same installation generates Word fine from sample project.
    Tried both .doc and .docx, same results.
    I suspect there's an issue in the source, but it's hard to guess where. Is there a log file or something I can look at to see where it's hanging?

    Sometimes the Output View will tell you the process is hanging after a particular topic so it can be useful, depends on the cause.
    I think the reason Generate Individual Documents is working is because it is breaking the output down into bite size chunks. As I indicated, the size of the document you were creating was large and the process of converting from HTML to Word is very resource hungry. At that level it will kill pretty much any PC. Did you assume the process had hung or did you look at Task Manager. Often a PC will report something is not responding whereas Task Manager will say otherwise.
    At some point it might be worth letting the process run overnight.
    If single documents suit your needs then all is well but often they are not what people want. You can either recombine those documents or just generate a few documents and then merge those, if you have too many single documents to recombine.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for