Spool ID from Scripts

Hi,
    I have done coding where I have to convert a Remittance advice into PDF and mail it to Vendors. The only problem is that I am not able to retrieve the spool id using Structure :
itcpp-tdspoolid and hlp_pdfspoolid...
One more thing is I am using BTE 2310 and 2040 for sending the mail but I want the spool output also...
What is the ideal way to go about this...
Raghav

U can get Spool Request no from TSP01 Table
Fields
RQIDENT = Spool Request no.
RQOWNER = User Who created
RQCLIENT = Client.
check for other fields through u can get ur spool request no.
or
Try for System variable SY-SPONO which will give u spool number of List print.
Regards
Bala Krishna

Similar Messages

  • Can I download a spool file from ALV payroll recon report in Fixed Ascii?

    We have a process that imports the spool files from our various nightly payroll recon reports but have recently upgraded to ECC 6.0 and the ALV formatted report does not appear to create a fixed format spool file - the width of the columns changes from spool to spool based on the contents.
    Does anyone know how to accomplish our need?
    Thanks,
    DeWayne

    Does the printer show up in the Windows Printers folder?  We've used PDF995 or Cute pdfwriter for years.  All of these create virtual windows printers.  When you print to them, a dialog box pops up asking for the filename for the pdf.  If you have Activex calls to Excel in order to open a file, you should be able to make ActiveX calls to print it to a print driver such as this.  I don't know if any of these drives have a way to bypass the filename dialog box.  That may take some research and experimentation.  I don't know where the postscript file comes into play in the scenario you are describing.

  • Calling java from scripting

    Hello,
    I would like to integrate some scripting capability in my web application.
    The main purpose is to cover the following scenario :
    - I develop a web app with JSP technology, packaged in a MyAPP.WAR file containing my application and another file (MyCustomer.RAR?) containing installation specific informations. I want the MyApp.WAR to be the same for all my customers, just having the RAR file specific to each customer (installation).
    - In this ressource file, there could be some scripting functions that will be called from my JSP Pages to change the default presentation with some customer particular informations.
    Those informations would be extracted from my java data model. The purpose is to enable the customer to code some little script, and to avoid coding those in Java.
    The question I have on that are :
    1/ is it possible to call java instances from scripting language (I read on apache that the answer was yes for some of them), but I would like to know if javascript can do that.
    2/ Can I recover the "result" of the script in JSP ?
    An example :
    1/ The class containing a marvellous property
    class MyClass {
    public String myProperty;
    2/ The JSP page :
    <stlLib:callScript(Customer.RAR, "ScriptToCall",anInstance) />
    <stlLib:getResult ???>
    3/ A user script (pseudo-code)
    Customer 1 :
    Function ScriptToCall(object) {
    variable iwanttoshowsquareroot;
    iwanttoshowsquareroot = squareroot(object.myProperty);
    return iwanttoshowsquareroot ;
    Customer 2 :
    Function ScriptToCall(object) {
    variable mychoiceisdifferent;
    mychoiceisdifferent= object.myProperty / 2;
    return mychoiceisdifferent;
    According to what ScriptToCall looks like the result on page would be different
    Thanks in advance for your advises
    Olivier.

    1) The script will be running in the browser, not the server, yes? So in Netscape you can load Java objects via Javascript, but IE doesn't seem to support this. Although in either, you can call methods on an applet in the page. But you can't call a JS function from the Java code in the JSP page, since that is only executed on the server.
    2) Only if the "result" is submitted back to the server.

  • Restrict people to see only spool requests from one group of users

    I would like to restrict people to see only spool requests from one group of users defined somewhere inside role.
    I am playing with S_SPO_ACT authorisation object but with no positive result,
    Please help

    There is a note  Note 119147 - Spool: Authorizations (https://service.sap.com/sap/support/notes/119147)
    Object for "Selection authorization for spool requests" is S_ADMI_FC where "Operation authorization" use S_SPO_ACT
    Regards

  • Note to print barcode from scripte

    Is there any SAP NOTE available .  When I am printing cstom barcode from scripte it is not printing . But I am able to view it in Preview.  This same thing I can do from smartform.
    If antbody know this pls inform

    Hi,
    Please create the same type of Barcode for printer through tcode SE73 and you will be wiht your solution .
    Assign points if it solves your probelm.
    -Guarang

  • [JS] Open from scripting specific paragraphStyle palette

    Hi!
    Can I open the InDesign palette of a specific paragraphStyle from script JS, for managing properties of style?
    Thanks!

    I'm thinking that what you're thinking that he's thinking is not entirely correct. You are correct in that you don't need to open the dialog to change anything there, but I think that he doesn't want to change anything by script (probably because he thinks he can't do that) -- he just wants one of us to do a script that opens the Paragraph Style Options dialog.
    It looks as though you were right, by the way. This:
    // the "Style Options" item in the par. st. panel
    app.menuActions[172].invoke();
    produces this error: "The requested action opened an asynchronous previewable modal dialog. This is not compatible with the scripting architecture, and so the dialog has been automatically dismissed using the default button."
    But maybe we should wait and see what Leonardo really thinks!
    Peter

  • [JS] How to break link to paragraph style from script?

    I don't found the command break link to paragraph style from script.
    I want "unapply" the style from the text, but leave the formatting intact.
    Can help me?

    In the interface it's a separate command ("Break link to style"), but it seems in a script you have to use
    Paragraph.applyParagraphStyle (using:ParagraphStyle[, clearingOverrides:bool=true])
    You cannot use "null" or something similar for "ParagraphStyle", so I guess the idea is to use paragraph style #0 in your document (which is always "[No Paragraph Style]"). Be sure to set "clearing Overrides" to false, as it defaults to true.
    The following single line works on your current paragraph:
    app.activeDocument.selection[0].paragraphs[0].applyParagraphStyle (app.activeDocument.paragraphStyles[0], false);

  • Printing custom barcode from script

    Hi Friends,
    Need help.
    I have created a barcode from SE73.  I used it in a layout .  I want to print it from Script ( With  driver program) .  I am getting print preview . But when I give print barcode is not coming.   But the same barcode I used it in SMARTFORM.  from this I am able to get preview and print.  How to solve this. Please help me.

    Hi,
    If you are using zebra printer for Barcode printing then,
    1. for scripts you will have to write barcodes in postscript format (manual coding format).
    2. smartforms are higher version and are integrated with zebra printer. So there should not be any problem in converting the barcode character format and printing it.
    If you are using laser printer (normal printer)
    1. barcodes through character formats in scripts will not work.
    2. will work with smart forms.
    What is meant by manual coding???? pls help me.

  • Error while calling Subroutine from Script

    HI Friends,
    I am getting a short dump whilecalling a suboutine from Script.
    Please suggest if am wrong with below code
    /: PERFORM GET_ADDRESS IN PROGRAM ZSUBROUTINES
    /: USING &MHND-KUNNR&
    /: CHANGING &ADRS-LINE0&
    /: CHANGING &ADRS-LINE1&
    /: ENDPERFORM
    All above fields are available in script window
    In the program
    FORM get_address    TABLES in_tab STRUCTURE itcsy
                                       out_tab stucture itcsy.
    ENDFORM.
    Thanks

    HI,
    Your code is correct, in the FORM and ENDFORM in the program, read the INPUT table and get the values and write your logic using these values and send back the values to the SCRIPT using the OUTTABLE. here you need to use the MODIFY statment for the outtable using Sy-TABIX.
    Regards
    Sudheer

  • Generate spool request from an invoice

    Hi,
    I'd like to know is there any function module to generate an spool request from an invoice document generate previously by VF01 (VF04) SAP transaction code.
    I'd like to generate on demand a spool request over an invoice previously generated by SAP
    Anyone knows if it is possible?
    Thanks

    The billing process included the spool generation runs perfectly by stantard SAP funciontality.
    But I'd like to generate a spool request whenever I want for an invoice previously generated and printed.
    You know that for space requirements the spool request are deleted periodically, but I want to generate a spool request for an invoice, which spool request was generated and deleted. This behaviouir is reclaimed for a system process so, it's not possible to regenerated the spool request using the funcionality incluided in SAP by VF02, VF31 transactions code.
    I need a function module or something like that, so import and invoice document number and export and spool request.
    Thanks in advance,

  • Passing Currency field to external subroutine from script

    Hi,
                I am passing one currency field to external subroutine from script. In subroutine we can get that currency in character format. I want to convert that into currency format. how can i do that?
    thnk u

    easy conversion:
    number = character_parameter

  • Insert variables from script into HTTPService url

    I'm trying to insert values from script into a HTTPService
    url. How do I go about doing this? I tried the code below, but it
    gives an error. Can anybody help?
    <mx:HTTPService
    id="httpCall"
    url="
    http://api.service.com/user/{userName}/list?count={apiCount}&offset={(apiOffset)}&sort={ap iSort}&appkey=1234"
    resultFormat="e4x"
    result="callHandler(event);"
    fault="httpFaultHandler(event);"
    showBusyCursor="true"
    />
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var userName:String = "myName";
    private var apiCount:uint = 10;
    private var apiOffset:uint = 0;
    private var apiSort:String = "desc";

    Set the HTTPService properties in an AS function.
    <mx:HTTPService id="httpCall" resultFormat="e4x" ...
    result="callHandler(event);" ...../>
    private function getUserData():void
    var sURL:String = "
    http://api.service.com/user/"
    _ userName + "/list:;
    var oRequest:Object = {count:apiCount,offset:apiOffset,
    sort:apiSort, appkey:"1234" }
    httpCall.url = sURL;
    httpCall.send(oRequest);
    Tracy

  • Install Oracle from script

    Install Oracle from script
    Hi
    I need to install and uninstall oracle from script (Win platform), as part of product installation .
    How to do it?
    Can you lead me for a link explain abut it ?

    Hi;
    What is your oracle version?
    I need to install and uninstall oracle from script (Win platform), as part of product installation .If you are 10g level than check
    http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/toc.htm << search as slient installation
    If you are 11g level than check
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/toc.htm
    Also see below good explaination on Tim site
    http://www.oracle-base.com/articles/misc/OuiSilentInstallations.php
    Regard
    Helios

  • Generate Excel file Automatically of Spool Ouptut from Spool request

    In 4.6C version how do i code to download Excel file of spool output from its spool request number?

    hi
    please if u know this ans pls send me...........
    but think like this .......
    it will create seperate image for u
    Regards Prasad
    Edited by: EV prasad on Nov 26, 2008 4:55 AM

  • Run external executable from script

    Hi,
    it's possible launch an external executable (Es. .\smsclient.exe "3201234567" "SMSClient.exe Tested on %date% at %time%")  from script .aef (not from CAD)?

    Hi Anthony,
    i have developed a Java class how you said me. I receive the sms, if run application from Eclipse. But if I invoke this class from script .aef not operate. For an simply example i have also created an Notepad example but not open pop up with notepad but also in this case if I run application from Eclipse all correctly function.
    Above there is my script and java source for Notepad example.
    Have you any suggestion?
    ***************************************SCRIPT testNOTEPAD.AEF********************************
    Start
    Do
              testpackage.Notepad AA = new testpackage.Notepad();
    End
    In console i read this output:
    Begin Debugging C:\UCCX_Script_Esempi\TestNotepad.aef...
    when i stop debug:
    Done Debugging C:\UCCX_Script_Esempi\TestNotepad.aef.
    but Nptepad.exe not running
    *******************************************JAVA SOURCE ********************************************
    package testpackage;
    import java.io.*;
    public class Notepad {
          public static void Main(String args[]) {
               try {
                   Runtime rt = Runtime.getRuntime();
                   Process pr = rt.exec("notepad.exe");
                   BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
                   String line=null;
                   while((line=input.readLine()) != null) {
                       System.out.println(line);
                   int exitVal = pr.waitFor();
                   System.out.println("Exited with error code "+exitVal);
               } catch(Exception e) {
                   System.out.println(e.toString());
                   e.printStackTrace();

Maybe you are looking for

  • Issue in Sales Order & Process Order interface

    Hi, Issue: In case of Assemble to Order scenario, Process order is created automatically when SO  is created. Process order will have Sales order number  under General data tab ( COR3) When sales order is  created with respect to Inquiry, Inquiry num

  • Could not be verified

    I downloaded Lion, but when the install started, it said the software could not be verified, it was corrupted or tampered with.  App Store says installed, how do I get out of this state?

  • ILife 06 compared to iLife 08

    I have been reading that iMovie 08 will not be compatible on my iBook G4. If I purchase iLife 08 and load it will I still have the use of the old iMovie? Or should I just keep what I've got and continue to use 06. Thanks for advise.

  • How to Increase disk image size of SAM

    Hello, I am trying to increase the disk image size. I am trying to increase to about 6G, but SAM just refused to load the image. So, is there a limit in SAM about the virtual disk size? Or is it limited to the physical memory of the system? I have re

  • How can I make my users password unchangable

    Hi Expert, i faced a problme currently. we have a training system which a lot of people have full authorization. my users password have been changed several times by someone else. so i do not know if i can make it unchangable? and do you know if i ca