ABAP dump 发邮件

1. Business Scenario

 

 

As a system performance improvement measure, the requirement is to send an email to the team with a list of ABAP Short Dumps that occur in the system during the day.

The email needs to be sent at 12:00 AM, and should contain a list of all the short dumps that have occurred in the system during the previous day.

 

 

2. Create a variant for the ABAP Runtime Error program RSSHOWRABAX

 

  1. Go to SE38 and enter the program name RSSHOWRABAX. Select the Variants Radio button and click display.

        In the next screen, enter the Variant Name and create.

 

          img1.jpg

 

     2. This takes you to the Parameters screen, where we need to add the parameters that we want our variant to contain.

 

          img2.jpg

 

     3. Click on Attributes. Enter the description.

 

          img3.jpg

 

     4. Since our requirement is to execute the variant for the previous day, we will select the following options for ‘Date’ in the ‘Objects for Selection Screen’ section

                  - Selection Variable = ‘X’ (X: Dynamic Date Calculation (System Date))


               img4.jpg


                    - Name of Variable: For the Variable name ‘Current date +/- ??? days’ the Indicator for I/E should be selected as ‘I’ and option as ‘EQ’


                    img5.jpg


                       

                 - Upon clicking ‘OK’, the next screen allows to enter the value for the Date Calculation Parameters.

                    Enter ‘-1’ here, since we need the previous day’s data.

 

                    img6.jpg

 

                    - The final screen will be as follows

 

                    img7.jpg

 

     5. Upon saving this, you will be re-directed to the Parameters screen, where the Date field will be auto populated with the previous day value

 

              img9.jpg

 

3. Define a Job to schedule the above report output as an email

 

     1. Go to System à Services à Jobs à Define Job

 

          img10.jpg

 

     2. Enter the Job Name and Job Class

 

          img11.jpg

 

     3. Go to Step. Here, enter the program name RSSHOWRABAX and the variant created above ZSHORT_DUMPS.

          In the user field, you can enter the User ID with which you want the email to be triggered.

 

          img12.jpg

 

          In our case, we needed it to be executed with ALEREMOTE. Click on Save.

 

               img13.jpg

 

     4. This step will send a mail to the SAP Business Workspace. In order to further forward this mail to the external email addresses, we will use the                         program RSCONN01 (SAPconnect: Start Send Process) and the variant SAP&CONNECTINT.

 

          img14.jpg

 

     5. Upon clicking Save, you can see both the steps in the overview.

 

          img15.jpg

 

     6. Next, enter the recipient details using the ‘Spool List Recipient’ Button. You can select from Internal User, Distribution lists and External addresses.

 

          img16.jpg

 

     7. Next, select your Start Condition to trigger this job. In our case, we have defined the same to trigger at the 1st second of the day daily.

 

          img17.jpg

 

5. Final Output

 

An email will be received daily at 12:00 AM, from ALEREMOTE. The Subject of the email will be as follows:

      Job <Job Name>, Step 1

 

          img18.jpg

The attachment will display the Runtime Errors information as shown below. This is the same information that we get in ST22.

      The below information is obtained in the mail triggered at 12:00 AM on 8/12/2015. Hence, it gives all the ABAP short dumps occurred on 8/11/2015.

 

     img19.jpg

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值