10-25-2010 7:43 AM
Hello,
I have implemented a BADI ME_PROCESS_PO_CUST and also ME_GUI_PO_CUST. I want to add the Additional tab at the item level within the Purchase Order.
I could do this Successfully for the Tcodes ME22N and ME23N but the Tab Does not show up for the ME21N T-code at the Item Level.
the methods which are implemented are
1. ME_GUI_PO_CUST --> SUBSCRIBE & MAP_TO_DYNPRO_FIELDS.
2. ME_POROCESS_PO_CUST --> FIELDSELECTION_ITEM.
The entire logic works for the ME22N/ME23N but not for ME21N.
Can any one please let me know why it is not working for ME21N.
Any solution would be highly appreciated.
Regards,
Deepak.
10-25-2010 8:06 AM
Hi Deepak
I have faced a similar issue once i was doing the enhancment.
Please check the process flow of transaction ME21N in debugg mode.
Probably the control of ME21N will not be going to the place where you have written the code.
Regards
Hareesh Menon
10-25-2010 8:16 AM
Hi,
I'm not sure, but check SAP Note 496083 - FAQ: Customer enhancements (User Exits) in purchasing, the last question perhaps matters.
Check if in the method FIELDSELECTION_ITEM (in ME_PROCESS_PO_CUST) you have something similar to:
IF l_changeable = 'X'.
<fs>-fieldstatus = '.'. " READY FOR INPUT
ELSE.
<fs>-fieldstatus = '*'. " view
ENDIF.
where
* if the item is already on the database,
* we disallow to change field badi_bsgru
l_persistent = im_header->is_persistent( ).
l_changeable = im_header->is_changeable( ).
l_header = im_header->get_data( ).
I hope this helps you
Regards,
Eduardo
PD: I used it to header, but for item is the same, change IM_HEADER by IM_ITEM.
Edited by: E_Hinojosa on Oct 25, 2010 9:16 AM