Issue in IDOC-File Scenario
In one of the requirements,for the interface design which involves IDOC-FILE scenario we have a req as:-
Multiple IDOCs would be sent from SAP R/3 to SAP XI. Each IDOC can have 0-4 segments and for each segment a file needs to created.
The files needs to be FTPed to a location, only if all the IDOCs have been processed successfully.
1) Even if a single IDOC fails,the files should not be FTPed. --> How do we handle this in XI.
2) We need to send a notification from XI, in case any IDOC processing fails.
3) How do we check in XI, if all the IDOCs have been processed successfully.
Please suggest me with some good stategies to resolve this issue.
Appreciations and Rewards in line.
Rahul Kothari replied
You can try and collect all Idocs in an XML file using XML port.
In Mapping you can check the status of all the Idocs, from the status value in control record.
If any value is showing as error state, u can generate the notification otherwise compute mapping which would be having occurance as 0....unbounded.
Option 2: In case you are not getting the status value from control records:
You can read all the Idoc numbers from the xml files, then do RFC lookup and read status of all the Idocs, and check if all of them are posted successfully. If not than generate the notification.
Also, u can use Alert configuration for notifying the error state.