When spool will genereate in Scripts

Hi,
I am posting 2 quires.
1. I would like to know when Spool will generate after CLOSE_FORM. Pls remember, I am passing printer name to this FM soe we will not get a pop-up for Printer.?
I want spool no, bcoz, want to convet it to PDF and mail it as attachment by using FM 'CONVERT_ABAPSPOOLJOB_2_PDF'.
2. In FM CONVERT_OTF_MEMORY, other FM 'READ_OTF_FROM_MEMORY'. In 2nd FM, login is
memkey = memory_key.
import otf from memory id memkey.
if sy-subrc 0.
raise memory_empty.
endif.
while debugging mode I try to find active memory id's from Menr->Goto->Sys area-> ABAP memory, Iam not able to fine ID DEF_OTF_MEMORY_KEY. It means cann't we read data from memory to OTF.
My case sy-subrc is not 0. Is this reason for this??? Please sugget how to convert data to pdf.
Thanks & Regards,

Hi Sandy,
To Get the spool no we can use this logic...
IN FM OPEN_FORM Import Parameter OPTIONS(Print Options) pass TDDATASET and TDCOVTITLE for spool details.
For Example If ur working for Order then maintain ur OR if invouce IN u can maintain ur custom text.
then for Title MaintainCONCATENATE p_vbeln sy-datum sy-uzeit INTO g_title SEPARATED BY '_'.
After CLOSE_FORM
Then write select statement to fetch the form
  SELECT SINGLE rqident INTO tsp01-rqident
         FROM   tsp01
         WHERE  rq0name  = c_rq0name
           AND  rqowner  = sy-uname
           AND  rqtitle  = g_title.
then pass this Spool number with path to this program PDF will be Genrated
SUBMIT rstxpdft4 WITH spoolno = tsp01-rqident
                      WITH p_file  = v_path
Cheers,
Naveen

Similar Messages

  • Dialog box with one button, when clicked will launch another script

    How do I create a button inside a dialog box, which, when clicked, will open up another script?

    ]I've typed
    set myDialog to display dialog "Finished?" buttons {"Shutdown", "Screensaver"}
    if button returned of myDialog is "Screensaver" then
    run script ("Macintosh HD:Users:Seb:Applescript:ScreenSaver.scpt" as alias)
    if button returned of myDialog is "Shutdown" then++
    run script ("Macintosh HD:Users:Seb:Applescript:Shutdown.scpt" as alias)
    end if
    but it gives me an error and says "Expected end of line, etc. but found end of script."

  • When will grease Monkey Scripts be available in FF8

    When will grease monkey scripts be available for FF8
    How do you change back to an earlier version where Grease Monkey works

    See Version 0.9.13.beta1:
    *https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/

  • I keep getting script errors when accessing Amazon Seller merchant pages. I get the following A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script

    I keep getting script errors when accessing Amazon Seller merchant pages. I get the following A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: chrome://spautofill/content/spOverlay.js:150, I also get js210 as well. I have cleared all cookies and history and unistalled Firefaox and reinstalled. Been thru my AVS and set the site as trusted in every possible place. Still get the problem. Do not get it with IE on same PC.
    == URL of affected sites ==
    https://sellercentral.amazon.co.uk

    Same problem but with a different vendor site:
    https://www.webvitamins.com/myfavorites.aspx
    Not only does the page hang, but the other tabs also hang.
    I contacted the vendor and their reply was "we were told that this looks like a script that is used by "Sticky Password", third-party software that must have been installed on your browser. However, our website did not install it and does not have anything to do with it." As far as I can tell, "Sticky Password" is not installed on my Firefox.
    Same problem as above occurs, but with IE 8.0.6001.18702. Therefore, it is not unique to Firefox.
    CAUSE DETERMINED: Have determined that this problem only occurs when Kaspersky Password Manager is installed. In Firefox, if the "Password Manager Autofill Engine" add-on is disabled, the problem goes away.

  • Lately, when I get the "Unresponsive Script" message, Neither the cancel nor the complete script button will work and Firefox hangs so I have to Force Quit Firefox. What is wrong?

    Here is the link below the message about the unresponsive script:
    Script: chrome://browser/content/tabbrowser.xml:554
    Neither of the buttons will work "Stop Script" or "Continue" and since Firefox is frozen or just hanging, I have to Force Quit. Today I was trying to print off a confirmation for a convention and every time I was ready to print, the Unresponsive Script would show up and freeze the printing too. After 4 times, I finally made a Grab Shot of it to print.

    ive also repaired disk permissions using disk utility and disk warrior.

  • How to generate spool request in sap script

    Hi Experts !!
    I had customized RFFCOUS_C -- > Include RFFORI01 for printing check and payment advise.
    Now if we run standard print program, spool will be generated first
    and then we can see the print prieview accordingly.
    But after my customization, after seeing print prieview when am clicking print button , then only spool is getting generated....
    i had checked everything...but not able to solve the issue.
    Please help.
    Regards
    Saurabh goel

    Hi,
    Just use below logic for script
    itcpo-tddest = p_print. " Printer name
    itcpo-tdnewid = 'X'.
    itcpo-tdimmed = 'X'.
    itcpo-tdcopies = '1'.
    call function 'OPEN_FORM'
    exporting
    device = 'PRINTER'
    dialog = ' '
    form = 'ZAUTO_REPLPRINT'
    language = sy-langu
    options = itcpo
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb100438#q-2
    Regards,
    Shiva(reward if helpful).

  • Issue in alignment of PE51 data when printing it in SAP Script

    Hi Experts
    I have a SAP Script which is used to print Check at the top and Re-numeration Statement at the second half via RFFOUS_C program. The re-numeration statement is designed in PE51. The Check is designed in SAP Script and the PE51 form is printing inside the script using Main window/ Text Element : 525-HR.
    The FM RP_IMPORT_PAY_STATEMENT is used inside the RFFOUS_C program which returns the table PFORM and the contents of  the PFORM is exactly the re-numeration statement data and are getting  printed one by one in the script using the variable REGUD-TXTHR. My object is fine with all the above said things. Only issue is with the alignment which is weird in SAP Script for the re-numeration part. But when I look into PC00_M10_CEDT (TCODE to view re-numeration statement) the output of designed PE51 form is good with proper alignment.When it is printed via script the alignment is not good at all.
    There is some differences in the formats of printing between PE51 and SE71. Do not know what exactly it is. How I can resolve this issue?
    Thanks
    Siva
    Message:Siva

    Hi Madhu,
    Sorry for the delayed response.See the below screen shot.This is how it prints now.The amounts are not aligned.Increasing the line spacing will increase only the space between the lines and i am using same character format for the variable REGUD-TXTHR.I would like to align them.
    Thanks
    Siva

  • Acrobat Form button that when clicked will open a Windows Folder?

    Is there a way to have a button on an Adobe Acrobat Form that when clicked will open a Windows Folder located with a predefined UNC path? I'm looking for a scripting solution.
    UNC example: \\myserver\myshares\engineering\changeorders
    I'm using LiveCycle Designer ES v. 8.2.
    Thanks for any help that you can give.

    This is in Internet Explorer 6 (yes, horrible, I know), but we use a standardized image where I work, with pretty intense GPO's.
    Don't know what happens if you right-click the link; but from any other machine (with the same image) the same link will open with all three options "Open", "Save", and "Cancel".  These are not freshly imaged machines, so some setting must of been changed along the way to make this happen on this user's computer.
    Repaired Acrobat, but this resolved nothing.
    Also checked in IE to make sure that Adobe was enabled under the Programs tab.
    Also, the option to view a pdf within the browser is not turned on.
    Any other ideas?

  • How do I stop this A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsExtensionMana

    What is causing this warning when I open firefox and how do I correct it? > A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsExtensionManager.js:623 <
    == This happened ==
    A few times a week

    I do not have the Ask toolbar and I get the Unresponsive Script message everyday.

  • SQL Plus Error - "Can't open file" when spooling

    Hi:
    I have a user who is either able or unable to spool when running a script depending on what Oracle user she logs in as. She's always logging in as the same Linux user but connecting to Oracle as different Oracle users via SQL Plus. When spool files are created they are created with that user's account and group settings, so the OS account seems to be fine.
    I'm having a problem with the idea that there is an Oracle role or something that controls this. Spool isn't UTL_FILE. Is this a SQL Plus application setting or something?
    We're using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    Thanks

    Well, I'm working off an email so maybe they cut and pasted and maybe they didn't. They say the error is
    spool error: "Cannot create spool file"
    I'll have to recreate their situation and see what it really says. But either way, my confusion is how this same OS user can log in as a different Oracle user and spool away. Perhaps the comment above is correct. It worked the first time and they tried to run under the other account without removing the current file. I tend not to think so because these users have been running similar reports for years and they usually have to remove the old output file before re-running.

  • If I don't select the database when I run an opened script.....

    If I don't select the database when I run an opened script, it will run forever. I think it should generate an error to user, to tell user to select a database. My version is 1.0.14.67 windowsxp
    thx

    Please walk us through the steps that you use to recreate this issue. For me, the commit option is not available unless a connection is specified, so I am confused as to what actions you are performing. Also let us know what your platform and patch level is in sqldeveloper.

  • How to find port number , when there will be different instance number ?

    In case of portal url,
    port number is 50000 for default instance number 00.
    how to find port number , when there will be different instance number , instead of 00?
    Thanks

    Hi
    You can find the port number by your instance number as follows:
    There is a general format for the port number like you have mentioned.
    For 00 instance the port number is 50000.
    The general format for the port number goes like this:
        <b>5<instance_no>00</b>
    If your <b>instance number is 01</b> then the port number would be <b>50100</b>.
    It depends on the installation type which you perform.
    You can also change the instance number during the installation but normally you dont do this.
    If you have many components or units installed on your system you may have more than one instance in that case it may go like this 00, 01, 02....accordingly port number will be 50000, 50100, 50200...resp.
    Hope this solves your doubt.
    If you need some more clarification please lemme know.
    Regards
      Sumit Jain
    **Rewrd with points if useful.

  • How do I use my redeemed gift card to purchase a book on iBooks when it will only give the option of "Mastercard, Visa, Amex or 'None' (Billing Address)"??

    How do I use my redeemed gift card to purchase a book on iBooks when it will only give the option of "Mastercard, Visa, Amex or 'None' (Billing Address)"??
    Desperately need help so I can purchase books for my study course!!

    Sir,
    I thought So too but then I went to Itunes Library and try and buy a single song from an album for $1.29.  Now my Itunes Gift card balance is $ 7.10 as I mentioned earlier. it still did not let me buy and kept trying billing my Visa card.
    Should I restart my PC and Itunes and retry. What do you suggest?
    regards
    Bikram Suri
    [email protected]

  • Is there any more word on when apple will be releasing the thunderbolt to FireWire adapter?

    Is there any new word (newer than "in July") on when Apple will be releasing the Thunderbolt to FireWire Adaptor?

    Not yet.
    Best.

  • What do I do to view images on CS5-64 when it will not open them?

    The program will not open images, either directly or from Bridge.  Using Win 7 on a Dell PC.

    Strange, after rebooting, both Ph CS5 and Bridge are working again.  Thanks for getting with me.
    Date: Fri, 9 Aug 2013 23:30:38 -0700
    From: [email protected]
    To: [email protected]
    Subject: What do I do to view images on CS5-64 when it will not open them?
        Re: What do I do to view images on CS5-64 when it will not open them?
        created by Mylenium in Photoshop for Beginners - View the full discussion
    What exactly? What image files? Do you get any error messages/ warnings? Provide more info.
    Mylenium
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5582783#5582783
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5582783#5582783
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5582783#5582783. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop for Beginners by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Web-Service generator : operation arguments

    Hello. I've built a very simple web service to test the JSR 172 API. The server side is built using AXIS. The service is exposed in document/literal style as required by the JSR. An operation of the service takes as argument a simple structure bean w

  • Finder Screen Sharing

    Add to option 4, Finder Screen Sharing on this tip: http://discussions.apple.com/thread.jspa?threadID=1587927 By the way, are the instructions the same for 10.6? And I assume this is not available for 10.4?

  • Dimension-only query

    There is some strange behaviour of OBI EE when I run a dimension-only query. I have two dimensions: dimension A and dimension B. Dimension A and dimension B are both related to fact table X. Dimension B is also related to fact table Y, dimension A is

  • Missing "Business Unit" in report?

    Hi, for users there are fields "Business Unit", "Business Unit 1", ..., "Business Unit 4" as standard fields provided. When creating a report I cannot find "Business Unit", but BU 1...BU 4. Is there any reason for this missing field? Thanks in advanc

  • Running two programs using two screens

    Hi, I have a 13" Mac Book Pro OSX 10.6.7 (2010) 2.26GHz 4GB I would like to work two programs using a second screen ie iTUNES on one screen and sound editing on the second. My second monitor is a 19" Toshiba HDTV that I can connect via the Mini displ