Skip to Content
author's profile photo Former Member
Former Member

CALL FUNCTION error

Hi,

I am using the following call .

CALL FUNCTION 'Z_SD_IT_KONP_TABLE_FILL'

STARTING NEW TASK 'INFO'

PERFORMING return_info ON END OF TASK.

My program works correctly and recieves the data from the above Async RFC . But when my program terminates the other session which is created dumps giving error as CALL_FUNCTION_SEND_ERROR . Does anyone know why this is happening, or does any one know hoe to close a RFC connection.

Kunal

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 08:40 AM

    Kunal,

    Call function errors happens when the parameters that you are passing as export / import from the caller program, are not matching the corresponding typs in the FM. check that first.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 08:44 AM

    Hi kunal,

    Try setting a global flag variable to 'X' in your "return_info" subroutine and use the following after your CALL FUNCTION statement..

    WAIT UNTIL <your global flag> = 'X'.

    This will wait till the RFC function is complete and your routine return_info is processed.

    For example,

    FORM return_info USING taskname.

    RECEIVE RESULTS FROM FUNCTION....

    .....

    gv_rfc_complete = 'X'.

    ENFORM.

    and then after your CALL FUNCTION statement..

    WAIT UNTIL gv_rfc_complete = 'X'.

    Sri

    Message was edited by: Srikanth Pinnamaneni

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kunal,

      Did you try using KEEPING TASK addition RECEIVE RESULTS FROM FUNCTION.. ? I know it will result in degradation of performance but just to check why this is happening..

      Also if you do not specifiy DESTINATION then sytem calls it with DESTINATION 'NONE'..

      How is your WAIT call coded? Is it possible for you to post it here?

      If you find a solution for your problem then please post it here.

      Also check this out..

      <b> Replies to asynchronous calls can only be received if there is a change of roll area (e.g. a screen change) or if you use WAIT (online and in the background).</b>

      Do you have any call screen statements etc in the RFC fm?

      Sri

      Message was edited by: Srikanth Pinnamaneni

      Message was edited by: Srikanth Pinnamaneni

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.