SOLUTION: tab not showing in ME21N/ME22N with badi ME_GUI_PO_CUST

Hi,
I implemented BADI's ME_GUI_PO_CUST and ME_PROCESS_PO_CUST to show a custom tab in the header section of ME21N, ME22N and ME23N.
But after implementing the BADI's, the tab showed up in ME23N, but not in ME21N and ME22N.
So I started looking for a solution in the SDN forum, and I saw that there were a LOT of people with the same problem, but nobody ever posted a solution.
So here is the solution:
So, I added the fields I wanted to show in the structure CI_EKKODB, implemented the BADI ME_GUI_PO_CUST (the methods SUBSCRIBE and MAP_DYNPRO_FIELDS), and the BADI ME_PROCESS_PO_CUST.
After that the tab showed up in ME23N, not in ME21N or ME22N.
So I found an SAP note saying the following:
Question:
I implemented the 'ME_GUI_PO_CUST' Business Add-In to display customer-
specific tab titles in the EnjoySAP purchase order. They are only shown in display mode (ME23N) however, not in create or change. Why?
Solution:
You may have forgotten to assign a field status to the user-defined fields on these tabs. As a result, the system automatically interprets the field status as 'hidden' in create and change modes. However if a tab contains only hidden fields, then the entire tab is set to hidden. In display mode, fields without a field status are automatically set to display. That is why the tab is displayed in this case.
To assign a field status to the user-defined fields, use the methods provided for this purpose in the Business Add-In 'ME_PROCESS_PO_CUST' (compare sample source code in the FIELDSELECTION_ITEM method).
So in my case, I had to add some code to the  FIELDSELECTION_HEADER method of the BADI ME_PROCESS_PO_CUST.
This is the code:
method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER.
  DATA: l_persistent TYPE mmpur_bool.
  FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
* if the item is already on the database, we disallow to change field badi_bsgru
  l_persistent = im_header->is_persistent( ).
*   IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_01.
    IF sy-subrc IS INITIAL.
      <fs>-fieldstatus = '*'. " Input
    ENDIF.
*   ENDIF.
endmethod.
But then, I realized that this BADI was never triggered. When I entered one of the transaction codes ME21N, ME22N or ME23N, the code in the fieldselection_header method was never executed.
So I went to transaction SE18, and entered ME_PROCESS_PO_CUST in 'Enhancement Spot' and pushed the button display.
And there in the tab 'Enhancement Implementations', I saw an implementation that was not mine, and that did not show up in the overview of the SE18 'BADI NAME' tab for the same BADI... which to me seems strange.
So as you may know, there can never be more than one active implementation of the BADI ME_PROCESS_PO_CUST.
So I disactivated my implementation and put my code in the existing implementation.
And after that it worked!

implement first badi :ZME_GUI_PO_CUST:
METHOD if_ex_me_gui_po_cust~subscribe.
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 = 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.
* the position within the tabstrib can be defined
   ls_subscriber-position = 4.
* 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.
ENDMETHOD.
implement 2nd badi : ZME_PROCESS_PO_CUST:
method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER.
   DATA: l_persistent TYPE mmpur_bool.
   FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
* if the item is already on the database, we disallow to change field badi_bsgru
   l_persistent = im_header->is_persistent( ).
*   IF l_persistent EQ mmpur_yes.
     READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_01.
     IF sy-subrc IS INITIAL.
       <fs>-fieldstatus = '*'. " Input
     ENDIF.
*   ENDIF.
endmethod.

Similar Messages

  • Custom tab not reflecting in ME21N & ME22N

    Hello,
    I need to add an additional tab on the Header level of PO. I have implemented the BAdI ME_GUI_PO_CUST & ME_PROCESS_PO_CUST as specified in the sample example.
    However, I'm unable to see the custom tab in ME21N & ME22N, whereas I can see the tab in ME23N.  I have code in the method FIELDSELECTION_HEADER but it doesn't stop at breakpoints when I run ME21N & ME22N. 
    When I debug, I can see the breakpoints but the program never reaches them. 
    Thank you for any help on this and implementing these BAdIs in general.  This is the first time I have worked with these BAdIs and it has proved to be very frustrating. 
    Kind regards,
    Chris Mowl

    Hi Chris,
    Madhu is right. Check the point he suggests. For instance in IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER
      DATA: l_persistent TYPE mmpur_bool,
            l_changeable TYPE mmpur_bool.
    * 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( ).
    * after coding
       IF CONDITION IS TRUE.
          IF l_changeable = 'X'.
            <fs>-fieldstatus = '.'. " READY FOR INPUT
          ELSE.
            <fs>-fieldstatus = '*'. " view
          ENDIF.
        ELSE.
          <fs>-fieldstatus = '-'.    "SUPRESS IT
        ENDIF.
    Remember note, if all fields that you add are suppressed, then the dynpro will not be viewed.
    I hope this helps you
    Regards
    Eduardo

  • "retail" tab not showing while creating PO thru' ME21N in IS-Retail

    "retail" tab not showing in item level while creating PO thru' ME21N in IS-Retail

    Hi,
    Go to SPRO > Materials Management > Purchasing > Purchase Order > Define Screen Layout at Document Level - Here for the field selection key "ME21N", under field selection group "Administrative data, item", mark following fields as optional ;
    Prior vendor
    Season
    Reason for ordering
    Revision level
    And then check.

  • Image not showing in Abobe integrated with Java WebDynPro

    Hi All,
    Image is not showing in Abobe integrated with Java WebDynPro.
    I did the following:
    Added the image field in adobe form. in URL value set the value of context node binding. Binding set to none and size set to Use Original Size.
    Then in script editor i wrote
    this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    at innitialize , javascript and client.
    I can see the image from the same url context value if image field is created directly in WebDynPro View.
    Can anyone suggest what is missing?
    Thanks and Regards,
    Nuzhat

    Try changing your line of code for this one
    this.value.image.href = xfa.record.Images.URL;
    Check that the url passed by scripting is correct with a messageBox for example.
    You can also try assigning a hardcoded url at scripting level to check if its works.
    Best regards, Aldo.

  • Excise Item TAB not showing in MIRO

    Hi Expert,
    While doing Miro, Excise Item Tab not showing we have check the details Like Tax code, Chapter ID, and excise rate Material.
    Kindly help me ,
    Thanks
    Pranav

    Hi,
    Please go to transaction code MIGO and check whether excise tax exists or not ? if yes, please click on and click on Miscellaneous tab
    In case it is shown as In process we would not able to see excise details in MIRO.
    Hope, this solves your issue else revert.
    Regards,
    Tejas

  • ITunes Store music tab not showing up

    iTunes Store music tab not showing up

    FollowUp - Problem Solved.
    Just in case anyone else was experiencing the same issues, I pinpointed it down to a corrupted iTunes preference file - com.apple.iTunes.plist.
    I created a new user account, lauched iTunes and it worked fine, no black drop down window appearing, so I went back into my account and deleted this and relaunched iTunes and the drop down window showed all the search results again, not the black window as seen in my example image.
    Hope this helps others!

  • CIN TAB not showing

    Hi all,
    In XK01 transaction CIN tab not showing..
    I feel its an authorization problem..
    Can you solve??
    Tonmoy.

    doing a trace will tell you more on whether this is authorization-related.
    if you are uncertain on how to interpret the trace, you can always copy it into this thread.

  • My iPad does not show me iTunes Radio with the new iOS 7 update

    My iPad does not show me iTunes Radio with the new iOS 7 update

    Hi, Abhishek642. 
    Thank you for visiting Apple Support Communities.
    If you are a U.S. customer try forcing all applications to close and power cycle the device.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    If the issue persists, try signing our of the iTunes & App Store on the device and signing back in.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    For more information on iTunes Radio and it's availability, see the article below.
    About iTunes Radio
    http://support.apple.com/kb/HT5848
    Cheers,
    Jason H.

  • My Behringer FCA 202 is not showing as a device with OS X update - Please advise?!

    My Behringer FCA 202 is not showing as a device with OS X update

    No.
    Try updating the driver for Apple Mobile Device in the Universal Device controller section of the Device Manager.
    (Apple Mobile Device will not show if your phone is not connected)
    If you want to manually assign it:
    Make sure your iPhone is connected to a USB port on the computer.
    Launch Desktop and hover your cursor over the bottom-left corner of your screen to reveal the Start screen icon. Right-click on the Start screen icon then click on Device Manager.
    Right-click the Apple Mobile Device in the Universal Serial Bus controllers and choose Update Driver Software.
    Click Browse my computer for driver software
    Click Let me pick from a list of device drivers on my computer
    Click the Have Disk button.
    Click the Browse button and navigate to C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers.
    Double-click the usbaapl file. (if 64bit then it may be called usbaapl64)
    Click Open in the Have Disk window, then Next and Finish.

  • With holding tax tab not showing up in MIRO

    Hi,
    Im trying to do a MIRO for a vendor which requires with holding tax. The setting in done in the vendor master.However while doing MIRO, the with holding tax tab does not show up.
    Does anyone know why with holding tax tab is not showing up in MIRO and what needs to be done.
    PS: It is set up correctly in the vendor master and it works and shows up while doing FI transactions.
    Thanks

    Hello Shruti,
    Kindly check if on the vendor master, on withholding tax tab, checkbox "liable" has been ticked.
    Also kindly check the reconciliation account defined in the vendor master and compared in GL master record, FS00, should have a field status group of G067- Reconciliation Accounts or its equivalent in case you don't use standard SAP field status grouping.
    And also check on the MRIO screen, have you checked "calculate tax" under general tab.
    Hope it will help you
    Thanks
    Para

  • Glossary Tab Not Showing Glossary terms in Microsoft HTML Help Output

    When I generate Microsoft HTML output from my RoboHelp HTML project, the Glossary tab appears correctly showing the glossary terms after clicking the View Output button.  However, when I double-click on the final Compiled HTML Output file from Windows Explorer, the Glossary tab only shows a gray area without any terms.  Here's a screenshot of what appears when I click on this tab:
    I have tried working with the Adobe engineers and they have not found a solution yet.  Anyone able to help?

    Hi there
    Although the thread linked below isn't about the Glossary Tab, the cause is likely the same. So check out the thread and see if it addresses your issue.
    http://forums.adobe.com/message/4292236#4292236
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Partition Tab not showing in Disk Utility

    Hello again everyone,
    I'm attempting to partition my LaCie 2TB (RAID1) Disk in Disk Utility, however the partition tab is not showing up..
    There are 4 items visible in the Disk Utility window:
    1)  the Internal OS Disk
    2)  the LaCie 2TB (RAID1) Disk
    3) & 4)  the two slices/partitions of the LaCie mirrored RAID
    I select the 2TB LaCie RAID1 Disk, however it only shows the "First Aid" & "RAID" tabs.
    The "Partition" (as well as "Erase" & "Restore") tabs are not available or shown.
    When I select the Internal OS Disk all the Tabs are shown, and when the 2 slices or partitions of the RAID1 are selected it shows the "First Aid, Erase, Partition, Restore" tabs..
    Am I missing a step here??  I know I'm not supposed to select the slices/partitions of the RAID, but instead to select the LaCie 2TB Disk itself, however this is the only option which does not show any "Partition" Tab..
    Any assistance is GREATLY APPRECIATED..  Thank you!

    Have you tried this:
    Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to two. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    I'm sort of confused as to why you would partition a 3 GB drive into just a single 1 TB partition, but that's what I understood you to say. Is this 3 TB drive installed in an enclosure that actually supports a drive of that size? Older enclosures may not and should not be used.

  • Access Tab not showing for item level security

    I have enabled item level security for the portal page I am working on, but the access tab for the items is not showing.
    I have come accross exactly the same problem on this forum and the advice was:
    Hi try the following :
    go to page properties
    set the item level security
    clear the cache
    clear your browser cache
    it should work "
    I have tried all that, closed and opened a browser but the access tab is still not showing. This is a 10.1.4 portal on LINUX. Starnge enough I have a testing environment installed on my Windows XP (AS 10.2.0.2 not upgarded to 10.1.4) and I don't have any issues with item security access tab at all.
    I would appreciate any clues.
    Regards,
    Anna

    There should be two icons shown for each item when you put the page in Edit mode - Edit and Actions. Click on the Actions icon and "Access" should be one of the links in the list of actions (like hide, expire, delete, move, etc.)

  • ICloud tab not showing open tabs

    When I click iCloud tab in safari, it does not show open tabs on browser on pc. My pc browser is IE

    Hello vera75,
    Take a look at the requirements for icloud tabs outlined here iCloud: Using and troubleshooting iCloud Tabs http://support.apple.com/kb/ht5372.
    System requirements for using iCloud Tabs
    Make sure that:
    Your Macs have OS X Mountain Lion and Safari 6 installed
    Your iPhone, iPad, or iPod touch has iOS 6 installed
    Keep in mind that while iCloud Tabs is only available for Macs with OS X Mountain Lion installed, and devices with iOS 6, you can still use normal iCloud Bookmarks to sync saved Bookmarks and Reading List content between any devices that meet the iCloud system requirements.
    All the best,
    Sterling

  • Depreciation Tab not  showing Valuation window in AS03

    Hi,
    We have created an Asset. When we are looking it through AS03, in Depreciation Tab, nothing is showing...means Valuation window not showing...
    Please guide, what should be error???

    Earlier User make a mistake during Asset creation...(In Depreciation Areas Tab, click on Deactivate checkbox)
    After that when we are displaying Asset using AS03, Valuation window not showing under Depreciation Areas Tab.
    If We create another Asset with same asset class, then under Depreciation Areas Tab, Valuation window is showing. (This time not click on Deactivate checkbox) - Here no problem in this asset during display...
    Then why we need any assignments..
    My question is, Can we correct the already made Assets or not... If yes...then How???
    Because No problem in New Asset Creation....
    Now please guide..

Maybe you are looking for

  • External Display only with VGA Adapter working

    Hello, I'm german so sorry for my bad english After updating to Leopard 10.5.2 and installation of the Leopard Graphic Update, my external Display isn't working with DVI anymore. If I plug it in, my desktop flashes and I also get the monitor informat

  • Keep DB Connection Open

    I have an Oracle stored procedure that I need to call for a list of records in Crystal. What I have done is created a UFL to make the call and provide the return results. I call the Custom Function for each record returned however, it's taking a long

  • Cache seeding problem

    Hi Folks, This may be a Bug as i understand from my previous readings in the forum or misconfiguration in the ibots The Cache seeding technique is not working for Users on dashboard pages users mean who are not part of RPD and Presentation server Adm

  • Page breaks in a table and table row spacing

    Hello - Anyone know how to add a page break to a long table which spans several pages ? Also - there seems to be padding added to my text both before and after - how do I get rid of this ? Any help much appreciated. Andrew

  • Disable resource_manager_plan parameter

    Hi All, We have a database server setup on RHEL4 and Oracle 10.2.0.1.0 SE. Getting the following error everyday (only once), Unable to restore resource manager plan to '': ORA-02097: parameter cannot be modified because specified value is invalid ORA