Hierarchy

⤷

⤷

IMG Activity
ID | MD_EXPORT_TREE | BAdI: Order Report (Export Order Tree) |
Transaction Code | S_AC0_52000885 | (empty) |
Created on | 20050407 | |
Customizing Attributes | MD_EXPORT_TREE | BAdI: Order Report (Export Order Tree) |
Customizing Activity | MD_EXPORT_TREE | BAdI: Order Report (Export Order Tree) |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | MD_EXPORT_TREE |
Use
Application components: PP-MRP, PP-MRP-PE, PP-SFC
Enhancement spot: MD_ORDER_REPORT
Function group: M61T
You can use the Business Add-In (BAdI) MD_EXPORT_TREE to export the order report tree. The order report can be generated using the transactions MD4C or CO46. It can also be generated from the stock/requirements list (transaction MD04) or the MRP list (transaction MD05).
If the system finds an active implementation of the BAdI when the order report is generated, then an additional button is displayed in the application toolbar for the tree. This button is used to call the BAdI method EXPORT_TREE. The system transfers the field catalog of the order tree and the rows of the tree, in the form of a table, to the method. If you implement the method EXPORT_TREE appropriately you can use or process the data as required (for example, you can print it or export it to Microsoft Excel).
Requirements
Standard settings
- The Business Add-In is not active in the standard system.
- The Business Add-In is not filter-dependent.
- The Business Add-In can be reused.
Activities
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 about this procedure, see the SAP Library under
- Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.
Example
To see example coding choose Goto -> Example Coding -> Display.
Further notes
You can also call the documentation on the BAdI method via the menu, by carrying out the following steps:
- Choose the tab page Interface.
- Double-click on the relevant method.
- Click on the right mouse button and choose Component documentation.
See also
Method
Order Report: Export Contents of the Order Tree (EXPORT_TREE)
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | MD_EXPORT_TREE | 0 | HLA0100774 | Information System |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20050407 |
SAP Release Created in | 600 |