G-YWWN0NYSS1 Add custom fields in standard MIRO header screen through BADI_FDCB_SUBBAS01 - TECHNICAL GYAN GURU Add custom fields in standard MIRO header screen through BADI_FDCB_SUBBAS01 - TECHNICAL GYAN GURU

Add custom fields in standard MIRO header screen through BADI_FDCB_SUBBAS01

Add custom fields in standard MIRO header screen through BADI_FDCB_SUBBAS01. Here, I would tell the best way to add custom fields in the standard SAP MIRO header screen utilizing BADI ‘BADI_FDCB_SUBBAS01’.

Recompense and Seller Receipt IDoc number are the two custom fields included MIRO header.

BADI implementation steps and configuration of custom subscreen:

1) Execution of this BADI BADI_FDCB_SUBBAS01 is bit interesting. We need to make one custom execution to add the new custom fields (SAP has given model executions to our reference). There are two techniques PUT_DATA_TO_SCREEN_OBJECT and GET_DATA_FROM_SCREEN_OBJECT to put and get information to and from MIRO screen.

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

Go to the Subscreens Tab in the made Execution.

The Subscreen region section program ought to be SUBBAS01(check the model execution for reference). The Program called segment program ‘SAPLZO_CUSTOM_FIELD_IN_MIRO’ is custom module pool program which is a duplicate of standard SAP model program ‘SAPLBADI_EXAMPLE_FDCB_BAS’.

The Screen Number is 900 will hold the new custom fields, which is available in called program ‘SAPLZO_CUSTOM_FIELD_IN_MIRO’.

Append new custom fields:

Say the new fields are ZZ_ALLOWANCE and ZZ_IDOCNUM. Since these two fields are to be added to the MIRO header, we must be affix these fields into table RBKP, structures INVFO, ACMM_VENDOR_COMP (as displayed underneath). These designs and tables would be utilized in the BADI execution to add the new fields in the MIRO screen.

Code snippet to enhance the screen:

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

Eliminate the fields from the model screen and add the custom fields which we need to include MIRO.

The standard SAP model is adding Parts Number. We need to remark it and add our new custom fields as featured beneath.


Result of the above implementation:

With the above straightforward advances, you would have the option to upgrade the standard SAP MIRO screen.

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

One of our peruser couldn’t save the information in RBKP table. He missed to add the code in the two strategies. Kindly check assuming that you likewise need to add rationale in the beneath techniques..

method IF_EX_BADI_FDCB_SUBBAS01~PUT_DATA_TO_SCREEN_OBJECT .

* fill interface attributes from importing paramters
me->if_ex_badi_fdcb_subbas01~invfo  = im_invfo.

endmethod.

method IF_EX_BADI_FDCB_SUBBAS01~GET_DATA_FROM_SCREEN_OBJECT .

* fill export parameters from interface attributes
ex_invfo  = me->if_ex_badi_fdcb_subbas01~invfo.

endmethod.

YOU MAY BE INTERESTED IN

Modify the run-time value of workflow containers

Triggering Workflow using Business Transaction Events

Create and Consume Business Add-in(BAdI) in ABAP

  • Related Posts

    You’hv got an IDoc !!

    Assuming you google IDoc, you would be overwhelmed with large number of pages. Here, I have attempted to gather just those part which are essentially utilized continuously projects. You’hv got…

    *.IDO file for IDocs

    In the event that your heritage group or outsider group or EDI group or non-SAP group asks you for a *.IDO file for IDocs type, don’t scratch your head. Ido…

    Leave a Reply

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

    You Missed

    You’hv got an IDoc !!

    • By Varad
    • June 2, 2025
    • 12 views
    You’hv got an IDoc !!

    *.IDO file for IDocs

    • By Varad
    • June 1, 2025
    • 29 views
    *.IDO file for IDocs

    A to Z of Custom Change Pointer

    • By Varad
    • May 31, 2025
    • 24 views
    A to Z of Custom Change Pointer

    IDoc Tips – Change Pointers and Reprocessing IDocs

    • By Varad
    • May 30, 2025
    • 34 views
    IDoc Tips – Change Pointers and Reprocessing IDocs

    Tool for GOS attachment from one SAP system to another SAP system

    • By Varad
    • May 29, 2025
    • 35 views
    Tool for GOS attachment from one SAP system to another SAP system

    Sample program to attach any file from application server to any Business Object

    • By Varad
    • May 28, 2025
    • 40 views
    Sample program to attach any file from application server to any Business Object