Hierarchy

⤷

⤷

IMG Activity
ID | /LIME/CUST_ACT | BAdI: LIME Customizing |
Transaction Code | /LIME/86000088 | BAdI Builder /LIME/CUST |
Created on | 20021029 | |
Customizing Attributes | /LIME/CUST_ATT | BAdI: LIME Customizing |
Customizing Activity | /LIME/CUST_OBJ | BAdI: LIME Customizing |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | /LIME/CUST |
Use
This Business Add-In (BAdI) is used in component SCM-ECT-LIM.
With Business Add-In /LIME/CUST, you can overwrite the Customizing settings in LIME by defining your own logic. The particular BAdI method is called when the Customizing data is used. This is possible for the three following methods:
- WRITE_PN You can use this method to control whether a Prima Nota document is to be written, depending on the data in the LIME inbound document.
- GET_COMM_TYPE
This method delivers the communication type or types for a collection. The LIME standard system only supports one communication type for each collection. - AUTO_CREATE
With this method, you can override the Customizing setting for whether a stock index entry is to be generated automatically. - NEGATIVE_STOCK
With this method you can control in detail whether negative values are allowed for a stock, for example, at material level. In LIME, you can only make this setting per client. - ARCH_RESIDENT With this method, you can control whether the archiving and deletion of inbound documents is to be prevented during standard archiving, before the inbound documents are archived by the calling application. Each inbound document therefore remains in the system until it is archived by the calling application and the /LIME/ARCH_RESIDENT indicator in the log table for the header data of a Prima Nota document (/LIME/LOG_HEAD) has been reset.
Requirements
Standard settings
- The Business Add-In is active in the standard system. The default code is executed automatically.
- The Business Add-In cannot be used more than once.
- The Business Add-In is not filter-dependent.
Activities
To activate the Business Add-In, you must create an active implementation. To do so, go to Customizing and choose the relevant IMG activity under Business Add-Ins (BAdIs).
After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.
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:
- 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. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- 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.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - 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: - Choose Activate.
When the application program is executed, the code you created is run through.
For more information, see the SAP Library under SAP Web Application Server -> ABAP Workbench (BC-DWB) -> Changing the SAP Standard (BC) -> Business Add-Ins -> Implementing Business Add-Ins.
Example
To display default code, choose Goto -> Default Code -> Display.
To display example code, choose Goto -> Example Code -> Display.
See also
Documentation on interface /LIME/IF_EX_CUST
Documentation on BAdI methods:
Are Negative Stocks Allowed?
NEGATIVE_STOCK
Automatic Creation of a Stock
AUTO_CREATE
Delivers all Communication Types to Collection Type
GET_COMM_TYPE
You can also call the documentation for a BAdI method from the menu:
- Select tab page Interface.
- Double-click on the corresponding method.
- Click the right-hand mouse button and choose Documentation on Component.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20030205 |
SAP Release Created in | 401 |