Message Checks in Documents
To check that the electronic document exchange works correctly, you must be sure that the system landscape is configured correctly. But you should also check whether the system was able to process the messages in the document correctly. You must check the following two cases:
For the IDoc message: Was the system able to store the document as a file?
For the archive message: Can the document be displayed from the archive?
You have set up your system landscape correctly. For more information, see Set Up of Your System Landscape.
Check for IDoc Message
First generate and save a document, for instance a purchase order using transaction ME21N. Then display this document and navigate to the message screen. The message must be highlighted green. The processing log shows how the system processed the message. The following table gives you an example of how to process messages correctly:
Example
Log |
Meaning |
|---|---|
Object 4500001984 |
Document number of purchase order |
Message type: New |
Was the message type processed? |
Processing log for program |
Was the ALE routine for IDocs really called the way it was configured? |
IDoc 0000000000021353 was added and transferred to output |
Was the message generated and processed correctly? |
IDoc 0000000000021353 was written to file |
Was a file really written? |
It is possible that although the system processed the message correctly it was still not able to write an IDoc file. This may be the case, for example, if the authorization to write the IDoc file is missing. In this case, the message is highlighted green but the system cannot send the message subsequently because the IDoc is not available as a file in the SAP system. You should therefore check if the IDoc file is available in the file system and if it can be read from the SAP system.
While setting up the system landscape, you determined to where the system is to write the IDoc file. See Determining Directory for IDoc File. In Customizing for Billing Consolidation
, in the activity Define Basic Settings
you defined the directory from which the system reads the IDoc file.
Display the existing SAP directories. To do so, use transaction AL11
. You should see your configured directory in the results list. Click on the directory and sort the content in descending order by date. If the system was able to process the message and write the IDoc file correctly, you see the entry in this list. In the detail display, you see an XML IDoc.
Note
You can only see the XML IDoc temporarily. After sending the message, the system expects to receive a confirmation of arrival, and it then deletes this temporary XML IDoc.
Check for Archive Message
When you have completed the archive settings and checked that they work, you generate a document and check the ZPDF message in this document. Display the relevant document and navigate to the message screen. The message must be highlighted green. Since, in this case, there is no processing log, select the message and choose Additional Details
.
Check that the message is not locked.
Example
You can release a locked purchase order with transaction ME29N
. You can output a purchase order for which no output has been requested with transaction ME9F
.
To check whether the system can actually read and display the documents stored in the archive, choose transaction OAAD
. After you have called the transaction, you can see how many documents have been stored, among other things. To display archive documents, choose Technical Search
in the Documents
screen area. To restrict the number of hits, we recommend entering the current date as the selection criterion for the storage date.