cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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

0 Likes
View Entire Topic
asif_cosar
Newcomer

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

Murugan1
Discoverer
0 Likes
Thank you @asif_cosar. This approach helped me and avoided the deletion and recreation of the JT and JC
getnikhilk
Product and Topic Expert
Product and Topic Expert
0 Likes

Dear Asif,

 This approach helped after adding parameter in already existing job. 

Regards,

Nikhil Kulkarni