Bp_job_select_sm37b

using BP_JOB_SELECT_SM37B i tried to get the current scheduled jobs with running status.
the parameter i tried to pass is
exporting parameter
jobselect_dialog = 'N'.
jobsel_param_in = ld_jobsel_params
importing parameter
jobsel_param_out = ld_jobsel_params
tables
jobselect-joblist_b = gt_joblist_b[]
ld_jobsel_params-jobname = '*'
ld_jobsel_params-username = 'kvaralak'
ld_jobsel_params-from_date = sy-datum
ld_jobsel_params-to_date = sy-datum
ld_jobsel_params-eventid = *
ld_jobsel_params-running = 'X'
when i run this FM everytime the returning table is empty

Try to populate the structure ld_jobsel_params as shown below:
d_jobsel_params-jobname = '*'
ld_jobsel_params-username = 'kvaralak' << User name should be uppercase
ld_jobsel_params-from_date = sy-datum
ld_jobsel_params-to_date = sy-datum
ld_jobsel_params-NO_DATE     = 'X'.
ld_jobsel_params-WITH_PRED   = 'X'.
ld_jobsel_params-eventid = ** << Comment out this field
ld_jobsel_params-running = 'X'
Regards,
Joy.

Similar Messages

  • Sap report to view the scheduling

    Can you please tell me the name of the report which can view the schedule and time of background jobs which we can run on se38.

    Hallo,
    I couldn't find a report such as the one you are looking for, but came accross a Function Mobule BP_JOB_SELECT_SM37B that, if you fill in the field JOBSELECT_DIALOG with the character Y, its excecution bring you to the familiar SM37 screen. You should check how to use it. If you want to produce a list, maybe you can find a way to launch it in background.
    I played a bit with it, but unfortunately couldn't get a usefull list...
    Good, luck!

  • Function module to monitor Job Status (SM37)

    Is there a function module or a table that I can use to monitor JOB STATUS in BW?
    Thanks in advance!
    Cristina.

    Hi Cristina,
    they are two alike SM37 giving you back the result in a table; very powerful:
    BP_JOB_SELECT_SM37B            Select Background Requests 
    BP_JOB_SELECT_SM37C            Extended Job Selection     
    goto se37 with one of these. Testing mode: enter A for dialog mode. Perform some selections and execute.
    Check the result and how the system has populated the import parameters.
    let me know if that's what you wanted
    Olivier.
    Message was edited by:
            Olivier Cora

  • Functional module to read job execution

    Hello all,
    Is there exists any functional module with which I can know whether a background job has ran successfully?
    Thanks and Regards, Pradeep

    Hi
    check the following related to JOB
    BP_AL_ABORTED_JOB_REP
    BP_CALCULATE_NEXT_JOB_STARTS
    BP_CHANGE_JOB_STEP
    BP_DELETE_JOB_STEP
    BP_FIND_JOBS_WITH_PROGRAM
    BP_INSERT_JOB_STEP
    BP_IS_JOB_ACTIVE_IN_WP
    BP_JOBLIST_PROCESSOR
    BP_JOBLIST_PROCESSOR_SM37B
    BP_JOBLIST_STATUS_GET
    <b>BP_JOBLOG_READ
    BP_JOBLOG_SHOW</b>
    BP_JOBLOG_SHOW_SM37B
    BP_JOBVARIANT_OVERVIEW
    BP_JOBVARIANT_SCHEDULE
    BP_JOB_ABORT
    BP_JOB_ACTIVE
    <b>BP_JOB_CHECKSTATE
    BP_JOB_CHECKSTATE_SM37B</b>
    BP_JOB_CHILDREN_GET
    BP_JOB_COPY
    BP_JOB_CREATE
    BP_JOB_DELETE
    BP_JOB_EDITOR
    BP_JOB_GET_PREDECESSORS
    BP_JOB_GET_SUCCESSORS
    BP_JOB_HEADER_MODIFY
    <b>BP_JOB_MAINTENANCE</b>
    BP_JOB_MAINTENANCE_SM37B
    BP_JOB_MAINTENANCE_SM37C
    BP_JOB_MANAGEMENT
    BP_JOB_MODIFY
    BP_JOB_MONI
    BP_JOB_MOVE
    BP_JOB_PARENT_CHILD_INFO
    <b>BP_JOB_READ</b>
    BP_JOB_RELEASE
    BP_JOB_SELECT
    BP_JOB_SELECTION_SWITCH
    BP_JOB_SELECT_SM37B
    BP_JOB_SELECT_SM37C
    <b>BP_JOB_STATUS_GET</b>
    BP_OWN_JOB_MAINTENANCE
    BP_REMOTE_JOB_SELECT
    BP_SET_JOBCLASS_A
    BP_SET_WORKFLOW_JOB_STARTDATE
    BP_SHOW_ABORTED_JOB
    BP_SHOW_JOBLIST
    BP_SHOW_JOB_QUEUE
    BP_VARIANT_USED_IN_JOB
    Reward points for useful Answers
    Regards
    Anji

  • Determine if SAP program is running foreground

    Hello all,
    Is there a way to determine that a program is running in foreground, without adding code to the program to lock the program?
    If the program in question was a custom program, I would add FM ENQUEUE_ESINDX and check the return code.  I need to check whether a standard SAP program, RFFOUS_C, is running in foreground.
    Thanks
    Bruce

    CALL FUNCTION 'BP_JOB_SELECT_SM37B'
        EXPORTING
          JOBSELECT_DIALOG          =
    *     JOBSEL_PARAM_IN           = ' '
    *     ENDDATE                   = '        '
    *     ENDTIME                   = '      '
    *   IMPORTING
    *     JOBSEL_PARAM_OUT          =
        TABLES
    *     JOBSELECT_JOBLIST         =
          JOBSELECT_JOBLIST_B       =
    *   EXCEPTIONS
    *     INVALID_DIALOG_TYPE       = 1
    *     JOBNAME_MISSING           = 2
    *     NO_JOBS_FOUND             = 3
    *     SELECTION_CANCELED        = 4
    *     USERNAME_MISSING          = 5
    *     OTHERS                    = 6
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Use the above function module. In function group BTCH or any other similar one in BTCH.Give no to dialog mode.
    In  JOBSEL_PARAM_IN           supply the jobname which the report will use if run in back ground and .
    In ABAPNAME give the report name. Date give a the presnt dates and times.
    Check the active flag.
    Then run the module.Check the JOBSELECT_JOBLIST table
    If it reurns your report as active it means running in background else
    You report may run in fialog or may not even be running.
    These FMs have a doccumentation 'BP_JOB_SELECT_SM37B' and 'BP_JOB_SELECT_SM37C' in fg BTCH go through them.
    Edited by: Vighneswaran CE on Dec 1, 2010 2:02 AM

Maybe you are looking for

  • Importing IProcurement project in JDeveloper

    Hi, I am using Oracle APPS 11i. My JDEV_HOME_USER = C:\JDev\Jdeveloper9i\jdevbin\jdev\bin I followed all the steps as mentioned in http://oracle.anilpassi.com/running-oa-framework-page-from-jdeveloper-audio-video-demo.html. I copied the $JAVA_TOP/ora

  • Force Cover Flow to use a particular artwork for a tv show?

    I had a mix up with Cover Flow before but that turned out to just be me getting confused with the way it displayed artwork for various series of a tv show. But now it really is taking the ****. The scenario is this, I ripped a tv show from a DVD, sev

  • Installing Mountain Lion from Snow Leopard, Install failed and HD write-locked

    I recently downloaded the mountain lion installer from the App Store and I ran the installer. Stupid person as I am, I did not have any backups for my file and I naively assumed that an apple OS installer would be without flaws. Boy, was I wrong. I n

  • Multiple airport express plug-ins with i-tunes- lose sound after 4 songs

    I have 3 airport express units, a MacBook and 24" IMAC G5 and my music library on a LaCie external hard drive. I have all the latest updates for the airport software on my computers. Now for the problem I want to play my i-tunes library, it is over 5

  • S10, Windows Live Messenger & garbled sound

    My little S10 doesn't seem to have any problems with sounds at all - at least during more normal use.  However, when using Live Messenger, the voice sound that is coming out of the speakers is all horribly garbled and isn't really recognizable.  My o