Retrieving records to presentation server after Background Job.

Hi Friends,
Here i am working on a data updation program.I am passing the data in an excel and after updation all the error records are populating into another Excel file whose path also i am providing in the selection scree. This error excel file i am storing in the presentation server(user workstation).
Its working fine in foreground and creating error file in case of errors successfully.Initially i did not have a background execution option as its communicating presentation server.
but now user wants it to run in background, so i have given a background radiobutton on selecting this it will SUBMIT the same program again as a job.
This also working fine but as a batch job could not create the error log file in the front end.
So now i am thnking of a logic :    I ll write the error log records in the Application server.  Then i ll check whether the file has written completely in the application server by giving some delay (in 15 seconds it will check the appl server if the dataset has been created successfully).
Eg ;
Code for delay setting that i would like to know from you .
OPEN DATASET ERRLOG........
If sy-subrc EQ 0.
Loop.
Put the values into an internal table.
ENDLOOP.
Using GUI_DOWNLOAD download the content of int table to Excel file.
As of now i am having this logic to go further.
Already started R&D .
Would like to know from you how far this will be feasible and the way to set the delay to read the Error from appl server?
If you have any other idea please let me know.
Ask me on any clariffication on this issue.
Thanks & Regards,
SAM.

Hi!
You can't see a presentation server while your program is running in the background. It is, because in this case there is no presentation, no user-display for the results. So all GUI related functions are unreachable, downloading also.
You might try to send the log, in email, or like a sapoffice mail.
You might try to set up a directory on a shared file server, and put the file there into user specified directories.
But forget downloading into presentation server.
Regards
Tamá

Similar Messages

  • How to transfer file from application server to presentation server in background?

    Hi Experts,
    How to transfer file from application server to presentation server in background?
    Thanks in advance
    Namita

    Thanks Raman and Challa,
    We want to move file from application server to Shared folder, not on local machine. We checked FM which you guys have provided but those are not able to read file from application server.
    We need this program to run in background so that we can use this in daily process chain.
    Appreciate your inputs on this.
    Thanks,
    Namita

  • CAN WE DOWNLOAD A REPORT TO PRESENTATION SERVER IN BACKGROUND

    Hi
    1. Can we download a report into presentation server in background mode and it should be saved in excel. If so plz let me know how to do.
    2. When i look into spool SP01 the report is not in proper format because the report output width is more than 255 characters and now how should i solve the problem to make it in correct format. Can we do this or not?. If so how
    Thanks in advance.

    Hi
    when i wrote the
    REPORT z_mm_rep_000047
                           LINE-SIZE 500
                           LINE-COUNT 65
                           MESSAGE-ID zca.
    it is automatically increasing the width in the print settings when i increased to 500 from 255 but stil its not working.

  • How to download data to the presentation server in background?

    Hi,
    I would like to download data to the presentation server in background.
    Currently, the report uses FM GUI_DOWNLOAD to download in foreground.
    However, this FM does not work in the background.
    But please let me know how to download to the presentation server in background.
    Thanks and regards,
    Anishur

    Moderator message - FAQ - Please search before asking - post locked
    Rob

  • System exception while deleting the file from app server in background job

    Hi All,
    I have a issue while the deleting the file from application server.
    I am using the statement DELETE DATASET in my program to delete the file from app server.
    I am able to delete the file from the app server when i run the program from app server.
    When i run the same report from background job i am getting the message called System exception.
    Is there any secuirity which i need to get the issue.
    Thank You,
    Taragini

    Hi All,
    I get all the authorization sto delete the file from application serever.
    Thing is i am able to run the program sucessfully in foreground but not in the background .
    It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
    Can anybody please give me suggestion
    Thanks,
    Taragini

  • File download to presentation server in BACKGROUND

    Hello,
    i'm trying to download a simple list to the presentation server, but in a background process (part of an update rule for an infopackage). I´ve tried WS_Download and CALL METHOD o->gui_download etc but the job cancels with them since they seem only to run in frontend. Does anyone know of a more suitable function module?
    Thanks,
    Kev

    Hi,
    Tyr to download file to unix in background.
    PARAMETERS:    p_unix     LIKE rlgrap-filename.
    INITIALIZATION.
      v_uzeit  = sy-uzeit.
      v_date   = sy-datum.
      v_client = sy-mandt.
      v_sys    = sy-sysid.
      CONCATENATE c_str v_sys c_str4 v_client
                  c_str3 v_date c_str5 v_uzeit c_str6 INTO p_unix.
       DATA: v_fnam        LIKE rlgrap-filename,
          v_filepht     LIKE FILENAME-FILEINTERN, "File for p_unix
          v_sys         LIKE sy-sysid,
          v_client      LIKE sy-mandt,
          v_date        LIKE sy-datum,
          v_uzeit       LIKE sy-uzeit
    FORM f3000_save_unix_file.
      SORT i_output.
    * Open the file in application server
      OPEN DATASET p_unix FOR OUTPUT IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE s900 WITH p_unix.           " File opening error
        LEAVE LIST-PROCESSING.
      ENDIF.
      LOOP AT i_output INTO w_output.
        TRANSFER w_output TO p_unix.
        CLEAR w_output.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE:/ text-075, p_unix, text-076. " File successfully created
      ELSE.
        WRITE:/ text-074, p_unix.           " Error creating file
      ENDIF.
    * Closing the file
      CLOSE DATASET p_unix.
    ENDFORM.                    " f3000_save_unix_file
    Also refer this link
    http://www.sapdevelopment.co.uk/file/file_updown.htm
    Try this might help u.

  • Assign Server to Background Job

    Hi all,
    I need a help in  Background Job,
    we got two servers i need to  assigning one of the server to my background job running through report using 1)JOB_OPEN 2) Submit Report and 3) JOB_CLOSE.
    Thank you all in Advance,
    Jagan.

    You can do this easily via SM36 by filling the Exec. Target while creating the Job.. But if you would like to set the SERVER name vai your Program.... try this
    after the function call JOB_OPEN & before the SUBMIT statement, update the field EXECSERVER  of the TBTCS dbTable with the server name. ( SInce it is your own Job & all you are doing is trying to force it to a server, a direct db UPDATE should not be an issue)
    ~Suresh

  • Present server status of jobs

    Hi Experts,
    Is there any transaction code which tell us the present server status? (Basis is not in my location so I can not communicate them)
    i.e. which tell who much runtime memory is taken by present running jobs in server.
    Means all users background job + for ground job.
    Problem I am facing is one job is taking time 200 seconds in quality server, but same job is taking more then 3000 seconds on Production server.
    So want to know why this job is taking so much time in production for same data.
    Regards

    hi
    my opinion:just because of only your 1 prog. do not move index to production, unless untill this report is very imp. time wise!! because, while populating the MARD table, it takes more(even though negligible)time.
    thanq
    Edited by: SAP ABAPer on Oct 27, 2008 8:44 PM

  • Difference between exec. target and executing server in background jobs

    Dear experts,
    Please let me know
    Difference between exec. target and executing server in background jobs

    Dear Joe,
    Sorry for this
    I am closing this threaf now

  • How to schedule a program for download a file to Presentation Server

    hi all,
    I need to schedule a program which will download a file to presentation server. How can i handle this or is there any other to download a file during scheduling?
    Points will be rewarded
    Thanks in advance

    Hi Jayasree,
    You can download your file to application server in background scheduling.
    In your program use OPEN DATASET command for achieving this.
    How ever, as far as i know, it is not possible to download the file to presentation server in background job.
    regards,
    G@urav.

  • Accessing presentation server file in background

    Hi gurus,
    my requirement is to access presentation server file in background mode.
    I got the below documentation regarding this ,but i'm not able to complete the setup as mentioned in this document.
    please help .
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/communication%20to%20presentation%20server%20in%20background%20mode.doc]
    As per documentation i need rfc.car and car.exe file in my system. I cant see any rfcsdk folder in my system. Please help.
    any other solutions ,please suggest.
    sastry.
    Edited by: prssastry on Oct 15, 2008 7:13 AM

    Hi,
    In general practice we don't access a file from presentation server in background because at that point of time i might not logon to SAP server, so it is always preferable to access the file from Application layer incase of background processing.
    Unless it is a client requirement, don't access files from the presentation layer in background./
    thanks,
    Mahesh.

  • Read Error logs after running the background jobs

    Hi,
    How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
    Kindly suggest.
    Thanks & Regards,
    N. Laxman

    Hi
    you can check the  back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
    plz check in your case and revert back
    Regards
    Anupam Sharma

  • Download the file in presentation server while the program runs in backgrou

    Hi,
    Usually we will never download the file in presentation server while the job is scheduled in back ground.
    But now i need to do that. I need to download the data in excel file and the same program is scheduling in background.
    Can any one suggest how can we do this?
    Thanks in Advance,
    Ravi

    Hi,
    There is an alternative provided by SAP. The program RFCEXEC has to be installed locally on the PC.
    In SAP R/3 we have to define a destination link to your local PC to the RFCEXEC program. And in the ABAP program we have to invoke the connection by calling the FM  RFC_REMOTE_FILE.
    I haven’t tried this before but a detailed documentation is available in this link.
    http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm
    Reward if useful
    Regards
    Shiva

  • How to Upload a file in background job

    Hi,
    I am facing a problem is i have to upload a  file but i have to run that program in background, by using gui upload or ws upload will not run in background canany one pls tell me how to do that .

    There is no other easy solution.
    Some complicate options are to:
    1] In the selection screen take the file name which is the presentation server...write code to copy this file to the appserver and the submit the program to run in background and read using open dataset.
    2] There are also some complicated ways of accessing the presentation server in background by creating rfc destinations for the PC a accessing it thru function modules, but these are not recommended.

  • Background job output to Presentation server

    Hi,
    I am executing report as Background job.
    after job gets completed output should be in excel format in front end or presentation server.
    Regards
    Naga

    Hi,
    We cannot perform any action on the presentation server in a program that is being execcuted in background. What you can do is to write the output on to the app server, and after wards move the file on to the Pres. server using CG3Y transaction.
    Regards,
    Ravi
    Note : Please mark the helpful answers

Maybe you are looking for

  • Connecting ipod to computer causes folder with exclamation point

    Alright, my ipod works fine until I plug it into my computer, at which point itunes and possibly the whole computer will freeze up for a good 10 minutes, and the computer will try to recognize the device. The computer recognizes the device, and tries

  • Restoring calender from iTunes backup

    Hi, I recently replaced my iPhone 4S with a new one at the Apple store. I was using iOS6 in the old phone. I backed up using iTunes on my computer before taking it to the apple store. When I connected the new phone, it asked me to update to iOS7. I d

  • Request for Trnxn code

    Hi Please let me know the transaction code used to configure timeout settings (eg: 10mins,15mins,.....) for a particular client. Thanks and Regards Vidya

  • MessageQ: dynamic queue names

    In our application we would like to do the following: at runtime, attach to a temporary, secondary queue. bind some arbitrary name to this queue. exec a new process with the new queue name given to it as parameter. The 'child' process should be able

  • Invoice split due to different price group

    Hi Experts, My business scenario starts from scheduling agreement -OBD- Commercial Invoice-Excise invoice - ARE3 Invoice To address different prices in the scheduling agreement i have maintained the pricing based on price group. The two line items fa