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

    How to Compel SAP Users to Go To Particular Transactions as per Roles after Log On?

    Execute a pre-decided Exchange Code after Client Logs in. How to Compel SAP Users to Go To Particular Transactions as per Roles after Log On? Your client won’t generally come…

    Handle the Handle Classes correctly

    Let’s delve into the Handle the Handle Classes correctly. Gone are the days where we had the freedom to have import boundaries as tables, designs or single fields. SAP has…

    Leave a Reply

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

    You Missed

    How to Compel SAP Users to Go To Particular Transactions as per Roles after Log On?

    • By Varad
    • March 31, 2025
    • 13 views
    How to Compel SAP Users to Go To Particular Transactions as per Roles after Log On?

    Handle the Handle Classes correctly

    • By Varad
    • March 30, 2025
    • 18 views
    Handle the Handle Classes correctly

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

    • By Varad
    • March 29, 2025
    • 27 views
    Steps to add custom Tab in standard MIRO item screen using BADI MRM_ITEM_CUSTFIELDS

    Add custom fields in standard MIRO header screen through BADI_FDCB_SUBBAS01

    • By Varad
    • March 28, 2025
    • 30 views
    Add custom fields in standard MIRO header screen through BADI_FDCB_SUBBAS01

    Steps to stop debugger at ELM BADI CRM_MKTLIST_BADI from Web UI Screen

    • By Varad
    • March 27, 2025
    • 40 views
    Steps to stop debugger at ELM BADI CRM_MKTLIST_BADI from Web UI Screen

    Steps to stop debugger at ELM BADI CRM_MKTLIST_BADI from Web UI Screen

    • By Varad
    • March 26, 2025
    • 34 views
    Steps to stop debugger at ELM BADI CRM_MKTLIST_BADI from Web UI Screen