cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Enhance MIR7 multiple account assignment ALV

SAPSupport
Employee
Employee
0 Likes
400

I want to add another column to the multiple account assignment ALV(The WBS description). Is it possible without any Repair object?
 


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Likes

Please check with your ABAP team this information. Here is a step-by-step guide on how you might approach adding a column to the Multiple Account Assignment ALV window in MIRO:

1. Determine the Required Field/Column:

  • Identify the additional information you want to display in the ALV grid. This could be a standard field that is not currently displayed or a custom field that needs to be added.

2. Use Business Add-In (BAdI) for Enhancing MIRO:

  • SAP provides several BAdIs that can be used to enhance standard transactions. One BAdI commonly used for enhancing the invoice verification process in MIRO is BADI_FDCB_SUBBAS01 or INVOICE_UPDATE.

    Steps to Implement a BAdI:
    • Transaction Code SE18/SE19:
      • Use transaction code SE18 or SE19 to create an implementation for the desired BAdI.
    • Find the Relevant BAdI:
      • BAdI INVOICE_UPDATE or BADI_FDCB_SUBBAS01 could be used for custom enhancements in MIRO.
    • Define Methods:
      • Implement the necessary methods to include the custom logic for displaying additional columns in the ALV grid.

3. Create/Enhance a Custom Structure:

  • You may need to create or enhance a custom structure that includes the new fields you want to display in the ALV grid.

    Steps for Custom Structure:
    • Transaction Code SE11:
      • Use transaction code SE11 to create or enhance a structure.
    • Include Custom Fields:
      • Add the custom fields you want to display in the structure.
    • Associate the Structure:
      • Make sure this structure is associated with the BAdI or enhancement implementation.

4. Adjust ALV Layout:

  • The ALV layout configuration can be adjusted to include the new column. This can be done using the appropriate enhancement spots where the ALV layout is defined.

    Adjusting ALV Layout:
    • Enhance Layout Configuration:
      • Update the ALV layout configuration in the enhancement implementation to include the new column.
    • Modify Field Catalog:
      • Add the new field to the field catalog used by the ALV grid.
    • Example Function Module for ALV:
      • Use function modules like REUSE_ALV_GRID_DISPLAY if applicable, and enhance the field catalog to include the new field.

5. Test the Enhanced MIRO Transaction:

  • After making the necessary enhancements, conduct thorough testing to ensure that the new column appears as expected in the Multiple Account Assignment ALV window.

 

Example Scenario:

Assume you want to add a custom field named ZZ_CUSTOM_FIELD to display additional assignment information in the Multiple Account Assignment ALV window. You would:

  1. Define ZZ_CUSTOM_FIELD in a custom structure.
  2. Implement a BAdI like BADI_FDCB_SUBBAS01 and enhance the field catalog to include ZZ_CUSTOM_FIELD.
  3. Adjust the ALV layout configuration to display this new field.
  4. Test the MIRO transaction to ensure that the ZZ_CUSTOM_FIELD is appropriately displayed.

Answers (0)