Function Module with RFC for accessing tables
Hello All
I am programming using ABAP in Solution Manager system. I have to take data from tables(T001W and T001K) from a R/3 Server. Is there a function module which extracts data from tables via RFC ?
Thanks
Tharani.
Hi,
Check thes FM's:
RFC_GET_TABLE_ENTRIES
TABLE_ENTRIES_GET_VIA_RFC
GET_TABLE_RFC
or develop a RFC enabled FM to get the required data in R/3 and call it from your program
example :
data: wtab type BDSEL_STAT occurs 0 with header line.
data: tab type BDI_ENTRY occurs 0 with header line.
name = T001W.
CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'
destination dest
EXPORTING
LANGU = SY-LANGU
TABNAME = name
TABLES
SEL_TAB = wtab
NAMETAB =
TABENTRY = tab
EXCEPTIONS
INTERNAL_ERROR = 1
TABLE_HAS_NO_FIELDS = 2
TABLE_NOT_ACTIV = 3
NOT_AUTHORIZED = 4
OTHERS = 5 .
Regards
Laxman
Message was edited by: Laxmana Kumar
Similar Messages
-
Function module with RFC enable
Hello ABAPers,
Im a new comer in ABAP and I would like to have a basic knowledge in RFC using a function module/function group..
I have this project in Travel Dept...I need to connect on a different system using SAP connector...meaning...I will logon to SAP and connect to another system which is VB.net and has a back-end of SQL 2000. After connection I need to select or search a data to that table...for me to get the ticket number.
Before I tried to connect from VB.net to SAP...and successfully used the SAP connector...now I need the vice versa version of this approach..
Can anyone help me? please....
Thanks in advance...Will reward points
aVaDuDzFor Basic Understanding just look at RFC_READ_TABLE FM,This will give good example
Also Check the SM59 Transaction to create RFC Destination
Please check with below link :
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfc&cat=sdn_wiki
Thanks
Seshu -
Unable to send table to function module using RFC
Hi all,
I'm trying to send a table from XI to a function module using RFC. I tested the process first using indivdual parameters. At this point there were no problems. Now I changed the import parameter of
the FM into a table and imported the changes into XI. I changed the Message mapping and tested it with multiple records. When I run the process XI calls the FM but the FM doesn't receive any data. I tested this by puting a break-point in the FM. There are no errors in the XML Messages Monitor. I found this message in the Communication Channel Monitoring:
Short Log:
Server 0 10_39293 Receiver channel 'CC_BackendIn' for party '', service 'BS_Backend' (internal name 'RfcClient[CC_BackendIn]')
Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=610, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=Admin, jco.client.sysnr=10, jco.client.ashost=192.168.51.8}
Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=610, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=Admin, jco.client.sysnr=10, jco.client.ashost=192.168.51.8}
Current pool size: 0, maximum pool size : 1
Channel History
- OK: 2009-02-18 01:35:14 CET: Message processed for interface MIIA_BapiIn
Any ideas?
Thanks for your help!
Regards,
Ivo van EeHi everyone,
thanks for your prompt response! I tested the mapping in XI and didn't find any error here. So I concentrated on the receiver side. There were some communication channels running on the server that were generating errors. I stopped alle the communication channels and started just the two communication channels for this process. This time the table was successfully exported to the function module! Problem solved. Still not sure what caused the problem in the first place, but everything is working fine now.
Thanks for your help.
Regards,
Ivo -
RFC Function module-With Only Request message
Hi
i need a RFC with only Request message and Response message is not required.
please help me, how to create a RFC function module with out Response message, and it should contain only Request message.
i have created RFC in this way:
RFC doesn't contain neither import nor export parameters. and i have defined one table in TABLE tab which refers to a ztable created already.
when i imported RFC into XI i came to know that RFC has both Request and Response messages, but i don't need Response message.
Thanks in advance..help would be appreciated
Regards,
RajeshThankx Michal,
I have written ZRFC this way:
insert ZMM_AUTO_GR from INPUT_TABLE .
if sy-subrc = 0.
commit work.
else.
rollback work.
im not using neither import nor export parameters..but using only tables parameters. but when imported in XI im getting same table structure in both request an response.
please suggest what changes required in above code to invoke my ZRFC in async way.
you will not get any response in XI- what chages required in my code to dnt get .reponse in XI.
appreciate your help.
Regards,
Rajesh. -
How to check for a function module with its description and functionality
Hi all,
How to check for a function module,with its description and its functionality,in detail how can I know the purpose of a particular function module,how to search for a function module which suits my requirement .Hi,
You can search a FM of your requirement by putting in the Key words and searching for a FM. Like * KEYWORD * and then pressing F4.
Say for example you need to search something regarding converstion.
Search for * CONVERT * and press F4.
If there is something specfic like converting date to something you can give
DATE * CONVERT *
OR
CONVERT * DATE * and press F4.
Once you narrow down your search you will have a Function module documentation inside the Function module. Please note that all the FMs willl not have documentation.
Regards,
Pramod -
Identify tables from where the function module extracts data for the ES
Hi All,
For the datasource, 0CRM_SALES_ORDER_I in the CRM system, we need to add a new field (in the table level). This datasource's extraction type is 'F1 - function module'. Is the extractor itself is this function module? If it is a sepeate FM, where can we find the function module name used for this datasource?
We need to identify the tables from where the fields in this datasource fetch data from. Where can we find this information?
To be specific, in the sales order in tcode crmd_order, if we goto conditions tab and create a new condition, in what table this will get stored?
Thank you in advance,
HariIgnore this thread! there is another thread I have created for the same problem.
I created only one; wonder how it became two!! -
How to create a custom function module with the records in SAP R/3?
Hi All,
How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
Regards
SaraHi
goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Look at the below SAP HELP links, These links will show you the way to create a Function Module
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm -
Problem in converting a function module in RFC
hi All,
when i m converting a function module in RFC it is showing a error message ,
Generic Types are not allowed in RFC.
How can i handel this.
Regards,
Susheel JoshiHi Susheel,
RFC module interface parameters (import, export , tables) can only refer to data dictionary types. Hence if you currently have one of the parameters referring to a type defined in your function group main include or in a type pool, you need to create a SE11 data dictionary structure/ table type for that and then change the data type reference.
Cheers,
Aditya -
ABAP Program or Function Module to activate infospoke/openhub table
Hi,
Post migration to production, when i am trying to load the data in open hub table, its showing OH table is not active. i had tried to all aspect but i am unable to load the data.
is there any ABAP Program or Function Module to activate infospoke/openhub table
Thanks & Regards,
Pankaj BansalHello Pankaj,
Please check whether you have access to TCode SE14 . If Yes , You can use this TCode to activate the Tables.
There are lot of Posts talk about the procedure for activation through SE14. please refer the same
Thanks & regards,
Prasath -
Creating function modules with step by step
Hi,
plz provide me the material for creating function modules with step by step.Hi Nagaraju,
Step 1.
GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.
OR
In SE37 transaction,in the menu bar Goto - > Function Group - > Create Group.Your Function Group will be created.
Step 2.
Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.
Step 3.
Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.
Method 2)
First u have to create Function Group.
1.se37->Goto->Function Group--->Create.
2.Create FM.
3.maintain import /export parameters and tables , exceptions.
4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.
5.u can raise error by using exception.
Reward if useful.
Thanks
Aneesh. -
Hi all,
I build a java applicatio to call a sap function.
This FM have only an import parameter as structure, the last field of this structure is 16000 characters long.
When I start the application if the long field is empty all works fine, but if I fill it the java compiler send me this runtime error:
[code]
Exception in thread "main" com.sap.aii.proxy.framework.core.BaseProxyException:
Data area for accessing table is too small.,
error key: RFC_ERROR_SYSTEM_FAILURE
at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
at bi9032.BI_9032_PortType.zhr_Bi_9032(BI_9032_PortType.java:16)
at bi9032.Startapp.main(Startapp.java:50)
[/code]
Any one can me explain the problem?
It's possible that I can't pass a large data quantity?
thanks and regards,
enzo
Message was edited by: Enzo PorcasiI understood that it's a sap problem,
so I will write in the abap forum,
bye
enzo -
I am trying to find a function module or BAPI for internal order change. I
I am trying to find a function module or BAPI for internal order change. I did come across a function module ALE_INTERNALORDER_DB_CHANGE which directly updates the internal order using insert statements. Can i use this for internal order change or this is any other Function module for updating the internal order.
I dont want to use BDC as a option. Please suggest.This is possible using the Rotator Component Widget from Infosemantics.com.au but it is only compatible with SWF output, not HTML5.
Go to this page and scroll down to the video tutorials about the Rotator Component widget:
http://www.infosemantics.com.au/adobe-captivate/youtube-video-tutorials -
Function module in BW for Balance Sheet
Dear all,
i have a request to create a FM for BW module.I'm new at abap in BW so i want kindly to ask you to help me with some material or knowledge that you have.
The specific request is for Balance Sheet. It is done in BW with routine but i have to add this routines in one functional modul.The misunderstanding for me is that this routine use some standard form (like compute_data_field which is call dynamically ) for input parameter and i'm not sure in my FM how to take the same input parameter.
If someone have some expirience with this i will rewards with points
Thank you.In the BeX, when you are creating the query, you need to create a variable to the object by doing the following:
1 Select the object in the leftside
2 create new variable
3 in the variable select the eleboration with customer exit
4 after creating the variable, go into transaction CMOD
5 Select the project for BW, if you don't have one, just create it. (You need to include it into the data packet for BW, if you don't have you must create it otherwise you'll get the data packet tmp and you cannot transport it)and select the Henancement Assignment RSAP0001.
3 In the components area you'll get 4 functional exit:
EXIT_SAPLRSAP_001
EXIT_SAPLRSAP_002
EXIT_SAPLRSAP_003
EXIT_SAPLRSAP_004
click on the first exit and than click on INCLUDE ZXRSAU01
in this include you go in the change mode and input this kind of code:
WHEN 'name of the variable'.
PERFORM and input your code.
Rgs
Antonino -
Function Module not working for old Role
Dears
Function Module not working for old Role
Function Module: /VIRSA/BAPI_AE_USERS_FOR_ROLES
Before EHP4 upgrade this functional module working fine, but after updated users are not visible.
We have chekced if the users are assigned directly users are visible but indirect (Position Based) assignment users are not apprearing.
Pl check the fucntion module with given roles below and identify the root cause,
EP_TRVL_ALL_CAB - Old Role
EP_TRN_TRVL_DRGC_V2 - New Role
Regards
Krishna Mohan CH
9704500717Krishna,
I do not think this BAPI is meant to be called by anyone but the application using it, and its functionality may therefore change without notice.
What are you trying to achieve? Maybe there's a better way to do that...
Frank. -
How to create function module in abap for VirtualProvider in bi
how to create function module in abap for VirtualProvider in bi ???????????????
can any one help me with simple example ?????????????????
Moderator message : Duplicate post locked. Read forum rules before posting.
Edited by: Vinod Kumar on Jun 15, 2011 4:40 PMHi ,
Thanks for replies about my question??.
If i am using the exit in my char relation ship how can i debugg that exit???
if i am using BPS0 how to do it???If i am using BPS_WB how to do it??
Case1.Variable (type Exit) I known how to do debugg this one in BPS0 but i'm not sure in BPS_WB??
Case2:Char Relation Ship(Type Exit) how to do in BPS0 and BPS_WB??.
Thanks.
Maybe you are looking for
-
I have copied over the "first five lines of rubbish" , a suggestion of another contributor. Here they are: %PDF-1.3 1 0 obj /PDF /Text /ImageB /ImageC /ImageI endobj 5 0 obj << /Length 10096 /Filter /FlateDecode >> stream xœµ}Y“ 7’æûšÍ€Ù˜iÕcd0
-
Windows Services set to Automatic in stopped state
Hi All, On windows 2008r2 sp1 most of the services in stopped state after the reboot even that is set to automatic. if i try to start i'm getting a error message stating that "service did not start in timely fashion". I booted the computer in safe an
-
Connection Timeout during Synchronous proxyc- 500 Connection timed out
Hi , We are seeing the HTPP timeout issue in synchronous proxy. It says timeout aftr 250 secs Error: -5 Version: 7200 Component: ICM Date/Time: Thu Jul 28 15:38:10 2011 Module: icxxthr.c Line: 4295 Server: Error Tag: {-} Detail: Connection to partn
-
Adobe Captivate Help | Import questions from GIFT format files (Cp 7)
This question was posted in response to the following article: http://helpx.adobe.com/captivate/using/import-questions-gift-format-files.html
-
Scripting a layer style for each layer to make a depth pass from focus stacking information.
I'm trying to generate a depth pass from rack focus. Basically where I've gotten to right now is importing the rack focus footage each frame from as an individual layer. Then running Auto Blend Layers and letting photoshop do it's magic to mask out e