Create spool in a program and read spool in same program

hi all,
i have a requirement like i have to create a spool in a program and should read that spool and send a email in same program.
i m done with creating spool and sending email but the problem is when i execute a program the spool is created only after total program execution, is there a way to create a compleate spool before finishing the report execution.
thanks,

Solution:
call function 'GET_PRINT_PARAMETERS'
      exporting
        destination    = 'LP01'
        copies         = count
        list_name      = 'ZTEST'
        list_text      = 'ZTESTSPOOL'
        immediately    = ' '
        release        = 'X'
        new_list_id    = 'X'
        expiration     = days
        line_size      = 90
        line_count     = 65
        layout         = 'X_PAPER'
        sap_cover_page = 'X'
        receiver       = 'SAP*'
        department     = 'System'
        no_dialog      = 'X'
      importing
        out_parameters = params
        valid          = valid.
    new-page print on parameters params no dialog.
write : hi this is the test for spool.
new-page print off.
    commit work.
write : / sy-spono.   "system variable for spool no
solved thanks
anupama.

Similar Messages

  • Creating a screen in report program and calling that screen in program.

    Hi,
    I have a report program and I want to give output in different screen.
    can any one tell me how to create a screen in executable program and calling that screen in program in END-OF-SELECTION for displaying results.
    Thanks a lot.
    Kiran

    Hi,
      Open your program in SE80. Right click on your program. Click CREATE->Screen menu. This will allow you to create screen for the program. 
    In the End-of-selection event call the screen using the  commands CALL SCREEN or LEAVE TO SCREEN or SET SCREEN.
    CALL SCREEN
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba4e635c111d1829f0000e829fbfe/content.htm
    LEAVE SCREEN/SET SCREEN
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbab3635c111d1829f0000e829fbfe/content.htm
    Regards,
    Vara

  • What are the steps to make it seamless for a customer to use the install program and then use the installed program?

    I wrote an install program (.exe) that is downloaded from a website.  When run, it 1) leads a customer to browse to a directory, and 2) copies files (.exe, .dll, etc.) from a website to that directory.  When I run, the installed program works.
    What are the steps to make it seamless for a customer to use the install program and then use the installed program? 
    bhs67

    This site https://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.110%29.aspx provides a basic description of the Visual Studio Windows Installer. 
    Near the bottom of the page is "You can unlock all the features of InstallShield by paying to upgrade to the full version of InstallShield."  Where do I find info that describes the differences between the "free" and the "full"
    versions?
    bhs67
    Hello,
    The default feature does support the task for your requirement, so there is no need to pay for the other features unless you want to use some feature which is not free.
    In addition, as this thread
    InstallShield LE not available with VS 2012 RTM? shared, even through there is a link to InstallShield LE in the New Project dialog under Deployment solutions, but it belongs to third-party that I would recommend you consider posting this issue
    at the following forum to get supports about InstallShield.
    http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Use AO and AI in the same program

    Hello,
    I like write a program to use AO and AI in the same program.
    In this program write a timer a voltage to a AO port and after then it should read a voltage.
    I know how I write voltage to a AO port and read a voltage on a AI port, but not in a the same program.
    The read- and the write-Task, should work as soon as possible (<=1ms). 
    (My timer have 100us ticks) 
    what should I inilize for the PCI6229 card, to use AO and AI and in which order?
    Can I have a example or pseudocode?
    Best regards
    Heiko Mayer 

    Hi Heiko-
    There is very little overlap between the AO and AI examples, so you should be able to piece the code together pretty easily.  I would offer these suggestions:
    1.  These lines should only be executed once, and they should be done before any AI or AO specific initialization is done:
    configureTimebase (board);
    pllReset (board);
    analogTriggerReset (board); 2.  It does not matter which order you perform the AI or AO initialization, but I would recommend waiting to unground the AO reference (by   board->AO_Calibration.writeAO_RefGround (kFalse) until all of the AI and AO init is done.  This will help to avoid any glitching on the AO lines.  The only steps that should be saved until after ungrounding the reference are the Start operations for AI and AO (depending on the AO mode you use, there may not be a specific Start operation to call.  Consult the MHDDK examples for more info about the required steps).
    Hopefully this helps-
    Tom W
    National Instruments

  • Can I put both RMI server and client in a same program

    hi everybody...
    I wanna know that can I use RMI server and client in a same program....My idea is like that I wanna use the same program for client and server....When I open my program, I can accept connection from other program and if I want to connect to others, I can also connect it. I expect you to understand my question. Here are the sample code for my program...
    package Chat.Rmi;
    import java.lang.*;
    import java.util.*;
    import java.rmi.*;
    import javax.swing.*;
    import java.net.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class netKitManager implements netKitInterface{
        public netKitManager(){
            try{
            reg = LocateRegistry.createRegistry(4242);
            reg.rebind("NetKitServer",this);
            }catch(RemoteException re){
        public void DirectConnect(String ip){
            try{
            netUser = (netKitInterface) Naming.lookup("rmi://"+ip+":4242/NetKitServer");
            JOptionPane.showMessageDialog(null,"Connection succeded!");
            }catch(NotBoundException nbe){
                JOptionPane.showMessageDialog(null,"There is no server at specified IP address!");
            }catch(MalformedURLException mue){
                JOptionPane.showMessageDialog(null,"IP adress may be wrong!");
            }catch(RemoteException re){
                JOptionPane.showMessageDialog(null,"Remote exception occured!");
        public void SendMessage(String msg){
            try{
            netUser.SetMessage(msg);
            }catch(RemoteException re){
        public void SetMessage(String msg) throws RemoteException{
            chatKit.SetMessage(msg);
        private netKitInterface netUser;
        private Hashtable netUserList;
        private Registry reg;
    }

    Yes it can be done. I have done it.

  • Can we use Call transaction and session method in same program ?

    Hi experts,
                     Is it suggested to use call Transaction and session method in the same Program ?
                     i have a doubt , why cant we use multiple call transactions in same program instead of session method if we have multiple transaction updations ?

    Hi Dengyong Zhang,
    we can use the call transation and session method in same program.
    However for better performance it's benificial to use call trasaction method of BDC. but if u want to upload very large amount of data then Session method is more preferable to use.
    Session method is one of the method of BDC.
    U can also use BAPI to upload the data in SAP but it's a different concept than BDC. Performance wise BAPI is more advantageous than BDC.

  • How to create a gui pf status and guititle in module pool programming?

    hi frnds,
    how to create a gui pf status and gui title in module pool programming?
    my problem is i created a screen and wen execute the screen by a tcode.am nt able to activate SAVE BACK EXIT CANCEL COMMANDS?.how to do this can any one explain in detail procedure?
    plz gve step by step process.

    Hi,
    For Title:In PBO...just write
    SET TITLEBAR 'ZTITLE'.
    double click on 'ZTITLE'....give whatever title u want...save it...activate...and check...reward points if useful...
    PF means FUNCTION CODE
    ex; set pf-status 'zrstatus'.
    double click on the zrstatus expand the application server ,
    at the time of execution the default menu(ie system,help),application toolbar buttons like enter,help etc and function keys(by default there will be no function keys)as are there on the normal
    will appear on the screen.
    Details:
    PF-STATUS is used to set the GUI Status of a screen, ie you can control the options on your menu bar, application toolbar, the function keys assigned to various options etc.
    Implementing the status for a screen can be done in 2 ways:
    1) Create the GUI status using the object list of the program or by using the transaction SE41. Then, assign it to the screen using SET PF-STATUS statement.
    2) Create the GUI status by means of forward navigation, ie, use the SET PF-STATUS 'XXX' statement where 'XXX' is the name of the GUI status and double click on it to create it.
    Status names can have a maximum of 20 characters.
    After assigning a GUI status to a screen, this is inherited to all subsequent screens. In order to have a different status for each of the subsequent screens, you have to set a separate status for each screen.
    In transaction SE41,
    1) Give the program name and the status name and click on the Create button.
    2) Go to 'Function keys' and expand.
    3) On top of the save icon type SAVE, on top of the back icon type BACK, on top the the exit icon type EXIT etc ie on top of all the icons that you want to use, type the respective names that you want to give.
    Whatever you have typed now becomes the function codes of these icons and can be used in your program.
    For example you have a screen 100.
    In the 'Element list' tab of the screen, give "ok_code" as the name where "OK" is the type of screen element. Activate screen.
    The flow logic for the screen looks like this:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    Create the modules STATUS_0100 and USER_COMMAND_0100 in the main program by simply double clicking on them.
    The code for these modules can be something like this:
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'Example'. "Example is the name of the GUI status
    ENDMODULE.
    MODULE user_command_0100 INPUT.
    CASE ok_code.
    WHEN 'SAVE'.
    "call a subroutine to save the data or give statements to save data.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.
    Regards,
    Shiva Kumar (Reward If helpful)

  • Apple ID for the Deployment Program and VPP is the same

    I created an Apple ID for the Deployment Program and authorized the same ID for VPP.  Now I learned these should be different.  Is this a problem and if so, how can the VPP ID be changed?

    You should be able to. The only hiccup will be that any apps that you have purchased with the older ID you will have to repurchase with the newer ID to be able to keep using them.
    Though of course this actually depends on how you plan to use the IDs. For example, I had an Apple ID through iTunes a few years before I opened a .Mac/MobileMe account (what iCloud is now in case you are new to Apple). Thus, my iPhone and iPad actually have two IDs on them, one for iTunes/App Store, and one for anything associated with iCloud. I've never really had any problems assoctiated with having two IDs on one device. Usually just an extra step when I get a new device or have to restore either of them for some reason. Though I understand that this is probably not what you plan on doing, I thought I would use it as an example of what the IDs are really associted with on the devices.

  • Interruptions when I use "Write" and "Read" in the same vi.

    When I use "Port Write" and "Port Read" together in the same vi and I set the output to be high level, the signal becomes oscillatory. I have read one anterior message about similar problem (using "Write to Digital Line" and "Read from Digital Line" instead of "Port Write" and "Port Read") and I proceeded as the solution suggested in the answer. However, it didn´t work.
    Attached, I am sending the vi I used to test the solution.
    How can I fix this problem?
    Attachments:
    IO.vi ‏35 KB

    Hi Spencer!
    The device I am using is a PCI6024-E board. I have contacted the NI Suport and now I see what I was doing wrong: in fact, I was calling a DIO Port Config.vi for each of the ports ("Port Read" and "Port "Write"), but it was done inside of a While loop (usually, most of the applications here in the lab are recursive, so it´s common for us to use big while loops for the whole program). Putting them outside (as you said, at the beginning of the program), it worked! Actually, I can´t see any reason for the program to work when the calling is outside the loop, but the important is that now it´s running properly.
    Thanks a lot, Spencer!

  • How can we send and receive voice in same program

    Please can any one suggest me how to send and receive voice in the same program. I want both AVTransmit & AVReceive in the same program i tried it but its too difficult to do it.. Any one has got that code? And also i want my program to know if any third person is wanting to call me.. I mean how to recognise a new call. Please relpy to the following mail id.. Please i need it urgently..
    [email protected]

    Sir please execute this code.
    printf("I need it ");
    for(i=0;i<=infinity;i++)
    printf("V E R Y ");
    printf("U r g e n t");
    Now Please Send it to me sir.Please..Does not compile!

  • HT4863 my icloud e-mail stops working suddenly, I have to close the program and reopen for the same thing to happen again.

    Whenever I go to my e-mail, it scrolls down by itself, then it freezes and stops working.  It happens on my ipad and other computers as well.  Also lately I have had trouble receiving e-mails from other senders.
    I also cannot view e-mails for long without restarting the program and I purchase additional storage.
    Can you help me solve these problems??

    Hi RACHEL CHISHOLM,
    Please follow the steps mentioned in the KB article below:
    Doesn't launch after 30 days | Installed as part of a CS6 suite
    Follow the steps when you experience this issue.

  • Using an imac. Only the top fifth of the firefox homepage appears on screen. Have removed program and reloaded but with same result

    Have been using Firefox for some time on an imac. Appproxiamtely three weeks ago, opened it and got only about the top fifth of the home page and no functionality. Have unloaded/deleted the program and reloaded it but get exactly the same appearance (which was themed so I know it is the same). Cannot delete it further, new downloads do not replace it. Unusable

    Your user agent in the More system details list shows that you have the Firefox 3.6.15 version
    *Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
    Where do you see "3.6.13" ?

  • Schedule Job and Read Spool

    Hi Guru's,
    my requirement is
    1.I need to run one standard program 3 times with 3 diffrent selection's.
    2.the resultant 3 diffrent ouput will be displayed in only ONE output.
    ( the prgram should have the capalibilty to ceate 3 diffrent jobs simulatenously I.e submitting  the job in background once submit dont wait for the result sicne this should be stored in spool and then submit the secound and thrid)
    after scheduling this 3 prgram program need to wait until all this 3 jobs beein scheduled which were running in paralled to complete. then read ther respective spool and output one result .

    Hi,
    You can check if FM: 'SUBST_SCHEDULE_BATCHJOB' is available on your system ,
    There u can pass the following parameters
    IMPORT
    REPNAME = "Name of the Report"
    LANGUAGE = 'Language in which job should run"
    SDLSTRTDT = "Start date"
    SDLSTRTTM = "Start time"
    STRTIMMED = 'X' = Immediate start
    TABLES
    SELTAB = "to fill selection screen"
    use this FM 3 times with different selections
    Get the Spool Numbers & Read them
    Regards,
    Gaurav

  • Create logical file path and read it in main program

    Hello Experts,
    My requirement is, I have to read files from application server.
    File path/ Directory is different in different system (systid). i have to read all files starting with (xyz*) from mentioned directory.
    This path i must define in logical path.
    Following are the steps i followed.
    1)   In FILE (TCODE) i have created a logical path and assigned a physical path to it.
    2)   I have created logical file ( I am not sure about this, as i dont have to create logical file, i just need to read file from above path starting with xyz*,  but FM FILE_GET_NAME requires logical file name so i have created it).
    3) I will pass logical file name to FM FILE_GET_NAME and recieve physical file path(with file name which i can ignore).
    these all steps i found on SDN. but its not working.
    FM FILE_GET_NAME is always returning same file path ( Not even close to what i have defined ).
    I can not read data from Table path as it will return physical path as it is, but i need it replaced with system id.
    Any suggestion will be really helpful.
    Thanks in Advance.
    Regards,
    Amar

    Hi Amar,
    one difficulty defining physical path name is to know the right Syntax group.
    For example if you habe OS Linux, you need Syntax Group UNIX here. In Table OPSYSTEM you can see, which OS (OPSYS) needs which FILESYS (Syntax Group).
    If you always get a wrong physical path, this may be caused ba a wrong choice of the Syntax Group. Only the correct one will lead to the correct path.
    Regards,
    Klaus

  • Creating metadata in Flash CS3 and reading it in AS3

    Is there a way to store metadata in a library symbol in Flash
    CS3, and then read it in AS3? For example, I want to have the
    following code run:
    m_Metadata = 'You're cool!'
    I need this data before I can play the movie clip. Is there a
    way to store this? I've been trying to find a solution, but it
    looks like I'm just going to have to load in a separate XML file
    with the data.
    Thanks!

    Unfortunately there's no simple way to add instance level
    code in Flash CS3 or CS4 with AS3. This is a significant authoring
    tool deficiency in my opinion.
    Making a component... depending on what you want to do, there
    can be a lot of overhead. There may also be some very flaky/buggy
    behavior in Flash CS3 with custom components if your experience is
    anything like mine. However, for basic metadata, try this:
    1. Select the Symbol in the Library
    2. Right click, choose Component Definition...
    3. In the Parameters data grid you can add
    parameters/properties. Make sure you set the "Variable" field as a
    unique identifier for each parameter. These are the properties
    you'll use in AS at runtime to retrieve the values.
    4. Now on each instance on the canvas you can go to the
    Parameters tab and enter custom values for each parameter.
    5. At runtime, you should be able to access the values via
    instance_name.variable_name
    I believe that will work without actually creating a
    component class and making it functional.

Maybe you are looking for

  • Works windows mobile with SSL VPN and anyconnect

    Hello, do anyone know if the following OS works with ASA 8.x SSL VPN client ,SSL clientless VPN and anyconnect client and Secure Desktop : windows mobile 5.0 Premium phone edition windows mobile 6.0 windows embedded CE,Net windows mobile 2003 Thank y

  • Error during generation of the function module..need help urgently

    Hello everyone,                         m trying to generate data source in BWDevelopment. After mapping all the BW fields to Source Object elements I click on Generate DataSource(for UD Connect) so following error comes 'An error occurred in step 1

  • ORA-25307: Enqueue rate too high, flow control enabled

    I am stuck. I have my stream setup and they were previously working on two of my dev environments well. Now when I get the streams setup the CAPTURE process has a state of "CAPTURING CHANGES" for like 10 seconds and then changes to state "PAUSED FOR

  • Error 4000 when burning to CD also computer freezes

    Hope someone can help. Was unable to burn to CD after installing Version 6 of iTunes "Unknown error 4500". Hoped upgrading to this latest version 7 would resolve it. I'm able to burn to CD using RealPlayer. Here's the diagnostics. PS I'm not too good

  • Loading PSE 9.0 on a PowerMac G5

    I am trying to load PSE 9 Mac version in my Apple Power Mac G5. OS X 10.5.8 My PSE 9.0 came with an Mac disc and a Windows disc. The error message is that my architecture (sp?) is a problem. Is this perhaps an Apple problem or an Adobe problem? Loadi