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

Calling a RFC Function Module

Former Member
0 Likes
2,681

Hello Guys,

I have a question regarding calling a RFC function module.

In BW - BI 7.0 I call a RFC function module:

(The ABAP program in BW-BI 7.0 is below)

CALL FUNCTION ''ZTESTFUNCTIONMODULE' " Function module in ECC

DESTINATION 'DECCLNT110' " ECC system

TABLES

it_gl_item = it_gl

it_errlog_gl = it_errlog_gl.

The 'ZTESTFUNCTIONMODULE' is RFC enabled in the ECC system.

The purpose is we retarct the data from BW to ECC.

When I run the function module it always asks for the user id and password.

The SAP logon screen appears and it asks for the user id and password.

The destination is maintained in the SM59 transaction and also the user is maintained there. I think it should login automatically into remote system and return the tables. is it correct. How to skip the logon screen.

Do I have to pass the user id and password in the function module. I think it should take the user id from the SM59 destination. Is it correct.

Please advise. As always thanks for your help guys.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
981

Hi,

In the SM59 transaction...there is a radio button to say YES for trusted system..I think if you check that...it will not ask for logon screen..

Thanks

Naren

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
981

Check your RFC destination again in SM59.

Under the tab "Logon /Securtiy"

1. You must have active user and its password along with language and client.

2. Checkbox "Logon Screen" must be off

Save and try again.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
981

Hi Senthil,

I think you answered your query in your question itself

The user ID and password need to be maintained in RFC destination in SM59.

Go to SM59 and then click on test connection..if it does not ask for ID and passwoed that means correct ID and password is maintained in SM59 otherwise maintain it.

Regards,

Atish

Read only

Former Member
0 Likes
982

Hi,

In the SM59 transaction...there is a radio button to say YES for trusted system..I think if you check that...it will not ask for logon screen..

Thanks

Naren

Read only

0 Likes
981

Thanks to all .

The issue is password is different in ECc and BI.

Now it is solved.

Again thanks guys.

Read only

Former Member
0 Likes
981

no longer relevant