Different Subroutines in Background jobs and Dialog jobs

Hi guys,
I want to execute some subroutines when the program is running  using a background  job  , and some other subroutines completely different when the user use dialog job ( program -> execute in background ) . I know that sy-batch  = 'X'  in both cases  , but, there is something else to identify them ? , any ideas .
thank you .

It will be - he meant that they start the background job from SE38/SA38 not run it online.
SY-SLSET is a starter point for checking the variant used - dynamic variants are used when you don't pick one from the list.  However, this would not help if the user picked a variant and then scheduled the job dynamically.  Another option is to use function GET_JOB_RUNTIME_INFO in your program.  Assuming your scheduled jobs are named differently, you can check for the condition by checking the name of the running job.  Dynamically created jobs will have the program name as the job name.

Similar Messages

  • Differences in Background jobs and Dialog jobs

    Hi everyone,
    I am new to SAP and would like a little clarification regarding what is meant by Background jobs and Dialog jobs/processes. We had a situation at our client location where the system got completely bogged down to the point that it almost froze and many of the process chains were failing in BI. As per the basis team, the jobs were triggered as "dialog jobs" instead of "background" jobs which caused a heavy load on the system.
    What is the difference? What happens when the jobs are run in the background or as dialog? Can both be checked in SM37?
    Points will be awarded
    Thanks.

    **Dialog Work process:** The Dialog work process fulfill all requests for the execution of dialog steps triggered by an active user. The dialog work process are not used for request which take long time and which use more cpu. Every dispatcher requires at least two dialog work processes. The dialog work process default time is 300 secs. If the dialog work process does not respond in this time, it will be terminated. Also dialog work process are multiplexed to handle large no of user request.
    **Background Work process:** The background work processes execute programs that run without user interaction. At least two background work processes are required per SAP system. More than one background work processes can be configured per dispatcher. Usually the background work process are used for carrying jobs that take long time to finish, like client copy, client transport etc.., . There are two types of background work process. They are A type and B type. A type background work process are used for mission critical jobs. Background jobs of priority a have high priority than B type back ground jobs.
    you can check your job using tcode SM50.
    Thanks
    Dhiraj

  • What is the difference between background job and foreground job

    Hi Experts,
    Could you pls tell me
    What is the difference between background job and foreground job
    and where exactly used background jobs...
    Thanks

    Hello,
    Background jobs - without user interaction, scheduled via SM37.
    Foreground jobs - with user interaction (transactions).
    For more information, please read these: [http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbda449911d1949c0000e8353423/frameset.htm], [http://help.sap.com/saphelp_nw04/helpdata/en/73/69ef5755bb11d189680000e829fbbd/frameset.htm] and [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20cb0b44-8f0b-2a10-2381-ca8162bcb5b2].
    Regards,

  • What is released job and scheduled job?

    Hi BW experts,
    Please let me know what is released job and scheduled job?

    Hi
      <b>Released job</b>:The job has been fully defined, including a start condition. Without a start condition, a job cannot be released.
    Only an administrator or a user with appropriate authorizations for background processing can release a job, preventing unauthorized users from running jobs without approval.
    <b>scheduled job:</b> The job which is scheduled for a particular time and that will come into the queue of jobs to which time it is scheduled.
    U can see these jobs in SM37 tcode

  • Broken jobs and failed jobs

    hi all..
    please tell me difference between broken jobs and failed jobs
    thanks

    Please refer documentation .
    Failed Jobs
    If a job has the status of FAILED in the job table, it was scheduled to run once but the execution has failed. If the job was specified as restartable, all retries have failed.
    If a job fails in the middle of execution, only the last transaction of that job is rolled back. If your job executes multiple transactions, you need to be careful about setting restartable to TRUE. You can query failed jobs by querying the SCHEDULERJOB_RUN_DETAILS views.
    Broken Jobs
    A broken job is one that has exceeded a certain number of failures. This number is set in max_failures, and can be altered. In the case of a broken job, the entire job is broken, and it will not be run until it has been fixed. For debugging and testing, you can use the RUN_JOB procedure.
    You can query broken jobs by querying the SCHEDULERJOBS and SCHEDULERJOB_LOG views.
    Regards
    Renjith Madhavan

  • Different result executing by EXEC and by job

    Greetings!
    I've got simple procedure:
    CREATE OR REPLACE PROCEDURE alertlog.check_log IS
    IP_ADDRESS VARCHAR2(16);
    BEGIN
    SELECT sys_context('USERENV','IP_ADDRESS') INTO IP_ADDRESS FROM sys.dual;
    FOR alert_conn IN (SELECT alert_date,alert_text FROM alert_log WHERE alert_date > SYSDATE - 20/1440 and REGEXP_LIKE(alert_text,'ORA-'))
    LOOP
         INSERT INTO ALERT_LOG_CONT@EMGRID VALUES (IP_ADDRESS,alert_conn.alert_date,alert_conn.alert_text);
    END LOOP;
    UPDATE SID_LIST@EMGRID SET LAST_UPLOAD=SYSDATE WHERE IPADDR=IP_ADDRESS;
    COMMIT;
    END;
    And Job
    BEGIN
    sys.dbms_scheduler.create_job(
    job_name => '"ALERTLOG"."CHECK_LOG_JOB"',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin
    alertlog.check_log;
    end;',
    repeat_interval => 'FREQ=MINUTELY;INTERVAL=15;BYDAY=MON,TUE,WED,THU,FRI,SAT,SUN;BYHOUR=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23',
    start_date => to_timestamp_tz('2010-12-01 13:09:57 Europe/Moscow', 'YYYY-MM-DD HH24:MI:SS TZR'),
    job_class => '"DEFAULT_JOB_CLASS"',
    auto_drop => FALSE,
    enabled => FALSE);
    sys.dbms_scheduler.set_attribute( name => '"ALERTLOG"."FFF"', attribute => 'logging_level', value => DBMS_SCHEDULER.LOGGING_OFF);
    sys.dbms_scheduler.set_attribute( name => '"ALERTLOG"."FFF"', attribute => 'job_weight', value => 1);
    sys.dbms_scheduler.enable( '"ALERTLOG"."FFF"' );
    END;
    When I run EXEC alertlog.check_log in sqlplus the result is good:
    IPADDR     EVENT_DATE     ERROR_LINE
    10.20.17.38     2010-12-01 13:19:01.0     ORA-TEST
    But when it is being run by job - it doesn't get an ip address:
    IPADDR     EVENT_DATE     ERROR_LINE
         2010-12-01 13:19:01.0     ORA-TEST
    What am I doing wrong?
    Update:
    And it also doesn't update SID_LIST@EMGRID by
    UPDATE SID_LIST@EMGRID SET LAST_UPLOAD=SYSDATE WHERE IPADDR=IP_ADDRESS;
    Edited by: Skalny on 01.12.2010 13:41

    Herald ten Dam wrote:
    SELECT sys_context('USERENV','IP_ADDRESS') INTO IP_ADDRESS FROM sys.dual;In a job this will give no value back, because a job is run inside the database and has no client connection, so IP_ADDRESS will be null. That's why your update doesn't work.
    For a job you can use UTL_INADDR.GET_HOST_ADDRESS.Thank you for explanation.

  • How do I enable the "Retry Job" and "Cancel Job" icons on the Project Server Queue?

    Judy Washington

    Hello,
    if you select a job they should become enabled (depending on the job status).
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Batch job and background job

    Hi
    what is the difference between a batch job and backgroun job ??
    thanks
    kumar

    hi kumar,
    As far as I know
    Batch job are the jobs created with sessions. You can process those sessions in SM35. These are not direct update methods.
    Where as the background jobs are the jobs running in the background with out user interaction. Once you schedule the job for the background job it will run with out user interaction according to the given schedule.
    You can run the batch jobs also in background.

  • CS4 Media Encoder batch jobs, and .avi ffdhshow

    I have two distinct, but slightly related questions to ask.
    First I should point out: I've used Premiere and After Effects for creative purposes before, but today I am using Adobe software for a more practical purpose: some engineering research work. Essentially, I have thousands of hours of video to process, I have all the firepower needed to perform it, I am currently limited by the ammount of time I am stuck clicking away at the computer.
    Essentially my job right now is to convert and concatonate 1 minute segments into larger cohesive files. I say convert because the supplied files are encoded as .avi with an obscure proprietary surveillance video format (Mavix, for those of you familiar, doubt it though, even a google search won't bring up anything). It's okay, I have the VFW installed and so far I've been doing fine (if not slowly) pre-converting to NTSC DV default with AME CS4 and then importing into VDub (handy because of it's automatic file appending feature) at which point I compress with ffdshow (gave me the best performance considering quality, compression and processing perfromance). Vdub is also handy because I can take better advantage of multi-cores (8 per machine) by running Vdub jobs and AME jobs simultaneously. I am still amazed how mult-tasking on these machines gets me absolutly no performance hits.
    Why is it that I am using AME? It seems to be the only thing that can decode these Mavix files (I've tried them all). And only a direct convert through AME... if I open it up in premiere first, then export it, the video glitches.
    Question 1:
    Right now, the biggest challenge is batch converting videos. I can drag up to 70-75 videos (regardless of hardware) into AME before it starts rejecting files. I would like for it to pre-process thousands of them at a time automatically. Any ideas how the queue size can be increased or how I can properly batch convert thousands of files at a time? Checking back at a computer every 20 minutes for a week is a real waist of time when I could leave it sit over the weekend in a corner and do it's thing.
    Question 2:
    I wanted to reuse the concatenated files that Vdub spat out (.avi ffdshow H.264 -> no comments please, I have a good reason for doing this) for some other work. I just want to know if it is possible to get Premiere to work from these files directly or if I have to reconvert them to somethign else first. So far, importing them yields black video.

    Hi,
    I have absolutely no experience with this...but as to question number 2... I did a google search on ---avi ffdshow h264 cs4 ----and found this info
    As you probaby know a lot of people using premiere are adament about NOT loading codec packs, and in particular ffdshow and k-lite...but you probably know that or you might not have said " no comments please "....etc.
    That said, there is a part of the following stuff that says something about using cs4 with ffdshow with h264 enabled in the video and something enabled in the sound.. and then the reference to K-lite...but that k-lite post was using ( at that point ) a different editor I think...so take this with a grain of salt and maybe check the ffdshow enabled setting so you can see your video in PP...
    Good luck  ....and I hope your computer doesnt explode  or anything bad happens...which might mean a total reformat and reinstall etc...
    http://forum.videohelp.com/threads/302604-Creative-Vado-HD-AVI-%28H-264%29-Editing
    ·  I also own a Vado HD.
    May I know which editor is compatible with it?
    Quote
    · 13th Apr 2009 09:36 #7
    poisondeathray
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2007
    Location: Canada
    For simple edits, you can use vdub (see above)
    If you need a NLE, Vegas Pro 8 will work, if you have ffdshow (h.264 enabled) or x264vfw, but it won't see the audio. So you can open it in vdub and save the audio as wav then import into Vegas
    Premiere Pro CS4 will work, but you need ffdshow (h.264 enabled in the video configuration and MSADPCM enabled in the audio configuration)
    Cheers
    Quote
    · 10th May 2009 23:15 #8
    rogerconnery
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2006
    Location: United States
    Hi, I just bought a Creative Vado HD and I have 3 clips I just want to paste together.
    I downloaded Virtualdub, downloaded x264vfw, downloaded ffdshow (h.264 enabled) and installed all three. I still can't open any of the Vado HD clips into Virtualdub. I get an error message. Is there another step I am missing?
    Thanks in advance!
    Quote
    · 10th May 2009 23:21 #9
    poisondeathray
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2007
    Location: Canada
    do you have this version installed?
    http://sourceforge.net/projects/x264vfw/
    if that doesn't work for you , enable h.264 in the ffdshow vfw decoder interface (yellow icon, not red icon), because vdub relies on vfw , not directshow    ( ROBODOG2 NOTE ----GRAPHIC BELONGS HERE.....SEE BELOW )
    Quote
    · 11th May 2009 12:16 #10
    rogerconnery
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2006
    Location: United States
    @poisondeathray - yes that helped! thank you!!!
    Now that I am able to "edit" my Creative Vado HD videos in Virtualdub, I notice something very strange. Each video clip is approx 30 seconds long. The total combined/merged clips should be approx 2:30 long. However, windows media player (as well as right clicking for properties) says the video is WAY longer than it should be (like 11 min long)!!!
    Anyone else notice this? Is this a virtualdub mistake or human error on my part?
    Quote
    · 11th May 2009 12:49 #11
    poisondeathray
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Sep 2007
    Location: Canada
    Did you do any editing or just append the clips? If you edited portions did you cut on keyframes?
    Did you set "direct stream copy" for video & audio?
    What do other media players (e.g. vlc, kmplayer, smplayer) and mediainfo say about the joined clip ?
    Quote
    · 26th Jul 2009 15:54 #12
    cybereality
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Jul 2009
    Location: United States
    Has anyone found a solution to this issue yet? I can't believe Creative would release a product like this with almost no 3rd-party support. I really wanted to get this camera, but this is a deal-breaker. I managed to get a few raw files from the Vado HD to test. They work fine just for playing in WMP, but I cannot edit the videos in any program I tried. Adobe Premiere CS4 doesn't work. You see the audio but no video. If you try to do basically anything it crashes. Sony Vegas 9 doesn't work either. Same deal, audio with no video. Same issue in VirtualDub. I have ffdshow installed and H.264 is enabled (libavcodec). Do I have any other options here?
    Quote
    · 26th Jul 2009 17:34 #13
    Xpenguin17
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Jul 2009
    Location: United States
    Download and install K-Lite mega codec pack. The ffdshow configuration will be pretty streamlined so you likely won't have to screw around with it after the install.
    Quote
    · 26th Jul 2009 22:56 #14
    cybereality
    View Profile
    View Forum Posts
    Private Message
    Member
    Join Date: Jul 2009
    Location: United States
    Thanks Xpenguin17. I installed the K-lite mega pack and now I can import the Vado HD raw avi files into Premiere. So far everything looks good. Thanks a lot.

  • 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

  • Problems creating background job for program (job open, submit and close)

    Hi gurus,
    im trying to start a background job using the FM BP_START_DATE_EDITOR to show the start date to the job or if it's imediate. this FM it's working fine, after call it im opening a job, submiting it and call the job close FM and the job close FM creates me the job.
    The problem it's when i go to the sm37 to see the job status the job has been canceled, and the job log says that i have to give a start date to the job.
    What i dont understand it's either the job is imediate or i choose a date to start the job always gives me this error...
    Below goes my code,
    any ideas will be rewarded
      CLEAR: stdt_modify_type, stdt_output.
      CALL FUNCTION 'BP_START_DATE_EDITOR'
           EXPORTING
                stdt_dialog                    = 'Y'
                stdt_input                     = stdt_input
                stdt_opcode                    = 14
           IMPORTING
                stdt_modify_type               = stdt_modify_type
                stdt_output                    = stdt_output
           EXCEPTIONS
                fcal_id_not_defined            = 1
                incomplete_last_startdate      = 2
                incomplete_startdate           = 3
                invalid_dialog_type            = 4
                invalid_eventid                = 5
                invalid_opcode                 = 6
                invalid_opmode_name            = 7
                invalid_periodbehaviour        = 8
                invalid_predecessor_jobname    = 9
                last_startdate_in_the_past     = 10
                no_period_data_given           = 11
                no_startdate_given             = 12
                period_and_predjob_no_way      = 13
                period_too_small_for_limit     = 14
                predecessor_jobname_not_unique = 15
                startdate_interval_too_large   = 16
                startdate_in_the_past          = 17
                startdate_is_a_holiday         = 18
                startdate_out_of_fcal_range    = 19
                stdt_before_holiday_in_past    = 20
                unknown_fcal_error_occured     = 21
                no_workday_nr_given            = 22
                invalid_workday_countdir       = 23
                invalid_workday_nr             = 24
                notbefore_stdt_missing         = 25
                workday_starttime_missing      = 26
                no_eventid_given               = 27
                OTHERS                         = 28.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        MOVE 'X' TO gv_flag.
      ENDIF.
      DATA jobname LIKE tbtcjob-jobname.
      DATA jobcount LIKE tbtcjob-jobcount.
      DATA job_release LIKE  btch0000-char1.
      DATA job_imediate TYPE c.
      CLEAR: jobname, jobcount, job_release.
      CONCATENATE 'MAPAEXEC' sy-uname sy-datum
                   INTO jobname SEPARATED BY space.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = jobname
           IMPORTING
                jobcount         = jobcount
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
      IF sy-subrc <> 0.
        MESSAGE i003(zmapas).
        EXIT.
      ENDIF.
      SUBMIT z_mapa_execucao_orcamental
             VIA JOB jobname NUMBER jobcount
             WITH ano EQ ano
             WITH so_perio IN so_perio
             WITH so_date IN so_date
             WITH so_org EQ so_org
             WITH so_num IN so_num
             AND RETURN.
      IF stdt_output-startdttyp EQ 'I'.
        CLEAR job_imediate.
        job_imediate = 'X'.
      ENDIF.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                calendar_id                 = stdt_output-calendarid
                event_id                    = stdt_output-eventid
                event_param                 = stdt_output-eventparm
                event_periodic              = stdt_output-periodic  "?
                jobcount                    = jobcount
                jobname                     = jobname
                laststrtdt                  = stdt_output-laststrtdt
                laststrttm                  = stdt_output-laststrttm
                prddays                     = stdt_output-prddays  "??
                prdhours                    = stdt_output-prdhours  "?
                prdmins                     = stdt_output-prdmins  "??
                prdmonths                   = stdt_output-prdmonths
                prdweeks                    = stdt_output-prdweeks  "?
                predjob_checkstat           = stdt_output-checkstat
                pred_jobcount               = stdt_output-predjobcnt
                pred_jobname                = stdt_output-predjob
                sdlstrtdt                   = stdt_output-sdlstrtdt
                sdlstrttm                   = stdt_output-sdlstrttm
                strtimmed                   = job_imediate
                targetsystem                = stdt_output-instname
                start_on_workday_not_before = stdt_output-notbefore
                start_on_workday_nr         = stdt_output-wdayno
                workday_count_direction     = stdt_output-wdaycdir
           IMPORTING
                job_was_released            = job_release
           EXCEPTIONS
                cant_start_immediate        = 1
                invalid_startdate           = 2
                jobname_missing             = 3
                job_close_failed            = 4
                job_nosteps                 = 5
                job_notex                   = 6
                lock_failed                 = 7
                OTHERS                      = 8.
      IF sy-subrc <> 0.
        MESSAGE i003(zmapas).
        EXIT.
      ELSE.
        MESSAGE i004(zmapas) WITH jobname.
      ENDIF.
    Thanks in advance,
    Best Regards
    João Martins

    Hello João.
    In debug mode, check the value of variables you passed to parameters sdlstrtdt and sdlstrttm.
    As aditional info, I usually achieve your goal without FM BP_START_DATE_EDITOR.
    Check this code:
    CALL FUNCTION 'JOB_OPEN'
          EXPORTING
               jobname          = w_jobname
          IMPORTING
               jobcount         = w_jobcount
          EXCEPTIONS
               cant_create_job  = 1
               invalid_job_data = 2
               jobname_missing  = 3
               OTHERS           = 4.
    CHECK sy-subrc = 0.
    CLEAR seltab_wa.
    MOVE: t_jobs-param TO seltab_wa-selname,
    t_processar-line+34 TO seltab_wa-low.
    APPEND seltab_wa TO seltab.
    seltab_wa-selname = 'P_LOJA'.
    seltab_wa-low = t_processar-ficheiro+7(4).
    APPEND seltab_wa TO seltab.
    *** Submete o programa para o JOB
    SUBMIT (t_jobs-repid)
      WITH  SELECTION-TABLE seltab
      USER sy-uname
       VIA JOB w_jobname NUMBER w_jobcount
       AND RETURN.
    *** Encerra o JOB
      l_hora = sy-uzeit.
      ADD 60 TO l_hora.
    CALL FUNCTION 'JOB_CLOSE'
       EXPORTING
          jobcount           = w_jobcount
          jobname           = w_jobname
          sdlstrtdt            = sy-datum
          sdlstrttm           = l_hora
          targetserver       = w_servidor
       IMPORTING
          job_was_released     = l_liberado
       EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          OTHERS               = 8.
    Regards.
    Valter Oliveira.

  • Run the Report as a Background job and Get the Output in Excel in Local PC

    Hello Gurus,
    I have one following requirement.
    One should be able to run the report as a background job and it should be possible to get the report in Excel format, also when running the report in background. The excel report should have the same information and look as the current SAPreport.
    Please provide some solution.
    Any helpful answer get surely awarded.
    Thanks a lot,
    Varlanir

    GUI_* WS_* Function In Background, CSV Upload
    GUI_* and WS_* function modules do not work in background
    When scheduling a job in the background the appropriate statement to read in your file is OPEN DATASET, and the file must be on the file system that the SAP server can see.
    At anytime, a user can switch of the Personal Computers even though the job is still running in the background.  Therefore GUI_* and WS_* function modules are not designed to work in that way, as they need to access your personal computer  file.
    To choose the correct download method to used, you can check the value of SY-BATCH in your code,
    if it is 'X' use OPEN DATASET and if it is ' ' use WS_UPLOAD.
    *-- Open dataset for reading
    DATA:
      dsn(20) VALUE '/usr/test.dat',
      rec(80).
    OPEN DATASET dsn FOR INPUT IN TEXT MODE.
    IF sy-subrc = 0.
      DO.
        READ DATASET dsn INTO rec.
        IF sy-subrc <> 0.
          EXIT.
        ELSE.
          WRITE / rec.
        ENDIF.
      ENDDO.
    ENDIF.
    CLOSE DATASET dsn.
    *-- Open dataset for writing
    DATA rec(80).
    OPEN DATASET dsn FOR OUTPUT IN TEXT MODE.
      TRANSFER rec TO '/usr/test.dat'.
    CLOSE DATASET dsn.
    What is the difference when we use upload, ws_upload, gui_upload function modules?
    UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC concepts.  ie., Batch Data Communication.
    Batch Data Conversion is a concept where user can transfer the Data from non SAP to SAP R/3.  So , in these various Function Modules are used.
    UPLOAD---  upload a file to the presentation server (PC)
    WS_UPLOAD----    Load Files from the Presentation Server to Internal ABAP Tables.
    WS means Work Station.
    This is used upto SAP 4.6 version.
    GUI_UPLOAD-------    Replaces WS_UPLOAD. Upoad file from presentation server to the app server.  From 4.7 SAP version it is replaced.
    How to Upload csv file to SAP?
    Common File Download Upload Questions:
    How  you upload the data from text file to sap internal table?  From my knowledge its by upload or gui_upload. 
    How you download the data from sap internal table to text file?
    How  you upload the data from xls (excel) file to sap internal table how you download the data from sap internal table to xls(excel) file.
    You can upload data from presentation server to an internal table using gui_upload. Use gui_download to download from internal table to flat file.
    Use fm ALSM_EXCEL_TO_INTERNAL_TABLE to upload data frm excel.
    Use function module GUI_UPLOAD
    The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\test.csv'
       FILETYPE                      = 'ASC'
      TABLES
        DATA_TAB                      = itab
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17.

  • I can no longer print to the 3 Canon printers on my local area network. The print dialog box states that the print file is accepted and the job is printing, but the files never print. Everything worked when the computer and printers were initially set up.

    I can no longer print to the 3 Canon printers on my local area network. The print dialog box states that the print file is accepted and the job is printing, but the files never print. Everything worked when the computer and printers were initially set up.

    There may be some security issues related to the USPS PDFs.
    http://www.certified-mail-envelopes.com/signatures-usps-certified-mail-return-receipt-requested
    I can't help with the scan/print problem. You seem to have done everything I would try.
    I don't know if maybe using a registry cleaner would help.
    John Hoffman
    Conway, NH
    1D Mark IV, Rebel T5i, Pixma PRO-100, MX472

  • Difference: Job run in foreground, job run in background and batch job

    Hi  Gurus,
    Can you please help me to know what are the differences between job run in foreground, job run in background and batch job? Do jobs in foreground run in presentation server? Do jobs in background or batch jobs run in application server?
    Thanks,
    Kumar

    foreground job running may cause job running crash or failed if it is too big or server is busy and it take too long time. meantime it will take one sap session.
    background job will run base on request server status. and it will not take your sap session. and it will not failed normally.
    and you can get the result by SM37.
    my experience show that big report run in background normally faster than in foreground.
    Edited by: JiQing Zhao on Sep 3, 2010 4:13 AM

  • Divide the billing due list into multiple background jobs and start them si

    Hello Gurus,
          How to divide the billing due list into multiple background jobs and start them simultaneously?
    Many thanks,
    Frank

    Hello Frank,
    Check this:
    http://help.sap.com/erp2005ehp_03/helpdata/EN/dd/561076545a11d1a7020000e829fd11/frameset.htm_
    plz assign suitable points, if this helps.
    Rgds,
    Raghu.

Maybe you are looking for