cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Application Job parameters do not refresh

felix_grab
Explorer
0 Kudos
2,517

Hello experts,

I have created an application job template and application job catalog entry using ADT in Eclipse. Therefore I used the method GET_PARAMETERS of the Interface IF_APJ_DT_EXEC_OBJECT. At first I only added the first selection parameter (SO_WERKS) and created an application job for it, which was running quite fine. Later I added additional parameters, so that it loos now like this:

  METHOD if_apj_dt_exec_object~get_parameters.

    "# Return the supported selection parameters here
    et_parameter_def = VALUE #(
      ( selname = 'SO_WERKS' kind = if_apj_dt_exec_object=>select_option datatype = 'C' length = 4 param_text = 'Werk' changeable_ind = abap_true )
      ( selname = 'SO_MATNR' kind = if_apj_dt_exec_object=>select_option datatype = 'C' length = 40 param_text = 'Materialnummer' changeable_ind = abap_true )
      ( selname = 'SO_BERID' kind = if_apj_dt_exec_object=>select_option datatype = 'C' length = 10 param_text = 'Dispobereich' changeable_ind = abap_true )

       ).

    "# Return the default parameters values here
    et_parameter_val = VALUE #(
      ( selname = 'SO_WERKS'    kind = if_apj_dt_exec_object=>select_option sign = 'I' option = 'EQ' low = '2000' )
      ( selname = 'SO_MATNR'    kind = if_apj_dt_exec_object=>select_option sign = 'I' option = 'EQ' low = 'FGR_ROH' )
      ( selname = 'SO_BERID'    kind = if_apj_dt_exec_object=>select_option sign = 'I' option = 'EQ' low = '1000' )

      ).

  ENDMETHOD.

But even, when I refresh or activate all the different objects (template, catalog entry, implementing class,...) the additional parameter are not shown.

felix_grab_0-1710411995416.png

Is there any way to trigger a refresh of the parameters later?

Thanks and greetings

Felix

Accepted Solutions (1)

Accepted Solutions (1)

michael_szardenings
Product and Topic Expert
Product and Topic Expert

Hello, a refresh button will be available next release. Currently, for such changes the object must be deleted and created again.

felix_grab
Explorer
0 Kudos
Hello, thanks for the answer. So, this will be available in the next public cloud release and the next private cloud release? Greetings Felix
felix_grab
Explorer
0 Kudos
And second question: we tried to create an application job, let the job run, deleted the catalog entry and the template, and recreated them with the same name as before. But then the job could not be planned once again, because of the error "Zustand der Ressource (Entität) wurde bereits geändert (If-Match)". Is it not possible to recreate it with the same name?
Bohdan
Active Contributor
0 Kudos

Hi @michael_szardenings ,

Thank you for suggestion, it helped and probably saved me a couple of hours for debugging ! Just in case, if someone is also looking at this issue, I had to delete & recreate both: application job catalog & application job template. Recreation of job template only, did not help me.

P.S. Though it looks as a valid workaround, I tend to consider it as a bug. It would be fine if SAP could fix it in future.

Regards,

Bohdan

Answers (3)

Answers (3)

asif_cosar
Newcomer
0 Kudos

Hello together,

there is an easier workaround without deleting and recreating:

In your Application Job Catalog Entry delete the check class, activate, then paste it again and activate. Then everything gets refreshed.

And yes it took me hours to find it...

Best Regards,
Asif

michael_szardenings
Product and Topic Expert
Product and Topic Expert
0 Kudos

Deletion and re-creation should work. Probably you were in the App in parallel. If the issue persist, please open an incident.

felix_grab
Explorer
0 Kudos

Hello, yes we are currently also seeing no other way then deleting and recreating... but especially for addons it would be nice, if we could refresh it with the current data, and not having to recreate it. So hundreds of cutomers would have to change their jobs after an update...