Character Problem For SmartForms to Pdf .

Hi Experts ;
my problem about smartforms . I have a custumer list. I use smartform for output. Customer list of smartform ok . Have any problem . But I convert this output to PDF . Some Characters  are overlapping . My main language Türkçe(Turkish) . Characters is incorrect for  struct of laguage .( smartform output has no problem but pdf output have problem )
My Code :
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
PARAMETER: p_date LIKE sy-datum.
PARAMETER: p_rea TYPE char255.
SELECTION-SCREEN: END OF BLOCK b1.
DATA:      ws_ucomm LIKE sy-ucomm.
DATA: gt_intab  TYPE ZSMRT_DNM_T WITH HEADER LINE.
INITIALIZATION.
SET PF-STATUS 'GUI'.
PERFORM get_data.
AT SELECTION-SCREEN.
  ws_ucomm = sy-ucomm.
  CASE ws_ucomm.
    WHEN '&PDF'.
      PERFORM f1000_download_form.
      EXIT.
    WHEN '&BACK'.
      LEAVE TO SCREEN 0.
      EXIT.
    WHEN '&EXIT'.
      SET SCREEN 0.
      EXIT.
    WHEN '&canc'.
      SET SCREEN 0.
      LEAVE TO SCREEN 0.
  ENDCASE.
   f1000_download_form
FORM f1000_download_form.
  DATA: form_name TYPE rs38l_fnam.
  DATA: wa_ctrlop TYPE ssfctrlop,
        wa_outopt TYPE ssfcompop.
  DATA: t_otfdata  TYPE ssfcrescl,
        t_pdf_tab  LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
  DATA: w_filesize TYPE i.
  DATA: w_bin_filesize TYPE i.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname                 = 'ZDNMSMRT'
  VARIANT                  = ' '
  DIRECT_CALL              = ' '
   IMPORTING
     fm_name                  = form_name
   EXCEPTIONS
     no_form                  = 1
     no_function_module       = 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.
  wa_ctrlop-getotf = 'X'.
  wa_ctrlop-no_dialog = 'X'.
  wa_ctrlop-DEVICE = 'I9SWIN'.
  wa_outopt-tdnoprev = 'X'.
  CALL FUNCTION form_name
    EXPORTING
  ARCHIVE_INDEX              =
  ARCHIVE_INDEX_TAB          =
  ARCHIVE_PARAMETERS         =
     control_parameters         = wa_ctrlop
  MAIL_APPL_OBJ              =
  MAIL_RECIPIENT             =
  MAIL_SENDER                =
     output_options             = wa_outopt
     user_settings              = 'X'
     mydate                     = p_date
     reason                     = p_rea
     ADRNR                      = '23713'
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
     job_output_info            = t_otfdata
  JOB_OUTPUT_OPTIONS         =
   TABLES
     RTAB                      = gt_intab[]
   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.
  t_otf[] = t_otfdata-otfdata[].
  CALL FUNCTION 'CONVERT_OTF'
   EXPORTING
     format                      = 'PDF'
     max_linewidth               = 150 "132
  ARCHIVE_INDEX               = ' '
   IMPORTING
     bin_filesize                = w_bin_filesize
    TABLES
      otf                         = t_otf
      lines                       = t_pdf_tab
   EXCEPTIONS
     err_max_linewidth           = 1
     err_format                  = 2
     err_conv_not_possible       = 3
     OTHERS                      = 4
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL FUNCTION 'WS_DOWNLOAD'
   EXPORTING
     bin_filesize                  = w_bin_filesize
  CODEPAGE                      = ' '
     filename                      = 'c:     est.PDF'
     filetype                      = 'BIN'
  MODE                          = ' '
  WK1_N_FORMAT                  = ' '
  WK1_N_SIZE                    = ' '
  WK1_T_FORMAT                  = ' '
  WK1_T_SIZE                    = ' '
  COL_SELECT                    = ' '
  COL_SELECTMASK                = ' '
  NO_AUTH_CHECK                 = ' '
   IMPORTING
     filelength                    = w_filesize
    TABLES
      data_tab                      = t_pdf_tab
  FIELDNAMES                    =
   EXCEPTIONS
     file_open_error               = 1
     file_write_error              = 2
     invalid_filesize              = 3
     invalid_type                  = 4
     no_batch                      = 5
     unknown_error                 = 6
     invalid_table_width           = 7
     gui_refuse_filetransfer       = 8
     customer_error                = 9
     OTHERS                        = 10
  IF sy-subrc <> 0.
    MESSAGE i003(z00) WITH 'File not downloaded succesfully'.
  ELSE.
    MESSAGE i003(z00) WITH 'File Test.pdf downloaded succesfully '
                                            'under C drive'.
  ENDIF.
ENDFORM.                    " F1000_DOWNLOAD_FORM
*&      Form  GET_DATA
FORM GET_DATA .
   SELECT kunnr belnr gjahr from bsid
         INTO CORRESPONDING FIELDS OF TABLE gt_intab
         WHERE bukrs = '4000' and gjahr = '2007'.
   LOOP AT gt_intab.
      SELECT SINGLE name1 from kna1
        INTO (gt_intab-name1)
        WHERE kunnr = gt_intab-kunnr.
      MODIFY gt_intab INDEX sy-tabix.
   ENDLOOP.
   SORT gt_intab by kunnr.
ENDFORM.                  " GET_DATA
Regards .

Try following logic:
DATA: lt_data TYPE TABLE OF tline,
      lt_data1 TYPE TABLE OF tline,
      lt_objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
Convert OTF to PDF
        REFRESH: lt_data.
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
            max_linewidth         = 132
          IMPORTING
            bin_filesize          = l_binfilesize
          TABLES
            otf                   = la_jobout-otfdata[]
            lines                 = lt_data[]
          EXCEPTIONS
            err_max_linewidth     = 1
            err_format            = 2
            err_conv_not_possible = 3
            err_bad_otf           = 4
            OTHERS                = 5.
        IF sy-subrc <> 0.
Error during conversion from OTF to PDF.
        ELSE.
Creation of the document attachment
          REFRESH: lt_data1.
          CALL FUNCTION 'TABLE_COMPRESS'                    "#EC *
            TABLES
              in             = lt_data[]
              out            = lt_data1[]
            EXCEPTIONS
              compress_error = 1
              OTHERS         = 2.
          IF sy-subrc <> 0.
Error during compress operation of the data
          ELSE.
            REFRESH: lt_objbin.
            CALL FUNCTION 'TABLE_DECOMPRESS'                "#EC *
              TABLES
                in             = lt_data1[]
                out            = lt_objbin[]
              EXCEPTIONS
                compress_error = 1
                OTHERS         = 2.
            IF sy-subrc <> 0.
Error during decompress operation of the data.
            ENDIF.
       ENDIF.
ENDIF.
Pass table lt_objbin[] to WS_DOWNLOAD function module. It should work.
Thanks
Amol Lohade

Similar Messages

  • Problem for Mail with PDF attachment

    Hello all,
    I have a problem regarding sending mail with a PDF attachment from SAP. The attachment contains Payslip of employee that is being generated from a Submit program of the respective HRFORM. I have used the Submit program within a JOB and the spool request generated. From the spool request i am extracting the pages using FM RSPO_GET_PAGES_SPOOLJOB.
    Now to convert the spool job to PDF am using FM CONVERT_OTFSPOOLJOB_2_PDF.  And after the job is being finished, am deleting both the JOB and SPOOL.
    To change the output of the FM CONVERT_OTFSPOOLJOB_2_PDF, into attachment with line width of 255 am using FM SX_TABLE_LINE_WIDTH_CHANGE. Then after filling all the required parameters for FM SO_DOCUMENT_SEND_API1, am sending the mail with the attachment. I have kept the format as PDF.
    But the problem here is, the attachment is going as .DAT file and not as .PDF file!!!
    Please help to resolve this issue.
    with regards,
    Koushik.

    Hello,
    Instead of using SO* APIs to send mail you should use the BCS classes. Anyway there is a sample program BCS_EXAMPLE_8 which is very similar to your requirement
    Cheers,
    Suhas
    PS: The sample program BCS_EXAMPLE_6 has got more to do with PDF forms as is your case

  • Problem in Smartform convert to PDF with special character

    Hi ABAP Guru,
    While convert smartforms to pdf.Some special character like ( - ) convert to ( # ).In development server there is no problem but the problem arise in quality.Please help

    Hi Palash,
                  Please use PDF! in print preview command field.. it will convert pdf file.
    regards,
           Thangam.P

  • Problem in converting smartform to PDF

    Hi Experts,
    I am facing the issue while converting the smartform to pdf form with the help of FM convert_otf_2_pdf .
    Problem is that
    CH3OH4OD7     3 , 4 and 7 are the subscipts in SMARTFORM like in a chemical formula ,but after conveting to PDF # is replacing the subscripts like CH#OH#OD# .
    Kindly help in this issue.
    Thanks
    Sachin
    Edited by: Rob Burbank on Feb 6, 2012 10:13 AM

    Try this example it will be help full
    REPORT  YSAMPLE5.
    DATA:
    w_form_name TYPE tdsfname VALUE 'YSAMPLE2',
    w_fmodule TYPE rs38l_fnam,
    w_cparam TYPE ssfctrlop,
    w_outoptions TYPE ssfcompop,
    W_bin_filesize TYPE i, " Binary File Size
    w_FILE_NAME type string,
    w_File_path type string,
    w_FULL_PATH type string.
    Internal tables declaration
    Internal table to hold the OTF data
    DATA:
    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    Internal table to hold OTF data recd from the SMARTFORM
    t_otf_from_fm TYPE ssfcrescl,
    Internal table to hold the data from the FM CONVERT_OTF
    T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    This function module call is used to retrieve the name of the Function
    module generated when the SMARTFORM is activated
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_form_name
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = w_fmodule
    EXCEPTIONS
    no_form = 1
    no_function_module = 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.
    Calling the SMARTFORM using the function module retrieved above
    GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
    format of the output
    w_cparam-no_dialog = 'X'.
    w_cparam-preview = space. " Suppressing the dialog box
                                                        " for print preview
    w_cparam-getotf = 'X'.
    Printer name to be used is provided in the export parameter
    OUTPUT_OPTIONS
    w_outoptions-tddest = 'LP01'.
    CALL FUNCTION w_fmodule
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = w_cparam
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = w_outoptions
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    job_output_info = t_otf_from_fm
    JOB_OUTPUT_OPTIONS =
    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.
    t_otf[] = t_otf_from_fm-otfdata[].
    Function Module CONVERT_OTF is used to convert the OTF format to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 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.
    To display File SAVE dialog window
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    CHANGING
    filename = w_FILE_NAME
    path = w_FILE_PATH
    fullpath = w_FULL_PATH
    USER_ACTION =
    FILE_ENCODING =
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    others = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
    presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_bin_filesize
    filename = w_FULL_PATH
    FILETYPE = 'BIN'
    tables
    data_tab = T_pdf_tab
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Problem to convert a Smartform a PDF

    Hello everybody,
    I revised the forum and found several solutions to this. But I have the following problem: when execute the functions that transforms Smartforms to PDF in R3  this generates BinField good. But when I run the model from WebDynpro and attempted access to the field BinFile (returns for model)  I get this error:
    java.lang.ArrayIndexOutOfBoundsException: -1
    It's as if the data is not in the field, as if the function dont get it. But when I run into R3 works fine.
    I'm doing next to initialize the model structure:
    Zbapi_Wty_Print_Claim_Input BapiWtyPrintClaim =
    new Zbapi_Wty_Print_Claim_Input();
    wdContext.nodeZbapi_Wty_Print_Claim_Input().bind(BapiWtyPrintClaim);
    Someone knows how to solve this?

    Hello everybody,
    I revised the forum and found several solutions to this. But I have the following problem: when execute the functions that transforms Smartforms to PDF in R3  this generates BinField good. But when I run the model from WebDynpro and attempted access to the field BinFile (returns for model)  I get this error:
    java.lang.ArrayIndexOutOfBoundsException: -1
    It's as if the data is not in the field, as if the function dont get it. But when I run into R3 works fine.
    I'm doing next to initialize the model structure:
    Zbapi_Wty_Print_Claim_Input BapiWtyPrintClaim =
    new Zbapi_Wty_Print_Claim_Input();
    wdContext.nodeZbapi_Wty_Print_Claim_Input().bind(BapiWtyPrintClaim);
    Someone knows how to solve this?

  • Adding bar codes to printer device for smartforms pdf conversion?

    Hello friends,
    I would like to send a smartform as a pdf to an email recipient. The smartform shows some bar codes. The send process workes fine. But the bar codes doesn't appear on the pdf correctly. Therefore I would like to add bar codes to the printer device type in transaction SE73.
    Does somebody know the device type for smartforms pdf conversion? Or how can I add bar codes to smartforms pdf conversion process?
    greetings
    daniel

    Hello Denial,
    Try these links, this might solve ur problem
    http://www.tec-it.com//documentation/TBarCodeSAPLPD_EN.htm
    http://www.mecsw.com/info/appnote/app_024.html
    if you need any more information send me at [email protected]
    Thanks & Best Regards
    Ankur Jain

  • Supported pdf versions and mouse over problem for Xcelsius 2008 SP3

    Hi,
    Have below queries regarding Xcelsuis 2008 SP3.
    (1) Encountered last character truncation problem for the x-axis and y-axis labels when viewed using adobe reader versions higher than 9.0.0. Viewing the pdf doc using adobe reader v9.0.0 has no label truncation problem.  Preview in Xcesius is also ok.
    (a) Y-axis label - eg. No. of students. The last char [s] is truncated when exported to pdf.
    (b) X-axis label u2013 when labels are oriented vertically, they are very close to the x-axis. The last char is truncated.
    Please advise what is the supported pdf versions for Xcelsius 2008?
    Any workaround to overcome the truncation problem?  
    (2) Mouseover in charts. When the series name has < symbol, Xcelsius truncates the remaining text that's after the < symbol.
    Is this a limitation that < symbol cannot be used? Any workarond for this? Any document to reference on the limitations of Xcelsius? e.g. If series name is '>1 and <=2', mouse over desc becomes '>1 and '.
    Thanks and Regards.

    Hi ,,There are a lot of developments in SP3 version. But some loopholes which I caughtu2026
    1. The value button/spinner is no longer supporting a cell having some formula. Also the time it is taking to load data which depends on value button/spinner as a result of change in it, is comparably very high as compared to earlier version.
    2. Still there is no component like pre-load animation. So it is difficult to know weather the tool is running or not when one selects an option in some selector.
    3. One still finds it difficult to work with a large range of data/complex spread sheet in xcelsius as it crashes while exporting.
    4. Export to excel still needs Tomcat Web server,Java help. It is not simplified.

  • While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra positi

    While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra position and also pdf generated from this word file also contains the same.

  • While trying to save a word document (Microsoft Office 2011 for Mac) in PDF, there is a section of the header or footer which is always missing!! Could anyone please tell me hot to fix this problem!!??? It works perfectly fine on my friends Mac!!

    While trying to save a word document (Microsoft Office 2011 for Mac) in PDF, there is a section of the header or footer which is always missing!! Could anyone please tell me hot to fix this problem!!??? It works perfectly fine on my friends Mac!!

    Easiest way with Acrobat pro, is save the Word document, then convert the document to PDF with Acrobat, rather than doing a "save as" in Word itself to PDF.
    Do you have Acrobat full version or Pro?

  • Problem during output of smartform in PDF

    Hi All,
    I am using Function module for output of smartform in PDF Format.But it is giving following informatio -OTF end command // missing in OTF data.
    and then no data in pdf format.
    Could you please help me whar shoul I do for that?
    MY code is like that :
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 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.

    Search the error in the first call to smartforms. ([Function documentation Checking and Testing a Smart Form|http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/83fb5bdf8f11d3969700a0c930660b/frameset.htm])
    Regards,
    Raymond

  • Problem in displaying smartform as pdf in portal

    Hi all,
    We  created a smartform and we are displaying as a pdf in portal.Everything is fine and pdf  is coming.But there is arabic data in the form .
    Some of the arabic data is coming perfectly.
    But some data is coming in Japanese or chinese and some data is coming like
    F,D'! 9(/'D1-EF (F 5'D- 'D3JA 叉â
    Department 'D%/'1) 'D9'E) DDEH'1/ 'D(41J).
    Please let me know what could be the problem.
    Thanks and Regards,
    Rajesh

    hi Rajesh.....
    Could you explain me how 2 display SMARTFORM as PDF in portal..... please.....
    I have the requirement as follows.....
    By pressing a button the smartform must be generated.....
    SO what must be the RFC o/p from ABAP.... I am ABAPER basically
    and what the portal guys must do.....
    pleaseeee

  • Character Limit for PDF Bookmark

    What is the maximum number of characters that Acrobat allows for a PDF bookmark?

    Please post what you find with BB10 re: the hard limit or character limit for Contact Notes. If BB10 simply carries over their existing limits to their new platform (which is very stingy), then this could be a deal breaker. I'd be VERY disappointed but definitely NOT surprised.
    By the way, I bought a 3rd party program that syncs BB with Outlook and any other program and it's called "CompanionLink" and it works with BB Desktop seamlessly. You don't even know it's running as you still sync using the native BB desktop. CompanionLink increases the hard limit that BB has set for Contact Notes, Tasks, etc. However, there is still a limit. So instead of getting maybe a 1/4 to 1/2 page of notes (on a word doc) you get almost a full page.

  • While opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    while opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    The latest Kaspersky software version is 15.0.1.415 or 15.0.1.415ab.

  • HR_ESS_PAYSLIP_TO_PDF pdf converter character problem

    Hi,
    I have a problem regarding to HR_ESS_PAYSLIP_TO_PDF.I done every customizing about Employee Self-Service to see my salary statement at ESS.I see it at ESS but I have a character problem with Turkish capital characters and some Turkish letter(Ş,İ).at the smartform my Language Attiribute is TR(Turkish) and thats not change anything.
    Thanks...

    Can I up this question?
    I have the same problem with Russian characters, what's wrong?

  • Convert spool (which is for smartform output) to PDF?

    how to Convert spool which is for smartform output  to PDF?
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
    if i use this there will be error spool not contain list output?
    than whats the function module or way to convert spool contain smartform output to pdg?
    regards,

    hi,
    use this instead
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = 'ZNAK_SMARTFORM_CORRESPONDENCE'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
         IMPORTING
           fm_name                  = func_name
         EXCEPTIONS
           no_form                  = 1
           no_function_module       = 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.
        printer-getotf = 'X'.
        printer-no_dialog = 'X'.
        CALL FUNCTION func_name
          EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       control_parameters         = printer
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
            validity                   = ls_smart-validity
            lifnr                      = ls_smart-lifnr
            name1                      = ls_smart-name1
            pstlz                      = ls_smart-pstlz
            regio                      = ls_smart-regio
            stras                      = ls_smart-stras
            smtp_addr                  = ls_smart-smtp_addr
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = printer1
      JOB_OUTPUT_OPTIONS         =
         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.
        t_otf[] = printer1-otfdata.
    DATA gt_tline like TABLE OF tline occurs 0 with header line.
        CALL FUNCTION 'CONVERT_OTF_2_PDF'
      EXPORTING
        USE_OTF_MC_CMD               = 'X'
        ARCHIVE_INDEX                =
         IMPORTING
           bin_filesize                 = w_file
          TABLES
            otf                          = t_otf
            doctab_archive               = gt_docs
            lines                        = gt_tline
      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.

Maybe you are looking for

  • ITunes 6

    Can anyone help me get iTunes 6 working of windows. everything was working fine untill i tried to upgrade. now every time i try to open iTunes i get the "Send error Report" message. Please someone help, because it is impossible to actually ask Apple

  • My hyperlinks don´t work

    Hi ! I´m a new iWeb user. I´ve created a website that works well in iWeb when hyperlinks are active, but when I publish it into a folder the lynks to my other pages in the menu bar don´t work. They worked well before I made some additions to the site

  • EBS R12.1 with Oracle Advance Security option  - is it certified ?

    Hi, Environment details are below: EBS R12.1.1 Oracle database version is 10g R2 (10.2.0.4) . OS is Solaris 10 We are looking for an option of implementing Oracle advanced security option (ASO) .But want to know if its certified with EBS R12.1.1 / 10

  • Forms and reports server issue

    Hai iam new to oracle applications.i was asked to solve this issue . i get the error when i start the oracle applications.i get the error in the forms,report and apache webserver. the file parameter.config could not be located or read. for that the s

  • How to print modifier key symbols

    How csn I print the symbols for Apple modifier keys in a document? Thank you.