SAP ABAP: IDoc Status Codes

The following table describes outbound IDOC status codes
Outbound IDOCs
Code
Error
Event Severity
SAP Meaning
2YesErrorError passing data to port
3NoError if transaction SM58 indicates an RFC transmission errorData pass to port OK
4YesErrorControl information of EDI subsystem
5YesErrorTranslation
6NoHarmlessTranslation
7YesErrorSyntax check
8NoHarmlessSyntax check
9YesErrorInterchange handling
10NoHarmlessInterchange handling
11YesErrorDispatch
12, 13, 14NoHarmlessOK
15YesWarningInterchange acknowledgement negative
16NoHarmlessFunctional acknowledgement
17YesWarningFunctional acknowledgement negative
18NoHarmlessTriggering EDI subsystem
20YesErrorTriggering EDI subsystem
22NoHarmlessDispatch OK, acknowledgement still due
23YesErrorRetransmission
24NoHarmlessControl information of EDI subsystem
25YesWarningProcessing despite syntax error
26YesErrorSyntax check
27YesErrorALE error
29YesErrorError in ALE services
30NoHarmlessReady for dispatch (ALE)
31NoHarmlessIDOC is marked for deletion
33NoHarmlessOriginal of an IDOC which was edited
34YesErrorError in control record of IDOC
36YesErrorTimeout error; electronic signature not performed
37YesErrorIDOC added incorrectly
38NoHarmlessIDOC archived
39NoHarmlessReceive confirmed
40YesErrorApplication document not created in target system
41NoHarmlessApplication document created in target document
The following table describes the inbound IDOC status codes :
<><><>  <><><>  <><><> 
Inbound IDOCs
CodeErrorEvent SeveritySAP Meaning
51, 52YesErrorPosting error
53NoHarmlessPosting successful
54YesErrorError during formal application check
55NoHarmlessFormal application check
56YesErrorIDOC with error added
60YesErrorSyntax error
61YesWarningProcessing despite syntax error
62NoHarmlessIDOC passed to application
63YesErrorError passing IDOC to application
64NoHarmlessIDOC ready to be passed to application
65YesErrorALE error
68NoHarmlessIDOC is marked for deletion
70NoHarmlessOriginal of an IDOC which was edited
73NoHarmlessIDOC archived
source: www. publib .boulder .ibm .com

How to email output from Background Jobs

Introduction
One of my Customers has a regularly scheduled job with spool (SP01) output.  They have asked if it could be be emailed to a group email address.  The address management is nice and easy in this case; they manage the mail group, adding and deleting email addresses as people move in and out of the group.  But how do we send the spool output as email ?
Go into transaction SM37 (Job Overview) and search for the job that creates the output you wish to mail.  You need to make sure you find a scheduled, released or ready version of the job as you can't do this with an existing spool output.
Click here for full story
Author: Martin
Source: snd.sap.com

Manipulating MS Office documents from ABAP (OLE2)

Introduction
The idea to start using the OLE2 interface came from the repetitive steps that needed to be done to fill out a technical design (TD) template. For instance for a new ABAP program a lot of information for the TD can be directly passed from the SAP system, such as program name, description, author, date, version number, etc. When you have to make changes to this program you could also use the OLE2 interface to open the existing TD and automatically add a new line to the version history as well as inserting a new paragraph which describes the changes for this version. The developer then only needs to enter the actual text describing the changes.
Click here for full story
Author: Roel van den Berge
Source: sdn.sap.com