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

RFC calling issues

Hi,

I have developed RFC function module in R/3 system, with import, export and return parameters.(return parameters are for returning errors).When I execute this RFC function module alone, RFC function module is returning values.and if there is no values found for a given input,it is returning errors in a return table.

It is working fine. if I execute it alone.

When I call this RFC function module from SCM system, it is not returning any values,though the output exist for a given input. it is juct returning blank values. If there is no output exist for a given input, then it is returning erorrs in a return table.

Can anyone please tell me what would be the error.

Thanks&Regards

Rama.Mekala

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jun 17, 2008 at 05:07 AM

    Hi when you call it in a program you need to mention the destination in the function module...

    call function 'RFC_CALCULATE_TAXES_DOC'
    destination cl_vertex
    exporting
    i_sap_control_data = ....

    LETS SEE the code..

    Edited by: Jackandjay on Jun 16, 2008 10:38 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 05:10 AM

    You should call the function module in this way

    data : DEST type RFCDES-RFCDEST.

    call function 'RFC_FM' destination DEST " DEST is the RFC destination name maintained in SM59.

    exporting

    .....

    importing

    .......

    exceptions

    .....

    if sy-subrc <> 0.

    endif.

    Regards

    Gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 06:00 AM

    Hi Rama devi,

    By this way we can't say problem is with SAP end or with SCM end. There might be data conversion problems between SAP and Non SAP

    ends. We have similar problems with currency fields where we got correct values from SAP and incorrect values when transfered to non SAP. After that we took some temporary variables to fix these issues.

    What u have to do is Debug ur RFC from SCM system. Then only u can figureout where exactly problem lies. There are special tools available to debug the RFC fron Non sap systems. Check with ur Non SAP team on how to debug ur code from SCM system. There should be proper coordination between SAP and Non SAP teams to fix these types of issues.

    Hope this info will help u.

    Thanks,

    Vinod.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Rama Devi,

      How u declared ur Return table. Is it under TABLES parameter.

      U have to declare it under TABLES parameter.

      In ur FM source code append all the error messages in to this

      table. This will finish ur job. Return table structure???

      If u want ur cusom structure then create the same in SE11 and refer ur return table(In tables parameters) to that structure. Otherwise u can refer to standard structure BAPIRET2.

      Thanks,

      Vinod.

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.