Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot Refresh SM37 result screen

0 Likes
1,566

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,455

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

7 REPLIES 7
Read only

SimoneMilesi
Active Contributor
0 Likes
1,455

Hi,

without knowing the code under the hood of "refresh button" it's pretty hard to help you 😕

Read only

0 Likes
1,455

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.

Read only

0 Likes
1,455

l_t_jobs_b and l_t_jobs are filled in debug? If not, you got a SY-subrc <> 0?

Read only

0 Likes
1,455

Hi,

I got it as 0 only.

Regards

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,456
Read only

0 Likes
1,455

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

Read only

0 Likes
1,455

So you need to look deeper in those function modules/groups to find how they perform, some debug of refresh execution in standard seems required ?

Regards,

Raymond