Question:
Hello
I don’t have any knowledge in badi.
i want to add my own subscreen to tran. me22n but its not show up .
i have try to implement badi "ME_GUI_PO_CUST" that is
Suppose to do it.
All i done is to copy from the example code to my code the first
Part to my method, i have to do more than that?
this is the code :
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 = subscreen1.
* 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 = 'MEPO_BADI_STRUCT'.
* a label can be defined
ls_subscriber-label = text-001.
ls_subscriber-position = 5.
ls_subscriber-height = 7.
APPEND ls_subscriber TO re_subscribers.
_________________
don't dream it ' , do it .
Answer:
i work on sap rel. 4.7 .
you want to insert tabstrip in me22n
you can do it with BADI ( ME_GUI_PO_CUST ) ,
you r going by se19 ( or by SPRO ) to the method
( open your own name ) ,
and just copy the code from the example ( goto > sample code )
to your own code ( one by one )
also
do the same to BADI ( ME_PROCESS_PO_CUST ) .
now you cant activate the field catalog becouse in the example
thay didnt put two importent lines
INCLUDE MM_MESSAGES_MAC.
TYPE-POOLS: MMMFD.
put tham
( in method IF_EX_ME_GUI_PO_CUST~MAP_DYNPRO_FIELDS .)
and run me22n ,
you will get your own tabstrip ,
now you can insert your own fields.
good luck !
_________________
don't dream it ' , do it .