Use 'convert_otf', but the output table of lines is empty, why?

Hello experts,
I am trying to use the function 'convert_otf' to convert smartforms into pdf. But the output table of lines is empty´.
*   Convert OTF into PDF
CALL FUNCTION 'CONVERT_OTF'
  EXPORTING
    format                = 'PDF'
*    max_linewidth         = 132
  IMPORTING
    bin_filesize          = lv_bytes
    bin_file              = bin_file
  TABLES
    otf                   = gt_otfdata
    lines                 = gt_pdfdata
  EXCEPTIONS
    err_max_linewidth     = 1
    err_format            = 2
    err_conv_not_possible = 3
    OTHERS                = 4.
Before calling this function the parameter value are like following:
LV_BYTES: 0
BIN_FILE:
GT_OTFDATA: Standard Table[15x2(144)
GT_PDFDATA: Standard Table[0x2(268)]
After this function is called, the parameter value are like this:
LV_BYTES: 1774
BIN_FILE:  255044462D312E330D0A2...
GT_OTFDATA: Standard Table[15x2(144)
GT_PDFDATA: Standard Table[0x2(268)]
It looks that there is output for table lines. For download this pdf I have to get a table of pdf data.
What could be the reason for this?
Thank you.
Rujing

See if the below code I did some time back is helpful :
call the FM to return the Smartform function module
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'ZOL_WATER_PLANT_WEEKLY'
    IMPORTING
      fm_name            = lf_formname
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
pass data to the smartform
  IF sy-subrc = 0.
    ls_ctrlop-getotf = 'X'.
    ls_ctrlop-no_dialog = 'X'.
    ls_compop-tddest = 'LP01'.
   ls_compop-tdnoprev = 'X'.
    CALL FUNCTION lf_formname
      EXPORTING
        control_parameters = ls_ctrlop
        output_options     = ls_compop
        user_settings      = ' '
        gf_date_fr         = lf_date_fr
        gf_date_to         = lf_date_to
        gf_datum           = lf_datum
      IMPORTING
        job_output_info    = ls_return
      TABLES
        gt_finaldata       = gt_finaldata
        gt_event           = gt_fin_evnt
      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.
    ELSE.
      LOOP AT ls_return-otfdata INTO wa_otf.
        APPEND wa_otf TO int_otf.
      ENDLOOP.
      CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
        EXPORTING
          format_src      = 'OTF'
          format_dst      = 'PDF'
          devtype         = 'PDF1'
        CHANGING
          transfer_bin    = int_bin
          content_txt     = int_otf
          content_bin     = int_pdfx
          objhead         = int_header
          len             = wf_len
        EXCEPTIONS
          err_conv_failed = 1
          OTHERS          = 2.
Mathews

Similar Messages

  • How to hide columns in the output table in webdynpro based on input

    Hi Experts,
       I have 2 inputs and 1 input is optional.If both inputs are given proper table output is displayed,but if only 1 input is given a column is empty in the output table  so i want to hide this column dynamically at runtime based on my inputs.And i want to hide some empty rows also at runtime based on inputs.
    Can anyone help me out to solve this.
    Thanks in advance.
    Regards,
    Anita.

    Hi Anitha,
    What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
    Any how i am giving solution in this way.
    If both inputs are given proper table output is displayed
    Write your below logic in the WDDOMODIFYVIEW )
    Here i am assuming that you already have a table element in the view.
    Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
    but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
    You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
    data:lr_table type ref to cl_wd_table,
           lr_column type ref to L_WD_TABLE_COLUMN.
    lr_table ?= view->get_element( 'TABLE1' ).
    CALL METHOD LR_TABLE->REMOVE_COLUMN
        EXPORTING
          ID          = 'TABLE1_color'
         INDEX      =
        RECEIVING
          THE_COLUMN = lr_column.
    i want to hide some empty rows also at runtime based on inputs.
    Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
    delete itab from wa where key1= "12" and key2="abd".
    Now bind the internal table to context node.
    LO_ND_hcm->BIND_TABLE(
          NEW_ITEMS            = it_final
          SET_INITIAL_ELEMENTS = ABAP_TRUE ).

  • Refreshing the Output Table in ALV

    Hi All,
    Please let me know how to refresh the output table using refresh button in ALV.
    Thanks & Regards,
    Priya.
    Edited by: SathyaPriya Neelagaru on Jun 26, 2008 7:00 AM

    Hi,
    We can refresh the output table for ALV by below code :
    CLEAR  : g_wa_outtab.
    REFRESH: g_t_outtab.
    When we append something to output table of ALV we need to clear the workarea for that table.
    APPEND g_wa_outtab TO g_t_outtab.
    CLEAR g_wa_outtab.
    If you are using object oreinted concept we have
    CALL METHOD g_alv_grid_9001->refresh_table_display.
    In case you have to use your own PF Status - Always copy the standard GUI status
    (Program : SAPLSLVC_FULLSCREEN,
    Status : STANDARD_FULLSCREEN )
    For REFRESH - Include parameter for "USER_COMMAND" in the Function module interface.
    Inside the User command subroutine - set
    "RS_SELFIELD-REFRESH" = "X".
    It will automatically refresh the ALV and there is no requirement to call ALV again.
    Or else if u have a Refresh button on screen.
    we can have
    WHEN 'REFRESH'.
          CLEAR : g_wa_outtab.         
          REFRESH : g_t_outtab.
    Hope this helps you.
    Plz reward if useful.
    Thanks,
    Dhanashri
    Edited by: Dhanashri Pawar on Jun 26, 2008 7:08 AM
    Edited by: Dhanashri Pawar on Jun 26, 2008 7:14 AM
    Edited by: Dhanashri Pawar on Jun 26, 2008 7:15 AM

  • I am using earphones, but the external audio of my mini ipad is still on. How can I turn off the external audio while listening with my headset?

    I am using earphones, but the external audio of my mini ipad is still on. How can I turn off the external audio while listening with my headset/earphones?

    Other than iMovie, GB always incorporates the audio files into the GB package. So just save or move the GB project to the external drive, and you're done - anything you import, edit or record will be saved to the external drive.

  • I've just bought a Macbook Pro 15" and I'm trying to use Photoshop, but the resolution its displaying the images at for 100% are too small. I have to design for the web, so need to be intricate with detail, but I'm finding it adjusts the resolution of the

    I've just bought a Macbook Pro 15" and I'm trying to use Photoshop, but the resolution its displaying the images at for 100% are too small. I have to design for the web, so need to be intricate with detail, but I'm finding it adjusts the resolution of the image right down. (I mean you can see the image clearly, but it's too small to edit). When I look at Safari and see a web page at 100% it's clear, but the same page displayed in Photoshop CC appears 50% of the size (even though it says it's 100%)   If I move the application window to another screen it adjusts it correctly  – leaving all the pallettes, menus and tools correctly sized as they are on the retina display   Is there some way to adjust the way Photoshop CC displays images so it is more consistent with what you actually see?   There doesn't seem to be any answer on the Adobe forum, so hopefully someone here can shed some light.  MacBook Pro with Retina display, 15", OS X Yosemite (10.10.2), Photoshop CC 2014

    I tested both ways. With "open in low resolution" ckecked the size of the images is cool, but it is low-resolution including Photoshop appearance.
    If "open in low resolution" is unckecked the appearance is good but the very small size.
    See the image below. It has 650 x 732 px, 72 dpi. The font of the text "Neste aniversário ..." is with 18pt.

  • I just bought photoshop elements 13 last night. Today I am watching tutorial videos to show me how to use it, but the videos are showing me things I don't have. Asking me to click on tabs i don't have. Why is this? Is there another way I can learn? Or is

    I just bought photoshop elements 13 last night. Today I am watching tutorial videos to show me how to use it, but the videos are showing me things I don't have. Asking me to click on tabs i don't have. Why is this? Is there another way I can learn? Or is my download messed up and not giving me everything I need?

    Got a link showing us which video tutorials you're watching and examples of what's missing in your software?

  • I'm downloading using RealPlayer But the video playback is jerky.  The audio playback is OK.   Can anyone suggest a solution.  Would upgrading to RealPlayer Plus be a good thing to do?

    I'm downloading using RealPlayer But the video playback is jerky.  The audio playback is OK.  
    Please can anyone suggest a solution. 
    PS Would upgrading to RealPlayer Plus help?

    I can't understand how internet speeds can be the cause of the problem.  My problem with a jerky playback is that I have already down loaded.   Could this be to do with my computer (I maybe able to persuade my wife that I need a new one).  Earlier I was listening to a clip of the MJQ, downloaded from UTube, and although the sound was good the picture was not.
    My computer is an iMac with an Intel Core 2 Duo with a processing speed of 2.8 Ghz.  Does this information help?

  • I created a book using iPhoto, but the "Buy Book" tab seems to not work. Any suggestions?

    I created a book using iPhoto, but the "Buy Book" tab seems to not work. Any suggestions?

    First confirm that you can create a PDF file of your book as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it. Post back with the results.
    OT

  • I cant send meseges using imesege but the bubble is blue and i set it up correctly

    i cant send meseges using imesege but the bubble is blue and i set it up correctly...

    What happens when you try? Do you have an active data connection? Are you sending to someone else who has iMessage? Without some details, there's not much we can do to help.
    Best of luck.

  • I have 2 apps that have been waiting to update for a week.  I don't really care about the update, I would just like to use them, but the are stuck waiting.  I have tried powering down, syncing with my computer...all fails.  Any ideas?

    I have 2 apps that have been waiting to update for a week.  I don't really care about the update, I would just like to use them, but the are stuck waiting.  I have tried powering down, syncing with my computer...all fails.  Any ideas?

    At this point you have no choice but to update the or delete them and reinstall them since you wont be able to use them until they update - or come out of the "waiting" loop.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.

  • Ive tried to update my iphone by using wifi but the wifi connection got interupted and not my iphone wont work

    Ive tried to update my iphone by using wifi but the wifi connection got interupted and not my iphone wont work

    Connect your iPhone to a computer and use iTunes to perform the update.
    ~Lyssa

  • My ipod was in recovery mode and fixed it. i can use it. but the problem is whenever am i connect it with itunes it says IPOD is in recovery mode even after recover is done. i cant sync ipod rite now. it showing same msg again. nyone knows wat to do plz??

    my ipod was in recovery mode and fixed it. i can use it. but the problem is whenever am i connect it with itunes it says IPOD is in recovery mode even after recover is done. i cant sync ipod rite now. it showing same msg again. nyone knows wat to do plz??

    I did the restore and it cleared and reset the iPod but after it finished the same error came up. I tried this 3 times. Also it no longer shows up as a drine in My Computer.
    if it's relentlessly doing that to you, it's plausible that the message is being caused by a Windows drive letter confusion. (that's consistent with the disappearance for My Computer, too.)
    see the following article for troubleshooting information on that possibility:
    "iTunes has detected an iPod in recovery mode - Use iTunes to restore"

  • HT1491 I have purchased Dhingana for 1 month , But the  songs was not downloaded .kindly explain why it was not downloaded

    I have purchased Dhingana for 1 month , But the  songs was not downloaded .kindly explain why it was not downloaded. I will try many times

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I want to uninstall photoshop CC on my Mac but the "Adobe Installers" folder is completely empty.

    I want to uninstall photoshop CC on my Mac but the "Adobe Installers" folder is completely empty. Is there any other way to uninstall it? Thanks!

    There is an uninstaller in the Adobe Photoshop CC app folder right at the bottom of the list.

  • I installed Cloud on my desktop W8 pc but the window of Cloud is completly empty and white. I retrayed to install cloud but without success. What I can do? I'm a Cloud client from 2013.

    I installed Cloud on my desktop W8 pc but the window of Cloud is completly empty and white. I retrayed to install cloud but without success. What I can do? I'm a Cloud client from 2013.

    I installed Cloud on my desktop W8 pc but the window of Cloud is completly empty and white. I retrayed to install cloud but without success. What I can do? I'm a Cloud client from 2013.

Maybe you are looking for

  • I cant update my ipod touch 4 to ios5

    this is really bugging me now i have been trying since it was released, i plug it in and it says update the first time it took 3 hours to download  then it came up  saying that there was an error while backing up and that i can continue if i want or

  • Hi guys my headphone tip was broken inside my ipad 2 how can i get it out

    hi guys my headphone tip was broken inside my ipad 2 how can i get it out

  • Why no sound output?

    This will seem really dumb but I am getting no sound today, on the same project as yesterday. I am playing an Akai EWI breath controller and can see in the transport bar the 'NO IN' change each time I play a note. But the bottom 'NO OUT' stays that w

  • Expert coaster maker needs help!  AVI plays - DVD issues??

    The problem is that there seems to be a piece of footage that doesn't want to play right on the TV/DVD. It plays perfect in AVI format and through Encore preview (also Premiere). Not all the video/audio is bad and stuttering - just a few parts. But,

  • Tomcat server 6.0.35 on jdeveloper 11.1.1.5

    Hi Experts, I am using tomcat server 6.0.35 and Jdeveloper 11.1.1.5 Trying to run my application on tomcat server but its not showing at all I have tried all the things which they showed on blogs but I don't know why it is not working out? In my tomc