Trick to find Idoc No for Billing Documents easily 1.
Use SAP transaction code BD87 Status Monitor for ALE Messages 2. Enter dates in field 'Changed On' (within range) 3. Enter 'ItCustBillingDoc' in field 'Business Object' 4. Enter invoice no.'s in field 'Object Key' (must be 10 digits including starting zeros) 5. Execute [F8]
In this screen, you can know what is status of Idoc for given date Lets say, we want to know, for which invoices Idoc are in failed status (02)
6. Select 'INVOIC' 7. Press Button 'Display iDocs'.
The output screen will give you the Idoc No. 8. Click on Object Key
The output screen now shows the Object Key-which is actually billing doc Number against Idoc Number You can also identify for which output this Idoc refers to using Extension. For Example:ZD02 output will have Extension Z10_INVOIC_02
Thank You