RFC & BAPI problem in SUP 2.0
Hi,
I have been using the Standard BAPI's & RFCs for my app. However i am getting the errors for all of them while actually using in workflow app.
1] Invalid Templet for BAPI.
2] java.io.Exception:JASON:character not standard date time type
3] ____BAPI Return is not a standard DateTime type
But i can see the preview of all successfully. Do we need some kind of special requirement fo BAPI & RFC's to work in SUP ?
I am using MBS & simple workflow app concept to design. I have also searched the SDN for any SUP 2.0 & SAP BAPI example. I found My Flights but that was too old in previous 1.5.2 i think so which is of no use.
Your help highly appreciated
BR
Yogesh
Hi,
That's the first thing i checked the version, I have the latest JCO & JAR files being used. So there is no version conflict in Backend EIS & the front UI.
I am on digging out the infinitesimal log entries in the server to fetch the exact reason behind the problem.
I would like to know if you have ever imported the BAPI or RFC would you normally get conflicts with SAP returning the NULL or NaN values from backend.
Because I know Sybase Messaging Client can not handle the NaN & NULL values thats an offcial confirmation from Sybase for RESTful WS i got.
So may be its same but i am not sure I must or someone who has encounter these errors should confirm this.
Best Regards
Yogesh
Similar Messages
-
RFC Implementation problems with SUP iOS
Hi All,
I have two RFCs, the first one is quite simple with two string inputs (defined as load parameters) and the output without any table. The Second one has several output tables and several inputs (String) including an Inputstructure.
The first one is working fine, the second one doesnt work at all. I'm really sure that I implemented everything according to the Documenatation:
Sybase Unwired Platform 2.1 > Sybase Unwired WorkSpace - Mobile Business Object Development 2.1 > Develop > Developing a Mobile Business Object > Creating Mobile Business Objects > Creating Multiple Mobile Business Objects From a Single Operation
Are there any known pitfalls regarding the RFC implementation in SUP that are not documented? I'm trying to implent this RFC now for days and I'm not sure if its my fault or a bug in SUP....
Thanks for any helpIf I understand your problem correctly you are not able to see the out parameters while creating an MBO in SUP? if that's the case, for multiple parameters as an out put you might have to implement a result checker, it will not turn up as an output while creating the MBO.
Srinivas Divakarla -
Passing values to RFC/BAPI Table
Hi,
I am having a very strange problem. While passing the values to RFC/BAPI table using add method the values are not passed to backend SAP. Below is the code which I am using just to pass some data in RFC/BAPI table.
The same code was working few days back. Is there any configuration in JCO or any other problems other than the code?
Your l help is greatly appreciated.
public void executeZtest_Function_Input( )
// //@@begin executeZtest_Function_Input()
// //$$begin Service Controller(943377124)
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try{
Ztest_Function_Input input = new Ztest_Function_Input();
for (int i=0; i<5;i++){
Zhr_Ear_Cclist cc =new Zhr_Ear_Cclist();
cc.setFi_User("[email protected]");
input.addIcc_List(cc);
wdContext.nodeZtest_Function_Input().bind(input);
wdContext.currentZtest_Function_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
} catch(WDDynamicRFCExecuteException ce) {
manager.reportException(ce.getMessage(), false);
//$$end
//@@endHi Raksh,
I also got the same problem. Please check the following ways then you will solve problem.
1. First check the appropriate BAPI in SAP GUI Software. You have to determine where is the problem?. Is it in Dynpro or BAPI itself?.
2. Suppose the BAPI structure change you will wont't run. If BAPI strusture change you have to reimport BAPI.
3. Please check the JCo connectio using test Button. Then redeploy your project.
4. Rebuild your project then redeploy.
Check the above ways you may get answer.
Kind Regards,
S.Saravanan -
Second Time, RFC execution Problem!
Hi all,
Has any one encountered this problem, when calling RFC First time fine and getting data from BAPI, when i call same RFC again, Second Time, RFC execution Problem!. Any idea!, Now i restarted server, that may cause the problem. Other than this, please give me your idea.
Thanks
Ravi GollaHi Bhavik,
<b>In View Controller:</b>
public void onActionCreateProject(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionCreateProject(ServerEvent)
wdThis.wdGetArchCompController().CreateProject();
wdThis.wdFirePlugOutToProjectCreationResult();
//@@end
<b>In Custom Controller:
</b>
wdDoInit()
__Arch__Arm_Project_Create_Input create = new __Arch__Arm_Project_Create_Input();
wdContext.node__Arch__Arm_Project_Create_Input().bind(create);
public void CreateProject( )
//@@begin CreateProject()
try
wdContext.current__Arch__Arm_Project_Create_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
catch(WDDynamicRFCExecuteException ex)
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());
ex.printStackTrace();
//@@end
I am using other functional modules they all working fine, this is one only has problem
Thanks Bhavic.
Regards
Ravi -
Http == rfc (bapi) - bapi not created
Hi
I've got an http <==> rfc (bapi) scenario. QoS is Best Effort. I am using SAP's http test tool. After enabling the "synch-logging" I can see two successful rows. I am using the bapi "bapi_master_savedata".
Some weird things:
- no material master data is created.
- The parts of the response message are only "Call Adapter" and "Request Message Mapping", nothing else.
Thanks
Go:khanHi
I think you pointed to the right problem.
I haven't written something like that before, but I will try if there is no other solution.
So I don't need any wrapper for a syn. rfc call with SP 14??
But the following article doesn't use any wrapper "/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit ??
Thanks
Go:khan -
Hi,
I need to call RFCs/BAPIs from a web application outside SAP for various monitoring things like IDOC Monitoring,Shortdump monitoring etc.
The following are the things what I need to get using RFCs/BAPIs from SAP.
Let me know, if anyone have any idea about the RFCs for the below things
a) SAP User-Statistic-files (stat-files)
Target is to get all info who was doing what in the SAP
b) Workprocess-Overview
c) Server-Overview
d) User-Overview (active users / Connected users)
e) Addressdata of the users and Companies
f) Client List
g) Batch Job-Overview
Stopped Jobs, Runtime of them, user that started the job, Jobname, gui-name, and delay of starting
h) Shortdumps
Shortdump list
i) Update check
Status of the update processes
j) Batch input Folder
Staus and Problems
k) IDOC
Idoc Number and errors
l) Syslog Info / Filter
SM21
m) Average Responsetime
(by day, hour = Moni-files / CCMS) Number of (Dialog-User-Dialogsteps, Dialog-Program-Dialogsteps, Batch-programs, print/Spool-jobs, Update)
n) Loging of processes
o) Backup statusHi
Use the Tcode BAPI to find the different BApis related to the different functionality
see the Links
BAPI
http://help.sap.com/saphelp_nw2004s/helpdata/en/7e/5e114a4a1611d1894c0000e829fbbd/frameset.htm
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
Regards
Anji -
File to RFC/BAPI - Async- How to capture response field value
Hi,
I am doing File to RFC/BAPI Scenario. I have Two BAPI's. THe same source xml file is mapped to the Two Target BAPI's.
For the first flow i.e File to BAPI1, I need to capture BAPI Response, field value and pass this value as Input to the BAPI2.
How do I proceed with the Mapping. I am working on PI 7.1
Any input would be Appreciated.
Thanks & Regards,
VarunHi Varun,
apparently you need a Business Process:
XML -> BP (asynchronous), Map to Bapi1 request structure
BP -> BAPI 1 (synchronous)
Transformations step with multi mapping merging XML and Bapi1 response to Bapi2 request structure
BP-> BAPI2
Regards,
Udo -
Rfc sender problem(sap r/3 -se37) 'alternativeServiceIdentifier: party/serv
Rfc sender problem: While executing the rfc in sap r/3 system
It is showing abap run time errors are
'alternativeServiceIdentifier: party/service from channel
configuration are not
(i have taken hint from this weblog /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step)
These are the configuration at sap xi and sap r/3 system
1) SAP XI (ID)
I have created rfc sender commuication channel in I.D.
Rfc server Parameters->
A.S.(Gateway)-> server {sap r/3 server name}
A.S.S.(Gateway) -> sapgw00
program id -> PDPT
AND RFC Metadata repository parameter
2)SAP R/3 (SM59)
Rfc destination -> PPPP
Connection type -> T
Technical Settings->
(*) Registered Server Program
Program ID -> PDPT
Gate way options
Gateway host -> server
gateway service -> sapgw00
Testconnection-> connected
3) testing rfc at sap r/3(se37)
But when i am executing a rfc in sap system
Rfc target system -> PPPP
and some import parameters
and it is showing the error message as
'alternativeServiceIdentifier: party/service from channel
configuration are not '
4)SAP R/3( SMGW)
CONNECTION TO CLIENT FOR PDPT(TP NAME) REGISTER STATUS IS WAITING
Please help me how to solve this problemHi,
SAP Note 730870 FAQ: XI 3.0 RfcAdapter Q.no 15
<i>Q 15: Whats wrong when the error message "lookup of alternativeServiceIdentifier via CPA-cache failed" shows up while sending a RFC call to the RfcAdapter?
A: A RFC sender channel is located beneath a service within the Integration Directory. Within this service choose "Service" -> "Adapter-Specific Identifiers". The values in the fields "R/3 System ID" and "Client" has to be maintained with the correct values of the system, that sends the RFC call to the RfcAdapter. It normaly only makes sense to have these values filled for services of type "Business System". If maintained in SLD, this fields will be filled automaticaly for services of type "Business System" and can be updated with the button "Compare with System Landscape Directory".</i>
- Give correct appserver and gateway service details in XI.
- Open the service holding the RFC adapter you are trying to use. On the top menu, goto Service -> Adapter Specific Identifiers..
Regards,
Prateek -
ALE/IDOC and RFC/BAPI Integration Scenarios with SAP DS for ESA v3
Hi,
we are planning two PoCs of Integration Plattforms. One of our major requirement set is SAP Integration into our existing SOA.
Because we also have R/3 4.7 Systems in production, we are planning to test ALE/IDOC and RFC/BAPI Integration scenarios with these Integration Plattforms.
My question is:
We are looking for are smart solution to get a SAP Test Environment, where we can test ALE/IDOC und RFC/BAPI Integration scenarios.
It is possible to do this with SAP DS for ESA v3 or shall we better use IDES for that purpose?
Best regards,
StevenHi Abhishek,
This is our scenario. We are doing an integration of SAP HR r/3 system with the CRM system. We need housing information details of the employees which we have in custom infotype 9310 in SAP HR system and we need those details in the CRM system. So am planning out for an ALE/IDOC approach for the integration and gonna maintain the 9310 details in a custom table. In the CRM system, we gonna build a BOL layer for accessing the 9310 details. Also i'm preparing a HLD for this process. I wanna read and go through few same HLD's before i submit my proposal to my client. Please suggest me and help me out.
Thanks in advance.
Regards,
Arunmozhi. -
How to use field symbols while creating a new RFC Bapi
Hi all,
I have written a RFC Bapi in the traditional way.
I need to replace all with field symbols (import. export. tables and source code).
What is the syntax ?
Any sample codng will be more helpful.
Regards
SenthilPlease search for available information on "field symbols" before posting
Thread locked
Thomas -
How to passing lowercase values to RFC/BAPI using webdynpro for JAVA
Hi Exerts,
When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.
So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?
Thanks in advance,
JoeriHi,
There could be two possibility if you are storing this value in ABAP table.
1. You are entering value in UPPERCASE in your webdynpro application.
2. The data stored in ABAP table, converts value in small to upper case.
1. Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???
Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI
e.g String name = wdContext().currentContextelement().getName().toLowercase();
Now pass this name to RFC/BAPI is should go as lowercase only..
This is from webdynpro java side..
2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.
There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.
Hope this information helps guy ..!!!!
Regards,
Jigar -
Scenario File to RFC (BAPI): BAPI not executed successful
Hi Dear Friends!
At execution of asynchronous Scenario File to RFC (BAPI BAPI_ACC_DOCUMENT_POST)
I have the following error in RWB Communication Channel (RFC receiver):
- Error: 2007-07-25 11:08:25 EEST: Message processed for interface BAPI_ACC_DOCUMENT_POST:
com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message
to remote system:com.sap.aii.af.rfc.core.client.RfcClientBapiException:
BAPI not executed successful
Simultaniously <b>Test Configuration</b> was executed successfully. And mapping is good.
But I don't any message in <b>target system</b> in <b>sxmb_moni</b> (formed by BAPI).
In <b>XI system</b> I see in <b>sxmb_moni</b>:
<Trace level="1" type="T">--start sender interface action determination</Trace>
<Trace level="1" type="T">select interface mi_sender*</Trace>
<Trace level="1" type="T">select interface namespace urn:file:to:bapi</Trace>
<Trace level="1" type="T">no interface found</Trace>
<Trace level="1" type="T">--start receiver interface action determination</Trace>
<Trace level="1" type="T">Loop 0000000001</Trace>
<Trace level="1" type="T">select interface *</Trace>
<Trace level="1" type="T">select interface namespace</Trace>
<Trace level="1" type="T">no interface found</Trace>
<Trace level="1" type="T">--no sender or receiver interface definition found</Trace>
Please help me understand my error.
With the best regards,
Natalia MaslovaHi, Dear Friends! Thanks for support!
My settings of
Connection between systems:
DX7 01 (client 001) - XI Integration Server and DE2 13 (client 200) - target system.
Phisically both systems are in one server: 10.20.30.24 (srv24)
Business system DE2_200 has Communication Channel: cc_bapi_r, its settings (in Integration Builder Configuration):
Adapter Type: RFC
Receiver
Transport Protocol: RFC
Message Protocol: RFC (RFC XML)
Adapter Engine: Integration Server
RFC Client Parameter:
RFC Server Type: SAP System
Application Server: 10.20.30.24
System Number: 13
Authentication Mode: Use Logon Data for SAP System
Logon User: n_maslova
Logon Password: *******=*******
Logon Language: EN
Logon Client: 200
Maximum Connections: 1
x Advanced Mode
x Send 'Confirm Transaction'
x Commit Handling for Single BAPI Calls
x BAPI Advances Mode
Successful RETURN-TYPE Values: 0
As I understand these settings are the settings of RFC-destination for target system DE2 13 (200) from XI (DX7 01 001).
In SLD, Business system DE2_200 is defined as:
Integration:
Role: Application System
Related Integration Server: DX7_001
Technical System: DE2 on srv24
Client: 200 of DE2
Logical System Name: DE1CLNT200
In target system DE2 13 (200) with the help of transaction sm59 I created
RFC-destination DX7_001 of type H:
Technical setting parameters:
Target Host: 10.20.30.24
Prefix Path: /sap/xi/engine/?type=entry
Service Number: 8001
Registration and Safe:
SSL: Non active.
SSL: client certificate: DFAULT SSL-client
Enter to system:
Language: EN
Client: 001
User: PIAPPLUSER
Status PW: saved
Password: ********
After that in this system DE2 13 (200) with the help of transaction sxmb_adm I set in Integration Engine -> Configuration -> Configurate Integration Engine
(Change Global Configuration Data):
Role of Business System: Application System
Related Integr. Server: dest://DX7_001
Best regards,
Natalia -
Hi All
I am learning XI and the difference between " ALE, IDOC, RFC, BAPI, BADI "
Not clear and when to use what and how in point of XI ?
Pl..clarify me
Adv..thanks and points
--- Rakesh BeheraHi
This will expalin you every thing ...pl..go through
The interface concept of the classic R/3 is based on two different strategies: Remote Function Calls (RFC) and data exchange through IDoc message documents. RFC makes direct and synchronous calls of a program in the remote system. If the caller is an external program it will call an RFC-enabled function in R/3 and if the calling program is the R/3 system it will call an RFC-function in another R/3-system or it will call a non-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
The philosophical difference between EDI and ALE can be pinned as follows: If we send data to an external partner, we generally speak of EDI, while ALE is a mechanism to reliable replicate data between trusting systems to store a redundant copy of the IDoc data. The difference is made clear, when we think of a purchase order that is sent as an IDoc. If we send the purchase order to a supplier then the supplier will store the purchase order as a sales order. However, if we send the purchase order via ALE to another R/3 system, then the receiving system will store the purchase order also as a purchase order.
I hope this will help you to understand the difference bet..those
regards
--- prasad -
Documentation on Function Modules,RFC,BAPI
hi friends,
I have to give training in these 3 topics(function module,RFC,BAPI) .can u please help me with the documentation part .
thankuhi,
give your mail id, such i can forward documents to that.
regards,
Pavan -
Is there a common RFC/BAPI so that using it I can create multi report in EP
Hi,
I am new to EP ..
I have to generate some 25 reports of R3 systems which shoudl be exposed to EP. After going thru the docs on EP..
It says that for every reports I need to create either an RFC or a BAPI. But It is a tedious job to create RFC functions for every report. Since these report is already there(Written) in the R3 System. I hate to convert these again as an RFC for every report.
Is there a common RFC /BAPI where I need to pass required parameters and the transaction code for a specific report instead of creating a new RFC for every reports. so that that specific RFC will do the job for me.
Is there a better/intelligent way to accomplish this task.
Please do not say use SAP trasnational iViews ... As this expose the SAP GUI directly to the user..thru this one can trigger new transactions ... Correct me if I am wrong.
thanks
Pkiranthanks mario,
very helpful answer
pkiran
Maybe you are looking for
-
Hi All, I have a update problem in nested table. Below is my query: CREATE OR REPLACE TYPE TRACER.SEARCH_DATA AS TABLE OF VARCHAR2(20); UPDATE TRACER_SEARCH_SCHEDULE_LOT_NUM SET NOT_FOUND_SOR_LOT_NUM = SEARCH_DATA( SELECT COLUMN_VALUE FROM TABLE (SEL
-
ITunes 10.7 will not install on Windows Vista
I just got a new iPhone 5, and so I need to update to iTunes 10.7. But, whenever I attempt to install iTunes onto my computer, after completely downloading everything, it starts the install, but after about a minute of this, it stops installing and s
-
BAPI_DOCUMENT_CREATE2 throws communication failure exception
Hello to all, I want to upload a file in WebDynpro ABAP by placing a service call to BAPI_DOCUMENT_CREATE2. But i am getting "communication failure" exception. Request your help on this issue. <b>(RFC Exception COMMUNICATION_FAILURE with Message RFC
-
Change Label Sort Order (in icon view)
How can I change the order that labels are sorted in? In list view, labels are sorted in alphabetical order, so you can change the order by changing the label names, but labels are always in the same order in icon view - and it's not a particularily
-
How to make file associations in XFCE permanent
Hi, I have a problem with file associations in XFCE (Thunar, actually), because I can't make it permanent. After setting up, they work fine, but they change to default values after some time. Anyone with same problem?:|