Printing directly to spool, how to set deletion date?

Hi all,
I am printing data directly to the spool using the code below, and everything works fine, except that I cannot control the deletion date. I want my spool entry to stay in the system for one week and then it should be deleted automatically, using the date in field RQDELDATE ("Deleted on") in the spool entry.
I have tried different values for the parameter LIFETIME, but it makes no difference. My delete date is always set to "2100-01-01"...
Any ideas?
DATA:
      l_spool_handle TYPE sy-tabix,
      l_name TYPE tsp01-rq0name,
      l_spool_id TYPE rspoid.
l_name = 'Test'.
CALL FUNCTION 'RSPO_SR_OPEN'
  EXPORTING
    dest                   = 'LSW1'
*   LDEST                  =
*   LAYOUT                 =
    NAME                   = l_name
*   SUFFIX1                =
*   SUFFIX2                =
*   COPIES                 =
    PRIO                   = '5'
    immediate_print        = ''
*   AUTO_DELETE            =
    TITLELINE              = 'Test print'
    RECEIVER               = sy-uname
*   DIVISION               =
*   AUTHORITY              =
*   POSNAME                =
*   ACTTIME                =
    LIFETIME               = '0'
*   APPEND                 =
*   COVERPAGE              =
*   CODEPAGE               =
    doctype                = 'BIN'
*   ARCHMODE               =
*   ARCHPARAMS             =
*   TELELAND               =
*   TELENUM                =
*   TELENUME               =
*   SPONUMIV               = ' '
*   USESPOOLID             =
*   PRINTOPTIONS           =
  IMPORTING
    handle                 = l_spool_handle
    spoolid                = l_spool_id
* TABLES
*   ATTRIBUTES             =
  EXCEPTIONS
    device_missing         = 1
    name_twice             = 2
    no_such_device         = 3
    operation_failed       = 4
    OTHERS                 = 5.
IF sy-subrc <> 0.
  WRITE: 'Error.', sy-subrc.
ENDIF.
CALL FUNCTION 'RSPO_SR_WRITE'
  EXPORTING
    handle = l_spool_handle
    text   = 'ABC123'
    length = 6.
CALL FUNCTION 'RSPO_SR_CLOSE'
  EXPORTING
    handle = l_spool_handle.

Harikrishna, not true in my case, as I have much older spool requests that were not deleted.
Piotr, thanks for pointing me to that note. I will check this and double-check our deletion jobs.
/Leif
Edited by: Leif Almgren on May 20, 2010 1:56 PM

Similar Messages

  • HOW TO SET DELETION FLAG TO SERVICE ENTRY SHEET ?

    Dear Experts,
    Can anybody explain how to set deletion flag to Service entry sheet created ?
    Service Entry sheet has been accepted and saved, i want to set deletion flag to the Service Entry sheet.
    Thanks in Advance

    Hi,
    Go to ML85 and give your service entry sheet no in Entry sheet data and select "cancel release" check box and give the corresponding release code and execute and save. The release gets cancelled.
    The other way is go to ML81N and give your Po and service entry sheet and click on the icon "cancel release" (reverse arrow mark) give the corresponding release code for cancellation and save. Now the service entry sheet will go to "No acceptance" mode. again go to the change mode and select the line item and delete it by clicking on delete icon.
    regards,
    Kannaiah Naidu

  • In Numbers, I copied a worksheet and deleted the contents. The sheet I copied from has a header, I can't see it or bring it up when I'm working but it appears when I print the sheet. How do I delete it?

    In Numbers, I copied a worksheet and deleted the contents. The sheet I copied has a header.  I can't see it or bring it up when I'm working but it appears when I print the sheet. How do I delete the header?

    Hi Cristina,
    Headers are not shown in normal view.
    Menu > File > Print to open Print View.
    Hover the cursor over the Header to see the outline. Click and delete.
    Regards,
    Ian.

  • Ipod Touch 4-How to recover deleted data?I have not backed it up in itunes as I am using a new laptop

    Ipod Touch 4-How to recover deleted data?
    I need valuable information which was deleted.
    I  have not backed it up in itunes as I am using a new laptop.
    Plz help

    Thanks for the reply.
    These softwares recovery softwares recover data from external devices which are shown as drives.As far as I know the recent Ipods dont have an option to be shown as a drive.
    Any particular data recovery software available for ipod touch 4?
    Any hepl in this regard would be highly appreciated!

  • How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)

    How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)?
    The following is my configuration in the conf\mapViewerConfig.xml:
    <map_data_source name="mvdemo12"
    jdbc_host="127.0.0.1"
    jdbc_sid="orcl12c1"
    jdbc_port="1522"
    jdbc_user="mvdemo"
    jdbc_password="7OVl2rJ+hOYxG5T3vKJQb+hW4NPgy9EN"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    editable="true"/>
    <!--  ****  -->
    But it does not work.
    After use "sqlplus mvdemo/[email protected]:1522/pdborcl", it connected to the Oracle database 12c.
    Does anyone know it?
    Thanks,

    For 11.1.1.7.1 use the syntax for jdbc_sid, i.e.
    //mypdb1.foo.com as described in the README,
    - MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, such as follows:
      <map_data_source name="myds"
        jdbc_host="foo.com"
        jdbc_sid="//mypdb1.foo.com"
        jdbc_port="1522"
      />
    For 11.1.1.7.0 use a container_ds instead.
    i.e. instead of using
    <map_data_source name="my_12c_test"
                       jdbc_host="mydbinstance"
                       jdbc_sid="pdborcl12c"
                       jdbc_port="1522"
                       jdbc_user="mytestuser"
                       jdbc_password="m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q="
                       jdbc_mode="thin"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    use
      <map_data_source name="my_12c_test"
                       container_ds="jdbc/db12c"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    In my case the Glassfish 3.1.2.2 JDBC connection pool definition was
    Property
    url  jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name
    Uncheck the Wrap JDBC Objects option in Advanced panel, i.e. the Edit JDBC Connection Pool Advanced properties page.
    Add a JDBC resource for that newly created pool
    Use that in mapviewerconfig.xml as above

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How to set Oracle Data Integrator Timeout paramter value as unlimited

    Hi
    Can any one help me how to set Oracle Data Integrator Timeout (ODI menu>User Paramter>Oracle Data Integrator Timeout > paramter value as unlimited.
    By default it is 30 and i want to change it as unlimited.
    I am connecting linux box through windows using citrix and opened ODI and start the scenario execution (my scenario execution in loop and it will execute continuesly) after execution starts I an logout from citrix (I am not closing ODI) and after some time like 50 min my odi execution is stoped due to timeout.
    my ODI execution should continue in my absence that to unlimited.
    Please help me it is urgent
    Regards,
    Phanikanth

    Thanks Bhabani
    Is it work for unlimited in linux box because I have given operator dispplay limit(0=no limit) as 1000000 and I am unable to see the execution session details on Operator>session list
    later i have changed to 10000 and click on ok and just refreshed and it is working fine
    If I give mensioned below it will not impact on ODI ?
    windows it is working but I have doubt on linux version
    Please help me
    Regards,
    Phanikanth

  • How to set default date value to a field on screen

    How to set default date value to a field on screen and allow users to modify it ....

    Hello,
    In the PAI module, you need to save the changes to the database using the command MODIFY.
    Follow an example:
    Create or change a message in database table T100. If there is no message with the number 100 in the MYMSGCLASS message class in English, it will be created. Otherwise only the text is changed.
    DATA message_wa TYPE t100.
    message_wa-sprsl = 'EN'.
    message_wa-arbgb = 'MYMSGCLASS'.
    message_wa-msgnr =  '100'.
    message_wa-text =  'Some new message ...'.
    MODIFY t100 FROM message_wa.
    Regards.

  • TS1503 How can I delete data like movies from my main Toshiba HD in my MacMini?

    How can I delete data like movies from my main Toshiba HD in my MacMini?

    What does this have to do with the iPhone?

  • How to set the data fields column wide at sqlplus

    Dear Sir/Madam
    I would like to know how to set the data fields column wide at sqlplus
    Thanks
    Francis

    see
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
    and the FORMAT clause of the COLUMN command in
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF

  • How to set the Data Synchronisation mode for ADF BC component?

    Hi All,
    How to set the Data Synchronisation mode for ADF BC component
    Thanks
    Raghavendra

    Can you clarify what you mean by the data synchronization mode?
    If you mean the Sync Mode, then in 10.1.3 you set this property by:
    1. Selecting your DataBindings.cpx file
    2. Expanding the "Data Control Usages" section in the structure window
    3. Selecting the ADFBC-based data control
    4. Setting the "syncMode" property in the property inspector.

  • How do I delete data (mail, files, photos, etc) from iCloud?

    I'd like to stay below 5Gb on my iCloud account.  How can I delete data from ICloud once it's there?  For instance, once I've transferred files from my iMac to iPad (or downloaded and deleted Mail from both) do these data accumulate on my iCloud account, or can I selectively delete some.  A corollary question is whether synched data, such as mail, is automatically deleted from iCloud if I delete it from all synched devices. Thanks!

    It appears you cannot delete
    https://discussions.apple.com/thread/3104002?start=0&tstart=0

  • How to set this DATS parameter

    Hi Pros,
            I am calling function 'HR_FORMS_TIM_GET_B2_RESULTS' in the program , its input parameter is BEGDA, I transfer a date variable to BEGDA, but does not work. can not get any data. but if I run this function in SE37, I input date '20140807', successfully get result.  please tell me how to set this DATS parameter?

    Hi,
    You might be passing the date in '12.12.2014' or '12/12/2014' format. Please
    use the function module 'CONVERSION_EXIT_BEGDA_INPUT' to convert the date
    to internal format and then pass it to the function module.
    Thanks

  • How to recover deleted data in os/400

    Hi ,
    Can anybody let me know how to recover deleted data from a table in os/400 .
    Thanks in advance .
    Thanks & Regards
    Dhaval Raje

    Hi Dhaval,
    unfortunately this highly depends on the thing you did :-((
    In general SAP says (with good reason!): You recover nothing or the COMPLETE DB - otherwise it could be inconsistent. In your cae, that means, you go back to the error case.
    For experts RSTOBJ of this table would be of help. But, then you need to know what happened in detail and you need to be familiar with the dependent files like indexes & views.
    So, if this is a test system, I would go back to an olde backup, if this is productive, I would ask a good DB2 for iSeries basis consultant. That is a problem, that can be solved.
    Regards
    Volker Gueldenpfennig, consolut.gmbh
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • I can't print regular pdf files- how can I delete adobe reader?

    I can print everything on my computer except the regular pdf files. I have updated my canon drivers. I have tried to update my adobe reader driver but get the error message that I have files in use. How do I delete or update adobe files when I can't find anyplace there are files in use?

    You may want to try the following:
    Run this fix from Microsoft: http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Uninstall Reader using Add/Remove Programs
    If you want to reinstall Reader, download it from http://get.adobe.com/reader/direct/

Maybe you are looking for