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 ME_PROCESS_PO_CUST for ME21N/ME22N/ME23N.

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

eduardo_hinojosa
Active Contributor
0 Kudos

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