cancel
Showing results for 
Search instead for 
Did you mean: 

How to passing lowercase values to RFC/BAPI using webdynpro for JAVA

Lee3
Active Participant
0 Kudos

Hi Exerts,

When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.

So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?

Thanks in advance,

Joeri

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Joeri,

Please print the value of the input field below passing to backend to check whether the value is in uppercase or lowercase. if it uppercase then you need to modify to as lowercase before passing to backend RFC/BAPI.

Hope it will helps

Regards

Arun Jasiwal

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can use toUpperCase() and toLowerCase() methods to change the case according to your requirements.

RV

Former Member
0 Kudos

Hi,

There could be two possibility if you are storing this value in ABAP table.

1. You are entering value in UPPERCASE in your webdynpro application.

2. The data stored in ABAP table, converts value in small to upper case.

1. Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???

Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI

e.g String name = wdContext().currentContextelement().getName().toLowercase();

Now pass this name to RFC/BAPI is should go as lowercase only..

This is from webdynpro java side..

2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.

There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.

Hope this information helps guy ..!!!!

Regards,

Jigar

Lee3
Active Participant
0 Kudos

Hi Jigar,

1) yes the user entering his name and lastname (this is binded to some context field and this value is passing through RFC/BAPI):

example:

Joeri

de Voijs

but what passed is:

JOERI

DE VOIJS

The exact entry of the user must pass to.

2) at ABAP site the domain type is CHAR and lower case

gr

Joeri

Former Member
0 Kudos

Hi Joeri,

Hve you created any simple type in the webdynpro application and bound it to the context attribute? If yes, check its representation.

Thanks and Regards,

Shyam,

Lee3
Active Participant
0 Kudos

Hi Shyam,

I can not check the representation. I can see the simple types in the Composite Application Explorer, but can not see the representation.

gr

Joeri

Former Member
0 Kudos

Hi,

In the properties of the corresponding context attribute, check its data type. If it is of a simple type declared in the application, then you will have to check the properties of the simple type.

I cannot understand when you say that you cant check the representation.

Regards,

Shyam.

Lee3
Active Participant
0 Kudos

Hi,

it's a external simple type from ECC.

gr

Joeri

Former Member
0 Kudos

Hi,

Ask Abaper to check the data type representation in ECC and chagne according to ur requirement from backend side.

Regards

Lakshmi

Lee3
Active Participant
0 Kudos

Hi Lakshmi,

at abap side it's lowercase, we convert the uppercase to lowercase and change the first character to uppercase.

But when the value is ggHHjj then it wil convert to Gghhjj, that is not, what we want. The exact entry must be stored.

gr

Joeri

Former Member
0 Kudos

Hi Joeri,

at abap side it's lowercase, we convert the uppercase to lowercase and change the first character to uppercase.---this case conversion in at ABAP or from your application..?

if there is no logic for the case and if you try to print the value of UI, you will get the same output as you have entered.

Deepak!!!

Lee3
Active Participant
0 Kudos

Hi Deepak,

the convertion is on ABAP site because somewhere the entry is convert to uppercase. The question is where is the enry change to uppercase en why? Is an entry always convert to uppercase by passing through RFC/BAPI?

In the webdynpro there are some input fields, the fields are binding to the external simple types from the ECC backend.

The domain type of the variable in the ABAP table is char and lowercase, but still the values are stored in uppercase.

gr

Joeri

Former Member
0 Kudos

Hi

Please print the values before and after model execution method.

then you will know where this data is manipulated to upper case. I feel simple types having upper case representation,thats why these values changes to upper case before sending backend.

Regards

Lakshmi