on 04-19-2014 10:22 PM
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,
Vertika
Hi Vertika,
I have small doubt , is your interface (File to Proxy) synchronous or Asynchronous ?
If Interface is Asynchronous , Logic (sending email to support team for corrective actions ) should be handled in ABAP proxy (in ECC itself).
If interface Synchronous , are you capturing response from ECC by request response bean in File adapter or ccBPM ?
Thanks
Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vertika,
You can handle the ECC response in PI using RequestResponseBean & ResponseOnewayBean adapter modules in File adapter (you need to create a new FTP receiver channel ). In below Wiki , example (almost similar to your scenario) is explained step by step.
Using Request Response Bean Module in FILE Adapter - Process Integration - SCN Wiki
Once you handled the response , you need to create a new interface (File to Email ) for sending email alerts for failed Idocs to support team.
Let us know, if you face any issues.
Thanks
Hari.
Message was edited by: HariKumar Vemuri
Hi Vertika,
For the reverse flow of the idoc from ECC wherein the BAPI is converting the status of the idoc to outbound, you can use a different operational mapping associated with a new message mapping, wherein the idoc from ECC will get converted into mail(which can be done through graphical mapping).
This mail can be used to trigger a failure or a success response to the BANK.
Note: For the above to be done you might require to define the operational mapping in a new interface determination.
Kindly let me know in case of any issues. Thanks.
Best Regards,
Souvik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ...
Is there any way PI can read the response coming from SAP in proxy in the same interface and send mail notification if Response = E and no mail notification when response = S.
I am working on SAP PI 7.4 single stack.
Thanks,
Vertika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vertika,
In this case you need another interface. ECC will trigger the proxy for response code E and you can fail the interface in PI (by maintaining the receiver determination condition). And when the interface is failed in PI then raise email alert.
another option is split the response file in PI and fail the response message in error or route to email receiver. the only concern with this approach is you have more messages in PI (for one file).
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
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.