File-bapi-proxy sunchronous scenario
Dear experts,
I am working ona scenario.
Sender will drop the required file on XI directory and XI will pull the file and map it with the BAPI u2013 and crate service entries in SAP r/3 via abap proxy. If errors are encountered during the process they are returned to the client in a report or as erroneous file via abap proxy.
I have created 2 MESSAGE types
a) MT_Get_Request
b) MT_Get_Response
Also have imported a standard BAPI i.e BAPI_EntrySheet_Create
question is : How to create teh synchrounous message interface
1) one message will be OUTBOUND SYNCHRONOUS
OUTPUT MESSAGE : MT_Get_Request
input message : MT_Get_Response
how will be the other inbound synchronous?????
Would it be
Outpit Message : BAPI_EntrySheet_Create
Input Message : BAPI_EntrySheet_Create.Response ?????????
or ?????
Experst, please explain me the design . Each answer will be appreciated
Thanks
Veeru
Hi Viru,
Would it be
Outpit Message : BAPI_EntrySheet_Create
Input Message : BAPI_EntrySheet_Create.Response ?????????
or ?????
YEs you can use the BAPI interface as a synchronous interface, with BAPI_EntrySheet_Create and BAPI_EntrySheet_Create.Response as the request response message type...
alternatively, you can create an inbound synchronous interface and use the bapi as its input (BAPI_EntrySheet_Create) and output (BAPI_EntrySheet_Create.Response) message type.
Also since the sender is a file you may need to use the ResponseOnewayBean as mentioned in this wiki page:
http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without+BPM%29
http://wiki.sdn.sap.com/wiki/display/HOME/UsingRequestResponseBeanModuleinFILE+Adapter
Regards
Suraj
Similar Messages
-
File to Proxy synchronous scenario
Experts,
I am working on a File to proxy synchronous scenario.
I am doing the content conversion at the sendre side by using java program as input structure is very complex so have to go fr java code. Its a txt file at sender side.
Once I read the file in XI, am doing a graphical mapping ( just one to one mapping) then using the server proxy , a service entry is getting created then response am sending to the receiver.
My question is , can I use graphical mapping as I am using a java class for content conversion? both in one scenario is possible?
I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
Can Any one help me wz thsi one?
Thanks in Advance
VirendraMy question is , can I use graphical mapping as I am using a java class for content conversion?
You can use as long as the structure generatde by the JAVA program is same as the source-message structure of the message mapping.
I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
In my opinion this should be the adapter module....as the conversion needs to be done in the channel and inclucing it as a mapping wont help.
Regards,
Abhishek. -
Error in FILE 2 Proxy Scenario
Hi All,
I am doing File to Proxy Scenario i am getting following error
Could any one provide the solution for this.
*<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>*
*- <!-- Call Inbound Proxy*
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIProxy</SAP:Category>
<SAP:Code area="ABAP">INTERFACE_REGISTRATION_ERROR</SAP:Code>
<SAP:P1>ifmmessif</SAP:P1>
<SAP:P2>MI_Emp_Sender</SAP:P2>
<SAP:P3>Namespace</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>No implementing class registered for the interface (ABAP interface, request message MI_Emp_Sender, request message, namespace )</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
Thanks in Advance
Mahesh
</SAP:Error>
Edited by: Mahesh Reddy on Jul 10, 2008 12:47 PMHi Mahesh,
1) Use SPROXY transaction.
Menu-> Proxy -> Activate All.
2) check in the interface determination if u are using correct
inbound interface.
3) If this if fine....try deleting all proxy objects of the interface
and create new.
Regards,
Praveen K -
File to Proxy Scenario : Error in communication channel monitoring
Hi,
I have developed File to Proxy Scenario on PI 7.1 system and it is not working. I see the below error in communication channel monitoring.
u201CError: com.sap.engine.interfaces.messaging.api.exception.ConfigException: Some of the IS access information is not available. SLDAccess property may be set to true, but SLD is not available.u201D
File will be picked from the FTP server.
I have created File system in SLD of type "Third Party", Can this be the issue?
Please guide me on this.
Thanks,
ChandravadanHi!
Check if the tcode SLDCHECK is ok!
Check note #764176.
Also, refer to link below and execute each steps from the links there MANUALLY.
Wizard-Based Configuration:
http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/2e4c1b16bb4aa8e10000000a11466f/frameset.htm
Regards,
Caio Cagnani -
Dear one,
I need a solution for my problem facing this moment.
Here is the File to proxy scenario explained.
I created three new fields in XI IR to map three more fields from File to CRM .On this line,I created three fields in IR and passed the updated file(containing three new filelds) and interfaced.Before that I had regenarated and activated CRM level proxy too.
The file was red by XI and moved to CRM also.
Now my problem is that I can see the three new fields in SXMB_MONI when I got into detail of that . But when I debug the CRM proxy the value for these three fields are not displaying over there .
These three values are displayed in XML message but not in proxy ,why it is so?.
Please help me out to resolve the issue.
Swasthi,
KarthikHi Manjusha,
Here is the reply:
Is the issue with the fields , or the values in the fields ?
Ans:Issue is with the values ,not with the fields .
Is it that your proxy structure doesn't have the fields ?
Ans:Proxy structure have the fields but not value.
Can you check sxmb_moni in the CRM system if these fields with value appears.
Ans:I checked in the CRM system
<TOTL_INFO>
<DT_INVOICE>
<MT_Invoice>
<ECOMM_VAT_BASIS_AMT>12</ECOMM_VAT_BASIS_AMT>
<ECOMM_VAT_AMT>13</ECOMM_VAT_AMT>
<ECOMM_CURR_CODE>GBP</ECOMM_CURR_CODE>
</TOTL_INFO>
</DT_INVOICE>
</MT_Invoice>
Both field and values are coming perfectly in XML message..
You can see that above in last three fields (Field- ECOMM_VAT_BASIS_AMT , Value-12 and etc.).
Only values are not coming in proxy structure(table) ....fields are coming with no values
Pls let us know yr views. -
Hi All,
I hav a file to proxy scenario. The XML file is sent as a proxy from XI to ECC. but ECC is receving it as a blank file.
SXMB_MONI in XI is success but in ECC it has failed. Please help us understand where the problem is occuring.
Regards,
Sudeep RHi,
Please check your sxmb_moni in ECC & XI, in both message, check the message data is same.
If you are receiving data on PI from file successfully, the problem can be in Mapping in PI, check that in PI. In this case data will not be sent to ECC System.
If you are receiving data on ECC from PI, now check the problem in Proxy code.
Check the steps for inbound proxy in the below blog :
/people/sandeep.kaushik/blog/2010/07/15/abap-proxy-complete-developments-on-sap-pi-sap-abap-systems -
Hi Experts,
I am working on File To Proxy Scenario. I am getting the below Error: The Messages in SXMB_MONI are going to AUtomatically Restart Status. I see some Queues with RETRY Status in SMQ2. When i am testing from SPROXY, the Table is Updated with the Corresponding Values. But when i place the file in the ftp folder then i am getting this error.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">CLIENT_SEND_FAILED</SAP:Code>
<SAP:P1>500</SAP:P1>
<SAP:P2>Internal Server Error</SAP:P2>
<SAP:P3>(See attachment HTMLError for details)</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Error while sending by HTTP (error code: 500, error text: Internal Server Error) (See attachment HTMLError for details)</SAP:Stack>
<SAP:Retry>A</SAP:Retry>
</SAP:Error>
Please check and do the needful .
Regards,
GIRIDHARHi Giridhar,
The problem is with connection. Please check the below discussion
HTTP returns status is 500(Internal Server Error)
Problem in ABAP proxy........ | SCN
regards,
Harish -
File to Proxy scenario message failed in ECC with staus SYSFAIL
Hi All,
We are working on File to proxy scenario, PI able to send message successfully to ECC, but In ECC , message got stuck in queues with the status 'SYSFAIL',
when I read the error message it is showing Address Invalid.
when I run the LUW, it is giving 'Function module does not exist or EXCEPTION 'raised message.
I'm using PI 7.1 EHP1 , ECC 6.0, can anyone suggest the trouble shooting guidelines for this issue?
Thanks,
Venu.when I run the LUW, it is giving 'Function module does not exist or EXCEPTION 'raised message.
in your code, there seems to be an invalid statement.
check the proxy code. -
Premature end of file failure in Proxy-SFTP scenario
Hi All,
We had this asych. scenario working until, we got a request to send field names in the payload.
In the receiver communication channel, under Module tab I've defined as below:
Processing Sequence
1 AF_Modules/StrictXml2PlainBean Local Enterprise Bean 0
Module configuration:
Module Key Parameter Name Parameter value
0 addHeaderLine fromXML
0 dataRec.fieldSeparator |
0 singleRecordType dataRec
Now when we try to send data its failing with the below message:
Starting strict XML to plain text conversion
2011-09-28 12:16:26 Error Adapter Framework caught exception: Premature end of file.
2011-09-28 12:16:26 Error Delivering the message to the application using connection SFTP_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: org.xml.sax.SAXParseException: Premature end of file..
2011-09-28 12:16:26 Information The message status was set to WAIT.
Please can anyone help with this? Am I missing something here?
Thanks,
Priya.check out this link. it might help you..
File Content Conversion Error in PI 7.1 (file to Proxy) -
Hi Experts,
I am working on the scenario like File-Bapi-Idoc
1) Getting the file from external system, in the file
If the Sonumber is populated then need trigger an Bapi_change
and after getting the response flag as 1 from Bapi then have to send all those file fields through IDOC-.
Else
2)If the Sonumber is not populated from the file then need to trigger a Bapi_Createfromdat to create the sales order and receive the salesorder number as response from Bapi then
have to send all those file fields and Bapi response sales ordernumber through the same IDOC which is mentioned in the point 1.
Please provide the solution for this.
Is BPM required for this,if so provide the steps.
Thanks in advance,
PraveenHey,
you will require a BPM for this.
Steps.
1) recieve step(abstract async) for the file
2) Switch case: condition based on the Sonumber i.e . whether it is populated or not.
Branch 1(of switch if Sonumber is populated): send step(abstract synchronous) recieves flag as 1.
Branch 1 will also have a transformation step that will consist of the mapping between bapi_change and Idoc
Branch 2(of switch if Sonumber is not populated):send step (abstract synchronous) recieves sales order number. the creation logic will be written in the BAPI.
Branch 2 will also have a transformation step that will consists of mapping between Bapi_create and the Idoc.
3) After the switch there will be an abstract asynchronous send step for the Idoc.
In Inegration directory:
Channel: File, RFC and Idoc.
receiver determination
File-> BPM
BPM->RFC
BPM-> IDOC
Now for Idoc you require ALE settings both on XI as well as R3
Steps for ALE settings:-
Steps for XI
Step 1)
Goto SM59.
Create new RFC destination of type 3(Abap connection).
Give a suitable name and description.
Give the Ip address of the R3 system.
Give the system number.
Give the gateway host name and gateway service (3300 + system number).
Go to the logon security tab.
Give the lang, client, username and password.
Test connection and remote logon.
Step 2)
Goto IDX1.
Create a new port.
Give the port name.
Give the client number for the R3 system.
Select the created Rfc Destination.
Step 3)
Goto IDX2
Create a new Meta data.
Give the Idoc type.
Select the created port.
Steps for R3.
Step 1)
Goto SM59.
Create new RFC destination of type 3(Abap connection).
Give a suitable name and description.
Give the Ip address of the XI system.
Give the system number.
Give the gateway host name and gateway service (3300 + system number).
Go to the logon security tab.
Give the lang, client, username and password.
Test connection and remote logon.
Step 2)
Goto WE21.
Create a port under transactional RFC.(R3->XI)
Designate the RFC destination created in prev step.
Step 3)
Goto SALE.
Basic settings->Logical Systems->Define logical system.
Create two logical systems(one for XI and the other for R3)
Basic settings->Logical Systems->Assign logical system.
Assign the R3 logical system to respective client.
Step 4)
Goto WE20.
Partner type LS.
Create two partner profile(one for XI the other for R3).
Give the outbound or inbound message type based on the direction.
Step 5)
Goto WE19
Give the basic type and execute.
fill in the required fields.
Goto IDOC->edit control records.
Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
Click outbound processing.
Step 6)
Go to SM58
if there are any messages then there is some error in execution.
Goto WE02.
Check the status of the IDOC.
Goto WE47.
TO decode the status code.
Step 7)
Not mandatory.
Goto BD64.
Click on Create model view.
Add message type.
BD87 to check the status of IDOC.
In case if not authorized then go to the target system and check in SU53, see for the missing object
and assign it to the user.
SAP r3
sm59(status check)(no message)
WE02(status check)
WE05(status check)
BD87(status check)
WE42 process code
WE47 status info.
reward points if useful
regards,
Milan -
File - BAPI - File Synchronous scenario
Hi all,
I am working on a 'flat file--> BAPI --> flat file' scenario. This is a synchronous scenario in which data from input flat file will be sent to BAPI on R/3 side and from the response of BAPI a flat file will be created.
Is it possible to implement this scenario without using BPM ?
Thanks.Hi Minal,
For this, you hv to use BPM
The BPM procee will look like this
1. Receive step (Receive the data from file)
2. Sync send to R/3 and get a response
3. Async send (response) to File
Check the following link
<a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit:///people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Regards,
Akshay
Message was edited by:
Akshay Salunke -
Hi
In case of file-xi-proxy I have a business rek like
In the event of ABAP program fails to complete normally, a error should be logged.
A notification should be sent to production support. How to send the error which has occured in ABAP system to production support ??
Thanks
kumarHey
please have a look at the following
How to trigger alert in XI from a connected SAP R/3 4.7 system
Thanx
Aamir -
File To Proxy : Handle the response from ECC to send mail without BPM
Hi,
Scenario: FILE To Proxy
Requirement: We are receiving xml acknowledgement file from bank with IDoc number and status in SAP PI and the file is used to send the status number, message and and IDoc number to ECC. After request is received in ECC BAPI is executed to update the original status of outbound IDOC.
There would be multiple records in file and PI will send all IDoc acknowledgement to ECC to update the IDoc status.
Issue: Since PI send all records to ecc, if any single IDoc status update is failing in ECC how would it can be communicated to support.
ECC can send success or error response in proxy but how we can use the same in PI to send mail to support. Or is there any better error handling we can go for in such scenario.
Thanks,
VertikaHi everyone
thanks for response.
Interface 1: IDoc (ECC) to File (Bank) --> Done
Interface 2: Acknowledgment File (Bank) to BAPI (ECC) where BAPI will update the status of IDoc sent in first interface.
For Interface 2 : PI will receive file from Bank with multiple records i.e multiple IDoc numbers and their status. PI will invoke proxy to send the IDoc number and status number (eg 16) for all the records together. Now if BAPI fails to update status of any single IDoc in that file how support team will know that the particular record is failed. To handle this error ECC is saying they can send Error and Success back to PI. But the problem is how we can use that response in PI in the same interface to send emails to support team. Bank does not want any response back in this case. This is just to ensure proper error handling since this is bank related interface.
Splitting the interface in two interfaces will definitely help. But is there some way which can be used in same interface and based on error response from ECC mail is triggered.
If any one has better suggestion for such kind of error handling, please post the same.
Thanks,
Vertika -
File Content Conversion Error in PI 7.1 (file to Proxy)
Hi
I am working on File to Proxy Scenario and I gave the File content conversion as below, File is picking up by the PI Server when I look at Communication Channel Monitoring, However when I open the Message ID in the CC monitoring it says as
404 Not Found
The requested resource does not exist.
and I do not see any message SXMB_MONI(Because the content is not converted), Can anyone give an idea how to debug this
Thanks
PR
Please find the details below which I gave in the content Conversion
Document Name : MT_TW_AK
Document NameSpace : http://aiwcd.com/Claims_Management(CM)_Rel2.0
RecordSet Name : FROISROIAcknowledgement
RecordSet Structure : Header,1,Record,*,Trailer,1
Recordset Sequence : Ascending
KeyField Name :TransactionSetID
Key Field Type : String (Case Sensitive)
IgnoreRecordsetName : true
Header.fieldNames :TransactionSetID,SenderID,ReceiverID,DateTransmissionsent,TimeTransmissionsent,OriginalTransmissionDate,OriginalTransmissionTime,TestProductionCode,InterchangeVersionID
Header.fieldFixedLengths: 3,25,25,8,6,8,6,1,5
Header.keyFieldValue : H
Record.fieldSeparator :
Record.fieldNames : TransactionSetID,RecordSequenceNumber,DateProcessed,TimeProcessed,InsurerFEIN,ClaimAdministratorPostalCode,ClaimAdministratorFein,AcknowledgementTransactionSetID,ApplicationAcknowledgmentCode,InsuredReportNumber,ClaimAdministratorClaimNumber,JuridictionClaimNumber,MaintenanceTypeCode,MaintenanceTypeCodeDate,RequestCode,FreeFormText,NumberofErrors,MaintenanceTypeCorrectionCode,MaintenanceTypeCorrectionCodeDate,JurisdictionBranchOfficeCode,ClaimAdministratorAlternatePostalCode,NumOfErrors
Record.fieldFixedLengths: 3,9,8,6,9,9,9,3,2,25,25,25,2,8,3,60,2,2,8,2,9,19
Record.keyFieldValue : A
Trailer.fieldNames:TransactionSetID,DetailRecordCount,TransactionCount
Trailer.fieldFixedLengths: 3,9,9
Trailer.keyFieldValue : T
ignoreRecordsetName: truePR,
Can you check the error in sender communication channel?
Go to RWB ---> Component Monitoring ---> Adapter Engine ---> Communication cahnnel monitoring --> it displays new page. Then give your file sender communication cahnnel name. There you will definitely see some error.
The error what you are getting is a different to this one. Can you please check the error what I have given above path.
Regards,
---Satish -
Content conversion in File to Proxy in PI 7.1 V
Hi Experts
I am working on a File (Text file) to Proxy scenario in PI 7.1 Version where I receive the text file from the sender and need to convert into xml by using the Content conversion
The text file which I receive have multiple Record Structures which have Parent and Child data elements
Example
Header
_____ Fld3
________Fild1----
_____Fld4
________Bank Account details-------
_____Fld5
Detail----
________Fld2----
_____Fld6
________ Credit Card Details _______Fld7
|________ Payment details -
| _______Fld8
|
|_______Fld9
Trailer1
Trailer2
Can anyone give an idea How to define the record set structures and the corresponding fields in the Field names
Can any one send me the link if there is any blog exists which shows above scenario
Thanks a lot
PR
Edited by: PR on Aug 6, 2009 9:21 PM
Edited by: PR on Aug 6, 2009 9:23 PMSatish
I have sender file my structure as follows
1. Header (record set1)
TransactionId (field1)
TestProdcd (field2)
Sender (field3)
ID -
((Subfield1)
FEIN -
(Subfield2)
PostalCode-----(Subfield3)
Receiver
ID -
((Subfield1)
FEIN -
(Subfield2)
PostalCode-----(Subfield3)
Transmission
Date
Time
OriginalName
2. Record (record set2)
Transaction
SeqNum
ReportTypeCd
ProcessDate
Processtime
ApplicationAckd
RequestCd
3. Trailer (RecordSet 3)
RecordCt
TransactionCt
TransactionsetID
Maybe you are looking for
-
Symptoms: For the past 2-3 months I have been having difficulties waking my 13in MacBook Pro (purchased May 2010) from sleep. The problem came on slowly, but then started to get worse and worse until every time I open my computer lid I have to manual
-
Embedding HTML inside Flash File
HI. I would like to inquire on how to embed a HTML file insides a Flash File. This is the scenario, I have several HTML files, e.g. a.html, b.html, c.html. Where there would be a links inside that flash file, to open a.html, b.html, and c.html (not a
-
Solution Manager PostProcessing after system copy
Hello, I have made a system copy of a Solution Manager 7.01 system and I cannot find any Solman Specific postprocessing tasks. I'm wondering specifically regarding cleanup of SMSY and Solutions etc. Do anyone have such documentation or know if it is
-
Gurus and Team SAP, I am new to this topic and would like to get more information on BOMM such as 1)If free evaluation copy is available 2)Documentation /white paper or any link which gives installation steps and how to use the tool guide 3)can BOMM
-
Issues With ADF-BC Business Events.
Hi All, I was just trying out how ADF-BC business events works, so tried to create a small application based on scott.EMP table. In the EmpEO entity, created and published a new business event for employee creation. However, when I run the AM Tester