‎2007 Dec 12 2:49 AM
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
‎2007 Dec 12 2:58 AM
Hi
SAP entries always taken in UPPERCASE.
try declaring as below
pwd LIKE RSYST-BCODE LOWER CASE DEFAULT 'xxxxx'
‎2007 Dec 12 2:58 AM
Hi
SAP entries always taken in UPPERCASE.
try declaring as below
pwd LIKE RSYST-BCODE LOWER CASE DEFAULT 'xxxxx'
‎2007 Dec 12 3:02 AM
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
‎2007 Dec 12 3:04 AM
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
‎2007 Dec 12 3:07 AM
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
‎2007 Dec 12 3:13 AM
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
‎2007 Dec 12 3:16 AM
This FM is called from a Portal Java front-end. Do you know how to correct it?
Please help,
Chuong
‎2007 Dec 12 3:21 AM
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
‎2007 Dec 12 3:24 AM
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.
‎2007 Dec 12 3:26 AM
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
‎2007 Dec 17 6:41 PM
The problem comes from Java program that does not pass case-sensitive password.
Thank you,
Chuong