Cannot update batch header no matter how I try in MB_DOCUMENT_BADI

I am trying to update next inspection date via MIGO when Goods Receipting a production order which is held in the batch header and in a classification we have set up.  I have used function modules to try and perform the update.
I have used both 'VB_UPDATE_BATCH' and QEVA_BATCH_UPDATE both by themselves and in an update task to update field QNDAT. (1st one updating MCHA and MCH1 the second one to update MCHA).
I had the code before in POST_DOCUMENT of BADI MB_MIGO_BADI and this made no difference either. Sometimes it updates if I cancel the material document and redo the goods receipt with the same production number but this is very inconsistent.  I need this to be done when I am posting the goods receipt.
Does anyone have any ideas as I am at the end of my tether with this one?
Many thanks
Regards
Larissa Maryniuk
Edited by: Larissa Maryniuk on Feb 7, 2008 4:34 PM

Have you tried using 'BAPI_BATCH_CHANGE'?   I have used this FM, but not in the MIGO exit.
Update the batchattributes and the corresponding x parameter.   There is a field for updating the inspection date.  I wonder if it is failing to update for you because the batch is not yet created.  Are there any error/warning messages returned from your FM's?

Similar Messages

  • Cannot update batch header during MIGO GR using BADI MB_DOCUMENT_BADI

    I am trying to update next inspection date via MIGO when Goods Receipting a production order which is held in the batch header and in a classification we have set up. I have used function modules to try and perform the update.
    I have used both 'VB_UPDATE_BATCH' and QEVA_BATCH_UPDATE both by themselves and in an update task to update field QNDAT. (1st one updating MCHA and MCH1 the second one to update MCHA).
    I had the code before in POST_DOCUMENT of BADI MB_MIGO_BADI and this made no difference either. Sometimes it updates if I cancel the material document and redo the goods receipt with the same production number but this is very inconsistent. I need this to be done when I am posting the goods receipt.
    Does anyone have any ideas as I am at the end of my tether with this one?
    Many thanks
    Regards
    Larissa Maryniuk

    used BAPI_CHANGE_BATCH in method CHECK_ITEM of  MB_MIGO_BADI

  • Cannot update batch header MIGO GR in MB_DOCUMENT_BADI

    I am trying to update next inspection date via MIGO when Goods Receipting a production order which is held in the batch header and in a classification we have set up. I have used function modules to try and perform the update.
    I have used both 'VB_UPDATE_BATCH' and QEVA_BATCH_UPDATE both by themselves and in an update task to update field QNDAT. (1st one updating MCHA and MCH1 the second one to update MCHA).
    I had the code before in POST_DOCUMENT of BADI MB_MIGO_BADI and this made no difference either. Sometimes it updates if I cancel the material document and redo the goods receipt with the same production number but this is very inconsistent. I need this to be done when I am posting the goods receipt.
    Does anyone have any ideas as I am at the end of my tether with this one?
    Many thanks
    Regards
    Larissa Maryniuk

    i did not get total req .
    but i came to know that u want to update batch.
    rt .use this i did in this.
    MB_MIGO_BADI
    use this method  LINE_MODIFY
    where u can modify batch field.
    and if u want to modify batch characteristics
    use
    MBCFC004
    in this
    EXIT_SAPMM07M_004
    if nay clarification plz reply.

  • My ipad2 switch off by itself suddenly, no matter how i try , it cannot be on again. why?

    my ipad2 switch off by itself suddenly, it cannot be on again no matter how i try, why ? (the apple logo keeps appear on screen)

    Try a reset:
    1. Hold the Sleep and Home button down (together)
    2. For about 10 seconds
    3. Until you see the Apple logo (very important)

  • I downloaded IOS 6 and using the apps movies , books and I-store I get connected to the USA store and not to the Dutch one like before. So i cannot update my purchaged apps. How can I change this ?

    I downloaded IOS 6 and using the apps movies , books and I-store I get connected to the USA store and not to the Dutch one like before. So i cannot update my purchaged apps. How can I change this ?

    Have you looked on all the pages of your iPod?  Have you looked in all your folders?  Have you you tried finding the apps using the iPod's search page.
    PS: Offering points in advance is a violation of there terms of service for this forum.  Perhaps it's why you have not received any other answers so far,

  • I downloaded itunes. I have bought music before, but want to listen to national radio broadcasts.  I hit go to itunes store, and it always ask me to download itunes again.  No matter how I try to reach it. grrgh??

    I have bought music before, but want to listen to national radio broadcasts.  I hit go to itunes store, and it always ask me to download itunes again.  No matter how I try to reach it. grrgh??

    You buy one and only one download.
    It is your responsibility to move/copy/backup your music.
    Certainly you did not update your ipod without making sure that you had transferred anything purchased on the ipod to your computer and included it in your regular backup copy of your computer.

  • Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.

    Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.

    Thanks. I've tried this and apparently the template I'm using is one of those where it doesn't work. I've tried dragging it as well as cutting a pasting but it always travels back to the end of the book. Maybe I can try changing the template temporarily, move the preface page, and then convert back to the original template. I'll experiment a little.

  • Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can't complete the operation because some data in the folder can't be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can’t complete the operation because some data in the folder can’t be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    The Time Machines Backup is formated as Mac OS Extended (Case Sensitive, Journaled), my mac is formated as Mac OS Extended (Journaled).
    The names on the file are all Uppercase
    When I try to copy the Aperture file, it copies about 70% of the file (it's about 33GB in size), and halfway through I get this error.
    I'm able to copy 99.99% of all of the images if I open the Aperture Folder using the "show package contents" under the backups using finder (Time Machine Backups>Backups.backupdb>CQ Macbook Air>2012-04-30-070933>HD.....>Pictures>Aperture Library). The only file I can't copy is that picture, which I'm totally ok with deleting, but Finder won't delete it for me. If nothing else works, I could copy the individual masters and re-create the folders, however I'd hate to do this as I would have to go through 10,000+ pics

  • No matter how I try to finalize my imovie , I get the following message:  "The project could not be prepared for publishing because an error occurred. (Error code = -49))"

    No matter how I try to finalize an imovie I get the following message:
    "The project could not be prepared for publishing because an error occurred. (Error code = -49)"

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    Easiest way to find out if this is the problem is by:
    • Create a new User-Account
    • Log out of Your old one and into this
    • Re-try iMovie
    If it now works OK - then 99.9% the problem is iMovie pref. file that needs to be trashed.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occurs only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • I have downloaded the lord of the rings BBC Dramatisation in 3 parts but they appear out of sequence on my iPod no matter how I try to arrange them in my library when I sync my iPod they are still out of sequence eg: Book 1, Book 3 Then Book 2. HELP!

    I have downloaded the lord of the rings BBC Dramatisation in 3 parts but they appear out of sequence on my iPod no matter how I try to arrange them in my i Tunes library when I sync my iPod they are still out of sequence, eg: Book 1, Book 3 Then Book 2. HELP!

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • I recorded audio with Quicktime player and the sound files won't disappear from the desktop no matter how I try to put them in the trash...

    I recorded audio with Quicktime player and the sound files won't disappear from the desktop no matter how I try to put them in the trash...tried xing out the red x, putting them in the trash...right clicking to make them disappear...nothing works...

    Just got rid of them... I closed Quicktime and was asked to delete. So I deleted them. Problem solved.

  • I cannot update my itunes account.  when I try to edit information I am getting an error message

    cannot update my itunes account.  when I try to edit information I am getting an error message

    To everyone that is having this problem:
    I just ended a 2 hour session with Apple Tech Support.  We had to take it to a level 2 support person, but finally got it running.  Here's what she had me do.  Go to Control Panel, Add/Remove Programs.  Uninstall ALL Apple products on the Computer.  This inccluded Apple Mobile Device Itunes, Bonjour and Quicktime.  I doubt if we would have had to but she had me download a fresh copy of iTunessetup.exe and run it.  iTunes came up and ran on version 11.1.4.  Then I reinstalled Quicktime.
    It is my personal opinion that there is a flaw in version 11.1.4.  You shouldn't have to go through all of these hoops just to update a single application that was working fine proir to the update attempt.
    That's what worked for me.  Hope this helps you.  Any questions, get back to me.
    Good Luck.

  • PHP won't recompile, no matter how I try

    Hello,
    In March, I installed PostgreSQL on my computer, and I recompiled PHP with the --with-pgsql option to take advantage of this. I don't remember the exact date, but it must have been within a couple days of March 9th, since that's when all my related files were created.
    Everything worked fine, and I was developing things as I had expected to. I hadn't worked on my project since about April, and I came back to it the other day, to find that PHP had reverted to an older build, apparently from February 20th.
    Now, no matter how many times I reconfigure or recompile or reinstall PHP, it doesn't change the version on my computer.
    When I run "make install", I get this:
    Installing PHP SAPI module: apache2handler
    /usr/share/httpd/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1/build-1/libtool' libs/libphp5.so /usr/libexec/apache2
    /usr/share/apr-1/build-1/libtool --mode=install cp libs/libphp5.so /usr/libexec/apache2/
    cp libs/libphp5.so /usr/libexec/apache2/libphp5.so
    Warning! dlname not found in /usr/libexec/apache2/libphp5.so.
    Assuming installing a .so rather than a libtool archive.
    chmod 755 /usr/libexec/apache2/libphp5.so
    [activating module `php5' in /private/etc/apache2/httpd.conf]
    Installing PHP CLI binary: /usr/bin/
    Installing PHP CLI man page: /usr/share/man/man1/
    Installing build environment: /usr/lib/php/build/
    Installing header files: /usr/include/php/
    Installing helper programs: /usr/bin/
    program: phpize
    program: php-config
    Installing man pages: /usr/share/man/man1/
    page: phpize.1
    page: php-config.1
    Installing PDO headers: /usr/include/php/ext/pdo/
    And then it ends. All the files related to PHP seem to be updating, but PHP itself remains untouched. I can't figure out what made my newer build disappear. I don't know where the issue is to even fix this. I'm not getting any errors at any step of the way, except that PHP isn't reinstalled when I finish.
    Anyone have a clue what's going on?

    I suspect that you lost your newer build as the result of Security Update 2008-002 which was released on 18 March. Would this fit the timing? The update included PHP updates.
    In general, it is a bad idea to install software into /usr/bin, /usr/share etc. A better choice is /usr/local/bin etc. This is true even if - perhaps even especially if - you are installing a newer version of something included in OS X. There are a few exceptions to this rule, but they really are very few and do not include PHP.
    I don't really know PHP (or at all, in fact). How do you know it isn't updating?
    Assuming the source uses the auto tools, did configure find everything OK? Actually, let me back up here.
    Did you run configure and make again in your source directory or did you just do make install? Apple's Security Update also included updates for Apache, for example, so you might need to reconfigure the source (make clean; ./configure --my-args; make; make check; make install).
    - cfr

  • How can I open elements 11 organizer, no matter how I try, I cannot see my pictures or catalogues.

    How can I open Organizer in Elements 11. No matter what I do I cannot open it to see my picture folders or catalogues. Can anyone help?

    I click the icon in the taskbar. The editor works fine but the organiser has stopped working. I have 4 catalogues and approx 19000 pictures in them but organiser has stopped working.Have reinstalled the software but this didnit resolve the problem

  • I need my iPad to update. However no matter how many times I've tried. It keeps failing. What should I do

    My iPad has an update but it keeps saying update failed. Whether I tried at 12pm in the afternoon or at 1am in the morning it will not let me update it successfully.

    Which iPad model do you have?  iOS 6.0.2 is only for the iPad Mini (and iPhone 5).
    If you have a Mini, are you trying to update via wifi?
     Cheers, Tom

Maybe you are looking for