on 08-22-2006 11:02 AM
Hello,
I have the following scenario. A SAP 4.7 Application exports some data in an IDOC to XI3.0
XI transforms the IDOC to a simple XML Message and writes the message via fileadapter to a filesystem.
When an IDOC was created in the SAP 4.7 Application System, it has the status 03 ().What I need is a status of 51 or 53 after the file was written to signalize that the IDOC was successfully delivered. This information is needed for a cleanup process to delete the IDOCs.
What is the simplest solution for this problem? Is there any build in mechanism inside XI to change the IDOC status after successful processing?
Greetings
Erik
Hi Erik,
As per the scenario what you have given below, its IDoc->XI->XML File. Here since its a asynchronous communication. All the outbound idocs once successfully sent to the port of the middleware or third party system will have the status '03'.
Status 51 or 53 will be there only for the inbound IDocs. 51 is for application data not posted and 53 is for the successful processing with the posting of application data.
One way is to do the following.
1. Amend your partner profile setting in WE20 of the R/3 system to collect the idocs and make the IDocs stop at status 30. This means that the IDocs wont be sent to the third party system port.
2. Write a ABAP report in R/3 and use the function module, IDOCS_OUTPUT_IN_XML_FORMAT. Check the usage of this FM.
3. In the ABAP report you'll be fetching all the IDocs of the particular IDoc type in status 30 from EDIDC and will be dumping into a single large XML file.
4. For this you need to maintain a file port in WE21 transaction of your R/3 system with the application layer file path obtained from your Basis team.
4. Once its written successfully, for the idocs sent to the file, change the status.
5. Now in XI you need to modify your interface to do a file to file transfer...source from the application layer path of the R/3 system and the target you know already.
Cheers
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Erik
The status of the outbound idoc is between 1 and 50.
The status of the inbound idoc is greater than 50.
To notify that idoc was successfully delivered you can use acknowledgement.
thanks
Prasad Babu Nemalikanti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Erik,
IDOC systat01 can be used to change
the IDOC status very easily
(you put the idoc number and new idoc status basically)
http://help.sap.com/saphelp_46c/helpdata/EN/75/4b3c1cd14811d289810000e8216438/content.htm
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi michal
I have a similar requirement where IDOC is sent from R/3 and XI does the mapping and the output is a File. In this case, I would like to update the IDOC status after the file is successfully put in the designated folder. i couldn't understand how to achieve this using IDOC systat01. Do I need to use a BPM to achieve this. please elaborate. Appreciate your help.
krishnan
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.