2012 Aug 02 4:32 PM
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
2012 Aug 02 4:40 PM
2012 Aug 02 4:55 PM
2012 Aug 02 4:57 PM
There would be 4 four tables and which has to pass into internal table area of RFC.
2012 Aug 02 4: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.
2012 Aug 02 5:02 PM
I have to pull from a custom table and few standard tables checking certain conditon
2012 Aug 02 5:05 PM
2012 Aug 02 5:15 PM
Hi Neha,
Keep normal select entries and get data into final table and display.You start and post if need any help.
Regards,
Madhu.
2012 Aug 03 6: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.