cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Restrict Number of Bank Data

0 Kudos

Hi Experts,

I am new to Webdynpro ABAP.

We are using NW7.3 and I have been given a requirement to restrict the user from entering more than 3 bank details. That is I have to hide the Add bank data button on the personal profile page of the user.

Also let me know if I have to move this post to some other topic.

Kindly help me out on how I can do that.

Regards,

Porselvan

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

there is a bad HRPAD00INFTYUI.i available for this , you can have a check here as explained

http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2012/06/13/summary-of-configuration-...

0 Kudos

Thank you for your info. Will look into the link and get back to you for additional help.

Answers (3)

Answers (3)

0 Kudos

Hi,

For Feeder class which interface should I implement.

It seems the button 'Other bank' does not fall in both FORM_UIBB or LIST_UIBB.

How can I proceed with this.

Also help me with any good materials.

Kindly help me out.

Regards,

Porselvan

Former Member
0 Kudos

Once clicked on the link, we need to show form, so it uses the Form UIBB.

Other back comes from the use case/subtype config, you need not write any code for other bank, SAP has implemented it.

0 Kudos

Hi Yugandhar,

In my case the number of other banks should be limited to 2. So I am not sure which usecase and timeconstraint I should chose. As u told I cannot set max limit to it. I am not sure how to go ahead with this functionality.

Please help me out.

Regards,

Porselvan

Former Member
0 Kudos

For that you have to implement the badi as suggested by Sidh (HRPAD00INFTYU), did you implement it. I think with that badi you can restrict, if its not helping you can get back to us so that Sidh can suggest you.

0 Kudos

Hi Yugandhar,

I will try implementing the BADI and get back to you for issues.

Regards,

Porselvan

0 Kudos

Hi Yugandhar

My understanding is through BADI, I can restrict addition of data in the table but is it possible to hide the field through this BADI.

Also how to you display error message in portal through this BADI.

Regards,

Porselvan

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

fields can be hidden via table V_T588MFPROPC too or of course coding in the Webdynpro component and hide it in UIBB or use personalisation etc

HRPAD00INFTYBL

for error message add to the message handler

for example

  DATA: msg TYPE symsg,

        lv_msg_dummy TYPE string,

        lt_field_list TYPE hrpad_field_tab.



  FIELD-SYMBOLS: <lv_infty>                TYPE infty,

                 <lv_iban00> TYPE hrpad_iban00.



* ensure code is only excuted for infotype 0009

  ASSIGN
COMPONENT
'INFTY' OF STRUCTURE pnnnn TO <lv_infty>.

  IF sy-subrc = 0 AND <lv_infty>
= '0009'.

****** here, also add code to only execute this
code for certain MOLGAs or subtypes*******




    ASSIGN
COMPONENT
'IBAN00' OF STRUCTURE screen_structure TO <lv_iban00>.

    IF sy-subrc = 0 AND <lv_iban00>
IS INITIAL.

      IF 1 = 0.

        "016
Please enter an IBAN


        MESSAGE e016(pg) WITH 'Please enter an
IBAN'
.

      ENDIF.

      msg-msgid
= 'PG'.

      msg-msgty
= 'E'.

      msg-msgno
= '016'.

      msg-msgv1
= 'Please enter
an IBAN'
.

      APPEND 'IBAN00' TO lt_field_list.

      CALL
METHOD
message_handler->add_message

        EXPORTING

          message    = msg

          field_list = lt_field_list

          cause      = if_hrpa_message_handler=>infotype_specific.

    ENDIF.

  ENDIF.

0 Kudos

Hi Experts,

I got info from my functional consultant that we can restrict the number of banks with the option in IMG

as per below.

The following node in SPRO tcode can be checked to maintain the specified number of entries per Info Type in ESS. Eg. You should be able to maintain 2 bank accounts per employee using this option.

Go to following path in SPRO.

Maintain the entries in this table as per requirement to ensure only 2 Bank Accounts can be maintained per employee.

SAP Help Page :

http://help.sap.com/erp2005_ehp_03/helpdata/en/c0/7eef4a17a2407fa5a7be0601f74401/frameset.htm

Kindly let me know if it is possible and what changes should I make there to make this possible.

Thank you for your kind support.

-Porselvan

Former Member
0 Kudos

In this table i.e. subtype table you can only specify subtpes for an infotype i.e.

you can have subtype 0 for main bank, subtype 1 for other banks, subtpe 2 for travel expenses, some thing like those. You can define multiple subtypes.

And for each subtype, we need to define the use case too here.  Based on the use case, you can either have 1 bank or multiple banks for that subtype. Its like 1 bank or multiple banks per subtype.

If we select use case allowing multiple banks, then there is no option in this config to set max banks as 3 or 4 or some thing like that.

So you need to implement the badi as suggested by Sidharth where you can implement or specify or restrict the max number for banks user can create for that subtype.

0 Kudos

Hi,

For Feeder class which interface should I implement.

It seems the button 'Other bank' does not fall in both FORM_UIBB or LIST_UIBB.

How can I proceed with this.

Also help me with any good materials.

Kindly help me out.

Thanks,

Porselvan

Former Member
0 Kudos

Hi,

What exactly are facing problem.You are using EHP4 or EHP5.Kindly send me screen shot.I will help you.

Thanks

Sivavardhan

0 Kudos

Hi,

Thank you for your quick response.

Problem for me is I am not so much into Webdynpro ABAP and I am not able to identify where exactly is the corresponding view in WDA. And I need to hide the button if the user has added 3 bank details.

Have attached the portal snapshot.

Regards,

Porselvan

Former Member
0 Kudos

The buttons are displayed based on the use case config of subtype table.

But there we cant specify the limit.

try these options:

1. See if there is any badi available

2. Might be you need to copy over the feeder class and make the change i.e. add the validations/restrictions.

0 Kudos

Hi,

Please help me with this issue too.

http://scn.sap.com/thread/3269988

Regards,

Porselvan