Rfc code to call any sap tcode in excel macro
Hi all,
We are trying call sap tcode in excel macro programm using RFC.
Can any one send me sample code for this?
This is urgent.points will be rewarded.
regards,
Shyam
Hi harish kollipara
you should create the FM in the B system, that return some data that you can catch in system A after have called the FM.
check this link for the function:
http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm
CALL FUNCTION 'NAME OF FUNCTION' DESTINATION rfc_destination_name
importing ...
exporting ...
EXCEPTIONS
system_failure = 1
OTHERS = 2.
hope this help you
Marco
Similar Messages
-
Calling WebAS Java from Excel Macro
Hi,
somebody told me there were a way to call WebAS Java from an Excel Macro and make a login into SAP using a real existing user (not a technical user). Does anybody know where to find documentation about this or how to get this accomplished?
Thanks, Oliver PlohmannHi,
Have a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office09062001.asp
Eddy -
Hi,
I have a scenario in which I am calling a RFC from SOAP client. RFC has been exposed as a web service. The RFC takes a table parameter. The Table param is Not Optional.
Everything works fine except when I try to send an invalid value in the Export Param to the RFC. The SOAP Call Fails and I get a fault Message.
If there is an invalid value in the Export Param the Table Parameter is Null. So is that the reason why the SOAP call fails??
Any help regarding this would be appreciate. Tried searching OSS but could not find anything on this.
Here is the Fault Message:
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>failed to call the adapter engine</faultstring>
<detail>
<s:SystemError xmlns:s='http://sap.com/xi/WebService/xi2.0'>
<context>XIAdapter</context>
<code>DeliveryException</code>
<text><![CDATA[
com.sap.aii.af.mp.module.ModuleException
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:697)
at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java(Compiled Code))
at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0.process(ModuleProcessorLocalLocalObjectImpl0.java(Compiled Code))
at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:513)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java(Compiled Code))
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
Caused by: com.sap.aii.messaging.srt.BubbleException: failed to call the adapter engine [null "null"]; nested exception caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:
at com.sap.aii.af.mp.soap.ejb.AFCallerApplication.perform(AFCallerApplication.java:122)
at com.sap.aii.messaging.srt.ApplicationBubble.onMessage(ApplicationBubble.java:29)
at com.sap.aii.messaging.srt.ExtensionBubble.onMessage(ExtensionBubble.java:56)
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:576)
... 21 more
Caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:
at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java(Compiled Code))
at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:123)
at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java(Compiled Code))
at com.sap.engine.frame.core.thread.Task.run(Task.java(Compiled Code))
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java(Compiled Code))
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java(Compiled Code))
]]></text>
</s:SystemError>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>
Thanks
AshishHi Ashish,
Were you able to resolve this problem? I am facing a similar situation.
After doing all the steps necessary when I try to send a request to the soap_sender channel I get a message unable to post:error 500
ANy help would be appreciated.
Thanks -
Need Code Example to Call a SAP Remote Function from C#
I'm looking for an example of how to call a SAP RFC from within a C#
program. I've tried numerous searches and have come up empty handed. If I have a function called "MyFunction" and it takes 1 input parameter and returns one output parameter (a table) how would it be coded. I have been able to code the connection and it works so once the connection is established I need to call the funcation. Any pointers are really appreciated. Environment is MS VS Developer 2003, Frameworks 1.1, SAP 4.6C Here is the code so far.
using System;
using SAP.Connector;
using SAP.Connector.Rfc;
using SAP.Connector.Internal;
namespace ConsoleApplication2
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
static void Main(string[] args)
SAP.Connector.Destination dest = new SAP.Connector.Destination();
dest.AppServerHost = "NAFTATEST01.SAP.INTRA";
dest.Client = 300;
dest.SystemNumber = 0;
dest.Username = "myusername";
dest.Password = "mypassword";
SAP.Connector.SAPConnection connSAP = new
SAP.Connector.SAPConnection(dest);
using(connSAP)
try
connSAP.Open();
Console.WriteLine("SAP Connection was opened...");
connSAP.Close();
catch(SAP.Connector.RfcException rfcEx)
Console.WriteLine("SAP Connection was failed...");
Console.WriteLine( rfcEx.Message
+ rfcEx.StackTrace);
Console.WriteLine();hi
Create a Windows Forms application.
Add an empty SAP Connection class with the ABAP functions
RFC_CUSTOMER_GET and RFC_CUSTOMER_UPDATE.
Leave the proxy designer open. Go to the SAP Proxy toolbox and drag the Proxy field icon to the designer.
Rename the new Field1 to Tab. Change the Type property to BRFCKNA1Table. To do this, use the drop down icon.
Note that the ReadOnly property automatically changes to true and the default value changes to new BRFCKNA1Table().
Add a second Proxy Field with the name Filter, the type String and the default value A*.
Select the Rfc_Customer_Get function and click on the button of the Parameters property.
Set the default values of the three parameters with the drop-down icon as follows:
Name1: Filter
Kunnr: Customer_T: _Tab
Save the proxy designer and switch to your Windows form. Add a TextBox, a Button and a DataGrid.
Add an instance of your SAP proxy to your Windows form, add a Destination and set the Connection property as described in A4.
Set the DataSource property of the datagrid to sapProxy11. Set the DataMember property of the datagrid to Tab. Alternatively you can set the DataSource to sapProxy11.Tab and leave the DataMember empty.
For textBox1 use the DataBinding feature to bind the Text property of the textbox to sapProxy11.Filter.
Double-click the button to create an event handler and add a single line:
this.sapProxy11.Rfc_Customer_Get_();
You are using sapProxy11 as a smart DataSet that contains the necessary state. You bind the state to the corresponding controls. The overload method Rfc_Customer_Get_() does not have any parameters, as the required state is already in the bound Proxy Fields.
above statments from standard helpfile,and
in my opinion you need
datagrid1.datasource = yourtable
regards
ajai -
How can i debug a rfc being called from sap
hello Gurus,
We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
the message "Name or password is incorrect (repeat logon)u201D.
How can i find out where the data has stuck.
Please help.
BR
HoneyHI,
please have a look at the link below..
this may help u !!!
[Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
Best of Luck !!1
Regards
Ravi -
Transaction iView( Tcode) Error: Function call in SAP GUI with errors
Hey Guys:
I use Transaction iView to show the ABAP application on Portal. The application works to import data from client to BW. After I fill all the information and execute the application, the system returns the error message " Function call in SAP GUI with errors".
The ABAP application works fine on SAP GUI, so it should not be the program problem.
Any Suggestion for this will be nice. Thanks for your help.Hey Duy:
Thanks for your response. I check the servers which i have access, and all of them cannot work correctly.
First, other iViews(Dynpro,BW Report,BSP,KM...) work fine.
Second, our backend system is a BW server.
I try to do so on our EP production and development, also connect them to our BW production and development servers. All of those are failed and have the same problem.
The t-code comes from our abap program and register on BW server, and hte program works fine when I use SE38 to execute it.
PS. The Transaction iView works fine before, but I have no idea why it just crash now.
Please let me know if you have any suggestion about this. -
Any SAP Note for RFC Error between BI and ECC 5.0
Hi..
the RFC Destination between BI and ECC 5.0 is giving errors.
Plz let me know if there is any Support pack or any solution to fix this error.
thanks..Hi,
pls find the RFC connection details
1 Prerequisites
1.1 User Roles
Use
With the Building Block Connectivity a configuration role for each component is provided to access all transactions relevant for the installation. The following roles are available:
Technical name Description File name for upload
B02_01C B02 - Connectivity Configuration Role (SAP R/3) B02_01C.SAP
B02_03C B02 - Connectivity Configuration Role (SAP BW) B02_03C.SAP
C71_04C B02 - Connectivity Configuration Role (SAP CRM) C71_04C.SAP
B02_04C_SRM B02 - Connectivity Configuration Role (SAP SRM) B02_04C_SRM.SAP
Procedure
Please upload the necessary roles and add them to your user, using transactions PFCG (Role Maintenance).
2 Local Settings
This chapter describes all local settings that are necessary for each component like SAP R/3, SAP SCM, SAP BW, SAP CRM or SAP SRM.
2.1 SAP R/3
2.1.1 Define Client Administration (SAP R/3)
Use
This activity allows you to change Customizing settings.
Prerequisites
You have logged on to the system in English in order to start with the installation of the Best Practices Scenario.
Procedure
Run the following activity:
SAP R/3 Role Menu Define Client Administration (SAP R/3)
Transaction Code SCC4
SAP R/3 Menu Tools Administration Administration Client Administration Client Maintenance
Then carry out the following steps:
1. Choose Display Change.
2. Confirm the warning message Caution: The table is cross client.
3. Select your SAP R/3 client and choose Details.
4. In the Change View Clients: Details screen, activate the following settings:
u2022 Automatic recording of changes
u2022 Changes to Repository and cross-client Customizing allowed
u2022 eCATT and CATT allowed.
5. Save.
6. Go back to the SAP Easy Access menu.
2.1.2 Defining a Logical System for SAP R/3 (SAP R/3)
Use
The purpose of this activity is to create a logical system for your SAP R/3 System. To enable communication between systems within your system landscape, you must
1. Define the systems as logical systems.
2. Assign the logical system for the SAP R/3 System to a client.
This enables the systems to recognize the target system as an RFC destination. If the logical system has already been created, skip this activity.
Logical systems are defined cross-client.
Procedure
Carry out the following steps:
1. Access the transaction using:
SAP R/3 Role Menu Defining a Logical System for SAP R/3 (SAP R/3)
Transaction Code SPRO
SAP R/3
IMG Menu Basis Components (for R/3 Enterprisse: SAP Web Application Server) Application Link Enabling (ALE) Sending and Receiving Systems Logical systems Define Logical System
2. Choose New entries.
3. In the column Log System, enter a name for the logical system that you want to create.
4. In the column Name, enter a description of the logical system.
Log. System Name
where XXX is the system name
and NNN is the client.
5. Save your entries.
A transport request for Workbench appears.
6. Select an existing request or create a new request, if necessary.
A transport request for Customizing appears.
7. Select an existing request or create a new request, if necessary.
2.1.3 Assigning Logical System to Client
Use
The purpose of this activity is to make an assignment for the logical system. Skip this activity if a logical system is already assigned to your client.
Procedure
Carry out the following steps:
1. Access the transaction using:
SAP R/3 Role Menu Assign Logical System to Client
Transaction Code SCC4
SAP R/3 Menu Tools Administration Administration Client Administration Client Maintenance
2. Choose Display ® Change.
3. Confirm the warning message The table is cross client.
4. Select your R/3 client and choose Details.
5. Enter the name of the logical system of your SAP R/3 client.
6. Save and confirm the warning message Be careful when changing the logical system.
7. Choose Back twice.
2.1.4 Creating an RFC User (SAP R/3)
Use
To enable communication between the SAP R/3 back-end system and the SAP SCM System, you have to create an RFC user in the SAP R/3 System.
The RFC user in the application client enables multiple RFC connections. Skip this activity if an RFC User has already been created.
Procedure
Carry out the following steps:
1. Access the transaction using:
SAP R/3 Role Menu Creating an RFC User (SAP R/3)
Transaction Code SU01
SAP R/3 Menu Tools Administration User Maintenance Users
2. In the User field, enter RFCUSER.
3. Choose Create.
4. On the Maintain User screen, enter the following data on the Tab entry screens:
Address
Last Name
Function
Logon data
User type System
Password LOGIN
Profile
Profiles SAP_ALL
SAP_NEW
S_BI-WX_RFC
Defaults
Logon Language EN
5. Save your entries.
2.3 SAP BW
2.3.1 Define Client Administration
Use
This activity defines changes and transports of the client-dependent and client-independent objects.
Procedure
1. To perform this activity, choose one of the following navigation options:
SAP BW Role Menu Local Settings ® Define Client Administration
Transaction Code SCC4
SAP BW Menu Tools Administration Administration Client Administration Client Maintenance
2. Switch to change mode.
3. Select your client.
4. Choose details.
5. In field Currency enter the ISO-code of the local currency, e.g. USD or EUR.
6. In field Client Role enter Customizing
7. Check the settings for changes and transport of client-specific objects and client-independent object changes
If you want to use the settings made by BC-Sets or manually in other systems (other than BW), u201CAutomatic recording of changesu201D and u201CChanges to Repository object and cross-client Customizing allowedu201D is required.
Result
Client administration has been defined to support the installation using Best Practices.
2.3.2 Defining a Logical System for SAP BW (SAP BW)
Use
In this step, you define the logical systems in your distributed system.
Prerequisites
Logical systems are defined cross-client. Therefore cross-client customizing must be allowed in your client (this can be checked in transaction SCC4).
Procedure
To carry out the activity, choose one of the following navigation options:
SAP BW Role Menu Defining a Logical System for SAP BW (SAP BW)
Transaction Code SPRO
IMG Menu SAP Reference IMG SAP Customizing Implementation Guide SAP NetWeaver Business Information Warehouse Links to other Systems General Connection Settings Define Logical System
1. A dialog box informs you that the table is cross-client. Choose Continue.
2. On the Change View u201CLogical Systemsu201D: Overview screen, choose New entries.
3. On the New Entries: Overview of Added Entries screen enter the following data:
Field name Description R/O/C User action and values Note
Log. System Technical Name of the Logical System Enter a name for the logical BW system that you want to create
Name Textual Description of the Logical System Enter a clear description for the logical BW system
4. Choose Save.
If a transport request for workbench and customizing is displayed choose existing requests or create new requests.
If you want to continue with the next activity, do not leave the transaction.
Result
You have created a Logical System Name for your SAP BW client.
2.3.3 Assigning Logical System to Client (SAP BW)
Procedure
To carry out the activity, choose one of the following navigation options:
SAP BW
Role Menu Assigning Logical System to Client (SAP BW)
Transaction Code SCC4
SAP BW Menu Tools Administration Administration Client Administration Client Maintenance
1. In the view Display View "Clients": Overview, choose Display. Change
2. Confirm the message.
3. Select your BW client.
4. Choose Details.
5. In the view Change View "Clients": Details, insert your BW system in the Logical system field, for example, BS7CLNT100.
6. Save the entries and go back.
2.3.4 Opening Administrator Workbench
Procedure
To carry out the activity, choose one of the following navigation options
SAP BW Modeling Administrator Workbench: Modeling
Transaction Code RSA1
1. In the Replicate Metadata dialog box, choose Only Activate.
2. If a message appears that you are only authorized to work in client ... (Brain 009) refer to SAP Note 316923 (do not import the support package, but use the description under section Workaround).
2.3.5 Creating an RFC-User (SAP BW)
Procedure
To carry out the activity, choose one of the following navigation options:
SAP BW Role Menu Creating RFC User
Transaction Code SU01
SAP BW Menu Tools Administration User Maintenance Users
Then carry out the following steps:
1. On the User Maintenance: Initial Screen screen:
a. Enter the following data:
Field Entry
User RFCUSER
b. Choose Create.
2. On the Maintain User screen:
a. Choose the Address tab.
b. Enter the following data:
Field Entry
Last Name RFCUSER
Function Default-User for RFC connection
c. Choose the Logon data tab.
d. Enter the following data:
Field Entry
Password LOGIN
User type System
e. Choose the Profiles tab.
f. Enter the following data:
Field Entry
Profiles SAP_ALL , SAP_NEW and S_BI-WHM_RFC
g. Choose Save.
Do not change the password of this user as it is used in RFC connections.
2.3.6 Define RFC-USER as default (SAP BW)
Procedure
To carry out the activity, choose one of the following navigation options
SAP BW Role Menu Define RFC-USER as default (SAP BW)
Transaction Code RSA1
SAP BW Menu Modeling Administrator Workbench: Modeling
1. On the Administrator Workbench: Modeling screen choose Settings Global Settings.
2. In the Global Settings/Customizing dialog box choose Glob. Settings.
3. On the Display View u201CRSADMINA Maintenance Viewu201D: Details screen:
a. Choose Display Change.
b. Enter RFCUSER in the BW User ALE field.
c. Choose Save.
Hope this helps in solving u r problem
Regards
Ramakrishna Kamurthy -
Calling SAP Tcode on Button click
Hello All,
i want to call SAP Tcode on click of button.
below is the code for the same,
data l_componentcontroller type ref to ig_componentcontroller .
data l_api_componentcontroller type ref to if_wd_component.
data l_sapgui_manager type ref to cl_wdr_sapgui_integration.
l_componentcontroller = wd_this->get_componentcontroller_ctr( ).
l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
if l_sapgui_manager is not initial.
l_sapgui_manager->fire_start_transaction( transaction = 'SE38' ).
endif.
But the object l_sapgui_manager is not getting instantiated. please let me know if i am calling the right method or the code is wrong???
Regrads,
ChandraHi Chandra,
You need to Initialise the l_sapgui_manager before you are accesing. see the folowing code i initialised my select options component.This code can be obtained from Wizard also. I hope this will help you.
Please do this in the WDDOINIT of component controller. So that it will be inistatiated before you are accessing the component.
** initialize select options component for query creation
lr_cmp_usage = wd_this->wd_cpuse_sel_options( ).
wd_this->usage_name = lr_cmp_usage->name.
IF lr_cmp_usage->has_active_component( ) IS INITIAL.
lr_cmp_usage->create_component( ).
ENDIF.
l_ref_interfacecontroller = wd_this->wd_cpifc_sel_options( ).
wd_this->mr_selopt_helper = l_ref_interfacecontroller->init_selection_screen( ).
Warm Regards,
Vijay.
Message was edited by:
Vijaya Bhaskarudu Gangisetty -
Invoke MII Transaction thru RFC Call from SAP
Hi,
We want to get the data from Oracle DB table thru MII (12.0.2).
We need to use RFC call from SAP to MII.
Is it possible to invoke the MII transaction thru RFC by setting in Message Listener?
We have used iDoc messages but not tried with RFC.
How to do that?
Regards,
SenthilI feel MII doesn't have anything equivalent to RFC in ECC. You may try web services in an ABAP program
Hope the article below helps you
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9f101377-0c01-0010-269f-c3ee905d583b&overridelayout=true
Regards,
Musarrat -
Call rfc sender adapter from non-sap systems
Hi,
is ist possible to connect to an rfc sender adapter from non-sap systems? I want to use the the RFC-Connector from http://rfcconnector.com, but in the client connect options there is no way to specify the program id.
Best regards,
Danielhi,
you don't need to use RFC type T (with program ID) - you can use whole connection string - just like in the example:
http://www.rfcconnector.com/documentation/examples/client/#functioncall
so just specify: host system number etc.
it should work like that - but let me know as I don't know this RFC connector
Regards,
Michal Krawczyk -
Can you call a SAP java Portal Service from the Dot Net code?
Is there a link to a document or snippet of code to call a customized Portal Service in a Dot Net code?
Hi Steve,
yes.,u can call a java portal service in .net.,the only thing what u need to do is to establish that portal service as web service and use that web service in ur code..
Regards,
Vinoth -
MOPZ - Error during call of SAP back end system
Hi Experts,
I have this error during MOPZ - "select OS/DB dependent files" and following option as well.
I have checked SAP NOTE 982045, but still cannot solve the issue.
SM59 - SAP-OSS and SAPOSS connection test is successful.
I have no idea what else is going wrong. kindly advise id you have any idea.
Below are some error logs.
From MOPZ
Error calling SAP back-end system: Local gateway not running / CPIC-CALL: 'ThSAPCMRCV'SAP-OSS via RFC destination.
From SM21
Call of function GwRead failed, RC: -095
Communication error, CPIC return code 017, SAP return code 24
> Conversation ID: 13681187
> CPI-C function: CMRCV
From dev_rfc8
**** Trace file opened at 20140904 134347 Malay Peninsula Standard Time, by disp+work
**** Versions SAP-REL 721,0,300 RFC-VER U 3 1498740 MT-SL
======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=17 thRc=247
Local gateway not running
ABAP Programm: CL_SM_DATA_SENDER_RFC=========CP (Transaction: )
Called function module: /SPN/SBI_INTERFACE
User: BT_BASIS (Client: 100)
Destination: SAP-OSS (Handle: 4, DtConId: 22F633E42CC0F1D280C9A0D3C1069543, DtConCnt: 1, ConvId: 12214252,{22F633E4-2CC0-F1D2-80C9-A0D3C1069543})
EPP RootContextId: A0D3C10695431ED48CFEB45C956820C9, ConnectionId: D3F533E43BF2F12C80C9A0D3C1069543, ConnectionCnt: 1
EPP TransactionId: D3F533E43BF2F12A80C9A0D3C1069543
SERVER> RFC Server Session (handle: 1, 18243574, {D3F533E4-3BF2-F12C-80C9-A0D3C1069543})
SERVER> Caller host:
SERVER> Caller transaction code: (Caller Program: CL_MO_SMP_ADAPTER=============CP)
SERVER> Called function module: AGS_MOPZ_SMP_RFC
Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3712
CPIC-CALL: 'ThSAPCMRCV' : cmRc=17 thRc=247
Local gateway not running
Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1973
Thank you.
Por.Hi
there are following things you can do
1. log on to your SAP Router
2. check entries in SAPRoutab.
3. Telnet SAPSERV2 (Sap responding server) (Tcode oss1 will give you details of which SAP serve you are connecting ) on port 3299
4. if you are able to telnet SAPserve from your Router server then raise the call to SAP and ask whether they can reach your saprouter or not
5. check /etc/services files and check for service 3299 defined or not
6. telnet local Router server with port 3299
7 try to download Sap Note from SNOTE in you solman system.
all the best
Regards
Dishant. -
CNTL_ERROR when calling a SAP function
Hi,
I've been using for some time .NET SAP Connector to create client and server proxies.
A collegue of mine has created an RFC that is called
Z_YODA_CREATE_PM_NOTIFICATION.
After using the wizard to create the C# proxy I call the function and I get this exception:
SAP.Connector.RfcSystemException: Exception condition "CNTL_ERROR" raised.
at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
at SAPProxyDll1.SAPProxyDll1.Z_YODA_CREATE_PM_NOTIFICATION(String CODE, String DATE, String EQUNR, String HOUR, String PC, String USER, String& ADITIONAL_PARAM)
My collegue is able to call this function from excel using VBA and no exception is throwned, and the function runs correctly.
Is this .NET Connector fault? Am I doing something wrong?
Thanks in advance for any help given,
Luis PinhoHi,
Can you please give a detailed description on what the function module does and how it does? A piece of your VBA code that works?
Regards,
Guangwei -
SAP BAPI to get Component of any SAP Transaction
Dear All,
I Want to get the Component Id of any given SAP Transaction Code, with the help of some SAP RFC.
I tried to get the Component, I got it too but I need some SAP BAPI to do this task.
Some details are available over here,
Component of any SAP Transaction
Please Help.Hi Cvrian,
There is no BAPI for this but there are some RFC functions to get what you want (since they are not BAPIs they may change without notice but probably won't).
First get the transaction dev class info with RFC AKB_GET_TADIR.
For example if you give it OBJECT_TYPE = TRAN and NAME = SU01 you will get the dev class info for transaction SU01.
The dev class info includes a component (in this example HLB0100102). Now call RFC RH_GET_APPLICATION_COMPONENTS to get the list of component to map it to the human-readable component (in this example BC-SEC-USR-ADM).
Hope that solves your requirement. This is not really a SolMan question but I wanted to be helpful -
Hi,
We update the BW landscape for version 7.4 suppport package 4 (whitout HANA).
We use a external system connection to extract data from a SQLServer database (Microsoft Connector 1.1 for SAP/BW)
In the previous version (BW 7.0.1 SP 10) run correctly, but now is in error.
Below the BW error log:
Error: COMMUNICATION_FAILURE with function RSB_API_OHS_3RDPARTY_NOTIFY and target system SQLIS.
Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679 Transaction program not regist).
Error log of Integrations Services
[SAP BI Destination 1 [476]] Error: Microsoft.SqlServer.Dts.SapBw.Connectivity.ERPException: An error occurred during the dispatch of the incoming function. The last return code was "RFC_FAILURE".
em Microsoft.SqlServer.Dts.SapBw.Components.SapBwSourceBWLoader.ProcessInput(Int32 inputID, PipelineBuffer buffer)
em Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "SAP BI Destination 1" (476) failed with error code 0x80131500 while processing input "SAP BI Destination Input" (491). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
I checked the topic and notes below, but without success
CPIC Return Code 679 - Transaction Program not Registered - ABAP Connectivity - SCN Wiki
Note 1480644 - gw/acl_mode versus gw/reg_no_conn_info.
Note 353597 - Registering RFC server programs
Regards,
BrunoHi Bruno,
We were able to resolve the issue. SAP RDS is assisting us with our upgrade and one of their consultants gave us this fix/workaround.
Edit and add an entry into P:\usr\sap\<SID>\DVEBMGS00\data\reginfo.dat on your BW host server.
Below is the entry I added.
P TP=<NAME OF PROGRAM ID> HOST=<remote hostname where you creating the RFC to> CANCEL=<remote hostname> ACCESS=*
P TP=CTSAPNPSCI_PORTAL_FPS HOST=ctsapnpsci CANCEL=ctsapnpsci ACCESS=*
Then in BW system goto smgw > goto > Expert Funtions > External Security > ReRead ACL (N) & Globally
I hope that this works for you.
Regards
James
Maybe you are looking for
-
I recently decided to switch the colors around in Firefox. I work in a pretty dark environment and having dark colored text on white or bright backgrounds is rather difficult on my eyes in the dark. I switched the background to a dark gray, the text
-
Block in Integration Process produce error
Hi, there is a strange problem with an Integration Process. I have a loop for collecting messages. If I paste a new Block in the process after the loop there is no problem, but if I put the loop inside the Block the process ends with an error right a
-
Why is trimming video inaccurate in Aperture 3
In Aperture 3 I'm creating a Slideshow made up of images and videos. I noticed that the sections I trim are not reflected when I preview the end result. I tried shutting down and restarting Aperture only to find that the video is trimmed in the wrong
-
Question related to query performance
Hi Experts, Could any 1 please explain me ,when BWA Indexes or Aggregates are created Query performance will be high because query will hit the aggregates tables, which we can see in the statistics table RSDDSTAT_DM . But now the problem is though A
-
Data object MY_ITEM has no component with name ABSKZ
Hello all, When I try to run ME23N I receive a short dump with the cause Data object MY_ITEM has no component with name ABSKZ Any ideas how this can be fixed? Regards, Ileana