2016 Mar 11 7:22 AM
Hi Experts,
I have a customer requirement to display SM37 result screen from my custom report for few specific jobs.
BP_JOB_SELECT_SM37B
BP_JOBLIST_PROCESSOR_SM37B
Above two FMs fulfill my requirement but when I click on refresh button on result screen all data wipes out , basically the refresh functionality is not working .
Can you please help me here.
Thanks and Regards,
Shivangi
2016 Mar 11 12:09 PM
Did you find Displaying Jobs in SM37 with function module BP_JOBLIST_PROCESSOR_SM37B?
Regards,
Raymond
Hi Experts,
I have a customer requirement to display SM37 result screen from my custom report for few specific jobs.
BP_JOB_SELECT_SM37B
BP_JOBLIST_PROCESSOR_SM37B
Above two FMs fulfill my requirement but when I click on refresh button on result screen all data wipes out , basically the refresh functionality is not working .
Can you please help me here.
Thanks and Regards,
Shivangi
2016 Mar 11 11:12 AM
Hi,
without knowing the code under the hood of "refresh button" it's pretty hard to help you 😕
2016 Mar 11 2:07 PM
Hi,
Please find the code used below:
l_s_param-jobname = jobname.
l_s_param-username = '*'.
l_s_param-from_date = s_from-low.
l_s_param-from_time = s_to-low.
l_s_param-to_date = s_from-high.
l_s_param-from_time = s_to-high.
l_s_param-prelim = 'X'.
l_s_param-schedul = 'X'.
l_s_param-ready = 'X'.
l_s_param-running = 'X'.
l_s_param-finished = 'X'.
l_s_param-aborted = 'X'.
CALL FUNCTION 'BP_JOB_SELECT_SM37B'
EXPORTING
jobselect_dialog = 'N'
jobsel_param_in = l_s_param
IMPORTING
jobsel_param_out = l_s_param_out
TABLES
* jobselect_joblist = l_t_jobs
jobselect_joblist_b = l_t_jobs_b
EXCEPTIONS
invalid_dialog_type = 1
jobname_missing = 2
no_jobs_found = 3
selection_canceled = 4
username_missing = 5
OTHERS = 6.
IF sy-subrc EQ 0.
APPEND l_t_jobs_b TO l_t_jobs.
ENDIF.
ENDIF.
IF l_t_jobs[] IS NOT INITIAL .
CALL FUNCTION 'BP_JOBLIST_PROCESSOR_SM37B'
EXPORTING
joblist_opcode = '21'
joblist_refr_param = l_s_param
TABLES
joblist = l_t_jobs
EXCEPTIONS
OTHERS = 4.
ENDIF.
IF sy-subrc <> 0.
ENDIF.
2016 Mar 11 2:12 PM
l_t_jobs_b and l_t_jobs are filled in debug? If not, you got a SY-subrc <> 0?
2016 Mar 14 10:31 AM
2016 Mar 11 12:09 PM
Did you find Displaying Jobs in SM37 with function module BP_JOBLIST_PROCESSOR_SM37B?
Regards,
Raymond
2016 Mar 14 10:29 AM
Thanks Raymond.
Appreciate the thread you provided here has solved the issue .But there is a challenge here as the importing parameter ib BP_JOB_SELECT is an structure and I need to provide input as an internal table.
Regards,
Shivangi
2016 Mar 14 12:13 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |