Anda di halaman 1dari 2

Implementing Business Add-In application.

LGE_SUBSCR_ACL is a prerequisite in order to be

able to capture operational and defect information within the Logbook Operational information is stored in log entries, and defect information is stored in log notifications. The reason why SAP does not provide a standard solution for log entries is that operational data is very customer-specific, meaning that different customers will store different information in log entries. After implementing the Business Add-In, you will be able to create log entries containing your specific operational data within Logbooks and log notifications with reference to log entries. In the Data Dictionary create an append structure containing the fields for your specific operational data. Include this append structure into the DDIC Structure DIACL_LGE_S provided by SAP. This will enable saving your specific log entry data in the database table DIACL_LOG_ENTRY as well as accessing the log entry data when using the Logbook application. SAP provides standard log entry fields that you don't need to append. These fields are Log entry short text Log entry ID Start and end date, start and end time of operation (4 fields) Number of performed cycles per operation These fields are available to you when defining the Log entry subscreen. (See below). On the database the last five fields are represented by the Operation time and Cycles Measurement documents. (See definition of counters below.) In the Logbook Customizing transaction for defining the Counters to be updated by the Logbook application, define the counters for the two standard types Operation time and Cycles (transaction DIACLC2). These counters are used to store start and end date/time and number of performed cycles for each operation. Based on the display structure DIACL_LGE_DS defined in the DDIC, create your specific log entry subscreen, enabling you to maintain your specific log entry data. (For details, see example implementation listed below.) the corresponding To better understand all steps listed here, refer to the example implementation listed in the Example section. Activities

Create your own implementation of Business Add-In LGE_SUBSCR_ACL: In the Subscreens tab strip link the sub screen area defined in the Add-In with your subscreen that will enable maintaining your specific log entry data.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows: 1. In the dialog box, enter a name for the implementation of the Add-In and choose Create. The system displays the initial screen for creating Business Add-In implementations. 2. On this screen, enter a short description for your implementation in the Implementation Short Text field. 3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation. 4. Save your entries and assign the Add-In to a package. 5. To edit a method, double-click its name. 6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements. 7. Save and activate your code. Navigate back to the Change Implementation screen. Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step: 8. Choose Activate. When the application program is executed, the code you created is run through. After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

Anda mungkin juga menyukai