How to re-read a spool, modify it and re-saving the spool.

Hi Experts,
Can any tell me how to  re-read a spool out of spool system, modifying the output and re-saving the spool.
I need to replace the total no. of pages count on every page of the spool. It is the list format.
Thanks in Advance.
Govind Parmar.

Hi
Do u want tot retrieve the data of spool?? If so then check it out
Read Temse data from UNIX filesystem and display. You must reconstruct the relationship between Temse tables and the spool files (tables TST01 and TSP01) for this to work. Dname, Rqident, Dsize are the important fields. This was used to retreive deleted spool output pertaining to an important project. Spool cleanup job RSPO0041  deleted the spool files regardless of the ‘Delete after date’
<u><b>
Procedure :</b>
</u>
Restore the spool files (assuming you employ spool_method ‘G’ and also backup /sapmnt/SID/global/xxxSPOOL directory) in a temp. directory and rename them to numbers which will not overwrite the existing max(dname) in TST01.
Using ABAP or SQL copy in the same table, a row from both TST01 and TSP01 and update TST01:Dname (spool name), TST01:Dsize (size of the spool file in bytes) and TSP01:Rqident (spool number)
REPORT ZREADSP.
PARAMETERS: ZNAME(6).
DATA: HAND4(28) TYPE X,
      LN TYPE I,
      LN2 LIKE RSTSTYPE-LINELENGTH,
      BUFFER(132),
      RSTSRC(6),
      ERRMSG(50),
      HIDE_CLIENT LIKE TST01-DCLIENT VALUE '200',
      HIDE_NAME   LIKE TST01-DNAME ,
      HIDE_PART   LIKE TST01-DPART VALUE '1',
      FULL_NAME(40).
DATA:BEGIN OF BUFTAB OCCURS 1002,
            TXT(8000),
      END   OF BUFTAB.
CONCATENATE 'SPOOL' ZNAME INTO HIDE_NAME.
CALL 'C_RSTS_OPEN_READ' ID 'HANDLE' FIELD HAND4
                       ID 'CLIENT' FIELD HIDE_CLIENT
                       ID 'NAME'   FIELD HIDE_NAME
                       ID 'PART'   FIELD HIDE_PART
                       ID 'RC'     FIELD RSTSRC
                       ID 'ERRMSG' FIELD ERRMSG.
CALL 'C_RSTS_READ' ID 'HANDLE' FIELD HAND4
                   ID 'BUFTAB' FIELD BUFTAB-*SYS*
                   ID 'MAXIX'  FIELD 10000
                   ID 'RC'     FIELD RSTSRC
                   ID 'ERRMSG' FIELD ERRMSG.
CALL FUNCTION 'RSPO_SPOOLDATA_WRITE_INIT'.
LOOP AT BUFTAB.
  LN = STRLEN( BUFTAB-TXT ).
  IF LN > 0.
    LN2 = LN.
    CALL FUNCTION 'RSPO_SPOOLDATA_WRITE'
     EXPORTING
          SPOOL_DATA     = BUFTAB-TXT
         DATA_LENGTH    = LN2
     EXCEPTIONS
          DATA_TOO_SHORT = 1
          OTHERS         = 2.
  ELSE.
    SKIP.
  ENDIF.
ENDLOOP.
<u></u>
Regards
Pavan

Similar Messages

  • How do I read text from specific rows and columns in a tree structure?

    How do I read text from specific rows and columns in a tree structure? In a table you can specify the cell to read from but I have not been able to figure out how to do this with a tree structure.

    You need to set two properties to activate the correct cell and then you can read it's string property.
    The positioning properties are the "ActiveItemTag" and
    "ActiveColNum" properties. With them you select the tree item by it's tag and the active column. The string can then be read from the "Cell String" property.
    MTO

  • My ipad imessages are coming up on my husband's iphone. Is that because we share an apple id account. How can we have separate apple id's and still share the same music library.

    my ipad imessages are coming up on my husband's iphone. Is that because we share an apple id account. How can we have separate apple id's and still share the same music library.

    The biggest problem I have is with cross texting. My friends send my a imessage on ipad to ipad and it comes up as message on my husband's phone as well as my ipad?
    My friends definitely do not want my husband seeing their texts. (and I dont really need him to see my responses either)
    Also, apple id is based on my email account, how do I create a new apple id without setting up a new email account?

  • How to keep songs on iphone, work computer and home computer the same?

    How to keep songs on iphone, work computer and home computer the same?
    This seems like something everyone would want to do. I don't know why Apple won't give us a simple solution. They could even charge us for it. I would pay!
    Has anyone solved this? What is your solution?
    Thanks!
    [email protected]

    If you just want to be able to sync your devices to the same PC without having them get overwritten all the times, here is a free method
    http://cnettv.cnet.com/sync-your-ipod-two-computers/9742-1_53-50004835.html
    Basically, you put the same itunes database file on all the PCs. This fakes itunes into thinking it is always the same PC and the ipod is OK to sync with it. It will NOT keep your libraries truly synced, though. I've just resigned myself to always buying from one PC and manually transferring the content to other PCs I want it on.

  • How do I delete music from my iPhone and what is the best way to add and delete music?

    How do I delete music from my iPhone and what is the best was to add and delete music to the iPhone?

    See Here...
    iPhone User Guide
    and here
    http://www.apple.com/support/iphone/syncing/

  • How i can insert videos, export to pdf and then watch the video? i can't

    How i can insert videos, export to pdf and then watch the video? i can't. It is suposse that i have to configurate the option save but i don't know how... any help?

    Fron the Pages Help menu:
    Using Sound and Movies
    You can add audio—a music file, a playlist from your iTunes library, or any other sound file—to a Pages document. You can add video that plays within a page.
    Pages accepts any QuickTime or iTunes file type, including the following:
    MOV
    MP3
    MPEG-4
    AIFF
    AAC
    Also note that some media files are protected under copyright law. Some downloaded music may be played only on the computer where the download occurred. Make sure the computer you are using has permission to play all the media files included in your document.
    When you add media files to your document, make sure that they will be available if you transfer your document to another computer. When saving your document, make sure the option “Copy audio and movies into document” is selected in the Save window. (If you don’t see the option, click the button next to the Save field to display the entire Save window, and then click the Advanced Options disclosure triangle.)

  • How to transfer game from iPad to iPad and still maintain the same level of game play of each game?

    How to transfer game from iPad to iPad and still maintain the same level of game play of each game?

    Check the following:
    That both your Mac and your iPad are signed into the same iCloud account
    Go to System Preferences>iCloud on your Mac, confirm that you have checked Documents & Data, then click Options and confirm that Pages is checked.
    Go to Settings>Pages on your iPad and confirm that "Use iCloud" is turned on.  Also go to Settings>iCloud and confirm that Documents & Data is on, and that Pages is turned on in the app list.

  • I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF file

    I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF files on my iphone?

    Apple never bopthered to explain that this would happen
    Your iDisk is still accessible after moving to iCloud in exactly the same way as before. Nothing is deleted until June 30th 2012.
    , so I could easily have lost ALL of the files I kept on iDisk.
    No, you couldn't. Firstly, nothing was deleted from your iDisk. Secondly, any files stored on your iDisk should never be your only copy. Even if your iDisk spontaneously combusted, you should keep local backups elsewhere.
    Does Apple WANT people to move their storage elsewhere and stop paying Apple for it?
    Yes. Apple doesn't provide such a service anymore, nor are you paying them for it.
    Apple has made no effort to suggest remedies for the problem it has given iDisk users
    They've provided instructions on how to download your files from your iDisk. What you do with them after that is your choice.

  • Since iOS6, whenever I send an iMessage to my wife, it sends the message to me too.  How do I stop this? My wife and I share the same email address.

    Since iOS6, whenever I send an iMessage to my wife, it sends the message to me too.  How do I stop this? My wife and I share the same email address.

    On at least one of the phones, go to Settings/ Messages/ Send & Receive and then tap the e-mail address to turn that option off.  That should force the iMessage to be sent to the unique phone numbers of the phones, not the e-mail address that is common between the phones.
    Or alternatively, create a new e-mail address for one of you and select that as the e-mail option to receive at on one of the phones instead of the shared e-mail.

  • HT1212 I just bought a used i pod touch from work but the screen says Ipod is disabled, how do i clear that to get back and enter in the passcode

    I just bought a used i pod touch from work but the screen says Ipod is disabled, how do I clear that to get back and eneter in the passcode?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
      How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • Hello, i was wondering if you can help me figure out how to edit a video to zoom in and out with the beat of the music?

    Hello, i was wondering if you can help me figure out how to edit a video to zoom in and out with the beat of the music?

    Use markers on every beat.
    The edit the zoom/scale to the markers.
    Adobe Premiere Pro Help | Working with markers

  • How to make comnapy code defalut got 100 and 1001 in the PNP screen

    Hi Expart ,
    can u tell me my que how to make comnapy code defalut got 100 and 1001 in the PNP screen in HR reporting?
    Regards
    Razz

    Use the below code in the   INITIALIZATION   
                     INITIALIZATION                                      *
    initialization .
    " Make Default values for Company Code 2100 & 2200
      PNPBUKRS-LOW  = '2100'.
      PNPBUKRS-HIGH = '2200'.
      append PNPBUKRS.
    regards
    .....lakhan

  • How can I combine a lot of text and images on the same screen?

    How can I combine a lot of text and images on the same screen?  I can get a couple of words on the screen with a graphic but not 10 lines.  I need 10 lines on the page with the image. 

    Priscilla,
    I routinely combine 10 lines of 36 pt bible or lecture text to a suitable background using Boris Title 3D.
    Many times the text is too long to fit the screen using Boris, so I devide it into 2 or more parts with no transition between sections.
    In my case, the text is on the screen as the speaker quotes them.
    David

  • HT4059 how can i read books when not connected to wifi , at the moment have to g through apps store , which requires a connection . I want the books on the i pad not in  a acloud

    How can i read books purchased from i books when not connected to wifi . At the moment can only access via app store , which can only do when connected . I want top download to the device , not keep in a cloud!

    If you download them via the Purchased tab in the ibookstore in the iBooks app on your iPad then they should show in the Books collection on the app's bookshelf - and you should be able to read any books that you download from the store to your bookshelf without needing to be online.

  • How can I read two channels with fieldpoint and labview

    I'm trying to read two or more channels with the TC 120, and I follow the examples of sopport page, but doesn't work.
    What can I do?

    For more information about reading or writing to or from multiple channels in Fieldpoint, please refer to:
    How Do I Read or Write to Multiple Channels on a Fieldpoint Module in LabVIEW?
    This should enable you to read multiple channels. The only other option available is to use one fp open.vi, multiple Create Tag.vi's and multiple FP Tag Read.vi's.

Maybe you are looking for

  • How to delete the open requests in the LBWQ

    Hi guys ... Can any one let me know how to delete / update the open requests in the queue . I need to delete the Open requests in the LBWQ...we are applying patches and for that we need to delete from LBWQ and RSA7...I guess there is an ABAP report w

  • Adding one object to cube from ODS

    hi guys, i am loading the data from 7 ods objects to 1 cube. in my report i want to see cost center which is there in 2 ods objects but not in all the ods ojects. this cost center info object is not available in the cube too. so when i generate a rep

  • How to read re-installed documents following a Clean Install( Mac Xv10.4.3)

    Per Apple Store advice, I performed a Clean Install on my IMAC 600, OS Xv104.3. I backed-up (first time user) using LaCie d2 Hard Drive 160GB, then re-installed the saved documents on the IMAC hard drive. Attempting to open the re-installed documents

  • DMS Content server copy to Quality

    Hi, What needs to be done to copy production content server 6.4/MaxDB 7.6 data environment to quality server. We have created repository of the same name as in production to quality server,  and then plan to use note 962019. Please let us know the st

  • Hi freiends --  to know how to convert an OuputStream to an Input Stream

    I am using generating reports thru IReports and i am trying to convert an ouput received from a .jrxml file into an .pdf file This is how my code goes. System.out.println("inside ReportGenerator()");           InputStream bais = new ByteArrayInputStr