How to program for user exit_saplmgmu_001

Hi ,
I Need to do some programming so that when user is creating material number at the time when he gave material text system pop us the list of materials which have similar material text .
Can any one please tell me the logic i should use .
Thanks and Regards ,
Shikha

Hi,
I assume you're talking about the material description in the material master. If so, it is possible but it is likely to be slow as you are looking for matches which are similar to the description entered but there are so many ways in which it could vary. My suggestion would be to do the following:
Move the short text to a local variable and convert to upper case
Split the local short text at spaces into a range table to contain all words or terms.
Read table MAKT where MAKTX contains at least one of the entries in the range table
Loop through the materials returned from MAKT and count the number of terms in the range table that exist in the material description.
Order the results by the number of terms contained descending
Return the top 10 or so.
I did something similar to allow our users to check for materials similar to what they wanted.
Hope this helps.
John

Similar Messages

  • How to programming for GPIB Primary Address 0 and 31?

    Hello. How to programming for GPIB Primary Address 0 and 31?

    Make sure no other instruments are at addresses 0 and 31. National Instruments GPIB controllers default to primary address 0, so if you want to use an instrument at primary address 0, you should change the address or your controller. You can do this by using the ibpad function.
    NI-488.2 Function Reference Manual for Windows

  • HOW TO SEARCH FOR  USER EXITV50R0002  IN VL01(delivery)

    HI ALL,
    Can any one of you pls tell me the navigation of how to get the user exit in the screen of vl01 or 03 (outbound delivery).
    But tis is not a customer exit which can be found by " call customer function".

    Hi
    First search the delivery main program  SAPMV50A in that you will find the following User exits
    include mv50afzz.
             include mv50afz1.
             include mv50afz2.
             include mv50afz3.          "Userexit neu zu Release 3.0A
             include mv50afzk.          "Userexit 4.6A (KOMKG/KOMPG)
             include mv50afzl.          "Userexit 4.6A Liefergruppen
                                                                   "n_693000
             include mv50afzp.          "Userexit for pricing screen input
    You can write your code in the relavent above exit and see
    other user exits related to this Delivery transaction are:
    Enhancement
    VMDE0004                                Shipping Interface: Message SDPACK (Packing, Inbound)
    VMDE0003                                Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0002                                Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0001                                Shipping Interface: Error Handling - Inbound IDoc
    V53W0001                                User exits for creating picking waves
    V53C0002                                W&S: RWE enhancement - shipping material type/time slot
    V53C0001                                Rough workload calculation in time per item
    V50S0001                                User Exits for Delivery Processing
    V50R0004                                Calculation of Stock for POs for Shipping Due Date List
    V50R0002                                Collective processing for delivery creation
    V50R0001                                Collective processing for delivery creation
    V50Q0001                                Delivery Monitor: User Exits for Filling Display Fields
    V50PSTAT                                Delivery: Item Status Calculation
    V02V0004                                User Exit for Staging Area Determination (Item)
    V02V0003                                User exit for gate + matl staging area determination (headr)
    V02V0002                                User exit for storage location determination
    V02V0001                                Sales area determination for stock transport order
    Business Add-in
    DELIVERY_ADDR_SAP                       Address Change in Delivery Processing
    DELIVERY_PUBLISH                        Announcement of delivery data during database update
    See the doc on User exits:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    To find a Exit.
    Goto Transaction -- Find The Package
    SMOD >f4>Use the Package here to Find the Exits In the Package.
    Else if you Want to search by Application Area wise ,
    There is one more tab to find the Exits in the Respective Application Area.
    Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
    Now Run ur Transaction to Check if it Triggers.
    Thats it..
    Suppose you need to find out all the user exits related to a tcode.
    1. Execute the Tcode.
    2. Open the SAP program.
    3. Get the Development Class.
    4. Execute Tcode SE84.
    5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
    6. Enter the Development class and execute.
    Check out this thread..
    The specified item was not found.
    1. Type the transaction : system->status-> <PROG. NAME>
    2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
    3. Open CMOD utilities->SAP enhancements
    EDIT->All selections
    4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
    5. The displayed list contains the enhancements names for the transaction You were looking for.
    6. Create a project in CMOD and the code in default include->activate.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    User-Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    <b>2. Finding User Exits...</b>
    <b>http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits</b>
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to prompt for user input in Forms

    How do I prompt for user input in Forms?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?
    If the user chooses to input the value I want to update a set of database fields with the value.
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?

    Desgordon,
    This can be accomplished by displaying your message to the user using an Alert. I use 3 different Alerts (Note, Caution and Stop) in my forms and they are inherited from a central source file (such as an Object Library or a Template Form) so they can be used by all of my Forms. You can set the text of the Alert using the SET_ALERT_PROPERTY() built-in and capture what button the user presses with the SHOW_ALERT() built-in. Additionally, if you need more than one button to be displayed in an alert, you use the SET_ALERT_BUTTON_PROPERTY() built-in to rename the default button or to add up to a total of three buttons in the alert. Here's an example:
    DECLARE
       Alert_ID       ALERT;
       v_AlertType    VARCHAR2(10) := 'CAUTION';
       v_AlertTitle     VARCHAR2(25);
       v_AlertText    VARCHAR2(150);
       n_AlertButton  NUMBER;
    BEGIN
       v_AlertTitle := 'Title of Alert';
       v_AlertText := 'This is message to the user.';
       /* Code leading up to the decision point. */
       alert_id := FIND_ALERT(v_AlertType);
       /* Note: I only set the Label of Button 2 because the default button 1 label is 'OK' */
       SET_ALERT_BUTTON_PROPERTY(v_AlertType, ALERT_BUTTON2, LABEL, 'Cancel');
       SET_ALERT_PROPERTY(Alert_ID, v_AlertTitle, v_AlertText);
       n_AlertButton := SHOW_ALERT(Alert_ID);
      /* Now I can test the value of n_AlertButton for 1 or 2 to find out what button the user selected. */
      IF ( n_AlertButton = 1 ) THEN
         /* Do something, because the user selected 'OK' */
      ELSE
         /* It is assumed at this point that the user selected 'CANCEL' */
         /* Stop processing any further. */
         RAISE form_trigger_error;
      END IF;
    END:Hope this helps.
    Craig...
    -- If my response or the response of another answers your question, please mark the response accordingly. Thanks!

  • How to prompt for user input in PL/SQL

    How do I prompt for user input in PL/SQL?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?
    If the user chooses to input the value I want to update a set of database fields with the value.
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?
    Edited by: desgordon on Sep 3, 2008 10:33 AM

    desgordon wrote:
    How do I prompt for user input in PL/SQL?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?OK, you're doing that in Forms...
    >
    If the user chooses to input the value I want to update a set of database fields with the value.Write PL/SQL procedure for this purpose...
    >
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?Not clear what you mean with view?
    But if you call your procedure in that button then yes 'control will be passed back to the code'...
    Cheers!
    Edited by: Faust on Sep 3, 2008 7:57 PM
    Too slow...

  • How to Prompt for User/Pass Running Shell Script Remotely through ARD

    So I finally got my Active Directory Script working! However, I realized that I'm not the only one going to be running this script and to have my user name and password in the script itself is beyond foolish. While I know it's possible just to have whoever's running the script to manually add their username and password, I'd prefer to have prompts to make things easier for the rest of my team.
    Here's my current script. I've tested it on the machine I'm connecting to Active Directory and it works fine if you run it on the machine itself in terminal. However, I'm going to be doing this on about 150 machines and the whole point of the script is to do it remotely.
    #! /bin/bash
    MACNAME=$(scutil --get ComputerName)
    read -p "User Name: " USER
    read -p "Password for $USER: " PASS
    dsconfigad -add "CORP.DOMAIN.NET" \
    -username $USER \
    -password $PASS \
    -computer $MACNAME \
    -mobile disable \
    -mobileconfirm disable \
    -localhome enable \
    -useuncpath enable \
    -shell /bin/bash \
    -ou OU=Macs,CN=Computers,DC=corp,DC=DOMAIN,DC=net \
    -force \
    -localpassword "PASSWORD" \
    -groups "GROUPS"
    When I run the UNIX script through ARD to a machine, I get no prompts for USER or PASS. In fact, it gives me the following error "dsconfigad: Authentication server encountered an error while attempting the requested operation. (5202)" So it's not asking for a user name and password.
    Is there any way to make a shell script prompt you for a User Name and Password when you're sending commands remotely through ARD? Or is there another way to do this?
    Any suggestions would be greatly appreciated.
    -rks

    Best solution is to create an account that is exclusive to binding machines.  By doing this, you can embed the user name and password in the script.  Heck, you can post it on your website.  If the account is configured properly, it will only be able to create machine records in a defined container.  If you are mixing Macs and PCs in your AD domain, I also recommend creating an isolated container for your Mac records.  Now, the account has even less access rights as you can make it so it only has rights to the Mac container.
    Otherwise, ARD does not prompt.  You can play around with an expect script but the reality is that you are still embedding the credentials in the script so it really does not achieve what you want.  ARD is not an interactive shell scripting tool.  It is more a fire and forget.
    Reid
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • How can we find print program for user defind Tr. Code.

    Hello Friends,
    If I know the user defined Script Name and Corresponding Tr. Code, How can I find Print Program. In TNAPR Table, I am getting SAP Standard forms and corresponding print programs?
    Thanks & Regards
    Sathish Kumar

    Hi Sathish,
    You can use the table TTXFP to get the name of print program by entering the Script name.
    Hope this helps.
    Regards,
    Saurabh

  • How to program for sync mode batch and immediate

    Hello,
    I have a program that should run in both sync modes (immediate and batch). The first one works well but when switching to batch I've got a lot of exceptions. So my first question is if it is possible to write a program that runs in both modes. My second question is if there is a how-to that explains extensively what is different between those two modes (in calls allowed in one that are harmfull to he other).
    regards
    Joerg
    p.s.
    I've written a small demo program that should show the error but the demo program works fine. But when doing something similar in the main program I've got a lot of NullPointerExceptions. I have no idea where to search or what to do to fix the main program.

    Dear sir...
    i did not try this before,check if each application module has its own mode, if so, then try to make two application modules for your project. one of them in immediate mode and the other in batch mode and use them as you like. But you get a problem that each application module has its own transaction.
    check the link:
    http://www.oracle.com/technology/products/jdev/tips/muench/batchmode/index.html
    hopes this help
    best regards

  • How to program for two PCI cards with identical device ID?

    I have 2 PCI-6713 cards, and they have identical device ID. I'm trying to program in Linux using C++. I got some examples from NI, but non of them seems considering this problem. Where can I get help for this?
    Thanks.
    flofish

    The short answer is that you should read out the EEPROM on each of the two cards you find to determine which one is which.
    I don't have specific examples for the 6713 on how to do this, but here are the necessary pieces.
    EEPROM Read Example - this example is for the E series MIO card, but will be similar for the 6713.
    E Series RLPM - in chapter 5 it describes how to read the EEPROM, which corresponds to the example. The 6713 may have a different EEPROM on it than the example uses and you may have to adjust the code accordingly. Look on the 6713 to find the EEPROM and then look up its manual online. Most likely it is one of the following chips: MB88341, DAC8043, 8800.
    EEPROM Map for the 6713 - this is the roug
    h allocation of information within the 6713. I don't see the serial number listed, but it should be stored on there somewhere. You may want to read out the complete EEPROM and compare the values to the known serial numbers of your boards.
    Christian L
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    eepromread.cpp ‏5 KB
    6713_eeprom_map.doc ‏125 KB
    341079b_MIO_E_RLPM.pdf ‏1094 KB

  • How to program for dynamic field point?

    I am programming an application using Fieldpoint. On the computer that I am coding, the communication port used for cFP is COM3. However on the deployment machine the communication port to be used is COM1. What is the simplest way to NOT having the COM port hardcoded in the program? The solution might have nothing to do with Fieldpoint.
    Solved!
    Go to Solution.

    Thank you for your reply Tim-A
    I just want to make sure I'm understanding you correctly. On your development machine your compact FieldPoint (cFP) shows with the COM3 alias in the Measurement & Automation Explorer (MAX). And this is how you reference the device in your program(LabVIEW?). When you move to your development machine the alias for the cFP in MAX is COM1. Is this all correct?
    Correct.
    When you say that you don't want it "hardcoded" in the program, do you mean that you want the program to automatically pull the correct Alias for the device from MAX?
    Yes
    Now that you mentioned it, I tried to change that constant to a control. However, instead of selecting only ports, I will need to select channel too. For e.g. If I just needed to select the COM on the front pannel and it automatically attach the channel - that can be part of the solution (If there is NO way to automatically program the app to pull the right Alias).
    Below is a simple example -

  • How to program for multiple tasks at the same time.

    I want to start a data acq, then detect a level change in a switch which also corresponds to a visible timer starting. The timer will stop when one of three switches is closed. In the middle of this I would like for there to be a selectable (controllable/ adjustable) time delay andthen a signal is sent to one of three random lights. Can anyone please assist?

    Ok, I took a shot at what I think you are trying to do. The attached VI monitors an analog signal. When the analog signal goes above 5V (could be easily modified for any level), the program pauses for a selectable amount of time, then writes to one of three randomly selected digital lines (the LEDs on my digital lines were reverse logic, so you might have to adjust the polarity). This will at least give you something to work with. Hope this helps!
    -Alan A.
    Attachments:
    analog_in_one_dig_out.vi ‏111 KB

  • Standard Program for User Maintaince

    hi friends
    can anybody give me the standard prograname in which has output , user name , tcode which has acces with descriptions
    regards

    Transaction STAT for SAP 4.x  and make a search in SE93 STAT  for the 5.x
    Rgd
    Frédéric

  • How to check for user login in a header?

    What is a good way to make sure the user has logged in on many web pages? I implement the property and method in the session bean to keep track of whether the user has logged in or not and that's fine. I tried to use a Page Fragment to check if the user is logged in, but Page Fragment does not seem to redirect with getExternalContext().redirect("Login.jsp").
    I also tryed to use <jsp:include> to include a header to test for login, but JSF doesn't seem to like me adding that to the page (got error).
    Also, is there a good way to prevent the target page to even execute the rowset if the user is not logged in? It seem like the page has to complete all the rowset data binding before being redirected to another page, even if I put the redirection as part of the page initialization. This is difficult because I can't expect all the pages to have query result when the user is not even logged in.
    This is very basic web application function but it seems so hard to do with Studio Creator.

    One thought though, when I was playing around with that solution I noticed that everything gets filtered.
    i.e. images, so maybe you chould place some thing on the page (image) and when it comes through .. do something. I know its not quite as good, because your back to having to put something on each page (or restricted pages).
    The images won't be wrong, unlike the URL .. maybe not images maybe something else. good luck
    Jonathan

  • What are touch tablets and how to program for it?

    Hi
    I have to develop the application for POS/retailer shops where consumer can browse thru the list of products on the touch table deveice. But i m new to this technology and really dont know much. I tried to look into net but i didnt get anything useful except Unipower's PSA (my requirement is si,ilar to PSA), but it doesnt describe the technology.
    Can somebody please help me? fast
    sachin

    I think the accessibility class handles devices like touch pads. Which by the way is basicaly a screen that displays your gui, and instead of clicking the buttons they touch them. Think of an ATM machine.

  • OID: How to search for users in nested groups

    Hi All,
    I have three groups:
    cn=ParentGroup
    uniquemember: cn=ChildGroup1
    uniquemember: cn=ChildGroup2
    uniquemember: uid=user1
    cn=ChildGroup1
    uniquemember: uid=user2
    cn=ChildGroup2
    uniquemember: uid=user3
    Now, as per my requirement, I have to do ldapsearch on ParentGroup and all the members(direct & indirect) i.e., user1, user2 and user2 however I am getting only user1.
    My OID version is 11.1.1.6.0
    Please help.
    Regards,
    Sunny

    Hi Sunny,
    A Shell script or a JAVA program can solve this problem.
    Regards,
    SOADreams

Maybe you are looking for

  • Attachment table in framework

    I am using attachment table in oracle framework and I get the folllowing error: INSERT INTO FND_LOBS(FILE_ID,FILE_NAME,FILE_CONTENT_TYPE,FILE_DATA,FILE_FORMAT) VALUES (:1,:2,:3,:4,:5)". domain index is marked LOADING/FAILED/UNUSABLE can any one help

  • Secure Empty Trash & Trash Cache

    Am old Mac addict home user with Apple from day one but not a guru. Still have Apple IIE that runs like a clock. With 17 Macs in between, years ago when G3 would slow down, get sluggish and tired, I discovered that setting trash cache and deleting ma

  • DVD Player w/o Drive

    I copied some DVD to my laptop and want to play the video_ts folders using DVD Player, but the app returns an "iniitialization error" when opening because I do not have the DVD drive inserted into the laptop (a Pismo with a removable player). I can u

  • How to change the occurences of the source IDOC

    Hi experts, How to change the occurences of the source IDOC in IR. -Manoj

  • Can't transport two DTP

    Dear all , I couldn't transport more than one DTP which is uploading same target . On each transport last DTP overwrite previous one . For example I have two following DTP Current month DTP Previous Month  DTP but when I'm trying to transport them ju