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

Errors while calling the RFC FM

Former Member
0 Likes
1,351

hi,

i have done a rfc call function as

CALL FUNCTION 'Z_RFC_UPDATE_ZSERNUM'

DESTINATION 'WMSDEV010'

importing matnr = sernum-matnr

serno = sernum-serno

delno = sernum-delno

delli = sernum-delli

cusno = sernum-cusno

cuspo = sernum-cuspo

saleo = sernum-saleo

salli = sernum-salli

shipd = sernum-shipd

tables ser_date = ser_date ser_time = ser_time .

in my WMSDEV system , my fm is there, where i have passed

all the importing parameter as

pass by value and in tables parameter the 2 table,but while

debugging, if i am going to press

F5 in the Call statement,instead of taking me to the function module,it is taking me to the

next line of the code,but the value of sy-subrc = 0.

any idea...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,006

Check the user assigned to RFC destination WMSDEV010. If you want to debug the FM in the remote system this destination must have a dialog user assigned (with proper authorization). Normally system users will be assigned to these kind of destinations.

Regards,

John.

5 REPLIES 5
Read only

Former Member
0 Likes
1,006

Hi priya

first checak whether you have passed the rite values i.e fields in the call function module. there are certain fields which you cannot change, that might be the problem.

Regards

Divya

Read only

Former Member
0 Likes
1,007

Check the user assigned to RFC destination WMSDEV010. If you want to debug the FM in the remote system this destination must have a dialog user assigned (with proper authorization). Normally system users will be assigned to these kind of destinations.

Regards,

John.

Read only

0 Likes
1,006

hi john,

how to check the dialog user assigned?

Read only

0 Likes
1,006

Hi Priya,

Use transaction SM59 and look for the RFC destination; click tab logon and security. You will find the user there. Then go to the remote system and check if this user is dialog user (transaction SU01).

Regards,

John.

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,006

Hi Priya,

In this way u can't debug RFC. It will not go in side the RFC even if u press F5. It is similar to a FM call with UPDATE TASK.

If u call a FM in UPDATE TASK u can't debug unless in

menu=> setting=>Update debugging is selected.

Similarly there is some tool to debug RFC FM. Check that.

Also after calling ur FM r u getting proper values i mean is the functionality of FM is working or not?

Thanks,

Vinod.