Find mode of execution of a report program

Hi,
   How can i find if the execution of the report is online or via batch mode.
I need to store different results depending on the mode of execution of the report.
Thanks & Regards,
Amit

Hi,
The system variable SY-BATCH identifies whether the report is run online or in background. You can differentiate this using      SY-BATCH.
IF SY-BATCH = 'X'.
write: 'Report is run in background'.
ELSE.
write: 'Report is run in foreground'.
ENDIF.
Regards,
Vikranth

Similar Messages

  • To find subroutinues / subprograms used in a report program

    Hi,
    In a report program it may called any number of subroutinues or subprogram.
    So by giving the report program name alone, i need to find the subroutinues and subprogram used in it.
    Is there any function module or tcode which gives this list?
    Regards,
    K.Tharani.

    HI..
    I have tried se80. It lists all the subroutinues.
    Is there any way to find which subroutinue is called from which part.
    Say For eg:
    GET_DETAILS subroutinue is called in main program and
    PUT_DETAILS.subroutinue is called inside the GET_DETAILS.
    So the output says
    Report Name has
        GET DETAILS has
                PUT_DETAILS
    Regards,
    K.Tharani.

  • How to find Transaction code from Report/program name ?

    Dear all,
    How to find Transaction code if i know Report/program name ?

    Hi,
    In se 38 when u open ur program,in the application toolbar u have a button beside the where-used list button as display object list.on clicking this button,a window will be opened at the left most corner for repository browser,in this u can find any tranasctions,fileds,screens,dictionary structures defined for the program.
    if any transaction is created for the program u can find it under the transaction folder.
    revert back for further queries.
    Regards,
    Sravanthi

  • Is it possible in report program

    Hi ,
    I have one report program with some ' WRITE ' statement (Write : /   ' This is SAP world ' .)..For this report program i have got the output as  ( This is SAP world ) .
    My requirement is i want to edit this statement (This is SAP world ) in the out put screen ,after that i want to perform some other steps...
    For Eg: write : / ' This is SAP world ' .
    Output : This is SAP world..
    After the execution of the report program i have got the output
    (This is SAP world ). then i need to edit this line for further requirement...Please help me out for this
    Regards,
    Ambili B

    Hi,
    try like below
    write 'NORMAL FIELD'.
    write / 'EDITABLE FIELD' input on.
    Example
    DATA lv_comment TYPE char80.
    MOVE 'Enter ur comment here' TO lv_comment.
    WRITE: / 'Comment : ',lv_comment INPUT ON.
    AT LINE-SELECTION.
      CLEAR lv_comment.
      READ LINE sy-curow FIELD VALUE lv_comment.
      WINDOW STARTING AT 10 10
             ENDING   AT 40 15.
      WRITE 'COMMENT'.
      SKIP.
      WRITE lv_comment.
    Cheers,
    Jose.
    Edited by: Jose on May 12, 2008 8:40 AM

  • Execution of workflow automation failed due to "Could not find a part of the path 'D:\Program

    Hi,
    Execution of workflow automation failed due to "Could not find a part of the path 'D:\Program Files\NetApp\WFA\jboss\standalone\tmp\wfa\workflow_data\35517.xml"
    Netapp case has been raised  and confirmed there is no issue with the WFA application, no clue to diagnose the issue.
    Execution fails continously 3 or 4 runs then get success, intermittent failure occurs.
    WFA version :2.2
    OS: Windows 2008
    Can someone please help me to fix the issue?
    Thanks
    Deepak

    Parag also pointed out that the BURT number is 833488 which has been fixed in 3.0.Please read the public report for more details. RegardsAbhi

  • HOw to find Report program associated module pool program?

    HOw to find Report program associated module pool program?
    I.e
    Me21n is the tcode.I want to find screens related to this tcode.
    Associated report program is RM_MEPO_GUI.(It has no screens hence it is a report program).
    (if module program is attached to tcode,i can easily find entries in d020s)
    Here  report program is calling a module pool program SAPLMEGUI(Has screens).
    If i give the Tcode Me21n,i want to list out all the screens of it..
    Can u give any suggestion....

    Hi Sampath.
    Manually i can see it (by seeing in system-status)..
    programmatically i want to know..
    for ex:if u take  Tcode:Va01
    we can get program (dialog)  and tcode in Tstc table .
    If we know the program name(dialog), we can find program and screens in d020s table.
    Va01 is atatched to a module pool program..No problem to find screens..
    In case of me21n,
    It is atatched to report program(calling module pool program)..
    Here i could not be able to get the screens ..
    I think u undrstood my problem..

  • Standard report Programs to find the current status of workflows

    Hi Experts,
                       Are there any Standard report Programs to find the current status of workflows or workflows which are pending.
    Regards,
    Hari

    Go to SWI1 t-code
    Give the appropriate Status - Ready or Inprocess or Waiting
    Input the Task - either WF Template or Standard Task.
    Choose the time period and execute the report.
    Regards,
    PR.

  • I can not find mozilla firefox folder in Start All Programs how can i open firefox in safe mode i am using win7 and firefox 4.ob10 ?

    i can not find mozilla firefox folder in Start>All Programs> how can i open firefox in safe mode i am using win7 and firefox 4.ob10 ?

    A quick workaround - Go to Start > Run, and paste this in the box: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -safe-mode

  • How to find out report program for a particular smartform?

    Hi,
    How to find out report program from which the smart form function module is calling?
    Thanks.

    Hi
    There's no tools to do that, u can only find out the program where a string with the name of your smartform is: probably it'll be your program.
    U can try to use the program RPR_ABAP_SOURCE_SCAN in order to looking for a string a abap program.
    But if the name of smartform is transfer to program dinamycally, u've few chances.
    Max

  • List of unused custom report programs

    Hello,
    I have to develop a report though which we can find the list of unused program based on the selection date given in the selection screen. So, Is there any way through which we can find when was the Z* programs executes last time???
    I checked with the transaction STAD and ST03N.. but I didnt find it helpful.. because I want to see the list of programs for the past 1 year.
    Any suggestion will be helpful..
    Thanks,
    Regards,
    Jhings.
    Edited by: Jhings on Dec 1, 2011 1:31 PM
    Moderator message: FAQ, please search for previous discussions of this topic.
    Edited by: Thomas Zloch on Dec 1, 2011 12:20 PM

    Hi Sandeep,
    Thanks for the reply... I checked that table and it is having last change date of the code.. But my requirement is to find out the last execution date of the program.. Means.. when was the Z* programs runs last time.
    Hope u understand my problem..
    Thanks,
    Regards,
    Jhings

  • Performance of Big Report Programs

    Hi SAP Experts,
    I want to know whether we can put the trace on the Report Programs which are taking on almost around 10 hours to execute or how can we put a trace on background jobs.
    Thanks and Regards,
    Harsh Goel

    Hi Harsh,
    The problem with the report will be mostly due to the select queries.
    So better do one thing, execute your program in debug mode, keep a break point before the select query, activate the trace in ST05 transaction and after executing the select query deactivate the trace
    Now look in display trace for the time it takes for the query.
    you can follow the same method for each query and check which query takes a long time and rectify that.
    To reduce ABAP/4 program runtime, always follow the ABAP/4 program optimization techniques given below:
    1. Avoid 'SELECT *'. Instead use select with field names i.e. SELECT f1 f2 f3 and so on.
    2. Use table (primary) keys (as far as possible) in the WHERE clause of the select statements. Else, check for secondary indexes.
    3. Avoid nested selects or nested loops.
    4. Use binary search wherever possible.
    5. Avoid use of joins in the select queries.
    5. You can evaluate the performance using GET RUN TIME command for small pieces of program. Try using this statement for SELECT queries to know how much time your SELECT query takes to execute.
    Example
    DATA: gv_runtime1       TYPE i,
          gv_runtime2       TYPE i,
          gv_final          TYPE i.
    GET RUN TIME FIELD gv_runtime1.
    SELECTu2026u2026
    GET RUN TIME FIELD gv_runtime2.
    gv_final = gv_runtime2 - gv_runtime1.
    WRITE: 'Execution time=', gv_final.
    If you still have any doubts please let me know.
    Regards,
    Shobana.K
    Edited by: Shobana k on Sep 18, 2008 8:27 AM

  • Vaue of sy-tcode when executing the report program in the background

    Hello All,
    To test and find out the value of sy-tcode when the report program is exectued in the background. I have done the below steps.
    1. created a report program with the code given below.
    Select option was just defiend to get the selection screen. it is of no use.
    Select-options: s_name for sy-uname.
    Write:/ sy-uname,sy-tcode.
    2. then I created a transaction for the program to identify whether the value of sy-tcode explicitly.
    3. Then I launched the transaction and in the selection screen of the program I selected the option of executing the program in the backgroung and i process the job immediately.
    4 . In the spool I am able to see the correct sy-uname value but not the sy-tcode.
    Where as if i am executing it in the foregroung it is giving the correct value of sy-uname and sy-tcode.
    Can anybody provide me the reason as to why this is happening . that is in the backgound mode the value of sy-tcode is getting cleared.
    Thanks,
    Mohit

    Hello,
    As they say it is an SAP standard behavior, you can "hardcode" the transaction itself into the ABAP code...
    ie:
    if sy-batch eq 'X' "->IT MEANS THAT IT IS A BACKGROUND JOB.
    w_tcode = 'Z*****'.
    else.
    endif.
    bYE!!
    Gabriel P.-

  • How to grant access to a Oracle Report  Program

    Hi hussein,
    I am checking/debugging our clients registered customized report program setup.
    I want to grant the program to my ID so I can test print and see its output.
    The steps I followed are the ff:
    A.
    System Administrator resp: Concurrent Program > Executable :
    Executable : CEC2CREC
    Application : ABC Customizations
    Execution Method : Oracle Reports
    Execution File Name: CEC2CREC
    B.
    System Administrator resp: Concurrent Program > Define :
    Program : Bank Reconciliation Report ( 2 Column )
    Short Name : CEC2CREC
    Application : ABC Customizations
    Executsble Method : Oracle Reports
    Executable Name : CEC2CREC
    I want to grant this program "Bank Reconciliation Report ( 2 Column )" to my USERID.
    I followed these steps:
    - Login to System Administrator responsibility
    - Navigate to Security > Responsibility > Define
    - Query the "ABC Customization" responsibility
    But I can not find any "ABC Customization" responsibility
    Is there other way to test run the program?
    Thanks a lot
    Edited by: yxes2009 on Sep 14, 2009 3:23 AM

    Hi,
    System Administrator resp: Concurrent Program > Executable :
    Executable : CEC2CRECApplication : ABC Customizations
    But I can not find any "ABC Customization" responsibility According to the above, "ABC Customizations" is an executable file (concurrent program) and not a responsibility. From (Security > Responsibility > Define), query the responsibility which is assigned to the user, and check the "Request Group" which is attached to this responsibility, then navigate to (Security > Responsibility > Request) and add "ABC Customization" request to the request group.
    Regards,
    Hussein

  • Convert Report Program to PDF file

    Hi All,
    I need example of converting Report program to PDF file.
    I am beginner so please give simple example to understand it properly ..
    Please write the description along with the code so that i can understand it...
    no long long programs please.
    Thanks.
    Raj

    Hi,
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant.  Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
      tsp01.
    *-- STRUCTURES
    data:
      mstr_print_parms like pri_params,
      mc_valid(1)      type c,
      mi_bytecount     type i,
      mi_length        type i,
      mi_rqident       like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
      mtab_pdf    like tline occurs 0 with header line,
      mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
      p_repid like sy-repid, " Report to execute
      p_linsz like sy-linsz default 132, " Line size
      p_paart like sy-paart default 'X_65_132'.  " Paper Format
    start-of-selection.
    concatenate 'c:'
                p_repid
                '.pdf'
      into mc_filename.
    *-- Setup the Print Parmaters
      call function 'GET_PRINT_PARAMETERS'
       exporting
         authority= space
         copies   = '1'
         cover_page                   = space
         data_set = space
         department                   = space
         destination                  = space
         expiration                   = '1'
         immediately                  = space
         in_archive_parameters        = space
         in_parameters                = space
         layout   = space
         mode     = space
         new_list_id                  = 'X'
         no_dialog= 'X'
         user     = sy-uname
       importing
         out_parameters               = mstr_print_parms
         valid    = mc_valid
       exceptions
         archive_info_not_found       = 1
         invalid_print_params         = 2
         invalid_archive_params       = 3
         others   = 4.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
      if mstr_print_parms-pdest = space.
        mstr_print_parms-pdest = 'LOCL'.
      endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      mstr_print_parms-linsz = p_linsz.
      mstr_print_parms-paart = p_paart.
      submit (p_repid) to sap-spool without spool dynpro
                       spool parameters mstr_print_parms
                       via selection-screen
                       and return.
    *-- Find out what the spool number is that was just created
      perform get_spool_number using sy-repid
                 sy-uname
        changing mi_rqident.
    *-- Convert Spool to PDF
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid= mi_rqident
          no_dialog  = space
          dst_device = mstr_print_parms-pdest
        importing
          pdf_bytecount                  = mi_bytecount
        tables
          pdf        = mtab_pdf
        exceptions
          err_no_abap_spooljob           = 1
          err_no_spooljob                = 2
          err_no_permission              = 3
          err_conv_not_possible          = 4
          err_bad_destdevice             = 5
          user_cancelled                 = 6
          err_spoolerror                 = 7
          err_temseerror                 = 8
          err_btcjob_open_failed         = 9
          err_btcjob_submit_failed       = 10
          err_btcjob_close_failed        = 11
          others     = 12.
    call function 'DOWNLOAD'
         exporting
              bin_filesize            = mi_bytecount
              filename                = mc_filename
              filetype                = 'BIN'
         importing
              act_filename            = mc_filename
         tables
              data_tab                = mtab_pdf.
    *       FORM get_spool_number *
    *       Get the most recent spool created by user/report              *
    *  -->  F_REPID               *
    *  -->  F_UNAME               *
    *  -->  F_RQIDENT             *
    form get_spool_number using f_repid
         f_uname
                    changing f_rqident.
      data:
        lc_rq2name like tsp01-rq2name.
      concatenate f_repid+0(8)
                  f_uname+0(3)
        into lc_rq2name separated by '_'.
      select * from tsp01 where  rq2name = lc_rq2name
      order by rqcretime descending.
        f_rqident = tsp01-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear f_rqident.
      endif.
    endform." get_spool_number
    Regards
    Sudheer

  • Problem WIth Variant in a report program

    I have a z report program with couple of variants , the problem is the varaints display onlt name of the variant and description when the varaint button is pressed.
    The changed by , date etc details are not getting displayed.
    Thanks
    Arun

    Hi Arun,
    You will not get those data directly from the program execution screen. If you want to get those details, please check table VARID for that variant or program.
    Regards,
    Sourav

Maybe you are looking for

  • Delete button doesn't work in deleting files in Windows Explorer

    Anyone is facing this problem? Delete button just works when deleting the letter we are typiing. Anyone can share if you are facing this problem and how to fix? thanks a lot.

  • Inbox Search of Status for Service Order in CRM_IC

    Hi all, When I am searching for a Service Order status in Inbox search in CRM_IC in the Result List it is not displaying Service Orders which are in same Status. It is displaying the list of Service Orders with different Status like Open, Inprocess,

  • Changing background in a JOptionPane

    This is probably very simple, but I'm having some trouble. I simply want to change the background of the message in my JOptionPane dialog box (and also change the font of the message, but I think I figured that one out). Here's the code.... JLabel la

  • Do I need Digital

    Hi folks,???just a quick question but do I need digital I/O for a Creative Xtrememusic card?I want to run a digitial connection from my sound card to my receiver, Sony STR-DA3200ES. I had tried to use a optical TOSLINK cable with a 3.5mm jack on the

  • Safari window won't stay at corrected size

    Every time I resize the window, when I exit Safari and reenter the window contracts back to it's original size which does not fill the entire screen. Any help on this will certainly be appreciated.