Skip to Content
0
Former Member
Sep 13, 2007 at 10:12 PM

Extra tab in ME21N

26 Views

hello folks,

I am trying to add a new tab in ME21N header level. I implemented the badi... ME_GUI_PO_CUST.

here is my code in the implementation

method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.

break kcnxa34.

DATA: ls_subscriber LIKE LINE OF re_subscribers.

  • we want to add a customer subscreen on the item detail tab

check im_application = 'PO'.

check im_element = 'HEADER'.

  • each line in re_subscribers generates a subscreen. We add one subscreen in this example

CLEAR re_subscribers[].

  • the name is a unique identifier for the subscreen and defined in this class definition

ls_subscriber-name = 'Catalyst'.

  • the dynpro number to use

ls_subscriber-dynpro = '14'.

  • the program where the dynpro can be found

ls_subscriber-program = 'SAPMM06E'.

  • each subscreen needs his own DDIC-Structure

ls_subscriber-struct_name = 'YBE_AFFILEXCL'.

  • a label can be defined

ls_subscriber-label = 'CATALYST'.

  • the position within the tabstrib can be defined

ls_subscriber-position = 1000.

  • the height of the screen can be defined here. Currently we suport two screen sizes:

  • value <= 7 a sevel line subscreen

  • value > 7 a 16 line subscreen

ls_subscriber-height = 8.

APPEND ls_subscriber TO re_subscribers.

endmethod.

But I am not getting the tab... can anyone guide me where exactly I am going wrong?

Thanks a lot for your anticipation.

Naveen