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

URL Generation for application 'HRRCF_A_REG_APPLWIZARD_EXT'

Former Member
0 Kudos
296

Hi,

I have CAND Object, PINST, Applicaion and Application Configration Id. I need to generate URL to call External Registered Application Wizard.

When i use below code to generate URL and click, the Log on Page is triggred where Applicant needs to enter Email id, password and click login to get to the Application Wizard.

We are sending the URL to Applicants Inbox and they use this URL to apply Jobs. Since we are sending the URL to Applicant Inbox, Log on page is redundant.

Do anyone know how to generate URL which doesn't trigger Log On Page?

...Naddy

lv_application  = 'HRRCF_A_REG_APPLWIZARD_EXT'.
lv_config_app = lv_application.

* generate URL for application wizard

  ls_param
-name = 'POST_INST_GUID'.

  ls_param
-value = i_f_pinst.

 
APPEND ls_param TO lt_param.



  ls_param
-name  = 'cand_hrobject'.

  ls_param
-value = i_f_cand_object.

 
append ls_param to lt_param.



* call BAdI for application wizard -> retrieve wd app config id

 
TRY.

*         call badi for manipulation of letter content

*         this might be necessary due to the receiving mail provider

     
GET BADI lo_badi.

     
IF lo_badi IS BOUND.

       
TRANSLATE lv_config_app TO LOWER CASE.

       
CALL BADI lo_badi->determine_appl_config

         
EXPORTING

            iv_pinst_guid    
= lv_post_inst_guid

            iv_wd_application
= lv_config_app

          RECEIVING

            rv_config_id     
= lv_wd_config_id.

     
ENDIF.

   
CATCH cx_badi_not_implemented.                      "#EC NO_HANDLER

*     No BADI implementation found

     
CLEAR lv_wd_config_id.

 
ENDTRY.



 
IF lv_wd_config_id IS NOT INITIAL.

    ls_param
-name = lc_wd_config_id.

    ls_param
-value = lv_wd_config_id.

   
APPEND ls_param TO lt_param.

 
ENDIF.



  cl_hrrcf_wd_services
=>construct_wd_url(

   
EXPORTING

      iv_application_name
= lv_application

      it_parameters      
= lt_param

    RECEIVING

      rv_url             
= lv_url ).

Accepted Solutions (0)

Answers (1)

Answers (1)

NicoleGeischnek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Naddy,

As long as you use service HRRCF_A_REG_APPLWIZARD_EXT, the SICF logon settings of this service will be called and hence, you have the prompt for logging on.

We have the activity 'invite to apply' which I think is doing the same thing you mentioned but of course, also service posting_apply will handle logon prompts.

Regards

Nicole

Former Member
0 Kudos

You mean, Log on page is triggered because of SICF settings and no way to avoid it.

...Naddy

NicoleGeischnek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Naddy,

Exactly, as long as you use the standard service for that, no.

Regards

Nicole

Former Member
0 Kudos

Thanks for the confirmation, Nicole!

I will not modify the standard service because it is used in other place as well.

Is it possible to create one custom SICF Service for this requirement? if yes, what settings needs to be adjusted to skip log on page? How the applicant object is determined? from the CAND OBJECT URL parameter?

...Naddy

NicoleGeischnek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Naddy,

If you use eg. the 'invite to apply' activitiy, the URL attribute &POSTING-OVERVIEW_APPL_URL& is used which is generated in CL_HRRCF_CS_DOC_CAT_APPL=>PREPARE_DATA(). You will have to make sure that your service is taken in the generation of the URL attribute in the smartform. The logon settings will be done then in SICF.

Regards

Nicole

Former Member
0 Kudos

I will check your option. Which settings needs to done in SICF service?

...Naddy

NicoleGeischnek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Naddy,

Standard.

Regards

Nicole