How to force a new spool in a Programme

Hi,
Is there a way for me to force a new spool to use in a background job of an ABAP programme?
I'm currently using the 'write:/' statement to output to spool and then getting the spool request number and converting it to a pdf. I then delete the spool.
This works perfectly for the first iteration of a loop, when I then come to the second iteration my write stement appears to attemt to write to the same spool number as my 'get_spool_request' function is returning the same number as the previous iteration and then falls over when it attepts to convert to pdf.
Any help appreciated.
Rob

The way I have approached this in the past, is to have seperate ABAPS.  One ABAP does the report creation and writing, this is then called via SUBMIT from another ABAP.  This calling ABAP then picks up the spool number and performs the  PDF conversion.

Similar Messages

  • How to force a new password in portal with LDAP user? external users

    With an external portal (used by agents that do not work for you or reside in your office), company policy is for password to be changed every qtr.
    If the users are creating as LDAP users how to force them to change their password when required?
    Is this a custom application that needs to be written so when they log into the portal if the qtr has expired the portal ask them to enter a new password that becomes valid for the next qtr.
    Versus internally deleting and emailing all the users a new password?

    Hi Glenn,
    We are getting one problem when we are creating user in LDAP and login with that user in  Portal that time we are getting Password change screen , but when we create a user in LDAP and change the password of that user in LDAP then when the user tries to  Login to portal that time we are not able to see the password change screen.
    But again if we change the password of that user through Portal we are able to see change password screen.
    can you help on this how we can force the user to change password when we are changing password in LDAP or in SAP System.
    Regards
    Trilochan

  • How to force a new document to check in using an event receiver

    Hello,
    I need someone to guide me how to achieve using an event receiver or any other method how to force a document to check in. I have some users that forget to check in their documents. I have a workflow that runs every time a new document is uploaded and check
    in to run an approval process. Hope anyone can help me with this.
    Best Regards,
    Fer

    You can check-in document in the ItemAdded event
    Example:
    namespace MultipleFileUpload.MultipleItemsAdded
    /// <summary>
    /// List Item Events
    /// </summary>
    public class MultipleItemsAdded : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    private Guid siteID;
    private SPFile file;
    public override void ItemAdded(SPItemEventProperties properties)
    siteID = properties.SiteId;
    file = properties.ListItem.File;
    using (SPSite site = new SPSite(siteID))
    using (SPWeb web = site.OpenWeb())
    base.ItemAdding(properties);
    SPListItem oItem = properties.ListItem;
    oItem["Title"] = "Please add a title.";
    oItem["Description"] = "Please add a description.";
    oItem.Update();
    if (file.CheckOutType != SPFile.SPCheckOutType.None)
    file.CheckIn("Automatic Check In");
    [custom.development]

  • Terminal: How to force new tabs??

    Is there a way to force Terminal "New Remote Connection..." to create a new tab on an open window instead of creating a new window?
    I work all day with terminal sessions and ssh connections... it's really annoying... after 15 minutes i have windows all over the desktop... the option is to drag the new windows to another, merging them, and that's also annoying...
    Thanks for your help.
    Regards.

    I found this thread after googling for the following
    How do I open "new remote connection" as "new tab" in os x leopard terminal
    Unfortunately, I didn't quite find what I was looking for here, so I decided to try and figure it out on my own.
    Here's what I did, give it a try. I apologize if I leave out any (or the crucial) steps.
    1. Terminal
    2. Preferences
    3. Settings
    4. Highlight the Tab 'style' of your choice. I chose 'Pro' only because I like White on Black.
    5. Just below the list is the 'Gear' icon. (I apologize for not knowing the proper name.)
    6. From the 'Gear' menu, select Duplicate Settings.
    7. A new Tab 'Style' will appear with the name 'Pro 1', rename it. (I suggest the name of the host, i.e. ssh.example.com.)
    8. Window
    9. Change the name of the Title from Terminal to the name of the host, i.e. ssh.example.com.
    10. Shell
    11. Startup > Run command > Checkmark > ssh [email protected]
    12. Startup > Run command > Run inside shell > Remove Checkmark
    Now, whenever I want to hit any of my typical ssh hosts, I just use the appropriate tab.
    This method is probably only viable for a small number of hosts, rather than a medium to large number.

  • Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install.

    Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install?  Scanner is recognized by and works fine in Windows.  Acrobat however still sees Fujitsu fi-6130dj #3.  I need it to see Fujitsu fi-6130dj which is what is listed in Device Manager.  (Windows XP SP3).
    Thank you for any suggestions.

    To provide more detail and list what was done to resolve the issue but there may be a better way.
    Background.  When you install a USB device to a PC it is listed in Windows Device Manager as installed hardware.  If you take the USB plug for any device and plug it into a different USB port on the PC the PC will install drivers again for that device.  In Device Manager, if you set a system environment variable for device manager to show non-present devices you can see all of the times this may have occurred.  In this specific instance there were five installations in Device Manager for one piece of hardware, a Fujitsu fi-6130 scanner.  The first listing was Fujitsu fi-6130dj, then Fujitsu fi-6130dj #2, Fujitsu fi-6130dj #3 and so on.  Adobe Acrobat only saw the third instance of these drivers being installed.  Once I cleaned Device Manager of all Fujitsu scanner installs I was able to have a single set of drivers installed for this Fujitsu but Adobe still recognized the third instance of the driver install and I could not figure out how to force it to see what Device Manager was seeing, a single instance of the scanner being installed (with no #3 behind it).
    Steps performed to try to resolve.
    Repair install of Adobe - no luck - still sees the #3 instance of the scanner
    Deactivation, uninstall, reboot, reinstall, reactivation of Adobe - no luck, same behavior as above
    Complete removal of all scanner related software.  This included the ISIS drivers in Add/Remove Programs and all other related software.  This also included deleting the contents of the TWAIN_32 directory found within the root of the Windows directory and also included deleting the scanner from Device Manager.
    Rebooted.
    Reinstalled complete packages of both TWAIN and ISIS scanners - with the scanner disconnected.  Powered the scanner back on and let Windows install the drivers for the hardware.  Only at this point did Adobe see the new install of the Fujitsu scanner and no longer looked for the #3 instance of that scanner install.

  • How to uninstall Apple Application Support v. 1.2.1 on a PC or force a new installation of QuickTime

    After running Apple QuickTime for three or more years on my PC running Windows XP, apparently some part of its code became corrupted.  Trying to install an updated version of QuickTime, all went well until the new installation was not able uninstall the old version of Apple Application Support, v. 1.2.1.
    How can I uninstall the old version of Apple Application Support v. 1.2.1, or, how can I force a new installation of QuickTime without first uninstalling Apple Application Support?
    Thanks for your help.
    Jim

    Jim, C:\Documents and Settings\All Users\Application Data\Apple\Installer Cache is where Apple Application Support is located should you want to delete it, the version you mention is old.
    You may be able to first force a new update by going to. C:\ Program Files\Apple Software Update and double clicking on SoftwareUpdate exe
    If that doesn't work for you than you would have to remove the old QuickTime msi file. Which is a microsoft installer file. Located in C:\WINDOWS\Installer
    If you have any difficulty locating and removing the msi file this link to Windows Installer CleanUp Utillty should help. If not post back.
    www.majorgeeks.com/files/details/windows_installer_cleanup_utility.html

  • How can I force any new selection from bookmark to open in a new frame ?

    How can I force any new selection from bookmarks to open in a new frame ?

    Sorry I would like it happen as a preference,
    automate the option like
    "Always open in new tab when click Bookmark "
    (not over the actual tab)
    thanks

  • How to create new spool request in smartforms??????

    hi all,
    i have to ctreate a new spool request for a smartform...
    The driver program for this smartform is a standard program.
    when i run the transaction, the spool for standard sap-script gets created but not for my smartform.
    the code is something like this:-
    wa_ssfcompop-TDDEST = 'LOCL'.
    wa_ssfcompop-TDIMMED  = space.
    wa_ssfcompop-TDNEWID = 'X'.
    wa_ssfcompop-TDFINAL = 'X'.
    *wa_ssfcompop-XSF = 'X'.
    wa_SSFCTRLOP-no_dialog = 'X'.
      CALL FUNCTION v_fm_name
        EXPORTING
         CONTROL_PARAMETERS = wa_SSFCTRLOP
          OUTPUT_OPTIONS     = wa_ssfcompop
          wa_rldri         = xrldri
          wa_rldrp         = xrldrp
          wa_rldru         = xrldru
          wa_t329p         = xt329p
          wa_resb          = xresb
          wa_rldrc         = xrldrc
          wa_vblkk         = xvblkk
          wa_vblkp         = xvblkp
          wa_rldrh         = xrldrh
          wa_rlvek         = xrlvek
          wa_reftab        = xreftab
          wa_lthu          = xlthu
          v_date           = v_date
          v_time           = v_time
          v_label          = v_label
          v_bzeit          = v_bzeit
          v_name1          = v_name1
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_rldri         = xrldri
          it_rldrh         = xrldrh
          it_rldrc         = xrldrc
          it_vblkk         = it_vblkk
          it_vblkp         = it_vblkp
          it_rldrp         = it_rldrp
          it_rldru         = it_rldru
          it_t329p         = it_t329p
          it_resb          = it_resb
          it_rlvek         = it_rlvek
          it_reftab        = it_reftab
          it_lthu          = it_lthu
        EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Help would be greatly appreciated and definitely rewarded

    hi
    good
    Use the function module 'GET_PRINT_PARAMETERS'.
    sample:
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    ARCHIVE_ID = C_CHAR_UNKNOWN
    ARCHIVE_INFO = C_CHAR_UNKNOWN
    ARCHIVE_MODE = C_CHAR_UNKNOWN
    ARCHIVE_TEXT = C_CHAR_UNKNOWN
    AR_OBJECT = C_CHAR_UNKNOWN
    ARCHIVE_REPORT = C_CHAR_UNKNOWN
    AUTHORITY = C_CHAR_UNKNOWN
    copies = g_copies
    COVER_PAGE = C_CHAR_UNKNOWN
    DATA_SET = C_CHAR_UNKNOWN
    department = ''
    destination = g_destination
    expiration = g_days
    immediately = ' '
    IN_ARCHIVE_PARAMETERS = ' '
    IN_PARAMETERS = ' '
    layout = 'X_65_200'
    line_count = 65
    line_size = 200
    list_name = g_listname
    list_text = g_listtext
    MODE = ' '
    new_list_id = 'X'
    PROTECT_LIST = C_CHAR_UNKNOWN
    no_dialog = 'X'
    receiver = 'SAP*'
    release = ' '
    REPORT = C_CHAR_UNKNOWN
    sap_cover_page = 'X'
    HOST_COVER_PAGE = C_CHAR_UNKNOWN
    PRIORITY = C_NUM1_UNKNOWN
    SAP_OBJECT = C_CHAR_UNKNOWN
    TYPE = C_CHAR_UNKNOWN
    USER = SY-UNAME
    USE_OLD_LAYOUT = ' '
    UC_DISPLAY_MODE = C_CHAR_UNKNOWN
    DRAFT = C_CHAR_UNKNOWN
    ABAP_LIST = ' '
    USE_ARCHIVENAME_DEF = ' '
    DEFAULT_SPOOL_SIZE = C_CHAR_UNKNOWN
    PO_FAX_STORE = ' '
    NO_FRAMES = C_CHAR_UNKNOWN
    IMPORTING
    OUT_ARCHIVE_PARAMETERS =
    out_parameters = g_params
    valid = g_valid.
    IF g_valid <> space.
    NEW-PAGE PRINT ON PARAMETERS g_params NO DIALOG.
    IF NOT tb_output3[] IS INITIAL.
    LOOP AT tb_output3 INTO wa_output3.
    PERFORM write_summary.
    ENDLOOP.
    ENDIF.
    Reward if useful...
    thanks
    mrutyun^

  • How to force Skype to fetch new user name after re...

    In Skype, there is an option to change the default user name to something meaningful to you. For example echo123 may be renamed from "Echo / Sound Test Service" to "Microphone check". But what if you want to get the old name back? Or what if the contact renamed his public name? How to fetch the new contact name?
    Solved!
    Go to Solution.

    xeos wrote:
    In Skype, there is an option to change the default user name to something meaningful to you. For example echo123 may be renamed from "Echo / Sound Test Service" to "Microphone check". But what if you want to get the old name back? Or what if the contact renamed his public name? How to fetch the new contact name?
    right click then select rename.  erase the old name then leave it blank.  a new window will appear.  delete the name again and leave it blank.  After you click ok, the display name of that contact should revert to the original one.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES

  • How to create the multiple spool requests for a single report.

    Hi gurus,
                     I have one requirement to be completed , i need to send the out put of the report via mail in pdf format. for that what i did was, iam executing report in background and creating spool request and converting it to pdf and sending the file.
    now the problem is, its a customer ledger report, for each customer i need to create a new spool request and send mail to that particular customer, now my dought is how to create multiple spool requests for a single pro and how i need to go about it.
    And one more question is can we create a spool request for a report which is running in online.
    waiting for inputs frm gurus.

    Hello,
    As per my knowledge for creating new spool id you will have to set
    output_options-tdnewid = 'X'.
    and then using
    job_output_info-spoolids
    create a pdf using
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
    Rachana.

  • Cannot Open a new spool job

    Hi,
    I am tryiing to print the COBRA letters from the program RPUCOB02 and i am selecting uptodate radio button.
    I am not facing the error when i select one employee and give the letter print.when i try to select more that one employee and click on letter generate buton it is throwing an error "cannot generate a new spool job"
    It is working fine with the first employee.
    when i went to into the debug mode in the Inlcude for COB02F03 of the program RPUCOB02 , there is open_form and it is dispalying the 104 exception " Error when opening layout set printing" for the second ee.
    can anyone let me know how i can eliminate the error
    Thanks.

    Anjani & Raj,
    This worked for me as a bandaid fix.... didnt do much reasearch... looks like after printing first employee the system is trying to create a new spool request again.... follwoing work around worked for me and may work for you too....
    In the First component of the COBRA User Exit -  ZXPCOU01
    added the following peice of code... and it worked as the spool will be openend once...
    DATA: lc_flag TYPE c.
    IMPORT lc_flag = lc_flag FROM MEMORY ID 'COBRAUSER'.
    IF lc_flag IS INITIAL.
      lc_flag = 'X'.
      EXPORT lc_flag = lc_flag TO MEMORY ID 'COBRAUSER'.
      RAISE standard_procedure.
    ELSE.
      sy-subrc = 0.
    ENDIF.

  • Is there a way to force a new session so my "on new session" code will run?

    I'm using apex.oracle.com and I find values of application (global) and page items persisting across logins.
    I didn't expect that? I thought they would go away when I logged out of APEX. But I can change the values, logout, and log back in to the same values. And when I login and start an application, it's not running my "shared components > application processes" initialization code which is set "on new session".
    I thought each login would be a distinct new session with it's distinct set of items. (see definition below)
    So when I run an application, is there a way to force a new session so my "on new session" code will run?
    >
    What Is a Session?
    A session is a logical construct that establishes persistence (or stateful behavior) across page views. Each session is assigned a unique identifier. The Application Express engine uses this identifier (or session ID) to store and retrieve an application's working set of data (or session state) before and after each page view.
    Because sessions are entirely independent of one another, any number of sessions can exist in the database at the same time. Also, because sessions persist in the database until purged by an administrator, a user can return to an old session and continue running an application long after first launching it. A user can also run multiple instances of an application simultaneously in different browser sessions.
    Sessions are logically and physically distinct from Oracle database sessions used to service page requests. A user runs an application in a single Oracle Application Express session from log in to log out with a typical duration measured in minutes or hours. Each page requested during that session results in the Application Express engine creating or reusing an Oracle database session to access database resources. Often these database sessions last just a fraction of a second.
    >
    Thanks -- Howard

    I cleaned up the copy of the Select List code in APEX 4.1.xxx which was not operating correctly before. Now it matches what I have in APEX 4.2.yyyy. And, drum roll please, the select list seemingly works fine there (4.1) as well. But now, the initialization code--which was working fine(!)--FAILS in 4.1!
    <font size="3"><font color="red">•<font face="courier new">
    Okay. Maybe this will help. 1) I logged in. Ran the login page but did not login. Opened the "session" window and wrote down the session ID. Logged out and back in. 2) Ran the login page but did not login. Opened the "session" window and .... it has the same session ID? 3) <b>So the session is persisting across logins!! How is that possible?</b>
    (More) When I log into 3 different applications, I get a different session ID for each but repeated logins always give the same session ID for any given session. </font>

  • How to force the "Bluetooth Communicat​ions Port" to be one of COM1 to COM8 ports?

    Dear Lenovo Community, Happy Holidays to you all and wish you a great happy new year. Recently purchased a Bluetooth OBDII device and have difficulty making it to work with its provided software on my T61 (running original XP Home). My short story and question/problem is that I can open "My Bluetooth Places" and pair with the OBDII device as an "OBDII SPP Dev", but my T61 assigns serial port COM19 to it. The OBDII software which came with the device only can let user set to one of the COM1 to COM8 ports and in the properties of Bluetooth pairing, there is no way that I can select which COM port to use. I looked at the Device Manager and I do see these COM port assignments: COM4,5,6,7: Sierra Wireless (the HSDA modem in the laptop which I have never used BTW) COM 9,10,11,12,13,14,15,16,17: Bluetooth Serial Port COM 18, 19: Bluetooth Communications Port and I don't see anything for COM1,2,3, and 8 My question is how to force the computer/OS to assign one of the COM1 to COM8 ports to my device upon pairing? Can I disable the Sierra Wireless model from the COM ports list and hope this will happen? Thanks for your help and inputs beforehand. Regards, AL

    Hi, AL_K
    Have you attempted to change the port number in device manager itself? If you navigate to Device Manager and open the list of Ports, you can right-click on the device you wish to assign a different port number. After right-clicking, click Properties. There should be a tab called Port Settings. In here, you should find a setting to manually assign a port number.
    Good luck, and let me know how it goes,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • How to setup a print spool  in UNIX

    Hi support, i am new to basis and to sdn..
      could you please help me with how to setup a print spool  in UNIX.
    Thank you
    Martin

    Message 1 :
    On UNIX:
    1.     Login as sidadm
    2.     Su - root
    3.     Execute "jetadmin" (or use u201Csamu201D if you are familiar with it).
    4.     Select option 1
    5.     Select option 3
    6.     Enter the IP address of the printer
    7.     Select option 1 again and assign an appropriate queue name
    8.     Follow the instructions to complete
    9.     "lpstat -t"  to confirm the printer is enabled
    10.     Setup on R3
    Message 2:
    On SAP
    1.     Transaction u201CSPADu201D
    2.     Switch to change mode
    3.     Chose Output Device
    4.     Select Printer you want to create/copy/change
    5.     To use or by pass DAZEL:
    1.     use Dazel:
    a.     Host Spool Access Method: E
    b.     Host Printer: 1_usbprint03_xxxxxx
    c.     Logical OMS: R3 SID Dazel LOMS
    2.     by pass Dazel:
    a.     Host Spool Access Method: L
    b.     Host Printer: (queue name on UNIX Spool)
    To test printing, try to print something (i.e. spool server list) and go to  Transaction u201CSP01u201D to change the result.

  • How To Get A New Ipad Because Old One Is Not Working

    Hi
    Friends I Have Problem In My Ipad Mini And Its Not Working Maybe Problem In Hardware Or Something
    And It's Under Warranty Of Apple Now How I Get New Ipad From Apple Because Its Only In Apple Warranty
    And In My Country There Is No Any Apple Branch So Can AnyOne Help Me Out ?

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

Maybe you are looking for

  • Billing error ( error in account determination)

    Hi Experts: When I save billing document , the system shows me the following error message , and fail to create invoice document . How can I solve it ,tks Document 9000580503 saved (error in account determination) Message no. VF051

  • Security with CNet Router

    Hi everyone, I have a question about security with my iBook G4 Airport Extreme, and my home network. I have a 4 UTP and wi-fi router, CNet branded, and I like to know what are the main differences betwen the security setups: WEP WPA WPA2 WPA2 Mixed a

  • [SOLVED] Check for Dependencies

    Hey, I'm trying to write a script that'll check for dependencies to install and build something. I can check to see if the file exists but that seems kind of brute force. I'm trying to use pacman -Q but I can't get it quite right. Example: DEPS="pyth

  • Capturing the event!!!urgent

    Hi all, i have a checkBox on a page.My requirement is to capture the event of the CheckBox being clicked,like writing some javascript Functions like onClick. kan anyone provide me some clarity like, is this possible. I am being to fetch the user chec

  • Only one channel working - fixable?

    Recently my ipod starting playing only one channel through headphones or a speaker jack - eg I can hear only whatever is coming through the left side speaker. I've verified that the problem is with the ipod, not the headphones. However, if I put pres