cancel
Showing results for 
Search instead for 
Did you mean: 

How to concatenate BANKN and BKREF fields in ESS.

Former Member
0 Kudos

Hello Experts,

Hope you all are doing good. I am facing some issues where I need to concatenate both Bank account number and reference field number . When entering data in the backend (ECC) these 2 fields should be concatenated and should be shown in ESS overview page Bank account number field.

I think the coding should be done in HRPADINFTY00BL BADI. But I am not able to get the data in to the HCMT*BSP* structure. Please let me know how to first pass the data through the structure and if there is any sample piece of code then that will be great. I can customize the sample code. Thanks for all your support.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182426
Active Contributor
0 Kudos

This is for which molga your trying to display. Generally BKREF field will not display in standard.

You have to customize the standard component configuration to display these details in overview page.

In your enhancement, add the BANKN and BKREF fields to overview page side by side and make it invisible of label for BKREF field.

If you want concatenate and display it, then you need to have custom field in IT 0009 and update it with concatenate BANKN and BKREF. Then this custom field you need to add in your enhanced component configuration of overview page.

Former Member
0 Kudos

Hi Shankar,

Thanks for your advise.

We have BKREF field available in portal UI structure (HCMT_BSP*XX_R0009). I got your point, as in in order to concatenate both the fields, we need to have an custom field. But as a part of coding do we need to do the coding in HRPAD*BL BADI or the UI BADI. If you have any reference code snippet, then that will be really helpful.

Regards,

Priti

former_member182426
Active Contributor
0 Kudos

Generally bank details will be updated by hr admin only. employee will have only display access.

No need to write any code. It will show automatically.

Former Member
0 Kudos

Hi Shankar,

No actually to concatenate both BANKN and BKREF filed to a custom field we need to write some . If you can share the code snippet , then it would be really helpful.

Regards,

Priti

former_member182426
Active Contributor
0 Kudos

this coding part you can do it in ecc itself in user exit PBAS0001. so when ever in ecc the record is created you can update this field with the BANKN and BKREF field values.

Sample code is like below. take technical consultant help.


IF   innnn-infty EQ '0009'.

DATA: i0009       TYPE p0009.

     CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
       EXPORTING
         prelp = innnn
       IMPORTING
         pnnnn = i0009.
CANCATENATE BANKN BKREF INTO i0009-<Zfield>


     
     CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
       EXPORTING
         pnnnn = i0009
       IMPORTING
         prelp = innnn.

ENDIF.

Former Member
0 Kudos

Thanks Shankar for the help. But we need this newly concatenated field to be displayed only in ESS (Personal Profile). We don't need this to be updated in ECC (Backend). So I assume we need to do this coding in HRPADINFTY00BL BADI. Please let me know if my assumption is correct. Thanks for your code snippet.

Regards,

Priti

former_member182426
Active Contributor
0 Kudos

Then in that case you need to implement BADI HRPAD00INFTYUI.

Write logic in method OUTPUT_CONVERSION

Former Member
0 Kudos

Hi Shankar,

Thanks very much for your insight. HRPAD00INFTYUI badi is already implemented. But I think , in this BADI we only define the UI attribute the field property. Also do we need to make any changes in the Feeder class? please let me know if this is the right approach or not. Thank you so very much for your assistance.

Regards,

Pritiman