Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

badi implementation for me21n

former_member356171
Participant
0 Kudos

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


9 REPLIES 9

former_member194965
Active Participant
0 Kudos

Hi,

Check ME21N Screen.

Regards,

E.Ananthachari.

0 Kudos

Hi Ananthachari,

I have checked ME21N screen....But there is no new tab in the header.

Regards,

Divi

Former Member
0 Kudos

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

0 Kudos

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

venky1
Explorer
0 Kudos

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

0 Kudos

Hi Venkatesh,

Thank you.....

Now I am able to display the new tab in me21n using screen exit............

But my requirement is to display that using Badi implementation.

How to do that using badi? Can you please guide me? This is my first badi implementation......

Regards,

Divi

pranay570708
Active Contributor
0 Kudos

This message was moderated.

0 Kudos

Hi Pranay,

Thank you for the answer....

I have written code in the method "FIELDSELECTION_HEADER"  of ME_PROCESS_PO_CUST badi and now it is showing the new tab in me21n.

Regards,

Divi

former_member692970
Discoverer
0 Kudos

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