Skip to Content

badi implementation for me21n

Hi Friends,

I have a requirement for the creation of new tab with customer fields in the PO header for me21n transaction using badi.

I have created a badi implementation for ME_GUI_PO_CUST and screen using module pool. I am able to display those new tab with customer fields in me22n and me23n but it is not coming in the ME21N transaction.

How to display that tab with fields in ME21N transaction???Please help me.............

Regards,

Divi


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2016 at 01:44 PM

    Hello,

    The BADI you are using is not multiple use BADI, so at a time only one active implementation will be active.

    Kindly check how many BADI implementations are there for the BADI.

    If other active implementation, then check is there any sy-tcode check is there in the method SUBSCRIBE.

    Regards,

    Syed

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Syed,

      Thank you for the response.

      Actually for that badi already one implementation is there to display the new tab in the ITEM. I have done my changes for the header in that implementation.

      But there is no sy-tcode in the SUBSCRIBE method....

      What are the changes I need to do? Can you please tell me?

      This is the code which I have written In the subscribe method....

      METHOD if_ex_me_gui_po_cust~subscribe .
      DATA: ls_subscriber LIKE LINE OF re_subscribers.

      CHECK im_application = 'PO'.
      CLEAR re_subscribers[].

      IF im_element = 'ITEM'.

      ls_subscriber-name = me->subscreen.
      ls_subscriber-dynpro = '100'.
      ls_subscriber-program = 'SAPLZM_NDM_PO_EXTENSION'.
      ls_subscriber-struct_name = 'ZEKPO_EXT1'.
      ls_subscriber-label = 'Ref fields'.
      ls_subscriber-position = 10.
      ls_subscriber-height = 10.

      APPEND ls_subscriber TO re_subscribers[].
      ENDIF.

      IF im_element = 'HEADER'.

      ls_subscriber-name = me->subscreen1.
      ls_subscriber-dynpro = '0100'.
      ls_subscriber-program = 'SAPLZ_PO_HEAD_FIELDS'.
      ls_subscriber-struct_name = 'CI_EKKODB'.
      ls_subscriber-label = text-001.
      ls_subscriber-position = 6.
      ls_subscriber-height = 7.

      APPEND ls_subscriber TO re_subscribers[].

      ENDIF.
      ENDMETHOD.




      Regards,

      Divi

  • Posted on Apr 29, 2016 at 09:30 AM

    Hi Divi,

    Check the below link. They implemented your requirement using Screen exit via SMOD and CMOD transactions.

    http://freesapabap.blogspot.in/2014/11/customer-exit-screen-exit.html

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 28, 2016 at 11:14 AM

    Hi,

    Check ME21N Screen.

    Regards,

    E.Ananthachari.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2020 at 09:15 AM

    Hey Srilaxmi divi..

    Hi facing same problem i added custom BADI at ME23N but it wont display at ME21N and ME22N ..could you plz share your code so i can findout what wrong with my code ..

    Thanks in advance

    Regards

    Rushikesh

    Add a comment
    10|10000 characters needed characters exceeded