Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ECC6 - Domain XUBCODE Upper/Lower case

Former Member
0 Likes
1,403

Hi,

In ECC6, I have defined a custom FM as below. The parameter I_PASSWORD references to a dictionary field that is case sensitive (domain XUBCODE). When I pass a lowercase password to the FM, it is always converted to uppercase. It should be whatever case the password is. Do you have the same problem and please let me know how to correct it.

Thanks and Best regards,

Chuong

*"----


""Local Interface:

*" IMPORTING

*" VALUE(I_USER) LIKE SY-UNAME

*" VALUE(I_PASSWORD) LIKE RSYST-BCODE

*" EXPORTING

*" VALUE(O_PASSWORDEXPIRED) LIKE BAPIHROBJ-OPERATOR

*" TABLES

*" T_LOGIN_NAME STRUCTURE ZBAPISBLOGIN

*" T_RETURNTBL STRUCTURE BAPIRET2

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,322

Hi

SAP entries always taken in UPPERCASE.

try declaring as below

pwd LIKE RSYST-BCODE LOWER CASE DEFAULT 'xxxxx'

10 REPLIES 10
Read only

Former Member
0 Likes
1,323

Hi

SAP entries always taken in UPPERCASE.

try declaring as below

pwd LIKE RSYST-BCODE LOWER CASE DEFAULT 'xxxxx'

Read only

0 Likes
1,322

Hi.

Sorry but you are incorrect. It is a SAPGUI property that makes the display of your input as upper case when it infact is not!

IWhen you test your function module, be sure to check the checkbox "Uppercase/Lowercase" in the testing screen in SE37. Then you will see (in debug as well) that the function module treats the text as case sensitive. (mixes of upper and lower case)

Best Regards

Niklas

Read only

0 Likes
1,322

Hi Nihi,

In ECC6, password can be all lower case, upper case or a mix of both. I would like the FM to return the same password passed to it.

Please help,

Chuong

Read only

0 Likes
1,322

Hi Nirre,

You are right. I am 95% of solving the problem. How do I set the uppper/lower case box when calling the FM from a program?

Chuong

Read only

0 Likes
1,322

Hi again.

Just create a new program with the following code:


PARAMETERS: p_pass TYPE RSYST-BCODE.

* Call function module
CALL FUNCTION 'Z_WHATEVER'
  EXPORTING
    i_user            = '11111'
    i_password        = p_pass
  IMPORTING
    o_passwordexpired = lv_exp
  TABLES
    t_login_name      = lt_?
    t_returntbl       = lt_?.

And you will send the password in case sensitive to the FM

/Niklas

Read only

0 Likes
1,322

This FM is called from a Portal Java front-end. Do you know how to correct it?

Please help,

Chuong

Read only

0 Likes
1,322

Then there is no problem.

As long as the input field in the portal is case sensitive (which it is if it is defined as a password field) then you are all done I would say.

/Niklas

Read only

0 Likes
1,322

Hi Nirre,

thanks a lot new thing for me... all the while i was in wrong notion...

chuong,

i don't know how to pass mixed cases from java portal to FM..

usually we do this way in ABAP..

parameters: user(30) type c low

pwd(30) type c lowe

slen = strlen( pwd ).

call function 'HTTP_SCRAMBLE'

exporting

source = pwd

sourcelen = slen

key = key

importing

destination = pwd.

call function 'FTP_CONNECT'

exporting

user = user

password = pwd

host = host

rfc_destination = dest

importing

handle = hdl.

Read only

0 Likes
1,322

Thank you very much Nirre. I will ask the Java deleloper to check it and will let you know. Points will be rewarded.

Much appreciated!

Chuong

Read only

0 Likes
1,322

The problem comes from Java program that does not pass case-sensitive password.

Thank you,

Chuong