Messy code in printout of smartforms

Hi Gurus,
I encountered a problem when printing Thai characters using smartforms. it can be displayed OK on preview. but when I printed it out in the physical printer, all of the Thai characters are displayed as messy code like 'ŶµÄ½¨·¿¼ä°'. but English characters are displayed well.what should the prob be?
any responses would be awarded,
regards,
samson

Check the character set attached with the device type of ur printer from SPAD. Check whether ur code page supports Thai characters or not. If it is ok then I think it is a problem within actual printer (may be the code page actually installed in it does not support Thai language)..better u can consult ur basis team.
Regards,
Joy.

Similar Messages

  • Have messy code when open a xml publisher report in OAF

    Dear all,
    I use xml publisher to generate a pdf report in OAF,but have messy code when open pdf report in my local machine.
    I try to change the pdf to html format,and the report display ok in local machine.
    It's also ok when i run in server.
    So i think may be my project'Character Encoding in Jdeveloper tool is wrong,
    i try to set the character encoding 'UTF-8/UTF8/GBK/GB2312',
    but still have messy code.
    Here is my code:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if("GenerateReport".equals(event))
    String auctionHeaderId=(String)pageContext.getParameter("auctionHeaderId");
    Serializable[] Parameters = {auctionHeaderId};
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("auctionHeaderById",Parameters);
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME,
    TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    catch(Exception e)
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(false);
    pls help me !
    thanks,
    Tao.

    Can anybody help me?
    Best regards!
    Tao

  • Messy code problem while translating XString to String in OfficeControl

    Hi Expert,
        I have messy code problem while translating XString to String in XML-Format Word Doc in OfficeControl.
    I upload an XML-Format template Word Doc to server as a MIME Object.
    When OfficeControl is started in Web Dynpro, OfficeControl automatically open the XML-Format template.
    For the first time, I get the XString-type Context attribute bind to the content of the Word Doc,
    then translate it to string, I got the XML-format content, it's great!
    However, after the first time, when I input any new contents in MS Word in Web Dynpro,
    no matter I execute "Ctrl + S" or click the "savedocument" button,
    when I translate the XString Context attribute to String, I got messy code. (but the first time, it is good plain text)
    I use the function module: ECATT_CONV_XSTRING_TO_STRING (good for first time, dump after first time),
    SCMS_XSTRING_TO_BINARY, SCMS_BINARY_TO_STRING (good for first time, messy code after first time).
    My Demo source code is in: (system) SMV --> (local object) zhaode --> (Dynpro Component) ztest_office_control
    core source code is as:
    clear itab.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    BUFFER = lv_datas
    IMPORTING
    OUTPUT_LENGTH = lv_length
    TABLES
    binary_tab = itab.
    CALL FUNCTION 'SCMS_BINARY_TO_STRING'
    EXPORTING
    input_length = lv_length
    mimetype = 'text/plain; charset=utf-8'
    IMPORTING
    text_buffer = lv_datas_string
    output_length = lv_data_len
    TABLES
    binary_tab = itab.
    Can you give me some advice?
    Many thanks in advance.
    Best Regards,

    You have already posted this same question several times (and some very similiar questions) within the forum.  Please do NOT multiple post your questions. This is against the forum rules of engagement. SAP employee or not, you will find yourself banned from the forums if you don't follow the rules.

  • Messy code for Chinese

    Hi all, I want to upload vendor master data to SAP system in LSMW, but when I fill the fields in Chinese, the Chinese texts will not be showed. The Chinese texts show as messy codes, how should I do if I want to show the Chinese? Many thanks in advance!

    ANSI only supports the standard 256 characters you see on your typical keyboard (single byte). UTF-8 supports the 65,536 Unicode character set (double byte) needed to handle all the different languages used throughout the world. If you send Unicode but tell the system to expect ANSI it will read each double byte Unicode character as two single byte ANSI characters. Which will turn it all into gibberish.

  • Printing QR-Code barcodes in SAP smartforms

    Hi,
    Is it possible to print QR-Code barcodes in SAP smartforms using system barcode font? Can anybody please let me know the font settings for QR-Code in SE73 font maintenance?
    A sample QR-Code lablel can be found [here|http://images.orkut.com/orkut/albums2/ATUAAADhaahG5MxsqQ66lcSO9oHRWD3X8zh7yv1kEakKwMtVHchChN1WfZlM__2D0_o8H7AS4_UaTTCymQQtvXHb9-q3AJtU9VCWnzkZ4gC1sVnCekVuQ90qmhzeMw.jpg].
    Regards,
    Milan

    Hi Milan,
    I'll blog in SDN about my research that I presented at TechEd during session CD119 (blog) but I'll begin sharing with you some ideas.
    Basically, without relay on any printer specific driver I would propose to follow the following steps:
    1.Generate the QR Code image file (.PNG) with one of the methods presented in the following pages
    2.Upload the image into the SAP system
    2.1 Convert the generated file (file.png) to TIFF using SAP IGS class CL_IGS_IMAGE_CONVERTER (see GRAPHICS_IGS_IMGCONV_DEMO)
    2.2.Upload. Use report RSTXLDMC to upload the image into SE78
    3.Include the image into the Form:
    3.1.SAPScript/:INCLUDE ZHEX-MARCO-name OBJECT TEXT ID ST
    If everything is clear, the missing point should now be the first one. To generate the PNG from ABAP I found some options if you like, the better I think is presented in my open source project called abap2qrcode published here http://code.google.com/p/abap2qrcode/.
    I know it's not trivial and I'm curious to know what do you think about it.
    Sergio

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • Business Graphics Chinese font Messy code

    Hi,
    I'm want to display graphics in web dynpro abap, but chinese font displayed Messy code , how can I fix this problem?
    Thanks in advance!

    Hello
    Can you please specify the problem/
    Regards
    Senon

  • Mac Mail sending messy code attachments to windows

    I've sync 6 different mail accounts to my Mac Mail, but what it troubles me is that when I send Chinese emails with attchemnt (in Chinese too) the reciever Widonow users keep getting messy code with somthing like (鍛@?鍗$墖.docx).
    I've been look every where on Google can't find any good solution. I know that changing my Text Encoding works but I can't set it to defualt
    I know there's an updates that windows can download so that they read mac's uni code, but I can't find the download link.
    If I switch to Office Outlook would I still get this problem? or is there any better way that Apple can help me to solve this?

    To thoughs just been searching, I just came across a app that actually solve this problem (well at least for Chinese attachment).
    It's a new app develop by tencent called foxmail (http://foxmail.com.cn) it works fine for me.
    you guys can go check it out. But this app's interface isn't as good as mac mail, but at least my colleagues stopped complaining at the mess code problem.

  • Printout of smartform

    Want to take printout of a smartform from a local printer, help me out in configuring & getting printout successfully

    Dear Bharath,
    For your Question there are already many posts in SDN.
    Few are given below.
    http://scn.sap.com/thread/1485985
    http://wiki.scn.sap.com/wiki/display/Basis/How+to+Configure+Printer+in+SAP
    Please Search in SDN with keywords and you will find many appropriate answers.
    Regards,
    Sajid

  • Code inspector error in smartform

    Hi ,
           When iam running code inspector for smartform . this is the error that iam getting ==> The type of the VALUE parameters "JOB_OUTPUT_INFO" contains one or more tables whose row types in turn contain internal tables and also says that ==> The TADIR entry for /1BCDWB/SAPLSF00000185 is missing .
    Thanks in advance .

    Hello Ms. Anupama,
    Thanks for the immediate reply.
    I have already created a message class for messages required in validations of smartforms.
    Error: Message 023 :Entry in TADIR table for smartform FM is missing.
    But when checked in TADIR table there is entry for smartform, Message class present.
    Please do help.
    Thanks once again

  • Which ZPL2 code is generated by smartforms.

    Hi experts,
    SAP has made some arrangements in smartforms to make it possible to create a regular Smartform which will printed normal on an normal printer. However if this same smartforms sends output to a zebraprinter the output is converted to ZPL2 code which the zebra printer needs to work.
    Does anyone know how to check which ZPL2 code is sent to the printer.
    Waiting for your answer.
    Gr., Frank

    Hi Frank,
    In general you can capture the print data being sent to the printer from SAP using Method 2 of SAP Note:
       5799 - How can you view prepared print data?
    First you need to increase the trace level for the output device used to print:
      SPAD -> <Output Device> -> Edit -> Test tool
            Data: Logging the first 100K
             x    Level 2 trace
             x    Function Trace
    Then a log will always be produced in sp01 for the spool:
       SP01 -> Spool Request Number -> Output requests -> Double click on Log -> All information
    Here you can view the print data being sent to the printer.
    To print from a Smartform to a Zebra printer, you must use a device type like LZEB2 as pre the SAP Notes:
    750772 - Information about the ZPL-II printer driver for Smart Forms
    750002 - Smart Forms: Support for Zebra label printer (ZPL2)
    Regards,
    Aidan

  • Code inspection error in smartform

    Hello,
    Help appreciated.
    I have created smartform which is executing perfectly. When code inspection is done it is giving following errors and warnings :
    Errors:
    1. Message code 023 The TADIR entry for /1BCDWB/SAPLSF00000043 is missing
       (Already the smartform is assigned to a package still giving error no.1)
    2. Message code Deep_tab
    Warnings:
    3. Message code Len
       The parameter "JOB_OUTPUT_OPTIONS" is transferred as value. Use refderence transfer
    4. Message code Len_innowr
    5. Message code tab_innowr
    I am not able to understand how to resolve them. Kindly help me with the same.
    Thank You..

    Hello Ms. Anupama,
    Thanks for the immediate reply.
    I have already created a message class for messages required in validations of smartforms.
    Error: Message 023 :Entry in TADIR table for smartform FM is missing.
    But when checked in TADIR table there is entry for smartform, Message class present.
    Please do help.
    Thanks once again

  • BAR code generation in smartforms

    Hi Experts,
                  Can any body suggest me a site for the BAR code generation on the smartforms.

    I have posted some information on this sometime back. Hope it will be helpful
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/design%252bbarcode%252bin%252bnew%252btechnology
    Regards,
    Mohaiyuddin

  • How to find bar codes and mails to send clients in smartforms

    HI friends,
        How to find bar codes in smartforms and also how to send mail to the client. I have developed one object in smartforms, but i don't know how to send maill to the client. Pls help me........................
    Thanks in Advance.
    Saradhi.

    Hi!
    Here is the code to send the Smartform to mail as PDF attachment.
    *& Report ZTEST_PDF_MAIL
    REPORT ZTEST_PDF_MAIL.
    Internal Table declarations
    DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
    I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
    I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
    WA_OBJHEAD TYPE SOLI_TAB,
    W_CTRLOP TYPE SSFCTRLOP,
    W_COMPOP TYPE SSFCOMPOP,
    W_RETURN TYPE SSFCRESCL,
    WA_DOC_CHNG TYPE SODOCCHGI1,
    W_DATA TYPE SODOCCHGI1,
    WA_BUFFER TYPE STRING, "To convert from 132 to 255
    Variables declarations
    V_FORM_NAME TYPE RS38L_FNAM,
    V_LEN_IN LIKE SOOD-OBJLEN,
    V_LEN_OUT LIKE SOOD-OBJLEN,
    V_LEN_OUTN TYPE I,
    V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZTEST'
    IMPORTING
    FM_NAME = V_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.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    OUTPUT_OPTIONS = W_COMPOP
    USER_SETTINGS = 'X'
    IMPORTING
    JOB_OUTPUT_INFO = W_RETURN
    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.
    I_OTF[] = W_RETURN-OTFDATA[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = '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
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    ENDIF.
    LOOP AT I_TLINE.
    TRANSLATE I_TLINE USING '~'.
    CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
    ENDLOOP.
    TRANSLATE WA_BUFFER USING '~'.
    DO.
    I_RECORD = WA_BUFFER.
    APPEND I_RECORD.
    SHIFT WA_BUFFER LEFT BY 255 PLACES.
    IF WA_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Attachment
    REFRESH: I_RECLIST,
    I_OBJTXT,
    I_OBJBIN,
    I_OBJPACK.
    CLEAR WA_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    Create Message Body Title and Description
    I_OBJTXT = 'test with pdf-Attachment!'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    READ TABLE I_OBJTXT INDEX V_LINES_TXT.
    WA_DOC_CHNG-OBJ_NAME = 'smartform'.
    WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
    WA_DOC_CHNG-SENSITIVTY = 'F'.
    WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    Main Text
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    Attachment (pdf-Attachment)
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    READ TABLE I_OBJBIN INDEX V_LINES_BIN.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'smart'.
    I_OBJPACK-OBJ_DESCR = 'test'.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = '[email protected]'.
    I_RECLIST-REC_TYPE = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_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.
    WRITE:/ 'Error When Sending the File', SY-SUBRC.
    ELSE.
    WRITE:/ 'Mail sent'.
    ENDIF.
    If you want to send some text as Body of the Mail then follow this once
    when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
    1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
    2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
    I_OBJPACK-TRANSF_BIN = ' '.
    I_OBJPACK-HEAD_START = 000000000000001.
    I_OBJPACK-HEAD_NUM = 000000000000001.
    I_OBJPACK-BODY_START = 000000000000002
    I_OBJPACK-BODY_NUM = 000000000000010.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    append I_OBJPACK-.
    by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_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.
    Regards
    Tamá

  • What is code for to open a pdf format for scripts and smartforms

    hi
    experts
    can we help for this

    Hi Raviteja,
    Here is the code for converting a smartform into a PDF File..
    DATA: BIN_FILESIZE TYPE I,
    BIN_FILE TYPE XSTRING,
    T_OTF LIKE ITCOO OCCURS 200 WITH HEADER LINE,
    T_DOC LIKE DOCS OCCURS 200 WITH HEADER LINE,
    T_LINES1 LIKE TLINE OCCURS 200 WITH HEADER LINE,
    T_FINAL_PDF LIKE TLINE OCCURS 500 WITH HEADER LINE,
    filename TYPE string VALUE 'EXP.pdf',
    path TYPE string VALUE 'C:\DESKTOP\..',
    fullpath TYPE string VALUE 'C:\DESKTOP\PDF\EXP.pdf',
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    EXPORTING
    use_otf_mc_cmd = 'X'
    ARCHIVE_INDEX =
    IMPORTING
    bin_filesize = bin_filesize
    TABLES
    otf = t_otf
    doctab_archive = t_doc
    lines = t_lines1
    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.
    LOOP AT t_lines1 INTO t_lines1.
    APPEND t_lines1 TO t_final_pdf.
    ENDLOOP.
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
    default_file_name = 'EXPO_INVpdf'
    prompt_on_overwrite = 'X'
    CHANGING
    filename = filename
    path = path
    fullpath = fullpath.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = bin_filesize
    filename = fullpath
    filetype = 'BIN'
    append = 'X'
    IMPORTING
    filelength = bin_filesize
    TABLES
    data_tab = t_final_pdf.
    IF sy-subrc EQ 0.
    MESSAGE s018(zmsg) WITH 'PDF Generated Successfully'.
    ELSE.
    MESSAGE s011(zmsg) WITH 'PDF Not Generated !!!'.
    ENDIF.

Maybe you are looking for

  • How can I just sync the checked songs from my iTunes to my iPod?

    Okay, I cannot figure out how to sync my iPod (5th gen touch) with only the checked items. I noticed on the summary page it says, "sync only checked songs and videos" well I have that box checked. I have all my music checked that I want on my Ipod as

  • Display the material details in alv grid based on material(in mara)

    hi, display the material details when get input of material from user in mara table using alv-grid display. give some examples. Thanks of advance.

  • Can't PING a Datasource from  Sun AppServer 1.4

    posted February 25, 2004 06:49 PM Hi all! I am trying to create a datasoure in Sun AppServer 1.4 Developer Release. To connect to MySQL After download and installed the mysql-connector, I created a connection pool in the appserver called mySQLconPool

  • Fixed Assets for India localization

    HI Experts, Is there any provisions for Fixed Assets  related process entry for Indian Localization(IN) Looking for your valuable Inputs Regards Sree

  • Whole layout is messy

    hi, so I have this problem that my layout in dreamweaver is totally messed up but it's pefect if i browse it in firefox it all started when I used editable regions.. I wish to have it normal in dreamweaver aswell since it's a bit of distraction.. her