2009 Feb 12 12:57 PM
Dear All,
I need one extra tab in Item Details of ME21N.
This extra tab should have two fields of my own.
I have put the coding in the SUBSCRIBE method of the implementation of the BADI ME_GUI_PO_POST as follows:
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 = 'ITEM'.
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 = 'Event Details'.
the dynpro number to use
ls_subscriber-dynpro = '0001'.
the program where the dynpro can be found
ls_subscriber-program = 'SAPLMEPOBADIEX'.
each subscreen needs his own DDIC-Structure
ls_subscriber-struct_name = 'ZSM_PO_STRUC'.
a label can be defined
ls_subscriber-label = 'Event ID'.
the position within the tabstrib can be defined
ls_subscriber-position = 5.
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 = 7.
append ls_subscriber to re_subscribers.
I put breakpoints in the implementation of the method, and it is going into it, yet the extra tab is not getting displayed on the screen.
Please give your suggestions on this.
Regards,
Prosenjit.
2009 Feb 12 2:12 PM
Hi Prosengit,
I am not aure about u r BADI,
BUt last week i have custom tab in the PO header data using this enahncement 'MM06E005'.
IN thi senhancement u have thrre screen exits.In this enhancement
SAPMM06E 0111 CUSTSCR1 SAPLXM06 0111 Subscreen: PO item
u can add subscreen and u can add u r own fields here .
and u can write u r code in 'EXIT_SAPMM06E_006'.
if u want to change the title of the program.
Go to program SAPLXM06 then go to text element give text symbol no as '111' and u can change the title of u r tab.
I hope this solves u r problem.