Help with Smartform download - unwanted items showing in file

Hello Experts,
I have another problem regarding Smartforms. I am downloading my smartform output in pdf format using the following fm's:
CONVERT_OTF_2_PDF
DOWNLOAD
But when I open the pdf file, there are note-like graphics appearing on the side of the form, something similar to comment notes you place on a word document. I have also tried to substitute CONVERT_OTF_2_PDF with CONVERT_OTF, and DOWNLOAD with GUI_DOWNLOAD. They all produce the same weird error on the form.
When I preview the smartform, the note-like objects are not there, so I'm assuming there is something weird going on during the downloading process.
I have read in a thread somewhere here that they have encountered a similar problem, but no specific solution was proposed.
Can someone please help me?
Thanks in advance.

Hi,
As you are capturing the OTF data from Smartform itself, try using Convert_otf and then GUI_DOWNLOAD Function Modules to download as pdf.
I am sending you the code.  Please check your code against it and still if you have any doubts i ll clarify it.  You can just copy paste this code and check it.
DATA: form_name TYPE rs38l_fnam,      " Used to get the function module of Smartform
      wa_ctrlop TYPE ssfctrlop,       " Smart Forms: Control structure
      wa_outopt TYPE ssfcompop,       " SAP Smart Forms: Smart Composer (transfer) options
      t_otfdata TYPE ssfcrescl.       " Smart Forms: Return value at end of form printing
Data: t_pdf_tab type table of tline,  " SAPscript: Text Lines
      t_otf TYPE table of itcoo.      " OTF Structure
Variables used to pass to GUI_DOWNLOAD
DATA: w_filesize TYPE i,
      w_bin_filesize TYPE i.
Variables used for Save Dialog Box
DATA : file_name TYPE string,
       file_path TYPE string,
       full_path TYPE string.
START-OF-SELECTION.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'ZPDF_G'      "p_name
    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_outopt-tdnoprev = 'X'.
  CALL FUNCTION form_name
    EXPORTING
      control_parameters = wa_ctrlop
      output_options     = wa_outopt
      user_settings      = 'X'
    IMPORTING
      job_output_info    = t_otfdata
    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.
END-OF-SELECTION.
  t_otf[] = t_otfdata-otfdata[].
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
    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.
----TAKING THE DOWNLOAD FILE PATH AS USER INPUT*
  CALL METHOD cl_gui_frontend_services=>file_save_dialog
    CHANGING
      filename             = file_name
      path                 = file_path
      fullpath             = full_path
    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.
Download the file to the selected path
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      bin_filesize            = w_bin_filesize
      filename                = full_path                   "fname1
      filetype                = 'BIN'
    IMPORTING
      filelength              = w_filesize
    TABLES
      data_tab                = t_pdf_tab
    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 i000(zpdf).      "File not downloaded
  ELSE.
    MESSAGE i001(zpdf).      "File downloaded
  ENDIF.
Reward if useful.
Thanks,
Geeta

Similar Messages

  • It's not just Download Helper v4.8.3, it's also RealPlayer: the download display window shows .mp3 files downloading, but nothing shows in the folder when it is done downloading.

    # Question
    It's not just Download Helper v4.8.3, it's also RealPlayer: the download display window shows .mp3 files downloading, but nothing shows in the folder when it is done downloading.
    Also in the '''Properties''' window of Windows Explorer I '''no longer have the Details tab''', so I can't update my mp3 files with Artist, Album, Genre, etc. But the details tab does show up when I access it thru Windows Explorer.
    I ran the AVG rescue disc an no viruses found. Now on '''FF3.6.15''' '''RealPlayer''' shows when I right click but then '''immediately disappears and an icon appears in the System Tray''', but as soon '''as I hover my mouse over it it disappears'''.
    Does anyone have any ideas or suggestions?
    How can I get this fixed? I have time-sensitive mp3s that I won't have access to anymore if I don't get this resolved in a hurry. (no pressure on you, I'm the one that's stressed about this) Can you help? Thanks so much for responding to this '''inquiry.''''''bold text'''

    See:
    *https://support.mozilla.com/kb/Downloads+window
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember download history"

  • TS2771 I need help with my camera it's shows a black screen. And I have restarted it many times

    I need help with my camera it's shows a black screen. And I have restarted it many times

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Y are not alones. Sometimes the camera fails.
    Apple Retail Store - Genius Bar                                      

  • Can someone help with my download of inDesign CS6?

    We bought inDesign CS6 online, but it didn't come with a disk. Instead I was prompted to go to the following link http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    After downloading CS6 Design Standard (files 1 and 2), the larger of the two files was saved to my download folder as a 7Z file. The smaller file was the "extractor." I click on that and it gives me the folder location box, then I click next. At that point, the following message appears: "A problem occurred while extracting some files. Check available space on your computer and the write privileges on the destination folder" After click OK, this message appears: "A problem occurred while extracting the archive. Please try downloading the Adobe CS6 Design Standard again." After clicking OK, this is the last message that comes up: "Exception EListError in module DesginStandard_CS6_LS16exe at 0001B6E3. List index out of bounds (0)," accompanied by the dreaded red X.
    This wasn't a cheap purchase. And my computer is only five months old, so memory shouldn't be an issue. Does anyone have any suggestions? For starters, an idea on how to open a 7Z file? Any and all help would be greatly appreciated. Thank you!
    Dan

    here are some, Best Free Download Manager
    they should all have a 'resume' feature, but you should double check because it's the feature you really need.

  • I need help with a download from Adobe

    I need help with Adode photoshop elements that I bought from Adobe. The download take forever. I can't get signed in very easy. It take forever

    Hi Kathy1963-1964,
    Welcome to Adobe Forum,
    You have photoshop elements 12, you can try downloading without the akamei downloader .
    http://prodesigntools.com/photoshop-elements-12-direct-download-links-premiere.html
    Please read the " very important instruction" prior to downoload.
    I would request you to disable the firewall & the antivirus prior to download.
    Let us know if it worked.
    Regards,
    Rajshree

  • I need help with Compressor 4 settings to convert .mp4 files to .m4v for iBooks Author

    I'm a curriculum design guy with no video background. I have Compressor 4, but don't really know much about how to best use it.  I'd appreciate some help with getting the right setting for my project. Screen shots of settings would be much appreciated, since I don't know much video terminology.
    I'm making an free iBook for students on WWII propaganda using old videos from the Internet archive.
    I'd plan to use Compressor to:
    1. Convert the .mp4 files to a .m4v that iBooks Author will accept. (I know I can use QT for that, but it increases file size)
    2. Use Compressor to reduce file size so my iBook doesn't get too big
    3. Get videos that look & sound the best, given the poor quality of the original source videos.
    Here's some sample videos that I'll use:
    http://www.archive.org/download/OutOfTheFryingPanIntoTheFiringLine/OutOfTheFryin gPanIntoTheFiringLine.mp
    http://archive.org/download/AvengeDe1942/AvengeDe1942_edit.mp4
    PS - I will also be editing some of the original videos in iMovie - if I use different settings to prep those videos for iBook Author, let me know.
    Much thanks in advance for any help

    Compressor is half the size compared to QtX encoding, 17 MBs...
    File Format... H.264 for Apple Devices...
    Device: iPhone Local/WiFi
    Aspect Ratio: 4:3 480x368
    Data Rate: 700
    Uncheck Multi-pass

  • Help with Premiere Pro freezing after importing MPEG files

    I have
    had some files sent for me to edit which are MPEG I believe.  They will import, but
    as soon as I try and do anything with it, the whole thing freezes for several minutes!  It is unworkable.  I have tried waitin
    g for the audio file to conform.  I have tried rendering the work area.  None of this helps.  If it does play, it lasts for a few seco
    nds with sound playing at what appears to be twice the speed!  I normally wortk with DV files and these are fine.  By the way, the files I am struggling with do play in media player/real player etc.  I cant believe that premiere would not support this format.  Even Movie Maker just about manages it!  When it does freeze, it really freezes!  As in it wont even let me shut down without literally ripping out the power cable!!  Please help with simple English if possible, and sorry if I havent given you specifics that you would need.  But I honmestly dont know as these were just files sent to me on a memory stick. It was filming from a camcorder, but not sure what type.  The thumbnail says MPEG and the properties just says movie file.  It is about 2GB for an hour I think.  Thanks for any help.  My version is Premier Pro 1.5

    Genuinely sorry that I dont know all the technical things that people need
    to know.  I always try to find out when I am asked specifically and told how
    to find them.  I did look at the link, but that just seemed to be a lot of
    stuff about posting ettiquette, nothing about MPEGS.  Perhaps I got the link
    wrong.  All a bit hard for me as I have a visual imp[airment.  Thanks again

  • NEED HELP WITH A DOWNLOAD FOR MY MAC OS 10.4 IT DOWNLOADED CORRUPT CAN YOU HELP & SHOW ME WHAT ONE I SHOULD DOWNLOAD FOR MY MAC OS .10.4 THANKS BETTY

    I HAVE HAD FIREFOX WITH MY MAC OS 10.4 FOR QUITE A WHILE TILL I DOWNLOADED AN ADD ON WHICH WAS MY POINT FINDER IN MY POINTS-AFTER THE DOWNLOAD IT DISABLED MY COMPUTER TOTALLY I COULD NOT DO A THING BUT TRASH IT! THEN I REINSTALLED IT LATELY AND THIS TIME IT DOWNLOADED CORRUPT!! YIKES--- I WAS HOPING MY COMPUTER WOULD NOT CRASH! I SO NOT KNOW WHAT TO DO NEXT FOR AMY BROWER I TURNED TO SAFARI THEN-I DON'T THINK FIREFOX LIKE MACS-- AM I RIGHT? IT CRASHED OFTEN ALSO!! THANKS BETTY

    Try http://eshop.macsales.com/shop/hard-drives/External-Enclosures/
    If you have question about any items on their page, MacSales has an extremely god technical support staff.
    Allan

  • Need help with Smartform

    Hi Friends,
                I am working on a smartform. This is a modification to the existing form. In the Smartform i have 3 pages. For page2, there are 3 scenarios. There is a custom table (Say gt_customtable). It contains Document ID field (DOCID), and for each document id, it has a indicator field (Say indicator = E / S).  E = Emergency order, and S = Stock order.
    When the indicator is E for the docid's, then Scenario 1 should be printed, that is Emergency layout should be printed.
    When the indicator is S for the docid's, then Scenario 2 should be printed, that is Stock layout should be printed.
    When the indicator is both E & S, then Scenario 3 should be printed, that is Emergency layout should be printed first, and then Stock layout should be printed.
    There is an internal table called gt_page2, which has both the Header data, and Line items data.
    The header data is same for all the scenarios, and need not be changed. But coming to the Line items data, emergency layout is different from stock layout.
    How do i approach this situation. Can you please help me out here.
    Thanks,
    Nikhil

    Hi Suneel,
                Thank you very much for replying. Actually Page3 has nothing to do with page2 here. The Issue is Page2 has 3 scenarios. The layout for each of 3 scenarios is different. Indicator is E for Page2-scenario 1 layout, and S for Page2-scenario 2 layout. But when the indicator is both E, and S....then Scenario1 is printed first, then scenario 2.
    Do we need to create 2 tables, one for each scenario, each with different layout. Or create a flag, and depending on this flag, can we play with  text elements in the layout by giving them in the conditions tab.
    Thanks,
    Nikhil

  • TS1717 Help with frozen downloads

    I downloaded two episodes of Mad Men. Both of them showed up twice in my library, each with an exclamation point next to the title. They freeze minutes into the program. Help!

    Welcome to Apple Discussions!
    Is it frozen or is it stuck on hold? Connect it to your computer. Does it do anything. Does it say Do Not Disconnect when connected?
    If not, then the iPod may be frozen, so try to reset your iPod by holding down Menu and Select for 6-10 seconds...
    Resetting iPod
    It may take several attempts. The above link also has "tips" if your iPod does not seem to be resetting.
    Now, if the iPod does say Do Not Disconnect, then the iPod may be stuck on hold. See if a restore helps...
    Restore the iPod
    btabz

  • Help with "edit in" most items grayed out

    I am not able to use anything but Edit in Photoshop and open as a smart object under "photo" in the drop down dialog. Please help me so that I am able to edit in Camera Raw, merge to Panorama, HDR, another application and open as layers from Lightroom.
    I currently have Lightroom 2.0, Camera Raw 4.5 and I just installed the upgrade patch of Photoshop CS3 so I am using 10.01. I thought that maybe this patch would work....but to no avail. I am using XP Pro for Windows. I re-loaded my entire system and decided to only install 2.0.... rather then 1.4 and then 2.0 as I was having problems with Lightroom this way as well. Thanks so much I really appreciate any assistance with this issue.
    Ruth

    Thanks so much. Actually that is a good point about selecting multiple photos. I had not done that as I didn't think that the program was working so I was editing through Bridge. Also Ian I will try the upgrade and see if that fixes the problem. I use Camera Raw all the time so I was really discouraged when it didn't show up after the CS3 patch. I will keep you posted as to whether your suggestions worked or not....thanks for your quick replies Rob and Ian!!!

  • Help with Photo Downloader in PE6

    Is there any way I can stop downloader shutting down when I download only part of the contents of my camera card? I download to My Pictures on my Pc (using Windows XP) creating folders then verifying and deleting files. As soon as I confirm the deletion the downloader closes and I have to re-open via the icon on the bottom toolbar. I would prefer that the downloader stays open is there any way I can do this? Thanks in anticipation

    Having re-read my original post I think it gives the impression I am using Windows XP to download pictures. I am of course using Photoshop Elements' Downloader. It is this program that shuts down after each batch of photos has been downloaded.
    Am I the only person with this issue? Am I expecting too much to ask it to stay open for each batch of pictures? Is there anybody out there who can comment?
    Help!!!!

  • Help with Planning Query - 0CALMONTH not showing up

    Hi, I have a simple planning query where I am trying to allow users to input or change an Amount by Material/Month.  The User inputs a Version and a Date Range to maintain.  The selected dates should show up going across the screen even if there is no existing data.  These Variables are in the Query Filter along with a few other characteristic Filters.  So in my query I have 0MATERIAL in the Rows and I have 0CALMONTH and my Key Figure.  Under advanced for the characteristic 0CALMONTH it is set as Master Data.
    When I run the query for some reason the 0CALMONTHS do not show up going across.  If I run the query and put in one value then the 12 months show up.  Seems like a bug.  I have another similar query where this works.  Can anyone take a look at the screen shots and help me figure this out?
    [Query Def Screen 1|http://i35.tinypic.com/1h8con.png]
    [Query Def Screen 2|http://i36.tinypic.com/1f781c.png]
    [0MATERIAL Def|http://i36.tinypic.com/xefq8i.png]
    [0CALMONTH Def|http://i35.tinypic.com/ej8qpv.png]
    Thanks!
    Edited by: Kenneth Murray on Nov 5, 2009 3:12 PM

    Dear  Kenneth,
    I think its a bug.  If we post the value without the drilldown on 0CALMONTh then its open for the input, and after that if we drill down it with 0CALMONTH for same selection, it opens for input.  but for new selection of month it not opens.
    Have you solved the problem?
    Regards,
    V B Udani

  • Help with Datagroup layout , resize items

    Hey everyone. I currently have a spark data group using a TiledLayout with a custom itemRenderer. The normal to hovered transition for the items in the datagroup is a scale effect , more specifically when you rollover an item , the item scales up by 10%. Everything works fine except that mechanisms in the tiledlayout causes a shifting effect between the focused item and the others. Everything in the datagroup tries to re-layout when the focused items scales up , and inversely shifts back when focus is lost. I dont want to have anything move at all , rather stay static , and ideally what i need to happen is have the focused item scale up and actually swap depths with the adjacent items so it sits at the top of display list in this case. It basically needs to overlap the adjacent items. Can anyone recommend a custom layout example , or some similiar references ? I have a feeling this is going to require a cusomt layout class , which i have no problem writing , but i suspect this is a fairly common design for image lists / grids.
    Thanks !

    You might find this post helpful:
    http://flexponential.com/2009/06/24/zoom-in-on-items-in-a-list-with-a-tilelayout/
    You might also want to look into the applyChangesPostLayout property, see this thread for an example:
    http://forums.adobe.com/message/2925867

  • HT1977 Help with app downloads

    I'm trying to download apps from itunes onto my iphone.  When I look at my itunes account in the app stoure under purchases, it shows that the apps have downloaded.  When I look at my phone, I can see them on my phone but they all say "waiting..." underneath the icons.  How do I get them to actually work?  What is the next step?  I tried to synch the apps to my phone, but followed the steps and got the screen that I thought I wanted, but then wasn't able to actually highlight anything on that screen.  Looking for help if anyone knows what I'm doing wrong.

    Thanks, tried it but no luck.  I looked through a bunch of the other lines that were similar, they all said to try and download another app and see if that refreshed my iphone, but that didn't work either.  They all still say "waiting..."

Maybe you are looking for

  • I have the new Oracle 8i installer and here is why

    I have been trying to get Oracle 8i on Linux and I feel that I must share my thoughts on the new Oracle installer with everybody. I hate the new installer. I used to run the installer from home over my 128Kbps connection while I was connected to the

  • Directory Issues on External Drive?

    I have a Mercury Elite Pro 160GB external drive, and sometimes it won't mount. Disk Utility and DiskWarrior say there's no problem. If there's corruption, does using Disk Utility to erase the drive also rewrite a new Directory? A Mac tech told me tha

  • How to send personalized mass emails on my Mac?

    I am trying to help my daughter send out letters to colleges via email.  How do I send personalized mass email messages on my MacBook Pro?  I know how to do it on my PC..... I figured out how to do a mail merge letter, but I would like to send it via

  • Call log nokia asha 311

    I am unable to filter or separate missed calls dialed calls etc using log option. How can i do this in nokia asha 311

  • HT204074 two different id's ,can you download previous purchased songs and software to each of these ID's ?

    I have an existing ipod with an ID which I have purchased songs and books.  I have purchased an I pad and am ready to set up an ID. Can I set up a separate ID for the I Pad ? Does this require a  new I tunes software? Can I transfer existing purchase