Job and Spools

Hi,
In SM36, I create a job with ONE step : run program "prog_1".
Then in a special case, in this program "prog_1" :  we submit a second program "prog_2" which create also a log "log_2" .  Then we return to "prog_1" to edit a log "log_1".
Resume:
  a. a job execute prog_1
  b. prog_1 run prog_2 --> display log_2
  c. return to prog_1    --> display log_1
In SM37, I would have ONE job with the TWO logs in its spool. But it's not the case, I have only "log_1"....
I try to use options of SUBMIT but without success, have you a solution ?
Note: I don't want to have a job with two steps (prog_1 + prog_2), because prog_2 is not running everytime (it depend if prog_1 create a file on the server)
Regards
Mickael

hi,
try to use exporting list to memory addition of submit command and after call function LIST_FROM_MEMORY to give back the spool.
for example
>  submit zxxx exporting list to memory and return.
>
>  data listtab like abaplist occurs 1.
>
>  call function 'LIST_FROM_MEMORY'
>    tables
>        listobject = listtab
>    exceptions
>        not_found  = 1
>        others     = 2.
then use the function WRITE_LIST to printout the list
>  call function 'WRITE_LIST'
>    exporting
>         write_only = 'X'.
>     tables
>        listobject = listtab
>     exceptions
>        not_found  = 1
>        others     = 2.
bye.
marco

Similar Messages

  • Delete Job for Job and Spool

    Hi,
    Is anyone aware of one single delete job for both Jobs and Spools? We can use RSSPO041 and RSBTCDEL separately, but I am looking for a single job. Please let me know.
    Thanks,

    Hello
    As Subhash mentioned there is no single report for doing this.
    Probably you can create a single job with these two reports being part of it as steps.
    That will give you better control or single job to be checked for completion.
    Regards
    Vivek

  • Background Job and spool numbers

    hi All
    I have a requirement to schedule a job in background programmatically. Depending upon the end result of the job, two different spools should be generated. The job name and spool names should be given programmatically. these spools should be emailed to a email ID. What will be the best option of executing the above scenario.
    Shakir.

    Hi,
    you can use Workflows to execute the above scenario.
    Regards
    Mudit

  • Background Job Processing/Spool List Recipient

    When setting up a report to run as a background job and setting it up to e-mail the results via the Spool List Recipient button, it always sends the results in htm format. Is there a way it can be e-mailed in Excel?

    hi swapna.
    in scot it is not configured as excel how to do it.to get an attachment in excel format
    thanks in advance

  • How to schedule job with spool list recipient in CPS ?

    Dear Guru,
    i import job with spool list recipient from r3 to cps and schedule in CPS, job is finished but there is no spool send to the recipient ?
    Please advise ?
    Best regards,
    Supat Jupraphat.

    What job definition did you use? SAP_AbapRun? SAP_AbapRunPrint? SAP_AbapRunPrintExt?
    Do you have XBP 2.0 or 3.0 in the SAP system? (check SE38 > INITXBP2)
    Have you loaded the CPS transport files in the SAP system?
    Note that using spoollist recipients either involves SAP_AbapRunPrintExt in combination with XBP3.0
    OR
    It involves SAP_AbapRun or SAP_AbapRunPrint and XBP 2.0 using transportation files in the SAP System.
    Please check the section of the CPS admin guide called: "Enhanced SAP Interfaces with Redwood Transports"
    Regards,
    David

  • How to send a job log/Spool once the job completed?

    Could you please help me how to send a job log/Spool once the job completed.
    There was an option is available System Send mail to send a mail once the job completed . So could you please help me how we can send a job log using this option .
    I have tried the below but i didn't get any mail . Could some one help this please !
    For example :
    Job chain name : Test_spool
                    Step1 : Reportstep
                                    Job definition u2013 XXX_YYY
                    Step2:  Mailstep
                                    Job definition: system_mail_send
    Expression :  Reportstep,job<(what i need to mention here )>:reportstep/log.txt
    Check the ablove mentioned is correct and correct me , still i didnu2019t get the log in the mail please .
    Thanks
    Ramkumar

    Hi Ram,
    I need your help on getting mail alert with  log file.
    here is how i have provide the parameter valure for job definition: system_mail_sent.
    Step1 with one job1 and step2 with one job1
    In step2 , i have included the job definition to send mail. with below parameter.
    Relative Job: Step 1, Job 1
    Job File: step 1, job 1: step 1/log.txt
    Please let me  know if the above method is correct or not.
    NOTE: mail server and from address are configured.
    Thanks,
    Karthik

  • Creating a job and scheduling a job error in OEM

    Hi, Everyone,
    I am trying to create and schedule a job thru OEM. In the the pl/sql block provide i have given my code like this
    begin
    SET SERVEROUTPUT ON;
    SPOOL C:\RFV_PROFILE_REPORT.LOG APPEND;
    SELECT TO_CHAR(SYSDATE, 'DD/MM/YY HH24:MI:SS') FROM DUAL;
    EXEC PAC_RFV_PROFILE_REPORT.CALL_ALL (200910);
    SELECT TO_CHAR(SYSDATE, 'DD/MM/YY HH24:MI:SS') FROM DUAL;
    SPOOL OFF;
    end;
    i have created the job and scheduled it but i am getting this error:
    Error # 6550
    Details ORA-06550: line 2, column 5: PL/SQL: ORA-00922: missing or invalid option ORA-06550: line 2, column 1: PL/SQL: SQL Statement ignored ORA-06550: line 3, column 7: PLS-00103: Encountered the symbol "C" when expecting one of the following: := . ( @ % ;
    could anyone pls help as this is very urgent.
    Thanks in advance

    Ah, the problem is you are confusing SQLPlus commands with PL/SQL.
    SET SERVEROUTPUT ON; -- This is a SQLPlus command, not necessary here.
    SPOOL C:\RFV_PROFILE_REPORT.LOG APPEND; -- This is a SQLPlus command, in PL/SQL to write out to a file you will need to call the UTL_FILE package to open a file for writing to. Except that the file you write to will appear on the database server, not your workstation, when the scheduled job runs.
    SELECT TO_CHAR(SYSDATE, 'DD/MM/YY HH24:MI:SS') FROM DUAL; -- In PL/SQL you need to SELECT columns INTO variables FROM tables. But in fact I guess you want to write the time to file using UTL_FILE again. However, you don't really need to do this, since scheduler will log the start time and run duration itself.
    EXEC PAC_RFV_PROFILE_REPORT.CALL_ALL (200910); -- This is the SQLPlus equivalent of the PL/SQL command:
    BEGIN
    PAC_RFV_PROFILE_REPORT.CALL_ALL (200910);
    END;
    SPOOL OFF; -- This is a SQLPlus command, not necessary here.
    So to summarise, all you really need is:
    BEGIN
    PAC_RFV_PROFILE_REPORT.CALL_ALL (200910);
    END;
    And the scheduled job will log the start time and duration in the database, which you can find here:
    SELECT * FROM USER_SCHEDULER_JOB_RUN_DETAILS

  • JOB and INSERT

    Hi all again.
    I'm practicing JOBS, and I have a program that insert 3 records in a Z table What I do is:
    1. Loop to my internal table and then record by record I user the clause INSERT, if sy-subrc eq 0, then COMMIT and write:/ Record added, ELSE. rollback work and write:/ Record not added.
    2. When i execute the job via SUBMIT clause, and then I go to the SM37 trx, I can't see the spool list. This happens when I try to add records which were added previously, but if there are new records, I can see the spool list and I don't have problems.
    Whys is this happening? I assume that the insert is not possible when the record exist in the Z Table, but I have the rollback and the write, why I can't see the writes?
    Can someone explain to me, and let me know how I can solve it?
    Thanks
    Gaby

    Hi Vikranth,
    I tried deleting the rollback line. And when I use that in a loop works fine, but when I use this line:
    INSERT ztabla_vuelos FROM TABLE ti_vuelos.
    if there is a duplicate record so then  I see the dump, I debugged  the code, and when the point is on the INSERT line, after pressing F5 I see the dump error, and tells me that I',m triying to add a duplicate record -which is true- but i don't know how can avoid that, I would like to show a line like this:
    INSERT ztabla_vuelos FROM TABLE ti_vuelos.
    IF sy-subrc EQ 0.
      COMMIT WORK.
      WRITE :/ 'OK '.
    ELSE.
      WRITE: / 'failed'.
    ENDIF.
    But i can't get it. How can I solve that?
    Thanks

  • Afer background job finished, spool was not generated

    hi all
    Afer background job finished, spool was not generated but all background jobs is not
    soem background jobs was created spool.
    even if same user and same backgorund job, sometime generated spool or not.
    how can I solve??
    thanks

    Hi,
    Spool will be generated only spool specification wil be defined for that job.
    Select the job go to steps spool specification you can see the device assigned to it.
    Regards
    Ashok

  • PL/SQL batch jobs and error reports handling

    Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
    I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mirp:
    Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
    I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
    <HR></BLOCKQUOTE>
    Just a thought
    If You use utl_file, You can write all opeations with files in a separate package with public variables of file handles and so on. Not necessary to pass all variables to each procedure and function

  • HP Laserjet Pro CM 1415fn crashes and spooler service stops

    Hi Guys, 
    Please assist. I have an HP Laserjet Pro CM1415fn multifunction printer installed on an XP OS. Recently the printer started to print giberish when I tried to print from any application (word, notepad, wordpad, image and fax viewer etc). I also noticed a popoup error message - Run a DLL as an App error. I unistalled the printer software and drivers and restarted, this after running a scan with malware bytes (no detections), and I was unable to get the printer to re-installed after. I keep getting a RPC service not found and Spooler subsystem App has encountered a problem and needs to close. I have checked that all services are running, but nothing is working. After much prodding and poking, I eventually noticed that all errors are directly associated with hppccompio.dll. Even explorer crashes when I try to access printer properties. What should I do? I hope ifnormation was sufficient enough. Also, printer is connected via USB.

    Hi Opp1,
    Welcome to the HP Forums, I hope you enjoy your experience!
    I understand you are unable to reinstall the printer software.
    I will be happy to help you.
    The print spooler is part of the Windows operating system and if it doesn't stay running the printer software won't install or print.
    You could try the following steps to see if this will resolve the issue.
    Normally with spooler problems the first thing to do is to clear the print queue.
    Open a Run window (Windows Logo key+R), type cmd and press Enter.
    Now type these commands, which are in capitals for clarity:
    NET STOP SPOOLER and press Enter
    DEL %SYSTEMROOT%\SYSTEM32\SPOOL\PRINTERS\*.* and press Enter
    NET START SPOOLER and press Enter
    EXIT and press Enter
    If you are still having issues with the print spooler stopped then right click on the start button, left click on explore, open the windows folder, open system32 folder, open the spool folder, open the printer's folder, then delete everything on the right window.
    Then go back and try and start the print spooler again.
    Run a full uninstall of the printer software. Disconnect the USB cable.
    To uninstall from CD:
    Go start and select computer.
    Right click on the CD for the printer and left click open in a new window.
    Double click on uninstall.
    Uninstall printer from the C Drive.
    Go to start, computer, c:, windows, program files or program files x86, HP, printer name. Double click uninstall. Restart the computer.
    Check to make sure the print spooler is running.
    Ran the installation again. Don't connect the USB cable until prompted.
    If the print spooler stops again you will need to contact the computer manufacturer to resolve this issue.
    Hope this helps.
    Thank you for posting on the HP Forums.
    Have a great weekend!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Triggering Process chain based on execution of R3 job and Process Chain

    Hi All,
    I need your help in arriving at a solution for a reqirement.
    Scenario is., I need to trigger a process chain B based on successful execution of Process chain A and an R3 job. If both conditions(Completion of R3 job and Process Chain A) are met then only it has to trigger process Chain B.
    I know that we can use events to trigger a process chain using R3 job.But my case is differenet I need to consider the success message from both process chain and R3 job.Is there any way to solve it ?
    Please provide me with your valuable inputs.
    Thanks,
    Bindu

    Hi Hima,
    You can use the  'AND' variant for both, If both are success then trigger the process chain.
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Apr 30, 2009 3:36 PM

  • I need to use Outlook Express to apply for jobs and I either don't have it but when I try to send an e-mail on Outlook Express, it won't go through and gives me an error report.....I really need to be able to use Outlook Express to apply for jobs. Help!

    When I try to apply for job and when I try to e-mail my resume' and Outlook Express comes up to reply to on, I put in my information, etc but when I hit send, it doesn't go through and says? POP and then error report and doesn't go through.

    I can't provide a solution with or without the error message, but without an error message, you are making everyone guess at what you see. I have no idea what you see, and I think someone who might be able to help you solve your problem would need to know what that message says. Is "Outlook Express" (Windows Live Mail) your default email processor, if not what is?

  • How can I get my old iTunes music onto my new computer without access to my old computer? I left my previous job and forgot to transfer my music. I bought iTunes match and it shows my old Mac as a device, but I cannot get the music off it.

    How can I get my old iTunes music onto my new computer without access to my old computer? I left my previous job and forgot to transfer my music. I bought iTunes match and it shows my old Mac as a device, but I cannot access any of the old music. All I can find are what was on my iPhone, but that's not what I want. I need all my old music from my old Mac, which has been wiped clean by IT at my old job. BUT, I did have iCloud at that time and I thought all my music would be accessible through it. I don't understand the Cloud! And I'm thinking spending $24.99 on iTunes Match was a waste of money because I still can't access my old music.

    When you are done with this issue, consider the computer back at the office may still
    have access to your iTunes account, and it should be de-auhorized. You can do that
    remotely, but be sure you carefully do not mess up your other computer iTunes libraries.
    Good luck & happy computing!

  • I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    Try one of these extensions for multiple cookie sessions.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

Maybe you are looking for

  • Not authorized for this computer

    I just got a new laptop and downloaded iTunes.Then I downloaded Alice In Wonderland from iTunes using a digital copy disc I bought with the DVD. Every time I try to put it on my iPod it tells me it was "not copied to my iPod because it was not author

  • My iPod is no longer syncing, what should I do?

    Whenever I try to sync my iPod, my iTunes will not even acknowledge that is plugged in. What should I do?

  • PPDS - Order should start at the shift start

    Hi Experts, We have SNP orders that always start at 00:00:00 and finish at midnight 23:59:59 We convert them to PPDS orders, and we would like the orders to always begin at the shift start, which is 6:00 am. Any ideas on how we can make the PPDS orde

  • COI activity - change in capitalization (Rights issue)

    Hi, Please can you provide a solution to handle the following business scenario. (SAP help documentation mentions that the product does not support the decrease in stake resulting from change in capitalization) How to handle Rights Issue resulting in

  • Speakers queit on my HP pavilion dv6-6c04et

    hi, when i first bought pc it was very loudly but now it has very queit sound. i tried lots of thing including reinstalling the driver but it is still queit. Please help me.