Not showing  pop up message window when message type I and W

Hi,
My requirement is to show the popup message window with material number, material description and ABC indicator of material at Every line item of PO in Transaction ME21N , if material is significant.
I find Badi to transaction me21n ME_PROCESS_PO_CUST~PROCESS_ITEM
actually i want show only information about material.
This Badi ( ME_PROCESS_PO_CUST~PROCESS_ITEM ) is properly working But does not showing Popup Message window
when i am using Message Type  'I' or "W" .
<Coding>
method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
BREAK-POINT.
BREAK-POINT.
    IF  SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21' . " ) AND MEPO1211-werks IS NOT INITIAL. " AND IM_LGOBE IS INITIAL.
   BREAK-POINT .
  DATA : VAR_MAKTX TYPE MAKT-MAKTX.
  DATA : VAR_MAABC TYPE MARC-MAABC.
  DATA : P TYPE STRING.
  DATA : P1 TYPE STRING.
DATA: ls_mepoitem1 TYPE mepoitem,
      ls_header_obj TYPE REF TO if_purchase_order_mm,
      ls_header   TYPE mepoheader,
      lc_werks(1) TYPE c,
      lv_fabkl    TYPE t001w-fabkl,
      lv_plifz    TYPE ekpo-plifz.
   *Get header data
  ls_header_obj = im_item->get_header( ).
  ls_header     = ls_header_obj->get_data( ).
*Get Item Data
ls_mepoitem1 = im_item->get_data( ).
    SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ ls_mepoitem1-matnr AND werks EQ    ls_mepoitem1-WERKS.
    SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ ls_mepoitem1-matnr.
      IF   VAR_MAABC EQ 'A'.   "LS_MEPOITEM1-SPINF EQ 'A'.
        P = 'is significant material'.
        CONCATENATE  LS_MEPOITEM1-MATNR '' '(' VAR_MAKTX ')'  '' P INTO P1.
       MESSAGE p1 type 'I' .   
        EXIT.
        ENDIF.
        ENDIF.
endmethod.
guide me.....

Hi
Please, see SAP Note 310154 - ME21N/ME51N: Customer-specific check, generating error log
I hope this helps you
Regards
Eduardo

Similar Messages

  • Why are not  pop up  message window when message type I and W

    Hi All,
    I am working in BADI ( me_purchdoc_posted~posted) for t-code ME21N. Actually i want show material number, material description  and ABC indicator of material at saving point of PO if material is significant.
    code is properly working  but does not showing  error message window when I am using message type I  (information) or W (worming message) .
    if i am using message type E ( error message )then showing message window just link  Information message.
    So i can no understand why are not message window pop up  when i take message type I and W.
    my code is that
    method IF_EX_ME_PURCHDOC_POSTED~POSTED
    IF SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21'.
      DATA : wa LIKE LINE OF IM_EKPO.
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
      LOOP AT IM_EKPO INTO wa.
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ wa-matnr AND werks EQ wa-werks.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ wa-matnr. " AND werks EQ wa-werks.
          IF VAR_MAABC EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  WA-MATNR '(' VAR_MAKTX ')'  P INTO P1.
            MESSAGE P1 TYPE 'E'.
            EXIT.
            ENDIF.
      ENDLOOP.
    ENDIF.
    endmethod.
    guide me...............

    Hi vinod,
    thanks for reply......
    yes,  my  requirement is to show the popup window with  material number, material description and ABC indicator of material at saving point of PO if material is significant.
    I find Badi to transaction me21n at saving PO.  Badi ME_PROCESS_PO_CUST does not exist.
    so i am using Badi me_purchdoc_posted~posted.
    This Badi  ( me_purchdoc_posted~posted ) is properly working But showing message  "system error ( error in method po_post ) "
    when I am click on OK then automatic leave from transaction.
    guide me..........

  • How to alert with new window when message is comming like MSN

    Please tell me .How to alert with new window when message is comming like MSN?

    Why is it the first think everyone wants to do in JSP is write a chat application?
    Not really an easy way to do this, as HTTP is a "pull" model. You send a request, the server sends a response. The server can't send anything unless you ask for it. That kindof puts a damper on things like instant messaging.
    A couple of workarounds
    1 - refresh the page every once in a while to check for new messages. An easy solution but nowhere near optimal.
    2 - check out pushlets www.pushlets.com
    Cheers,
    evnafets

  • Hi why I can't download itunes on my hubby's laptop?It showing an error message "windows cannot find C:\document and settings\pistolero\mymusic...

    Hi why I can't download itunes on my hubby's laptop?It showing an error message "windows cannot find C:\document and settings\pistolero\mymusic... We have itunes before and he accidentally delete it..

    ... We have itunes before and he accidentally delete it..
    If Windows cannot find then the path you referenced (C:\document and settings\pistolero\mymusic...) then it is gone.
    Download and install iTunes again: http://www.apple.com/itunes/
    Once iTunes is installed you can download your purchased music again. This assumes what you purchased is still available in the Store. Here is the procedure:
    Launch iTunes.
    Click on iTunes Store on the left
    On the right you will see this
    Sign in with your Apple ID, then click on "Purchased" (with the orange blob)
    On the summary page that appears select the tab "Not on This Computer" on the right.
    On the list that appears, select what you want and then click the "Download" button.

  • HT4972 I AM USING WINDOWS XP. WHEN I AM CONNECTING MY IPOD TOUCH  MODEL NO. MC 008LL TO MY PC ,CHARGING INDICATION IS COMING BUT NEITHER THE WINDOWS NOR THE LATEST VERSION I TUNE DETECTING MY IPOD. IT IS ALSO NOT SHOWING IN I TUNE WINDOWS.

    I AM USING WINDOWS XP. WHEN I AM CONNECTING MY IPOD TOUCH  MODEL NO. MC 008LL TO MY PC ,CHARGING INDICATION IS COMING BUT NEITHER THE WINDOWS NOR THE LATEST VERSION I TUNE 10.6.3 DETECTING MY IPOD. IT IS ALSO NOT SHOWING IN I TUNE WINDOWS."DEVICE LIST" IS NOT DISPLAYING IN LEFT HAND SIDE WINDOW OF I TUNE. BEFORE IT WAS WORKING IN ITUNES 9 AND I WAS USING IT. BUT NOW IT IS  NOT DETECTIN AT ALL. SO PLEASE HELP ME WHAT TO DO?

    Have you tried here:
    iOS: Device not recognized in iTunes for Windows

  • Why date and time do not show as links in some email message in 4s?

    why date and time do not show as links in some email message in 4s?

    To add it back, tap the Edit button at the top of the list of mailboxes and select the missing email account so that it has a tick against it (you can also change their order in the list by dragging the parallel line icon to an account's right), tapping Done should then get it to show in the list

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • TS4062 I can't sync music on my computer to my ipod touch; the ipod shows up under Devices in itunes but does not show buttons (Summary etc.) when I click on it. Suggestions?

    I can't sync music already on my computer to my ipod touch; the ipod shows up under Devices in itunes but does not show buttons (Summary etc.) when I click on it. I've read through all the Help tutorials but none of them say what to do if the sync options don't pop up when you highlight the device.  I've already spent way too much time trying to figure this out and it's driving me crazy!  Thanks for any help you can offer.

    This is correct.  It will not show in finder.  It is not an external storage device.
    The music sync is one way - computer to ipod.  The only exception is itunes purchases.  Open itunes connect ipod, do not sync, click File>Transfer Purchases

  • Photos loaded directly onto ipad air do not show up on PC anywhere when synced using itunes

    Photos loaded directly onto ipad air using Apple camera connection kit, do not show up on PC anywhere when synced using itunes

    They won't show in iTunes (iTunes is only used to copy photos to a device, not copy them off), but you should be able to copy them off either manually via My Computer (the iPad should show as a camera) or via windows camera wizard or windows live photo gallery depending upon your OS version.
    Copying photos : iOS: Import personal photos and videos from iOS devices to your computer

  • I ipod touch is not showing up on my computer when I plug in to update and download audiobooks.

    I ipod touch is not showing up on my computer when I plug in to update and download audiobooks.

    Hey khdewey,
    Thanks for the question. I understand you are experiencing issues with your iPod touch being recognized in iTunes on your Mac. The following resource may provide a solution:
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    Note: This article is for Mac OS X users. If you're using a Windows PC, please refer to these troubleshooting suggestions.
    Follow these steps to resolve your issue:
    1. Ensure that your Mac meets the minimum system requirements for your iPhone, iPad, or iPod touch.
    2. Install software updates on your Mac.
    Note: If an iTunes update is available, apply the update.
    3. Check USB connections. iOS devices require USB 2.0 to function properly. If you're not sure your Mac has USB 2.0 ports, refer to the computer's specifications.
    4. Disconnect other USB devices and connect your device directly to a USB port on your Mac.
    5. Restart your Mac.
    Additional Information
    In rare circumstances, your device may be recognized after reinstalling iTunes, but after you restart your Mac, the device may not be recognized again. If this happens and you're using Mac OS X v10.6 Snow Leopard, please follow these steps.
    Thanks,
    Matt M.

  • IPhoto is not showing photos stored in albums in the last week, and when I add recent photos, they don't show, or show as black.

    iPhoto is not showing photos stored in albums in the last week, and when I add recent photos, they don't show, or show as black. What's happening ?  I show an incompatible upgrade available for OSX Maveriks, which I have not yet installed.

    What version of iPhoto are you using?  Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • LightRoom 2.3 Does not show up in "open With" when image right clicked..Why?

    Hi,
    I noticed that when I right click on an image and highlight OPEN WITH LightRoom does not show up as a choice.. Just CS4 and other programs. Is there a way to get it to show up?

    You can do it. Right-clicking and "opening with" LR is no different than dragging a file from Windows Explorer into the grid view. In either case the import dialog will be launched. If it's already in the catalog you'll get that dialog.
    Windows is seemingly unpredictable from time to time as to adding file associations to the context menu. In any case, if you go to the bottom and click "choose program" you can select LR from the expanded list, or navigate to find it if necessary (which shouldn't be necessary).
    Typically once you choose it once, it will continue to appear in the short list for that file type, though it depends what new pieces of software you install and how they're associated with file types either upon or after installation.
    You can also drag the file(s) from your Explorer window into the grid view, or drag onto the LR icon on your desktop or in your quick launch, which will launch LR and bring up the appropriate dialog.

  • Installing the latest update on my iPad - error message saying the iPad couldn't synchronize because of an internal error, and then - error message (OxE8004017) when trying to save, and then (2003) when trying to restore - nothing works anymore

    Installing the latest update on my iPad - error message saying the iPad couldn't synchronize because of an internal error, and then - error message (OxE8004017) when trying to save, and then (2003) when trying to restore - nothing works anymore - On my iPad the only thing I see is a connector cord to iTunes and nothing else.
    What can I do  ???

    Same issue for me, recently I started having issues with apps no longer being able to access my Facebook account. But the iPad Facebook account settings will not accept my password, even though the Facebook app and Safari can access my account fine. The only significant events I recall that have occurred that may have triggered this have been that via my Facebook account I killed off a lot of so called authorised connections and I changed my user name, but still have the same email address and password.
    I have tried just about every solution put forward on the net, short of a factory restore, back to new, on my iPad.
    I have also; deleted my iCloud account, deleted the Facebook app and account, deleted Safari data.
    One would think that after I have deleted my account from the iPad that it would ask for both username/email address and password, but it only asks for password, so the username is still stored somewhere that I am unable to delete.
    I also see that no one seems to have been able to get an answer from Apple. So I'm guessing they have absolutely no idea themselves.
    I am hesitant to put my username on Facebook back to what it was as Facebook only give you a few chances to change your username, then you are locked.
    I have iOS 7.1.1 installed.
    I did have a lot of respect for Apple and their devices as they just worked, but they are becoming tarnished by ignoring what seems to be a growing issue.

  • WHy does my iPhone not show up in my iTunes when I plug it in?

    WHy does my iPhone not show up in my iTunes when I plug it in?

    It could be for any number of reasons. Since you do not identify the computer OS you use, here is information for both.
    Windows:     http://support.apple.com/kb/TS1538
    OSX:     http://support.apple.com/kb/TS1591

  • Video will not show in the preview window

    I am using iMovie 08 and have some video that I pulled into iMovie using my iSight. Whenever I am trying to preview my movie it will not show in the preview window. I did a software update for iMovie and the issue is still happening. Any ideas??

    Although the same not preview-able iMovie event played perfectly fine when transferred to a different mac running perian and divx, disabling Perian solved the issue on my macbook, too!
    Thanks for the tip!
    I still wonder why some clips preview and some don't (with perian running)...

Maybe you are looking for