CONVERT_OTFSPOOLJOB_2_PDF is not working with more than 200 pages

HI all,
i am trying to print out Inspection Results (OTFs generated by QGA3 Transaction) via the CONVERT_OTFSPOOLJOB_2_PDF funtion module.
But if the Inspection Results have more than 200 pages the FM only creates a PDF without content.
The PDF is there but it has 0 bytes.
This is how i fill the FM:
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
         EXPORTING
              src_spoolid              = i_spool
              no_dialog                = 'X'
         IMPORTING
              pdf_bytecount            = wl_numbytes
              pdf_spoolid              = wl_pdfspoolid
              btc_jobname              = wl_jobname
              btc_jobcount             = wl_jobcount
         TABLES
              pdf                      = tl_pdf
         EXCEPTIONS
              err_no_otf_spooljob      = 1
              err_no_spooljob          = 2
              err_no_permission        = 3
              err_conv_not_possible    = 4
              err_bad_dstdevice        = 5
              user_cancelled           = 6
              err_spoolerror           = 7
              err_temseerror           = 8
              err_btcjob_open_failed   = 9
              err_btcjob_submit_failed = 10
              err_btcjob_close_failed  = 11.
Does anyone have an idea ?
Thanks and Regards
Volker

That's because the function reverts to background processing when the page size is over 99 pages (see the code).  I posted how to handle this a while back but basically you can either use RSPO_RETURN_SPOOLJOB directly or you can continue to use your current function but you have to poll for the completion of the job (BP_JOB_STATUS_GET) and then get the resulting spool in RAW format with RSPO_RETURN_SPOOLJOB then convert it:
FIELD-SYMBOLS: <fs_line> TYPE x.
DATA: gv_pdf TYPE xstring.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
  EXPORTING
    rqident              = p_spono
    desired_type         = 'RAW'
  TABLES
    buffer               = gt_buffer
  EXCEPTIONS
    no_such_job          = 1
    job_contains_no_data = 2
    selection_empty      = 3
    no_permission        = 4
    can_not_access       = 5
    read_error           = 6
    type_no_match        = 7
    OTHERS               = 8.
LOOP AT gt_buffer INTO gs_buffer.
  ASSIGN gs_buffer TO <fs_line> CASTING TYPE x.
  CONCATENATE gv_pdf <fs_line> INTO gv_pdf IN BYTE MODE.
ENDLOOP.

Similar Messages

  • Apex 4.0 tree does not work with more than 2 levels.

    When I have more than 2 levels in my tree, I only see the root node. The query works fine and returns 132 rows when I run it in SQL. It is just the tree that does not work.
    The same tree when built in 3.2 works fine.
    This is my tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "NAME" as title,
    null as icon,
    "ID" as value,
    null as tooltip,
    null as link
    from (
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    Level = 2
    Parent = Module
    Node = Functional Areas
    ID = '__FA_' prefixing functional area code
    UNION ALL
    SELECT '__FA_'||funcarea_key id
    , '__MD_'||module_key pid
    , funcarea_name name
    , funcarea_key link_id
    , '__FA__' a1
         , null a2
    FROM c_functional_area
    Level = 3
    Parent = Functional Area
    Node = Fact Group
    ID = '__FG_' prefixing fact group key
    UNION ALL
    SELECT '__FG_'||factgroup_key id
    , '__FA_'||funcarea_key pid
    , factgroup_name name
    , factgroup_key link_id
    , '__FG__' a1
         , null a2
    FROM c_fact_group
    start with "PID" is null
    connect by prior "ID" = "PID"
    order siblings by "NAME"
    If I reduce the query to just use two levels like:
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    It works fine. Can somebody let me know what I am doing wrong? Is there a way to set the number of levels supported in 4.0?

    Hi Vidya,
    Thanks for posting your example. You may want to remove your workspace details from the previous posting, or at least update the password on the workspace. I've taken a look at your example and initially couldn't see anything wrong with your tree query. However, when I ran your query in SQL Workshop, it only returned one row, which would explain why you were only seeing one node in your tree! I've updated your query to use a WITH clause, and the tree is now working correctly. I believe you've hit an underlying database bug where the CONNECT BY query is only returning 1 row, when in fact it should return > 1 row. By re-writing the query to use a WITH clause, you can get around the problem.
    Regards,
    Hilary

  • Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been usin

    Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been using adobe forms for 2 years with mass response feedback and have never had this problem.

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • LSMW For Converting Open Sales Orders (not working for more than 1 item)

    Hi,
    I am using following standard object for Open sales orders .
    Object               0090   Sales documents                   
    Method               0000                                     
    Program Name         RVINVB10                                 
    Program Type         D   Direct Input                         
    Its not working for more than 1 line item.
    For more than 1 line item its giving Error saying that
    '102122                         V1                   845
    Print parameter SAPML2 1 is not defined
    Can anybody help me out in this regard.
    Thanks in advance.
    Nitin.

    hello, friend.
    i will still research the subject.  but the first thing that comes into my mind is t-code VA05.  with this, you have the option to change the Plant en masse.  so a possible workaround is for you to list a number of sales orders using VA05.  you then sort the line items by Plant.  choose all items with the same plant, change the plant via mass change... then change back to the original plant.  hopefully, the new settings should apply.
    do test a few sales orders by doing this for a larger scope.
    regards.

  • Case structure with more than 200 cases, slower lab view app

    Problem Description :
    i am currently making a vi which compose of a simple case structures, a case structure with more than 200 cases, what i noticed is that the more i added cases the slower the labview reacts, it takes time for me to route wire on each of the cases.
    i dont know if there are any setting in the labview environment that i can increase the buffer size? i dont know... but its getting slow (only on the
    vi with more cases in a case structure)
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    Can you clarify what you mean by "slow". Does it run more slowly or does it feel sluggish during editing?
    Could you attach the actual VI?
     Overall, I agree with the notion of local variable overuse. For example, you read the same local variable twice in the same case. Is there a need for this? Is there a chance that it varies between the two reads? Typically, you would place the terminal in front of the case structure and wire to all the locations where you need the value. This ensures that the data is consistent. Still, this should not cause any slowdown problem.
    (On a sidenote, the code in the upper left corner is inefficient. You convert the same data to lower case with each iteration, so you might want to place this before the loop and do it only once (well, if you are lucky, LabVIEW will fold the operation, but still....). Also your "index array" operation can be replaced by autoidenxing of the 2D array on the outer loop boundary.)
    LabVIEW Champion . Do more with less code and in less time .

  • Bugged audio playback? When I start working with more than 1 audio track.

    Hi!
    I have been using premiere elements 12 for editing FullHD videos.
    Brand new for me just bought it like 2 weeks ago.
    Now during the last couple weeks I have had this MAJOR proglem with editing the audio.
    This problem is headache and turns my simple editing into almost impossibilites.
    I have had this problem with all my projects. _ALL_
    Usually the problem seems to appear when I want to start working with several audio tracks.
    At somepoint my projects just get ruined, I simply cannot hear the audio tracks.
    The audio starts to disapear randomly from all the audio tracks.
    It is not only playback problem. When I exported the video, the audio was partly missing, same as the project.
    I have tried to look help on forums and search all what I could find, but havent been able to solve this.
    Small fix has slightly helped:
    I export audio to single track and bring it back to project. This works but I still usually have more editing to do.
    I simply cannot understand why the playback disapears, I fear it is a bug.
    I found lot of earlier version problems on people with similar type of problems, but no help for this version of program.
    To solve the matter I have changed my audio setting in PE12.
    Tried Premiere Elements WDM Sound and ASIO4ALL V2, but same problem on both.
    I have looked up that my audio playback device and PE12 matches, and are not muted, and volumes maxed.
    I have deleted my C:\ appdata\roaming\adobe  premiere elements & premiere elements 12 folder preferences.. not helping..
    I press the update pretty much everyday hoping for new version.. But yes, program keeps telling me its the latest.
    I usually only work with 3 audio track maxinum. And I am doing really the most basic stuff here..
    I have set all my audios to foreground and it has given me best results, but it does not seem to take the problem away as at somepoint randomly my audio playback is missing again, randomly across the playback.
    Please anyone? I am feeling hopeless here.
    Info on my computer:
    Operating system: Win7
    Processor: AMD Phenom(tm) x4 955 processor 3.20 GHz
    memory (RAM): 4GB
    system: 64bit
    <moved from downloading, installing, setting up forum by mod- kglad>
    Message was edited by: kglad

    First of all, thank you for replying my message!
    I will go and try to answer best I can.
    Source media properties:
    Progressive frame rate, I record this from a game.
    Recording program: dxtory
    codec: Lagarith Lossless codec
    Format: avi
    Frame width: 1920
    Frame height: 1080
    Data rate: 1990656kbps
    total bit rate 1992192kbps
    Frame rate 30/frames/seccond
    Audio of video properties:
    Codec: PCM
    Format: 16bit, stereo
    Bit rate: 1536kbps
    Channels: 2(stereo)
    Audio sample rate 48 kHz
    In addition to that I use wav files for music and narrate
    Music files sizes 20-50mb
    bit rate: ~1411kbps
    In total sizes of audio involved is usually something like 300mb
    What are you or the program setting as the project preset in the new project dialog. See Edit Menu/Project Settings/General and its Editing Mode, Timebase, and Frame Size readings.
    I opened new project and this is what i got:
    Editing mode: HD 1080i
    Timebase: 25,00 frames/second
    Frame size: 1920 x1080
    Audio is 48000 Hz
    (I dont know how to change these, btw. Program don't seem to let me change editing mode.
    I also looked up my most recent project and found these settings:
    Editing Mode: DSLR
    Timebase: 30,00 frames/second
    Frame size: 1920 x1080
    ..and same audio settings
    Do the problems persist if you start a new project? Do you find the audio problems develop when the Timeline content is fairly well developed or can the problems occur when there a minimal amount of content of those tracks? Let us look at the size and duration of this project.
    Yes, I have had this problem with all my projects. Sometimes it goes away tho, just enough for me to work bit more. My work progress usually starts by clipping the video material, like 1h material to 8minutes in clips. After that I want to work with audio tracks, and here problems start! When I start working with more than 1 track, so the problem is at later stage. To fix the problem a small fix I have used, I export audio like music and effects tracks together to 1 wav and bring it back. After that, I start working with narrate track. To describe the problem with audio:
    Audio Randomly starts to disapear when I playback, and can also be gone if I export the video out.
    My source videos total size are usually within 80Gb max limit and audio edit material 300mb total.
    In my last project my biggest source video was 47GB and leingth of 1h 4m, in addition to that I had 3 smaller videos, sizes of 1GB, 1,54GB and 300MB.
    Is there any evidence that you are accidentially moving the audio track rubberband to alter the audio volume. That rubberband is the orange line that runs horizontally through the middle of the audio clip when you are looking at the wave form display style of that audio track. The rubberband represents audio volume.
    No, audio volumes might have been adjusted in my tracks but they are present. The problem is usually like ~2-5seconds, a random audio track can be heard (like music or narrate) or just no sounds at all. This makes it very difficult to work with the audio. Also I gotta say that this problem starts by simply having the 2-3 audio tracks.. In my recent project the only adjustment I used to edit the audio was fade in/out.
    I don't have any other audio problems with any other programs.
    I am more than happy to provide more information if needed. I hope this information helps.
    In addition I can say that when I close Adobe Premiere Elements 12, it crashes. No idea why.
    I have also looked up my firewall settings, anything involved adobe and premiere..
    In addition some effects like HD text templates make "Adobe Media Core CS6" crash. I tend to just not use em, or if I need em, I add em at end of the edits.
    I hope this helps, I would really like to solve this problem.
    Thank you alot for taking the time to answer! I welcome anyone to help mee too! Please giev links to similar problems too. Thank you everybody!

  • Spool print with more than one page doesn't work

    Hi Experts,
    I need some help.
    I have following code in my report:
    SORT ta_ausgabe BY vstel vkorg_auft fkdat.
      NEW-PAGE PRINT ON .
       LOOP AT ta_ausgabe INTO wa_ausgabe.
         READ TABLE ts_vstel
           INTO wa_vstel
           WITH TABLE KEY spras = sy-langu
                          vstel = wa_ausgabe-vstel.
         READ TABLE ta_vkorg
           INTO wa_vkorg
           WITH KEY vkorg = wa_ausgabe-vkorg_auft.
         WRITE:  wa_ausgabe-vstel.
         WRITE:  wa_ausgabe-vkorg_auft.
         WRITE:  wa_ausgabe-fkdat.
         WRITE:  wa_ausgabe-matnr NO-ZERO LEFT-JUSTIFIED,
           AT 30 wa_ausgabe-maktx NO-ZERO LEFT-JUSTIFIED,
           AT 70 wa_ausgabe-fkimg NO-ZERO LEFT-JUSTIFIED, 
           AT 79 wa_ausgabe-vrkme NO-ZERO LEFT-JUSTIFIED.
         NEW-LINE.
       ENDLOOP.
       NEW-PAGE PRINT OFF.
       COMMIT WORK.
       v_spool_attach = sy-spono.
    As you see the information of the table TA_AUSGABE will be just prined into spool. When I have only information for one page everything
    work fine, but as soon there more information to be printed I cannt open my pdf file with the spool info anymore.
    What could be a reason?
    Please urgent
    BR
    Denis

    Hi Denis,
    The code works for me for printing more than 1 page.
    Pls try giving the spool id manually  in report RSTXPDFT4 and see whether it gets Multi pages in pdf and let me know if you have any issues.
    Rgds,
    K.S.

  • Oci error in report 6i in reports with more than 1000 pages

    hi
    in a report that has more than 1000 page output , run in report 6i while formatting pages an error occurs:
    OCI error.==>SELECT NAME,
    what this means?
    please help me.
    CAROL.

    in reports that i know number of pages for example 1100 pageswhile formatting pages 150-200 this error occurs.
    Did you get the error if total report pages < 1100?
    indeed in another report with about 3500 pages output this error not occurs. Any diff. of setting/limits etc. between your two reports?

  • Cannot work on more than one page and menu shifting problems

    I downloaded Muse CC 2014 when it first came out, and now I find myself no longer able to edit more than one page without having to completely shut down the application and start it again. Here's what happens:
    I open a page to edit, and then anything else I try to double click on (or right click and choose open page) does absolutely nothing. Any ideas why this is occurring?
    Also, I've noticed a strange phenomenon where my menu has completely shifted its menu contents - pushing everything down. Nothing I did - wondering why this is happening. This has pretty much rendered Muse unusable to me and I am becoming more and more frustrated since I'm paying good money for this....please help.
    Here's a screenshot of the messed up menu (all text should be located in between the green dots and not so spread out):
    Also, if I try to create a border around a text box with just the bottom border showing (i.e. the other 3 sides are set to 0), that bottom border also shifts down as if the text container has suddenly expanded.
    This happens with both my Macbook Air and my MacPro.
    Thanks in advance for any help. I'm kind of at my wit's end....I really need to be able to update my website as this is the face of my business.
    -Kristine

    You could look at using a template.  Create your master template, create editable and non-editable regions, then use this template create all the child pages.  When you need to make a change to the menu, make it in the template and the changes will flow down to all the pages created from the template.
    Using DW Templates:
    http://www.adobe.com/devnet/dreamweaver/templates.html
    http://www.adobe.com/devnet/dreamweaver/articles/dw_templates.html
    The other option would be to create the Navigation item as a server side include...
    More about this:
    http://kb2.adobe.com/cps/143/tn_14380.html
    http://www.entheosweb.com/website_design/server_side_includes.asp
    Difference between using a template and server side includes.
    When you make a change to a template, you need to re-upload all the pages created from the template.
    Using a SSI, you make the change in the ssi file,  upload it and all pages are automatically updated.
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.perrelink.com.au
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • How to handle form with more than one page in struts

    Hai,
    i have more than one page in my struts web apps. each page has a form & i have submit button @ last page. I navigate between these pages using titles. data has to exist when i come back from another page(i.e i am in page1 i have some fields called name & address as textfield, i move to page2 & then i go back to page1 @ that time i should have the name & addess values that i entered previous in the corresponding textfield) & finally when i submit need to get values form all these pages.
    Plz tell me how to do this.

    Hi prasadmca ,
    1.Try to store those value in session variable
    2. or else store those value in DB

  • Will hp2543 work with more than one wifi connection it works at office but not at home

    New printer  set up to work with wifi at office but it doesn't work at home. Will it work at 2 or more locations and if so how do you set it up

    Hi,
    Yes BUT each location you have to set it up like a new printer and you have to switch forward backward on every move.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • PSE8 Backup/Synchronization not working for more than a month

    1. Reconnecting files shows that a file is not connected; however, no file is listed. How do I find missing file's properties.
    2. Backup/synchronization preferences works fine.
    3. I can select one or more or the whole catalog.
    4. The twirly icons show next to the album(s) for a second or show but then the synced icon remains in album/albums.
    5. I click OK and after the hour glass shows a while, it finishes.
    6. I click on icon and see that sychronization is on.
    7. If I check (unsynced items, synced items, or items marked for sync) it shows nothing and says that none of those choices matches.
    8. I have repaired and reindexed countless times (never has there been a "repair" problem.
    9. I click on optimize and that works.
    10. After that I notice "generating thumb nails" and the twirly thing moving. I've let it generate thumbnails for more than 24 hours and it's still going.
    I have spent countles hours during day and night, and I can't get it to work.
    I noticed that someone wrote that he had a similar problem that began with his using the IPAD. And I started using the IPAD also, but I couldn't sync my files with photoshop.com before that.
    Customer service and Help provides me with no answers. What should I do?

    Hi clairenanak:
    Sorry to hear about the troubles.
    On your #1, you may have disconnected files of media types that are not visible. To ensure that all media types are visible, go to View > Media Types, and check any items that are not currently checked. Then try the Reconnect.
    As far as backup/sync not working, disconnected files can stop sync from working.
    After resolving the disconnected files issue, let us know if sync is not working. We may need to look at the sync log to determine why.
    As for the Organizer constantly generating thumbnails, this could indicated that you have many files, for example 10,000, in your catalog.
    If you have many files in your catalog, then you may need to just wait for the process to finish.
    It may also indicate a problem with the thumbnail cache that can't be repaired by the Optimize command.
    You can manually reset this file by doing the following:
    Determine the name of your Elements Organizer catalog.
    The name of the catalog appears in the lower-left of the Organizer.
        Alternatively, you can open the Organizer and then click File >  Catalog. The name of the catalog will show in the list at the bottom  with " [current]" after it.
    Close the Elements Organizer.
    Navigate in Windows Explorer to the folder that contains your catalog. Here are the default locations:
       Windows 7 or Vista: C:\ProgramData\Adobe\Elements Organizer\Catalogs\<CATALOG NAME>  
    Click Start, type "%ProgramData%" (including the quotation marks) into the Start Search, and then press Enter.
    Open each folder in the above structure until you have opened the catalog folder.
       Windows XP: C:\Documents and Settings\All Users\Application Data\Adobe\Elements Organizer\Catalogs\<CATALOG NAME>  
    Choose Start > Run, type "%AllUsersProfile%\Application Data" (including the quotation marks) in the Open text box, then press Enter or click OK.
    Open each folder in the above structure until you have opened the catalog folder.
       NOTE: Replace <CATALOG NAME> with the name of the catalog that you determined in Step 1 above.
    There should be a file called thumb.5.cache, which is the thumbnail cache. Delete this file.
    The next time you open the Elements Organizer, the thumbnail cache will begin to rebuild. This may take some time, depending on the number of files you have in the catalog.
    HTH

  • Working with more than one ALV on Screen

    Hi,
    I have got two alv's in same application/report. One ALV is for displaying the data and another ALV is for interaction or with EVENT Handling, but when iam defining the class with methods for event handling for CL_GUI_ALV_GRID, it is showing me an error message as there are more than one ALV with reference to CL_GUI_ALV_GRID. It seems it wants only UNICODE Object for CL_GUI_ALV_GRID.
    Please assit, how to manage with event handling when there are more than one ALVs on screen. How to go for class definition and implementation

    If you are dealing with two ALV, you should have created two different objects referring to CL_GUI_ALV_GRID.
    If you have done and still getting a error, please post the code that is erroring here.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • Add row not working if more than 5 records are displayed on the screen

    Hello all,
    Does anyone know why the add row button on an sql updateable report would stop inserting a blank row for data entry when more than 5 records have been entered into the form? I can insert up to 5 records. After that, a blank row is no longer supplied by the button. Odd. Have any ideas?
    Any assistance would be greatly appreciated!!!
    Michelle

    You're welcome, Michelle!
    The "Maximum Row Count" setting determines the maximum number of rows Apex will, or could, retrieve for a report. In your original settings, this was only 15, so matched the numbers of rows on a page - therefore, you would (A) only have one page of records and (B) never see a "New Row" as that would be record number 16 (or something higher than 15), which Apex would ignore!
    One thing to note, though, is that some of the pagination schemes (the ones with a "Z" in the description) will count the full number of records available every time the report is loaded - for small tables, this is not an issue but for large tables, you may want to use one of the other schemes.
    Andy

  • Working with more than one spreadsheet

    I use Numbers a lot but it's occurred to me that I've not yet tried working with numerous spreadsheets.
    Can Numbers grab information from a separate spreadsheet or does everything have to be worksheets within a single spreadsheet?

    Darryn,
    One Numbers Docment (Filename) can not communicate with another Numbers Document. Multiple Sheets within one Document may reference each other. So, if you wish, you can embed your spreadsheets on separate Sheets within the same Document and have them link to each other.
    Jerry

Maybe you are looking for