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

Need to Create RFC Functional Module

I have no experience on RFC creation forget about setting RFC

To create RFC enabled for third party communication

Requirement: Input Parameter: PERNR & WORK DATE from third party system.

I have to club 3 to 4 tables based on certain condition and how can i declare Table type in RFC cause when i club 3 to four tables structure would be changing.

Give me logic on clubbing 3 or 4 tables passing into RFC table area.

Moderator Message: Spoon-feeding is not encouraged in the forums. Show your efforts 'til then the thread remains locked.

Message was edited by: Suhas Saha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Aug 03, 2012 at 05:53 AM

    Neha,

    1.Get the RFC destinations of type 3 created in SE59 with the help of Basis Guys.
    2.Create the RFC enabled Function module in the source as well as the target system ie if you are running the program in system X and intend to get the data from System Y back to system X then the RFC Fm should be present in both the systems ie X and Y (source and target)
    3.To pass a range of selections as an input to the RFC FM you declare an internal table in TABLES tab of the RFC FM with associated type as RFC_DB_OPT.(input)
    4.To get back the data from the target to Source declare one internal table of the desired structure(output) in TABLES tab of the RFC FM.
    5.call ZFM_FM destination DEV010 (DEV010 is an example RFC destination which needs to be replaced by the actual RFC Destination that the Basis guys had created )
    6.Handle the exceptions.
    7.How to debug an RFC FM.
    Add a piece of code in the FM as below.Comment it in the source system but in the target system uncomment it whenever you want to debug the RFC FM in the target system.

    {code}

    DATA:c_x TYPE c.
    DO.
    IF c_x = 'X'.
    EXIT.
    ENDIF.
    ENDDO.

    {code}

    a) Put a break point in the source system at the RFC FM and execute it.This will make the program in the source system run in endless loop.
    b) Go to the target system and get into SM50.Here you will find an entry with your RFC FM.
    C) select it and choose the PROGRAM/MODE>>PROGRAM>>DEBUGGING.
    d) you will get a pop up whether you want to debug.Click on YES and it will take you into the debugging screen for the RFC FM.Make the variable C_X as X and continue your debugging.

    Thanks,
    K.Kiran.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2012 at 03:40 PM

    I would like to help but what is clubbing?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2012 at 03:55 PM

    we have to read out matching record from four table

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2012 at 03:59 PM

    Hi Neha,

    You can use the tables and keep like normal selection statement.Keep messages and return statement.Then keep that fm as a bapi as rfc .

    Regards,

    Madhu.

    Add a comment
    10|10000 characters needed characters exceeded

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.