on 01-11-2010 8:49 AM
Hi Experts,
I have to save a material through service call ( BAPI_MATERIAL_SAVEDATA).. but while calling the BAPI
DATA LO_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
LO_COMPONENTCONTROLLER = WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
LO_COMPONENTCONTROLLER->BAPI_MATERIAL_SAVEDATA(
).
Im getting this error RFC Exception COMMUNICATION_FAILURE with Message RFC destination BAPI_MATERIAL_SAVEDATA does not exist...
Hi Ramesh,
When we do the service call , we call the execute method of the BAPI.
i.e. the code should be like:
LO_COMPONENTCONTROLLER->EXECUTE_BAPI_MATERIAL_SAVEDATA(
).
Refer this article [service call|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9cb5d345-0801-0010-6a8e-fc57c23fd600?quicklink=index&overridelayout=true].
I hope it helps.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to all..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramesh,
If you are facing problem in service call, you can follow other approach where service call is not required.
Follow the steps to bypass service call:
1) Take /collect the data required for BAPI call
2) Arrange all data in required format of BAPI i.e. importing parameter, table parameter etc.
3) Call the BAPI using pattern button
4) Pass the data collected in step 2 to the BAPI
5) BAPI will be executed and it will return the desired data in export parameter and table parameter
6) Use this data for following processing
Regards,
Saket
Edited by: Saket Abhyankar on Jan 11, 2010 2:55 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
go to the transaction sm59, and test whether connection is set with the destination or not
check this SAP online help :
Connection Establishment Using Destination (SM59)
http://help.sap.com/saphelp_nw04/helpdata/en/da/11df3a9b10355ae10000000a11405a/content.htm
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.