2008 Jun 25 10:09 AM
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
2008 Jun 25 10:14 AM
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
2008 Jun 25 10:17 AM
hi,
generally this statement is used to call a function module which is in another server through RFc connection.
2008 Jun 25 10:18 AM
Hi Ajay,
Please check the values being exported to the Function module which might be causing the problem.
Warm Regards
R Adarsh
2008 Jun 25 6:01 PM
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
2008 Jun 25 8:42 PM
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.