cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.StringIndexOutOfBoundsException: String index out of range: 4

Former Member
0 Kudos

Hello,

I'm trying to configure webdynpros for ESS in SAP EP 7. I've a problem in Personal Information: Personal Data. I get the following error:

"java.lang.StringIndexOutOfBoundsException: String index out of range: 4"

Please, do you know something about that?

Thanks&Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You will need to inspect the logs for an exact point to the error you are getting and also the context to be able to make an exact determination as Out of Bounds exceptions in Java are fairly broad in the context that they are delivered in especially if the error occurs within a parameter pass function.

Venturing a guess however, would lead me to consider that any reference that the application has on one of the items in your personal data fields is referencing a field that is:

1.) Either not populated

2.) Larger than 4 chars

This could be that your application is attempting to substr text that is either too small, or you are dynamically setting an index that is too large, thus resulting in your index out of bounds.

I trust that helps.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

At the end I suppose the problem was solved by SPRO customizing.

Thanks

Former Member
0 Kudos

Hi Belen,

I am facing the same problem. Can you tell me what you did in SPRO?

Thanks.

Sathya

michael_benner
Participant
0 Kudos

Hi Belen,

I've also the same problem. Can you tell me what you did in SPRO?

Thanks.

Michael

Former Member
0 Kudos

Hi Michael,

You need to add a entry (usecase ) in the view V_T577**** not sure.

Former Member
0 Kudos

Belen,

Can you please tell me what changes did you make in SPRO to fix this issue. I have the same problem and I would appreciate your help here.

Thanks,

Vivek.

Former Member
0 Kudos

Hi Vivek,

You need a add a entry for the infotype in the view "V_T7XSSPERSUBTYP".

Example for Personal Data:

Country Code : 05

Infotype: 0002

Subtype : <if required>

Usecase : <Select any one of them say "A1"

Cheers,

sathya

michael_benner
Participant
0 Kudos

Hi Sathya,

it works with your entries. Thanks a lot.

Michael.

Former Member
0 Kudos

Hi Sathya,

I am facing also the same problem.

Could you provide me the steps to change entry through SPRO?

Former Member
0 Kudos

HI Mosumi,

You need a add a entry for the infotype in the view "V_T7XSSPERSUBTYP".

Example for Personal Data:

Country Code : 05

Infotype: 0002

Subtype : <if required>

Usecase : <Select any one of them say "A1">

Let me know if this solved ur query.

Cheers,

sathya

Former Member
0 Kudos

Thanx for your reply sathya.

Actually i am looking for the screen where i can make these changes. Could you provide me t-code to get that screen. If it is spro, then inside spro screen, where should i have to go?

Former Member
0 Kudos

Hi ,

It uses a customer exit..

In your portal service configuration... select the service..

com.sap.portal.appintegrator and set

User Exit provider parameter = true.

Regards

Bharathwaj

Former Member
0 Kudos

Hi Belen,

I had once faced a similar problem. Check this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=374040&tstart=0">thread</a> if it helps you.

cheers~

avadh