Steps to add custom Tab in standard MIRO item screen using BADI MRM_ITEM_CUSTFIELDS

Steps to add custom Tab in standard MIRO item screen using BADI MRM_ITEM_CUSTFIELDS can be utilized to upgrade the standard MIRO detail screen and add the new custom Tab and custom fields in MIRO details screen.

BADI implementation steps and configuration of custom subscreen: Steps to add custom Tab in standard MIRO item screen using BADI MRM_ITEM_CUSTFIELDS

1) BADI MRM_ITEM_CUSTFIELDS is to be carried out. Execution of this BADI is bit precarious which is canvassed here. We need to make one custom execution to add the new custom fields. There are five strategies TABPAGE_LABEL_SET, INVOICE_DATA_TRANSFER, CUSTOM_DATA_TRANSFER, CUSTOM_DATA_GET and INVOICE_DATA_GET to add the Tab and name it and to set and get information to and from MIRO line subtleties screen.

Method TABPAGE_LABEL_SET

Method INVOICE_DATA_TRANSFER

Method CUSTOM_DATA_TRANSFER

Method CUSTOM_DATA_GET

Method INVOICE_DATA_GET

2) We need to arrange Subscreens for the new custom fields.

Go to the Subscreens Tab in the made Execution.

The Subscreen call program ought to be SAPLMR1M. The Screen number ought to be ‘6050’. The Subscreen region ought to be ‘CUSTOM_DATA’. The Program called ‘SAPLZO_CUSTOM_FLD_IN_MIRO_LINE’ is custom module pool program which is a duplicate of standard SAP model program ‘SAPLIDNL_WKA’ (check for SAP model in SE18).

The Screen Number is 200 will hold the new tab and the custom fields, which is available in called program ‘SAPLZO_CUSTOM_FLD_IN_MIRO_LINE’.

New custom fields:

Say the new fields are ZZ_ALLOWANCE and ZZ_UNITPRICE. Since these two fields are to be added to the MIRO line, we must be affix these fields into table RSEG, structures DRSEG_CI and CI_DRSEG_CUST (as displayed underneath). Another construction and table sort is additionally made to hold the screen information. These designs and tables would be utilized in the BADI execution and custom program screen to add the new fields in the MIRO screen.

Code bit to upgrade the screen:

As referenced before, we need to make a module pool custom program and join as sub-screen. For the simplicity of advancement, we can duplicate the SAP standard program SAPLIDNL_WKA and change in that program.

Eliminate the fields from the model screen and make another construction to add the custom fields which we need in MIRO detail.

For this situation, we made another construction ZOS_DRSEG_WKA and supplanted the SAP structure DRSEG_WKA.

The standard SAP model is showing fields ENH_DATE1, ENH_DATE2, ENH_CHAR1, ENH_CHAR2, ENH_PERCENT and ENH_NUMC1. We have taken out these fields and added the new custom fields as featured beneath.

Consequence of the above execution

With the above basic advances, you would have the option to upgrade the standard SAP MIRO Detail screen. New custom Tab ‘Outsource’ is added with custom fields.

The custom fields would be saved in the standard SAP table RSEG.

YOU MIGHT BE INTERESTED IN

10 Real-World SAP ABAP Programming Examples (with Code!)

Mastering the Basics of SAP ABAP: A Comprehensive Guide

Top SAP ABAP Interview Questions (2024)

  • Related Posts

    NEW Operator – Structures and Internal Tables

    Can we declare NEW # as shown above for d_ref_struct? (NEW Operator – Structures and Internal Tables)Since, d_ref_struct is anonymous data object, it would not recognize matnr and werks. The error is: No…

    NEW Operator – Single Value for All Data Types

    In the past post, we showed that NEW Administrator is one of the improved elements in EhP7. Here, we would see the use of NEW Administrator for Single Incentive for…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    NEW Operator – Structures and Internal Tables

    • By Varad
    • May 13, 2025
    • 16 views
    NEW Operator – Structures and Internal Tables

    NEW Operator – Single Value for All Data Types

    • By Varad
    • May 12, 2025
    • 28 views
    NEW Operator – Single Value for All Data Types

    Hello SAP EhP7 !!

    • By Varad
    • May 11, 2025
    • 20 views
    Hello SAP EhP7 !!

    A to Z of OLE Excel in ABAP 7.4

    • By Varad
    • May 10, 2025
    • 35 views
    A to Z of OLE Excel in ABAP 7.4

    Creating Dynamic Internal Table

    • By Varad
    • May 9, 2025
    • 42 views
    Creating Dynamic Internal Table

    Dynamic Where Condition usage in Database queries

    • By Varad
    • May 8, 2025
    • 41 views
    Dynamic Where Condition usage in Database queries