2006 Jan 27 4:10 PM
2006 Jan 27 4:14 PM
There is no difference in coding part for the RFC function module. The only thing you need to take care is the table/structure you are referencing has to be present in the data dictionary. I mean if you want to get table from external system then declare structure of that type in Abap dictionary and use in the tables tab of function module.
Hope this helps.
How to pass table in RFC function module......
2006 Jan 27 4:13 PM
2006 Jan 27 4:13 PM
Hi,
Same as you pass to any Function Module with the structure defined in the definition.But can you give me more information.
2006 Jan 27 4:14 PM
Hi ND,
Same as in normal function module.
Are you facing any issues ?
Lanka
2006 Jan 27 4:14 PM
There is no difference in coding part for the RFC function module. The only thing you need to take care is the table/structure you are referencing has to be present in the data dictionary. I mean if you want to get table from external system then declare structure of that type in Abap dictionary and use in the tables tab of function module.
Hope this helps.
2006 Jan 27 4:19 PM
Thanks everybody..i am using it in starting new task code.........it gives me some error like cannot be referenced etc..i made structure .....shud i use LIKE or TYPE or something else
2006 Jan 27 4:23 PM
Hi,
You can use <b>LIKE</b>if its a table structure & <b>TYPE</b>for any Type-Pools or Type-group reference.
2006 Jan 27 4:26 PM
2006 Jan 27 4:27 PM
it gave me same mesage when i tried..is there any special care to be taken...some how ..i need that table to be passed back to main prgm
2006 Jan 27 4:30 PM
Hi,
Can you give the code so that i can check here.Or you can do a Where-used-list on the RFC to see how this is used in other programs(SAP standard once) & use it that way.
2006 Jan 27 4:55 PM
First define the structure U want to pass.
and use LIKE.
U need not explicitly do anything to get back the table
back to your program. Just fill the table in the FM and
U'll get the entries into your called program.
2006 Jan 27 5:00 PM
Thanks all..I will try out the same in my system again and let u know the feedback and accoringly award points
2006 Jan 28 7:00 PM
Please clarify for using " starting new task" and then calling some fnction...is it necc tht the function is of RFC type...
2006 Jan 28 8:24 PM
Yes.. the "starting new task" extension is for RFC calls.. to quote SAP " It Starts the function module func asynchronously in a new session. In contrast to normal function module calls, the calling program resumes processing as soon as the function module is started in the target system. It does not wait until the function module has finished."
Regards,
Suresh Datti
2006 Jan 30 5:36 AM
i m still facing problems "Flat types may only be referenced using LIKE for table parameters" and "Only tables with simple line structure are allowed in RFC"..please let me know wat needs to eb done
2006 Jan 30 5:42 AM
Hi,
how you created the table parameter.
itab like <b>ztab</b>.
how you declared ZTAB. please let me know..
regards
vijay
2006 Jan 30 5:50 AM
i created zitab structure having 5 fields each of type char 15...in se11 ..datatype....did i go wrong anywhere
2006 Jan 30 5:58 AM
Hi ND,
you should create it as table line type not structure.
go to SE11.
choose <b>Data type</b> radiobutton
and give some name z* and <b>create</b>
then choose table type.
then in <b>line type</b> just give your structure and using the table type which you have created from the above steps.
itab like <b>ztabline</b>.
regards
vijay
2006 Jan 30 6:00 AM
Hi,
This will work....
Create a table type using SE11 with the structure u have defined and then use Type statement to define your table.
Kindly provide some reward points if this helps.
regards,
Sumeet Mishra
2006 Jan 30 6:29 AM
2006 Jan 30 6:37 AM
what is the problem..
and can you just show your declarations...
regards
vijay
2006 Jan 30 7:32 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |