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

RFC

Former Member
0 Likes
727

Hi experts,

I have a zee RFC say Z_sync_passwords.

now using this RFC i have a zee transaction which when run changes the passwords in all the systems i have access to.

In this transaction I have used the rfc in the following way

<b>CALL FUNCTION 'Z_SYNCHRONIZE_CLIENT_PASSWORDS'

DESTINATION WS_RFCDEST</b> " target system (defined with sm59)

EXPORTING

UNAME = SY-UNAME " Userid of user running pgm

BCODE = USR02-BCODE " Password of user in client

CODVN = USR02-CODVN " Code version of encrypt algo

IMPORTING

SYSID = WS_SYSID "target system id passed back

TABLES

INT_T000 = INT_TABL_T000 "client table for client rpt

EXCEPTIONS

UPDATE_ERROR = 1

  • OTHERS = 2 " DVGK900991 Commented out to

" Fix the syntax error

MESS WS_MESSAGE

OTHERS = 2.

CASE SY-SUBRC.

WHEN 0.

<b>Now my problem is for some of the systems.... to which i donot have access to.... it shows me the logon screen (i.e the USER id .... PASSWORD screen)... which should not be the case..... It should directly change the password without showing any screens.</b>

I hope i have put my problem in the easiest possible way

Can any one help me with this......

5 REPLIES 5
Read only

Former Member
0 Likes
693

Hi Rashmi,

As you don't have access to the remote system...and authorization to change the password of a user into that system it is showing you the logon page.

So i think you should be having authorization in every system where you want automatically to change the password when called remotely.

then ofcourse it will change the password without asking to logon but given the fact that you have authorization to change the passwords in that system where you are loggin in..

Reward if helpful,

Regards,

Tejas

Read only

Former Member
0 Likes
693

Hi Rashmi,

You need to have an access to the system where you want to do the changes.

Get the logon id & pwd and it will work.

Best regards,

Prashant

Read only

Former Member
0 Likes
693

hi tejas,

well even it shows some logon screens of the systems to which i have the access to

can u help me

Read only

0 Likes
693

Rashmi...

actually which system are you logging into and which password you want to change???

can u eloberate your query a bit more please so that u can be helped better???

regards,

Tejas

Read only

Former Member
0 Likes
693

Hi Rashmi,

If you have the access to the system, then it will directly change the passwords, if you do not have the access, then it will definelty shows the logon screen and it will give the error that you do not have the access, if you run this in the background, then an error message will be generated and print the error message saying 'Do not have the authorization' or else, it is better to contact the basis people, and ask them, they will give you the dummy user id and passwords which will have the access and you can change the passwords using this ID's

Regards

Sudheer