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 Maslova
Hi, 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
Similar Messages
-
hi,
I have send a file to a RFC using XI.The RFC.response is being received by XI correctly in XI Monitor.
Now,I need to send this RFC.response to Flat file.
For this,What i need to do? The only way is using BPM?
¿all the interfaces should be async?
Can any body help me step by step in this regard..........
I'm with XI 3.0 SP9.
Regards,
Antonio.Hi Antonio,
In the <b>Integration Repository</b> (Design) :
1. Create Data type, Message Type for Input file and Output file.
2. Import the RFC.
3. Now create Message Interface for both input (outbound type, asynchronus)and output (inbound type, asynchronus) files. Create Abstract Intefaces (asynchronus) for these two files.
4. Create a synchronus Message interface for the RFC.
5. Create the request (input file and RFC) and response( RFC.response and output file) Message Mapping.
6. Create Interface Mapping (between the synchronus inteface created in step 4 and RFC)
7. Create a <b>BPM</b> (Integration Process)with receive (input file), send (synchronus) and send(asynchronus).
In <b>Integration Directory</b> (Configuration)
1.Create new Scenario. Assign the Business System from which RFC is being picked and new Business Service.
2.Specify three communication channel. One each for input (sender) and output file (receiver) and one for RFC (Receiver).
3. Create the Integration Process.
4. Create a sender Agreement (between File Service and RFC(Business System))
5. Do three Receiver Determination and Corresponding Interface Determination
a. File Service and BPM
b. BPM and RFC(Business System)
c. RFC and File Service
6. Create two Receiver Agreement
a. BPM and RFC (Business System)
b. BPM and File Service.
Hope this will be helpful.
Regards
Suraj -
Hi Experts,
I´m with a problem in a interface FILE->XI-RFC (assynchronous).
I created a file in FTP directory and configured adapter file with pool 60 sec.
I´m testing in MM is OK.
I´m testing in IM is OK.
In SXI_MONITOR is OK.
When I go to Runtime -> CC Monitoring, display following error:
Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(1): com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.af.rfc.RfcAdapterException: failed to read funtionname from XML document: missing n.
Can someone help me??
tksHi peoples...
this problem was resolved...
My problem now is other...
I´m in RWB and now display this message:
Success Channel CC_FILE_SENDER: Entire file content converted to XML format
Success Send text file "sap_lims_file_1000000.txt" from FTP server "qtrsmrdev01:processar", size 431 bytes with QoS EO
Success Application attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System.
Success Trying to put the message into the send queue.
Success Message successfully put into the queue.
Success The application sent the message asynchronously using connection File_http://sap.com/xi/XI/System. Returning to application.
Error Attempt to process file failed with com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception thrown in method process. The transaction is marked for rollback.
Does problem is tha absent module processor in adapter sender????
ROD -
My ain.js file is meant to work on and access server files for tracking all visitors to the site I am developing.
One way to access it, in my plan, is to use index.htm. when I open index.htm it displays correctly and presents a link to ain.js with a query line (?a=zzzzz--e2).
The entire file is displayed; but not executed.
Short of building my own server (prior to publishing what I am developing) how do you propose I test what I have written?
As a retiree, I have limited funds (the purpose of developing a website is meant to coorect that).This forum is for Firefox user support, very few of our contributors are developers.
Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
http://forums.mozillazine.org/viewforum.php?f=25 <br />
You'll need to register and login to be able to post in that forum. -
ColdFusion 11 on RHEL, All Files in cfusion/bin are NOT executable.
Installed CF11 on RHEL and all the files in cfusion/bin are set to rw instead of rwx. I've tried both an upgrade install from CF9 and a fresh, clean install after removing CF9. No change. I've also tried both the prod an prod-secure profiles. How do I get around this? I see nothing related to this in documentation for the Linux installer.
RESOLVED: The CF installer writes a shell script into /tmp and tries to execute at the end of the install. For us, due to server lockdown for PCI DSS, we set the noexec or umask on certain file systems, so the shell script never executed. Remounted /tmp with execute permission until the installation and setup was done. Also had to update the cf_home directory group and user owner as it was mixed between root and the provided runtime user.
-
ERROR IN FILE--XI--RFC SCENARIO. BAPI did not UPDATE the DATABASE TABLE
Hi
I have created a scenario FILE -XI- RFC
File is picked by file adapter - Its working fine
I have used BPM
In RFC side i used BAPI_INCOMINGINVOICE_CREATE
Its working fine and return an Invoice Number and Fisical year .
When i Check this in the R/3 System , in Invoice no Does not Exist .
Message mapping is ok
SXMB_MONI all are ok
Receiver file i got the invoice no and fisical year .
The Problem is " DATABASE TABLE DID NOT UPDATED "
So should i do BAPI_COMMIT seperately ........
Any solution ................
VERY VERY URGENT .....
thanks in advance
B.Judehi jude,
Commit Control for Single BAPI Calls
If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values , S, I, and W are displayed. All other values are regarded as errors.
To change this setting, set the indicator BAPI Advanced Mode.
<b>In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.</b>
Regards,
Mandeep Virk -
We have a scenario, file 2 RFC, file is picked from FTP.
File is CSV file and has Invoices in it. After every invoice, there is a bapi call.
How to handle this.
Any docs or links or blogs would help me.
-Naveen.Hi Naveen,
File system will not support Application Acknowledgements. It will support only System Acknowledgements. So inorder to handle this we need to have a BPM.
Your scenario can be addressed like this..
File->XI(BPM)->R/3(RFC)
Please go through these links and see if it helps....
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Scenario File-XI-RFC-File
http://help.sap.com/saphelp_nw04s/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Hope This is Useful.....:-)
Regards,
Abhy -
Morning all,
I have a very simple A sync. scenario File to RFC.
To allow debugging of the Interface,my ABAP programmer has created an endless loop.
What's strange is that on SM50 I can track a new Process created by the XI user and after
a few more seconds another session with a new ID appears....
Have you encountered a similar issue before? what is the reason for it then?
Any way, after removing the "debugging loop " everything runs fine.
Points will be awarded for the most reasonable answer....
Nimrod GisisHi,
I do agree , see the below reason and links also
you can see that many dialog work processes are occupied with the program SAPLARFC. You might also see update or batch processes with the status stopped RFC.
This is because in transaction SMQS as many tRFCs were started at the same time as the parameter settings allow and this has resulted in the user contexts losing their rollability. This situation arises for instance when mass data is processed. See SAP note 726148 for more information and possible solutions.
http://help.sap.com/saphelp_nw2004s/helpdata/en/8a/145db7b9c3c64e8af1c0be1dae6f37/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/be/470dc21ca4447b828597f614aaaec1/frameset.htm
regards
Chilla
<i>reward points if it is helpful..</i> -
In my scnario file soap rfc i have used BPM.Even though the file is not picking up & its not calling webservices.Basically my requirement is i need to send a file which has to call webservice and the response has to get back to rfc.i am tring to work on this weblogs
/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
I am able to get response for rfc to soap,but i want to work on a scenario file-soap-rfc and the response has to come to file.
Can any one please help me out.
Thanks
sriramThanks moorthy for your response
I have already configured receiver determination from file to bpm,even i bpm after sync step i have taken asyn
step..
In adapter Framework
Channelscn8_OB Sender Adapter v2727 for Party '', Service 'DEV_Integration_Server':
Configured at 2006-05-11 10:56:36 GMT-07:00
History:
- 2006-05-11 11:08:37 GMT-07:00: Polling interval started. Length: 60.000 s
- 2006-05-11 11:08:37 GMT-07:00: Processing finished successfully
- 2006-05-11 11:08:36 GMT-07:00: Processing started
- 2006-05-11 11:07:37 GMT-07:00: Polling interval started. Length: 60.000 s
- 2006-05-11 11:07:37 GMT-07:00: Processing finished successfully
But the file is not picked from directory
But i could not see any response from soap adapter,
Thanks
sriram -
Now I ceate a user accout whis is user type and put him into remote desktop group.
he can login this server by remote desktop.
My server is windows 2003 but not in nt domain and it is a workgroup computer.
I want to limit him access right on one folder in which have many folders and .exe file.
I only want he can read , write,modify file and traverse folder but not execute any .exe file.
How can I implement this through NTFS.
Please give me some advice.Hi,
I think you could using advanced option to configure the file or folder permission:
http://technet.microsoft.com/en-us/library/bb727008.aspx
Regards.
Vivian Wang -
Problem in storing data in BAPI in File to RFC Scenario
Hi everyone,
I m doing File to RFC Scenario.......I completed design and configuration part and actived the Communication Channels.....
Now when I check in Runtime workbench I am getting succefully executed both at outbound and Inbound Channels.......but
data is not updated in BAPI...........
I m getting following error when I check in Component monitoring......
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: RfcAdapter: receiver channel has static errors: configuration exception caused by: com.sap.aii.af.rfc.core.config.RfcChannelInactiveException: channel has status inactive: com.sap.aii.af.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: configuration exception caused by: com.sap.aii.af.rfc.core.config.RfcChannelInactiveException: channel has status inactive
Please help me out.......
Regards,
Sudheer.Hi
"I took Business Service as Service but not Business System.....Will it effect the scenario???......"
I suggest While dealing with the SAP Systems we should use Business systems.
Pls check the foolowing Threads for the above Query
RFC - Business Service
Re: business service for file to rfc
Regards
Abhijit -
Error loading fields in file to RFC (bapi) scenario
Hi,
I'm developing and testing a file to RFC interface
In message monitor all is processed successfully and payload in Technical Routing it's like:
- <IT_TAB>
- <item>
<WERKS>0001</WERKS>
<FECHA>20080129</FECHA>
<HORA>131250</HORA>
<FILENAME>filename</FILENAME>
<MATNR>000000000000000015</MATNR>
<SPEME>00000000.000</SPEME>
<LABST>00000432.000</LABST>
</item>
- <item>
... </item>
I've create a function in R3 which imput table has the same fields (werks, fecha, hora, filename, matnr, speme, labst)
However, when i try to process data, this function seems to load fields incorrectly:
werks = 0
fecha = 00000000
hora = 000000
filename = 0150001
matnr = filename
Why?
CarmeHi Carme !
1) check that the imported RFC definition in XI is the current one and matches with the one of SAP R3.
2) check that you mapped the file message type to the imported RFC request message type object
3) check that the mappings are ok. Test mapping works ok?
4) try to use a file adapter instead of an RFC adapter in the receiver channel to have the content of the input file written on a file in the file system to check if the data is coming in the right format out from XI.
5) try your RFC manually in R3 and see if it works ok.
6) compare the data types of the parameters between the RFC that does not work and one that it does, to see if there is something strange
Regards,
Matias.
ps:please award points if helpful -
File to RFC(BAPI) asynchoronous strange error.
Hi,
Iam doing a File to RFC scenario. It is a sale order creation. We are using the BAPI BAPI_SALESORDER_CREATEFROMDAT2. I tried to execute the BAPI in R/3 manually with the mandatory fields like DocType, Material, Quantity, Parnertype & Partner number. It is executed successfully manually. But when implemented the same in XI with the same data. It is throwing some stange errors like
Order type not defined.,
TYPE='E', Message (ID:VP, NUMBER:112): "Please enter sold-to party or ship-to party", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:SALES_HEADER_IN, ROW:0, FIELD:, SYSTEM:ERDCLNT220)
TYPE='E', Message (ID:V4, NUMBER:219): "Sales document was not changed", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:, ROW:0, FIELD:, SYSTEM:ERDCLNT220).
Finally BAPI Executed with the errors. Manually it is working in R/3. But when I call it Xi it is erroneous. Please help me in resolving this.
Thank You.
Radhika.>>Finally BAPI Executed with the errors.Manually it is working in R/3. But when I call it Xi it is erroneous.
It should be because of the DATA you are passing to the BAPI.
Try to execute the scenario by passing similar data to bapi that was executed manually and check what happens.
Also check if you have missed to map/pass some fields value to BAPI which is causing the BAPI to error out. Check you mapping again...
Thanks
SaNv... -
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 -
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
Maybe you are looking for
-
How To Populate An Advanced Data Grid In Flex With An XML Document Created In JAVA
Flex Code: <?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="856" height="698" initialize="onInitData()"> <mx:RemoteObject destination="utilityUCFlexRO" id="utilityUCFlexRO">
-
Role creation and modification report
Hello everybody! The SOX Audit requested this information: A list from all roles, with creation and modifications date (not when a user is added, but when the role was changed). How can I find this? I tried on SUIM / modification docs, but could not
-
Update to Mountain Lion has disabled Word and Excel. Now what?
-
Why cant I have the date format like this: 1/2/07, it converts to Jan 2
Why cant I have the date format like this: 1/2/07, it converts to Jan 2, 2007 I want to keep it like that because, I transported a huge spreadsheet from my PC, and it has like this: 1/1/07, and there is way to many, to go back and change. Please help
-
My old logic 9 projects won't open properly in logic X
My old logic 9 projects won't open properly in logic X, even after saving as logic X files with all of the assets. None of the audio files are there, nor any of the data. It is just a blank project. Any ideas?