Application Development 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: 

Destination

Former Member
0 Kudos
118

Hi experts,

Given below is a FM:

CALL FUNCTION 'ABCD'

DESTINATION dest

EXPORTING

im_it = p_it

im_rt = lv_rt

EXCEPTIONS

failure = 1

In this, the variable dest n the export parameter lv_rt contain no value(i.e. they are blank) while i m tryin to call this FM in a report.

The prgram ends in an undesired output bcoz of this.

If i manually insert the entries in these variables during the runtime (debugging), the program runs successfully.

What could be the reason?

<REMOVED BY MODERATOR>

Thanks,

Ajay.

Edited by: Alvaro Tejada Galindo on Jun 25, 2008 3:38 PM

5 REPLIES 5

former_member195383
Active Contributor
0 Kudos
85

put a break point just before the FM and try to see what values are the parameters containing...

See if they are blank..or having wrong value.....and try to rectofy the same...

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jun 25, 2008 3:38 PM

GauthamV
Active Contributor
0 Kudos
85

hi,

generally this statement is used to call a function module which is in another server through RFc connection.

Former Member
0 Kudos
85

Hi Ajay,

Please check the values being exported to the Function module which might be causing the problem.

Warm Regards

R Adarsh

Former Member
0 Kudos
85

Check the function called - as a first guess I would say, that the input is stored either in the function (STATIC) or in the function group as a global variable. If the input is initial the old value might be used else it is overwritten.

Kind regards,

HP

former_member156446
Active Contributor
0 Kudos
85

Hi Ajay

if the dest is blank then lv_rt will also be blank.. its happening becoz its an RFC call and you need to mention which destination that RFC need to go and hit..using destination addition.

check where that dest variable is being filled and make sure the right destination value is assigned to that variable.