BADI question

Hi All,
Is it possible to do something like :
when we put material in MIGO which doesnt exist in matl master for example "aaa",
then we will get error message :
"no hits were found for the material you entered aaaa"
and focus is still in material.
Does anyone know how to do this ?
Thank you in advance,
Sandi

Hi Prabhu,
this is my requirement.
Is it possible to do something like :
in <b>MIGO Trx Screen</b> (transfer posting),
1) try to put material  which doesnt exist in matl master for example "aaa"
2) we will get error message :
"no hits were found for the material you entered aaaa"
3) focus is still in material and requires us to change to exist material
What I want to do is i could insert my additional validation for particular matl that exist in matl master and show my error message.
Thank you in advance,
Sandi

Similar Messages

  • General BADi question:Call BADi in background job/batch input. Possible?

    Hi out there,
    i'm using thoe following BADi: /SAPSLL/CTRL_SD0C_R3 (Global Trade Service).
    But also, this question is a general question.
    If we are calling on screen the transaction VF01, the BADi is called correctly.
    But unfortunately it seemes that the BADi is NOT called (im not really sure, cause i can't debug the background task) when we are calling a batch input sequence wth f.e. form bdc_transaction VF01 nothing happens.
    Maybe BADi cannot be called in a background task? If it's possible, how could it be monitored. Thare isw no spool entry or anything like that!
    Any answer can help.
    Thank you in advance!
    Regards,
    Timo
    Edited by: Timo Ehl on Apr 14, 2009 7:27 PM

    Hi,
    generally BADIs are called in background mode. You can use the following trick to debug your BADI. You just need to create an infinite loop in your BADI implementation. Something like this.
    DATA: l_a TYPE c.
    WHILE l_a IS INITIAL.
    ENDWHILE.
    Obviously when your BADI is called in background mode then program will get into infinite loop. You can easily connect and debug running programs from transaction SM50. You need to select your background process and go to Program/Session -> Program -> Debugging. You will jump directly into your BADI methos with infinite loop. Then you will just set value to l_a and you will start debugging your BADI. If you can not find any process then your BADI is not called in background mode.
    Cheers

  • Total Compensation Statement - BADIs Question

    Question:
    The total compensation statement is programmed to read off the payroll cluster for the wage types identified in the pay category in configuration.
    I noticed there are set of BADIs available for country specific enhancement. Could someone explain the purposes of it? Since wage type could be configured as country specific already, what is the purpose of these country specific BADIs?
    Also. If information is NOT stored in the payroll cluster but via a custom infotype, would utilizing these BADI be able to read the information from it? Or would that required a separated program and the BADI functionality won't be able to do them?
    These are the BADI delivered...
    Read Data on Subcategory Defined by SAP (Pay)
    Read Data on Customer-Defined Subcategory (Pay)
    Read Data on Subcategory Defined by SAP (Other Compensation)
    Read Data on Customer-Defined Subcategory (Other Compensation)
    Read Data on Subcategory Defined by SAP (Personnel Development)
    Read Data on Customer-Defined Subcategory (Personnel Development)
    Read Data on Subcategory Defined by SAP (Benefits)
    Read Data on Customer-Defined Subcategory (Benefits)
    Read Data on Customer-Defined Category
    Thanks,
    KN

    FYI for anyone interested...
    Yes you could use these BADI to redirect it from looking at the payroll clusters to a custom table or infotype. Within the BADI you would need to use the IMPORT values to do lookup and export out the tab values needed. Including what you would like to see on the screen, etc.
    I'll create a blog on how to do this when i get a chance www.saphelpbykevin.com

  • Essbase system9 and 11 bad question :(

    hi all,
    am sure many are going to hit me for this question.
    Ive got a situation, where my client is upgrading from essbase 9 to 11. i did the installation and config on their UAT and everything went fine. system worked with all their system9 apps.
    they came back to me today asking if its possible to eliminate weblogic server, http server and the rdbms used during configuration. and i was dumb struck.
    then i got to see their backup server and production server, running configurator on both servers showed that the system is not configured, not a single component was configured and yet they all seem to work fine.
    Now they are asking me to implement essbase 11.1.2.1 without doing the configuration. :( ive never did something like that nor have read anything like that in documents.
    please do help me out with this situation. please let me know if by any rarest chance its possible to run without config, without rdbms.
    thanks :(

    thanks john, for clarifying me on this issue. Now ive completed installation and configuration of essbase 11 on their UAT server, everything is working fine in 11. But in essbase 9.3.1 lying on the same UAT machine, we are not able to start the applications. its throwing error like" Failed to start application xxxx. License restricted to one application" When Starting or Creating an Application in Essbase.
    I even checked the registry.properties file for ANALYTICS_RESTRICTED_OPT=false,false and its set to right values as defined in oracle support ( [ID 802354.1])
    is it because of essabse 11 installation or is it due to some other reasons.
    thanks

  • BADi Question:  Need to move data from OLD_IMAGE-DATA1 to structure

    Greetings:
    I want to move the data from OLD_IMAGE to a structure that matches the infotype I'm working with, i.e., P0167.  I tried this using the following code:
    DATA:   lv_p0167  TYPE p0167,
            lv_wa_old LIKE LINE OF old_image.
    MOVE lv_wa_old-data1 TO lv_p0167.
    However, the compiler tells me that "'LV_P0167 and 'LV_WA_OLD-DATA1' are not mutually convertible in a Unicode program". 
    I need the data in this structure because I need to hand it off to a FM, among other things.
    Suggestions?
    Thanks!

    Looks like structures differ from each other, so it might be possible to move the fields from the structure seperately like this:
    move lv_wa_old-data1 to lv_p0167-data1 (or whatever the name of the field might be).

  • Please help me with this very basic question!

    Hi all,
    I m new to O/R mapping framework, my question is quite simple. Is iBatis an Object Relational Mapping technique? If it is, which one is better, iBatis or OJB?
    Thank your for your help!
    best regards

    Yes it is.
    "Which is better" is always a bad question. It depends how you intend to use them. Plus there are quite a lot of other ORM solutions, so even if one were objectively better than the other, it might still be a poor choice.

  • Advance one frame at a time. Quick question.

    Hi, sorry for the really bad question but my keyboard does not have a page up and a page down button So what other short cut is there to do this? Is there a way I can assign my own shortcuts like FCP and Premiere? Thanks!...

    These keyboard shortcuts are given in After Effects Help.
    So is information about modifying keyboard shortcuts.

  • Change Workstatus with BPF step completion using BADI

    Hi Experts,
    I have a requirement of changing Workstatus as soon as the user clicks on “Submit/Approve/Reject” button from the BPF.
    We are trying to implement the same by referring to the thread Automating Work status Change in BPF
    Now the thing is, we have written the BADI referring above thread which needs to be pass with some parameters(Owner & Context Members).
    Our concern is how to pass active context members to BADI, and how to trigger the same from the Submit/Approve/Reject button in BPF?
    Is it a manual invocation through script/DM, or is there any other way?
    Since I am new to BPC BADI’s and requirement is urgent, please help………
    Thanks in advance
    Priyanka Jagtap

    Hi Anjan,
    I referred to the below link for debug:
    Debugging BPC 10 for NetWeaver
    Followed following steps:
    1. Logged in to BPC client using user X.
    2. Went to the page where BPF step needs to be submitted.
    3. Logged in to SAP GUI and set a breakpoint in class CL_BPC_REST_RES at line 56 using same user X.
    I have created Enhancement Implementation for BADI UJ_BPC_BPF_SUBMIT.
    Filters provided are:
    APPL_ID = ABC
    APPSET_ID = XYZ
    DRV_DIM_MEM = 0166
    STEP_ORDER = 1.
    In "IF_UJ_BPF_SUBMIT_LOGIC_HANDLER~EXECUTE_SUBMIT_LOGIC" method i have written break-point.
    When i clicked on SUBMIT, error appears as
    I tried with and without filter as mentioned in Re: About bpc aprove badi question.
    Please help. I am not able to debug and move ahead.

  • CLAD question

    Hi Friends,
    I just started working for CLAD exam.I have attached some of the fundamental exam questions. please check add correct me if any mistakes.
    Meena
    Solved!
    Go to Solution.
    Attachments:
    clad questions.doc ‏261 KB

    Q11 is correct as D for the reasons you gave Good Work!
    Q34 the answer is A: B is false as a scale applies to a channel and a task can call many scales, C is false since the channels must have the SAME not "Similar" timing
    Q38 is open for debate and is a bad question. "Main Disadvantage(s)" is semantically inconsistant and NONE of the answers hints at the lack of data flow between the case structures hence, they will fire in any order (just plain bad) AND, no answer exposes the lack of error handleing.  However, as A & B are patently FALSE, D is also False so the most correct answer is C
    Q10. The correct answer is "E. Both A & C"- try A B & C on your machine
    Q9. why the uncertainty?  Of course you wire ONLY the data you need into any structure.
    Fairly good-  When is your test scheduled?
    Jeff

  • Possibly a really stupid question but...

    So, I have an LG Cosmos, and recently I've been noticing that I will receive a text message from someone, read it, respond to it, and then receive the exact same message hours/days later. This has happened from multiple contacts, and I'm not sure if it is my phone doing this, or theirs, or possibly they're resending it on accident.
    I know that if it's on their end, there's nothing I can do about it, but I am curious if this has ever happened to anyone else and has been caused by their mobile device.
    Sorry if this is a ridiculous thing to ask.
    Thanks

    NOT A bad question you need to call it in. May be your phone, may be the network, may be the other phone. Only way to know is have tech look at it.

  • HT1420 i am trying to add all my apps on my mac pro that are on my phone like Facebook,you tube but it wont eve find them in the app store that i already downloaded in the past! what do i do please help!!

    i just bought a mac and deauthorized all other computers to activate this one, i wanted to know can you have apps on the mac like your phone or a shortcut icon for youtube or facebook, it wont let me get in to the apps this may be a bad question but are the apps even needed for the mac pro or just for the iphone. i would like a short cute instead of having to go to safari and put the web address in every time i want to go on face book . please help thank you

    The apps that you have on your iPhone will only work on iOS devices i.e. an iPhone, iPad or iPod Touch - your Mac uses a different operating system, OS X. You can get some apps/programs for your Mac e.g. you should have a Mac App Store icon, possibly on the dock at the bottom of the screen, and/or in the Applications folder :
    If you are using Safari to access Facebook or other sites then you should be able to add bookmarks for them to itvia the Bookmarks menu at the top of Safari (command-D is the keyboard shortcut for adding a bookmark). If you are using a different browser, then again you should be able to bookmarks for your favourite sites.

  • How to: thumbnails for old events in new iMovie

    If you have your library of iMovie events disconnected from your iMovie for any reason (e.g. new Mac, moved to different drive or you erase your drive when you upgrade) then the events must be reconnected.
    The media/content can reside on any disk, as long as
    They are in a folder named "iMove Events"
    This folder is in the root of the drive, be it the main operating system drive or a connected drive
    This took me 5 or 6 hours to figure out. Perhaps it should be easier, dear Apple?
    Anyway, so good so far.
    I now move my iMove Events folder to this location.
    And iMovie starts to recreate the thumbnails.
    It is about 600GB of movies.
    So, after 1 hour of generating thumbnails; the dialouge box will not even give me the  "Time remaining".
    Question: Where are these thumbnails stored and how do I reconnect them to my iMovie version 9.0.4. which I think is iMove 11
    More background:
    I imported all these from HI-8 using ADVC110. It all worked fine previously on iMove version 8.0.4 whice is iMove 09
    All imported to a separate usb disk. When I buy a second hand MacMini I then moved it to a sub folder on a FireWire disk.
    The new computer, MacMini with OS 10.6.8, CORE 2 DUO, 2gHz and 2Gb memory, and 150GB disk
    Today I have moved the sub folder to the root of the Iomega FireWire disk.
    Problem is, a family event is in need of a new creation this week end, and after a whole day off work do to this I am still only generating thumb nails
    Any help skipping the Thumbail generation is appreciated
    Brg Geir
    Message was edited by: Geir Kristoffersen BY THE WAY, The Activity monitor show CPU% at around 0,4 to 0,6, constantly, and it has 4 to 6 treads. Memory taken is 180Mb.

    Bad question, the Thumbnails are stored inside the same folder as each imported tape. It just does not reconnect.
    Why???

  • Functiona Spec For VENDOR PERFORMANCE REPORT

    Hi experts
    I need to develope a VENDOR PERFORMANCE REPORT. But due to some reason i cant be able to get the Functional Specification for that object. So could you please help me by sending  the above mention functional Specification.
    thnaks and regadrs
    Pratik

    Pratik,
    Bad question in ABAP forum.
    can you please close this thread and put it into MM forum for quick reply.
    Amit.

  • Writing to file within another package

    Hi all, I had a search in the forums, but I couldn't find what I was looking for.
    I have what I consider to be good code organised into packages that make sense, but for some reason, I cannot programmatically save Files to where I want to.
    If I create them manually, they read fine, (with
    File xmlFile = new File(this.getClass().getClassLoader().
            getResource("data/records.xml").getFile());
    SAXBuilder builder = new SAXBuilder();
    Document xml = builder.build(xmlFile);).
    So now I want to create this file programatically.
    The code I have is
    // Make a new file
    File xmlFile = new File("data/" + p.getName() + "deck.xml");
    xmlFile.createNewFile();But that gives (probably unsuprisingly)
    java.io.IOException: The system cannot find the path specified
         at java.io.WinNTFileSystem.createFileExclusively(Native Method)
         at java.io.File.createNewFile(File.java:883)
         at gamepackage.PlayerDeck.updateDeck(PlayerDeck.java:99)When I create a file in the default package (probably frowned upon) with
    // Try create file in default package
    File xmlFile = new File(p.getName() + "deck.xml");
    xmlFile.createNewFile();It works as expected (except my file is in the default package).
    So, it must be a package problem. I have tried messing around with mkdir(), but that creates Files in directories called "data" rather than my existing package "data" (which confuses my little soul, because I thought packages were treated as directories (see JAR files etc)), and I have tried messing around with URIs and URLs, to little avail. Also, ClassLoaders such as
    File xmlFile = new File(this.getClass().getClassLoader().
                      getResource("data/" + p.getName() + "deck.xml").getFile());wont work, because I need to create the file before I can call .getFile(); but I need the File to call createNewFile() on.
    Please can you point me in the right direction? Many thanks in advance.

    Hemmels wrote:
    I've been playing CS and BF2142 and went for a jog, and we're into double figure views It's not a bad question, and you presented your problem well, it's just... well it isn't done this way. Packages are really intended to solve +this* problem. But the organization (and unique identifying) of source files problem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Downloaded Mountain Lion from App Store, but it says by disk is locked and won't let me choose the hard drive for installation

    I'm struggling to get Mountain Lion installed on my machine, but what is worse is that it has essentially rendered my computer useless (and of course I need to use it urgently). After downloading and installing from the App Store, I have run into some significant problems.
    On install, when prompted to "select the disk where you want to install OS X" the hard drive is greyed out and a message comes up that says "The disk is locked."
    So when I back out of the install, I am given the option for Disk Utility, Reinstall OS X (same results as before)  or Restore from Backup (not backed up).
    On the Disk Utility, I can hit Verify Disk and it names an error and says to hit Repair Disk. The error is an "Invalid Sibling Link. The volume Macintost HD was found corrupt and needs to be repaired." Unfortunately, Repair Disk is greyed out and I can't hit it.
    What I want to do is just forget the entire process at this point and scrap the upgrade until I have time to figure out what is going on. Is there a way to abort at this point?
    Thanks for any help!

    Your welcome!
    You should always have and keep an up to date backup.
    Sounds like you need something a little stronger than Disk Utility. At this point I have no way of knowing if Disk Warrior can or will help.
    Depends..!
    If you do format and install, then Yes it will.
    If you reinstall OS X, then No it will not.
    Problem is that according to the Disk Utility message, I don't think that you will be able to install either 10.6 or 10.8.
    Those are very good questions. The only bad questions are the ones you have to ask yourself.

Maybe you are looking for

  • Cannot install iTunes on Windows XP Pro

    hello, I downloaded iTunes and after I agree to the terms it alerts and says: The iTunes Music Library.itl file is locked, on a locked disk, or you do not have write permission for this file. I am an administrator on my computer and even logged in as

  • My itunes keeps saying that i can not sync anything how do i fix that?

    i am trying to sync my new iphone to my itunes but it is saying that my sync services is not working.. how do i fix it???

  • Represinting my data and relations between records in diagram " not by the hierarchic

    hi all , if there is a group of people in one table and the other table contains another group of people, and there is a relation between those groups, how to create a form or a report representing diagram for this relation. This diagram should be dy

  • N95 31.0.017 Firmware, another bug

    After updating my N95 RM-159 to 31.0.017 Firware, I noticed that when recording a movie, after 5 seconds it start to make breaks and the red ligth flash also. did anyone have this bug? Solved! Go to Solution.

  • Publishing in Adobe Muse

    I am not able to publish my site to a test site. I get this message: The account (my email address) does not have privileges to create an Adobe Business Catalyst temporary site. Please contact the sit eadministrator. This is a new site so there is no