Skip to Content

    <%– Salary %></p><p>         <phtmlb:formLayoutInputField id    = “SalaryOffer”</p><pre>                             label = “Salary Offer”</pre><pre>         value = “<%= controller->current_activity_record-zzsalary %>” /></pre><pre>    <% Frequency %></pre><pre>    <phtmlb:formLayoutDropDownListBox id                = “frequency”</pre><pre>                                      label             = “frequency”</pre><pre>                                      nameOfKeyColumn   = “Z_FREQUENCY”</pre><pre>                                      nameOfValueColumn = “TEXT”</pre><pre>         selection         = “<%= controller->current_activity_record-zzfrequency %>”</pre><pre>         table             = “<%= controller->z_frequency_list %>” /></pre><p> </p><p><u>Activity-Extended Offer(UNION)</u></p><p>For the activity Extended Offer Union (1111) the field UNION has to be displayed in addition to the fields displayed for Activity-Extended Offer. </p><ul><li>If it is of type ‘1111′ i.e., Activity ‘Extend Offer(UNION)’ then the field ‘Union’ is displayed on the layout in addition to the field ‘Salary’ and ‘Frequency'</li><li>The following are the attributes for the Input field ‘Salary'</li></ul><table border=”1″ cellspacing=”0″ cellpadding=”0″><tbody><tr><td width=”238″ valign=”top”><p>ID</p></td><td width=”238″ valign=”top”><p>‘Salary'</p></td></tr><tr><td width=”238″ valign=”top”><p>Label</p></td><td width=”238″ valign=”top”><p>‘Salary Offer'</p></td></tr><tr><td width=”238″ valign=”top”><p>ID</p></td><td width=”238″ valign=”top”><p>‘Salary'</p></td></tr><tr><td width=”238″ valign=”top”><p>MaxLength</p></td><td width=”238″ valign=”top”><p>18</p></td></tr><tr><td width=”238″ valign=”top”><p>Size</p></td><td width=”238″ valign=”top”><p>14</p></td></tr><tr><td width=”238″ valign=”top”><p>Value</p></td><td width=”238″ valign=”top”><p>Current_Activity_Record-ZZSALARY</p></td></tr><tr><td width=”238″ valign=”top”><p>Invalid</p></td><td width=”238″ valign=”top”><p>Z_SALARY_INVALID</p></td></tr></tbody></table><ul><li><div>The following are the attributes for the Drop Down List Box ‘Frequency'</div></li></ul><table border=”1″ cellspacing=”0″ cellpadding=”0″><tbody><tr><td width=”238″ valign=”top”><p>ID</p></td><td width=”238″ valign=”top”><p>‘Frequency'</p></td></tr><tr><td width=”238″ valign=”top”><p>Label</p></td><td width=”238″ valign=”top”><p>‘Frequency'</p></td></tr><tr><td width=”238″ valign=”top”><p>Name of Key Column</p></td><td width=”238″ valign=”top”><p>Z_FREQUENCY</p></td></tr><tr><td width=”238″ valign=”top”><p>Name of Value Column</p></td><td width=”238″ valign=”top”><p>TEXT</p></td></tr><tr><td width=”238″ valign=”top”><p>Selection</p></td><td width=”238″ valign=”top”><p>Current_Activity_Record-ZZFREQUENCY</p></td></tr><tr><td width=”238″ valign=”top”><p>Table</p></td><td width=”238″ valign=”top”><p>Z_FREQUENCY_LIST</p></td></tr></tbody></table><ul><li><div>The following are the attributes for the Drop Down List Box ‘Union'</div></li></ul><table border=”1″ cellspacing=”0″ cellpadding=”0″><tbody><tr><td width=”238″ valign=”top”><p>ID</p></td><td width=”238″ valign=”top”><p>‘Frequency'</p></td></tr><tr><td width=”238″ valign=”top”><p>Label</p></td><td width=”238″ valign=”top”><p>‘Frequency'</p></td></tr><tr><td width=”238″ valign=”top”><p>Name of Key Column</p></td><td width=”238″ valign=”top”><p>Z_FREQUENCY</p></td></tr><tr><td width=”238″ valign=”top”><p>Name of Value Column</p></td><td width=”238″ valign=”top”><p>TEXT</p></td></tr><tr><td width=”238″ valign=”top”><p>Selection</p></td><td width=”238″ valign=”top”><p>Current_Activity_Record-ZZUNION</p></td></tr><tr><td width=”238″ valign=”top”><p>Table</p></td><td width=”238″ valign=”top”><p>Z_UNION_LIST</p></td></tr></tbody></table><p> </p><p>*NOTE: *The table Z_FREQUENCY_LIST and Z_UNION_LIST are attributes added to the Controller Class CL_HRRCF_ACT_PROC_DTLS_SCORR_V as part of the Enhancement Spot option provided by SAP</p><p>The following code is added and the additional field is reflected in the layout  </p><pre>   <% IF controller->CURRENT_ACTIVITY_RECORD-ACT_TYPE = ‘1111’. %></pre><pre>  <% Union %></pre><pre>    <phtmlb:formLayoutDropDownListBox id                = “union”</pre><pre>                                      pos               = “row=0,col=+3″</pre><pre>                                      label             = “union”</pre><pre>                                      nameOfKeyColumn   = “Z_UNION”</pre><pre>                                      nameOfValueColumn = “TEXT”</pre><pre>     selection         = “<%= controller->current_activity_record-zzunion %>”</pre><pre>     table             = “<%= controller->z_union_list %>” /></pre><pre>    <%  endif.    %>                                                                  </pre><p>*      2.  Enhancement of the controller class CL_HRRCF_ACT_PROC_DTLS_SCORR_V</p><p> </p><p>The following steps are followed to populate the default values for the field ‘Frequency’ and ‘Union’ on the Portal</p><ul><li>The Drop-Down list for the fields ‘Frequency’ and ‘Union’ must be populated with the domain values of ZZ_FREQ and ZZ_UNION respectively. These are displayed on the portal for user selection.  To achieve this following attributes are added to the Controller Class CL_HRRCF_ACT_PROC_DTLS_SCORR_V as part of this Enhancement.</li></ul><p>!https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure8.JPG|height=width: 478px; height: 352px|alt=image|width=550|src=https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure8.JPG|border=0!</p><p> </p><ul><li>Code Snippet* to Display the drop-down list for the field ‘Frequency’ and ‘Union for user selection in the portal</li></ul><p>Check exist_exception( ) eq false.<br /><br />Data : it_dom_values type standard table of DD07V,<br />       wa_dom_values like line of it_dom_values,<br />       wa_frequency_list type ZHRS_FREQUENCY,<br />       it_frequency_list type table of ZHRS_FREQUENCY,<br />       wa_union_list type ZHRS_UNION,<br />       it_union_list type table of ZHRS_UNION.<br /><br />*Fill the Freqency List

check Z_FREQUENCY_LIST is initial.

CALL FUNCTION ‘DD_DD07V_GET’

  EXPORTING

    DOMAIN_NAME          = ‘ZZ_FREQ’

  TABLES

    DD07V_TAB            = it_dom_values

 EXCEPTIONS

   ACCESS_FAILURE       = 1

   OTHERS               = 2

          .

if sy-subrc eq 0.

 loop at it_dom_values into wa_dom_values.

 wa_frequency_list-Z_FREQUENCY = wa_dom_values-DOMVALUE_L.

 wa_frequency_list-TEXT = wa_dom_values-DDTEXT.

 append wa_frequency_list to it_frequency_list.

 clear wa_frequency_list.

 clear wa_dom_values.

 endloop.

 Move it_frequency_list to z_frequency_list.

endif.

Refresh it_dom_values.

–Fill the Union List<br />check Z_UNION_LIST is initial.<br /><br />CALL FUNCTION ‘DD_DD07V_GET'<br />  EXPORTING<br />    DOMAIN_NAME          = ‘ZZ_UNION'<br />   LANGU                = SY-LANGU

*   WITHTEXT             = ‘X’

  TABLES

    DD07V_TAB            = it_dom_values

 EXCEPTIONS

   ACCESS_FAILURE       = 1

   OTHERS               = 2

          .

if sy-subrc eq 0.

 loop at it_dom_values into wa_dom_values.

 wa_union_list-z_union = wa_dom_values-DOMVALUE_L.

 wa_union_list-text = wa_dom_values-DDTEXT.

 append wa_union_list to it_union_list.

 clear wa_union_list.

 clear wa_dom_values.

 endloop.

 Move it_union_list to z_union_list.

endif.

Refresh it_dom_values.

*The user provided values are to be saved to the database table HRP5136. The following steps enable us to achieve the same </p><ul><li>The values provided by the user for the fields ‘Salary’ , ‘Union’ and ‘Frequency’ on the portal must be assigned to the fields ZZSALARY , ZZUNION and ZZFREQUENCY in the Structure CURRENT_ACTIVITY_RECORD.  On clicking the ‘Save and Back’ button in the portal the values in the Structure CURRENT_ACTIVITY_RECORD are updated in the database table HRP5136 automatically</li></ul><p>In order to capture the user provided values for the fields ‘Salary’,’ Frequency’ and ‘Union’ the following code snippet is added to the enhancement spot in the method DO_HANDLE_DATA  :</p><p>!https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure9.JPG|height=width: 477px; height: 442px|alt=image|width=534|src=https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure9.JPG|border=0!</p>DATA ls_form_field_v TYPE ihttpnvp.<br /><br />Salary Offer<br />  READ TABLE form_fields WITH KEY name = ‘salaryoffer’ INTO ls_form_field_v.<br />  IF NOT ls_form_field_v-value IS INITIAL.<br />    if current_activity_record-zzsalary NE ls_form_field_v-value.<br />       current_activity_record-zzsalary = ls_form_field_v-value.<br />  endif.<br />  clear ls_form_field_v.<br />  ENDIF.<br /><br />*Frequency

 READ TABLE form_fields WITH KEY name = ‘frequency’ INTO ls_form_field_v.

  IF NOT ls_form_field_v-value IS INITIAL.

    if current_activity_record-zzfrequency NE ls_form_field_v-value.

       current_activity_record-zzfrequency = ls_form_field_v-value.

  endif.

  clear ls_form_field_v.

  ENDIF.

if current_activity_record-act_type = ‘1111’. ” Extended Offer Union

–union<br /> READ TABLE form_fields WITH KEY name = ‘union’ INTO ls_form_field_v.<br />  IF NOT ls_form_field_v-value IS INITIAL.<br />    if current_activity_record-zzunion NE ls_form_field_v-value.<br />       current_activity_record-zzunion = ls_form_field_v-value.<br />  endif.<br />  clear ls_form_field_v.<br />  ENDIF.<br />ENDIF.<br /><br />  set_activity_record( ). <p> </p><p>Final Output </p><p>Logon to the E-Rec portal with the following URL (as a Recruiter)</p><ul><li>Follow the Path Requisition->Candidate Selection->Assignment as shown below </li><li>Choose a candidate and create activity ‘Extend Offer’ **   </li><li>The following View Appears with the custom fields ‘Salary Offer’ and ‘Frequency’. The Frequency List is displayed with the modified domain values. Provide the values for these fields and click on ‘Save and Close’. </li></ul><p>!https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure13.JPG|height=width: 477px; height: 356px|alt=image|width=548|src=https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure13.JPG|border=0! </p><ul><li>The values are updated in the Custom Fields ‘Salary Offer’ and ‘Frequency’ added  as Append Structure to the table HRP5136 as shown below : *

!https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure15.JPG|height=255|alt=image|width=525|src=https://weblogs.sdn.sap.com/weblogs/images/251883402/Figure15.JPG|border=0!</body>

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply