BADI MD_PIR_FLEX_CONS not working

Hi,
We want the Stock transfport order to consume the PIRs. For this purpose we implemented the BADI MD_PIR_FLEX_CONS. But its just working for all SD docuements and not MM documents like Purchase req rel, Planned order rel and Stock transport orders.
We are using 4.7 which has that BADI
Please advise. Your help will be appreciated
Regards,
Shirish

Hi Rajendran/Shirish/Prem
    Unfortunately the BADI md_pir_flex_cons cannot be used for the STO scenario in strategy 63/60 (planning wa planning material). A modification is necessary. I recently developed this for one customer under remote consulting from SAP labs india in 46C.
Let us say you have a planning plant A and a distribution plant B. Sales orders are received in Plant B. MRP run creates an STO in plant B and the STO Release is created in plant A. This STO release would consume the PIR of the planning material.
The development which i did assumes that there will not be any sales orders in Plant A. The other intricacy here is in the development of MD73 to show this consumption. My customer did not want MD73, however MD73 is important and perhaps a new report will have to be created.
Regards
Pragnesh
SAP PP-Development support

Similar Messages

  • ME21N badi ME_GUI_PO_CUST - not working in PO creation

    Hi All,
    I am working on badi ME_GUI_PO_CUST to create a custom tab on PO header. I have implemented the BADI with custom fields in the custom screen. However, in ME21N, this new tab is not appearing. At the same time, it is appearing in ME23N. If i take a PO in display mode, the tab appears and then switch to chaneg mode, the tab disappears.
    Any solution for this pleas.??
    Regards,
    Arun.

    Hi Arun,
    You can use MM06E005 exit for adding the tab for item level in ME21n transaction. In general, you go to smod and you give this exit there and then press on documentation then you will find all the information regarding function module exits.
    Give this exit in SMOD and then press Attributes--> click on Components, then you will find all the function module exits and subscreen areas where you can add your custom field on the subscreens.
    I am giving you the subscreen :
    SAPMM06E 0111 CUSTSCR1 SAPLXM06 0111 Subscreen: PO item
    Function module exit:
    EXIT_SAPMM06E_018 Import Data from Customer Subscreen for purchasing document
    Then you start adding the custom field in Custom include of EKPO table and then you go to SE51 and then you import I mean ( Get from dictionary ) that particular Z field and then activate it. These all the thing you need to create a project and implement in CMOD transaction.
    Then you write the respective code in Functionmodule exit to populate the data to the database.
    Thanks,
    Swamy Kunche
    Edited by: Swamy Kunche on Dec 7, 2009 10:58 AM

  • Why my activated CTS BADI is not working ?

    Hello,
    I'm using the BADi  CTS_EXPORT_FEEDBACK. To do this, I used the transaction SE19, created a new implementation, add my own code and activated implementation, class and method.
    The problem is that when I export an order, the code I've written is not run.
    My BADI is activated and I noticed that in the transport protocol new lines appears :
    DEV        Developpement
           Checks at Operating System Level         03.09.2010 16:39:00    (0) Successfully Completed
           Pre-Export Methods                       03.09.2010 16:39:06    (0) Successfully Completed
           Export                                   03.09.2010 16:39:12    (0) Successfully Completed
         Import steps not specific to transport request  
               Feedback after export or import          03.09.2010 16:39:13    (0) Successfully Completed
    INFORM SAP-SYSTEM OF TP TERMINATION                                                 
    Transport request   : ALL                                                           
    Start: Executing method FEEDBACK_AFTER_EXPORT for business add-on CTS_EXPORT_FEEDBACK
    End: Executing method FEEDBACK_AFTER_EXPORT for business add-on CTS_EXPORT_FEEDBACK 
    INFORM SAP-SYSTEM OF TP TERMINATION                                                 
    End date and time : 20100903163913                                                  
    Ended with return code:  ===> 0 <===                                                
    I tried in my code to write in DB for example but no lines are added. My code works fine when I'me testing the BADI.
    So it's very strange, everything seems to be activated and running but nothings done.
    Another info, the BADI is launched from the program RDDFDBCK (l.348) and when I test this part of the code (call function...) everythings working fine...
    Any idea ?
    Thanks in advance.
    Simon

    Ok, I solved the problem Myself.
    If anybody has the same problem.. here is the solution.
    The job RDDFDBCK is running in backgroung. I ran a DEBUG thanks to the tip in this page : [SDN|http://wihttp//wiki.sdn.sap.com/wiki/display/ABAP/ABAP%20Debugger#ABAPDebugger-HowdoIdebugrunningbackgroundprocessesorasynchronousprocesses%3F]
    I created a block While l_int = 0. Endwhile. In my BADI implementation in order to make the job duration long enough to enter in debug with SM50.
    Here I saw that my SELECT didn't returning lines.
    Finally, I found in SM37 that the main job was launched with the mandant 000 => and my tables contained a field MDNT.
    So the BADI was launched but nothing was done cause to the mandant. I just removed the field MDNT of my customs tables to solve the problem.
    Simon

  • Changing data captured via ME52N through BADI - ME_REQ_POSTED not working!

    Hi All,
    I am trying to change the 'Release Date' value everytime some data is changed on a purchase requisition via transaction ME52N.  I am using BADI 'ME_REQ_POSTED' via my own implementation of interface method 'IF_EX_ME_REQ_POSTED~POSTED'.
    Everything works and I can access all the data that I need except the fact that the standard variables with item data (i.e. 'IM_EBAN') cannot be changed and so I am forced to rather change table EBAN directly by using a 'MODIFY' statement after processing the data within the BAdi method.
    However when I check table EBAN via se16 I find that the field that I want to change (i.e. EBAN-FRGDT) does not change at all even though the transaction states that the document has been saved successfully and my BADI implementation has been executed in full.
    Therefore how can I ensure that the field is updated via this BADI or via a direct update within the BAdi implementation?
    Thanks.

    Hi,
    I have solved this one.
    Thanks.

  • Round badi does not work in default formulas triggered when sending a value

    I have implemented the round BADI from sdn (how to). Problem is that it works perfect when :
    -  I execute it in UKT
    - I run it as a data manager package
    - I put it in default formulas and run the default formulas as a packe
    It however doesn't work when it is executed in default formulas when sending a value from an input scheduls.It gives an error "error converting records -  the root element is missing"
    Anybody a clue ?
    Cheers
    Nico

    Answering to myself!
    Code correction required:
    loop at it_cv into ls_cv.
    *{   INSERT         BPCK900005                                        2
    CHECK ls_cv-dimension NE 'MEASURES'.
    *}   INSERT

  • BADI ZHRALE00INBOUND_IDOC not working

    Hi *,
    I have implemented BADI HRALE00INBOUND_IDOC .
    For some reasons I cannot activate the BADI.
    I think this could be the right BADI as per my requirement I have to check segment E1P0002 field PERID, which is indeed the TAX NUMBER.
    I have to read the content of this segment extract the tax number and pass TAX TYPE as ES1, before IDOC is post, and I would say before saving the object.
    I have collect the following BADI:
    HRALE00INBOUND_IDOC
    HRALE00INBOUND_OBJEC
    HRALE00SPLIT_INBOUND
    HRALEX_INBOUND
    Which one can fit for my purpose?
    Please don't be shy feel free to suggest.
    Regards,
    AndreA

    Hi Andrea,
    Could you please let me know how you solved the problem?
    I am also facing the same issue.
    Am getting the error message that "There are already implementations active".
    And I see already that CRM_O_BP_RELAT is already implemented which is a standard implementation.
    Thanks

  • About BADI MD_PIR_FLEX_CONS

    Hi Guys
    I have impelemented the badi BADI MD_PIR_FLEX CONS, I sat a break point in the function CHECKPIR_CONS_REDUC, but to be honest I forgot which Tcode to use in order to call the function
    CHECK_PIR_CONS_REDUC of the BADI , and stop there.
    any help on which Tcode to use for the MD_PIR_FLEX_CONS.
    Thanks

    Hi
    Thanks for the replay but I meant which Tcode to use in order to get this badi MD_PIR_FLEX_CONS
    to work.
    let us say that if we use MD04 then this badi is called .
    thanks.

  • BADI MD_PIR_FLEX_CONS is not working properly

    We have put this Badi MD_PIR_FLEX_CONS in our system , so that PIR in one plant can be consumed from from Stock Transport Orders too
    We have put the Consumption indicator as 4 in PIR & Mixed MRP Indicator in material is 1
    The Badi is running successfully & the outcome is as expected
    But the problem is if we put Consumption indicator as 3 , then also PIR is getting consumed from STO
    How to resolve this
    rgds
    sandeep

    Dear Srihari,
    I'm not sure for what reason you have set the mixed MRP indicator for planning strategy 10.
    In my understanding it should be set for the planning strategies 70,11 and 74.
    Strategy70- Mixed MRP indicator1 - Subassembly planning with final assembly
    Strategy 11 - Mixed MRP indicator 2 - Gross requirements planning
    Strategy 74 -Mixed MRP indicator 3 - Subassembly planning without final assembly.
    Check and revert.
    Regards
    Mangalraj.S

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • BADI implementation is not working in background for MRRL

    Hai frnds,
    BADI: MRM_WT_SPLIT_UPDATE is used for deducting withholding tax in MRRL(Invoice verification). This BADI was implemented and working fine in foreground, but not working in background.
    After implementing the BADI, the standard method of calculating TDS(from vendor master) is over written by BADI implementation.Now standard deduction is also not workijng in background.Plz help me to solve it.
    Bala.V

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • Hi. I habe one old ID and now i have one new ID. The old one is bad , because the Email not working. But i hav a lot of Apps and i want to copy this apps in my new ID. How can i do this?

    Hi. I habe one old ID and now i have one new ID. The old one is bad , because the Email not working. But i hav a lot of Apps and i want to copy this apps in my new ID. How can i do this?

    You don't. Apps are permanently tied to the ID used to purchase them. Instead of creating a new ID, change the primary email address on your existing ID.

  • BADI HRPAD00INFTY is not working in ESS

    Hi Gurus,
       I have a requirement for Infotype 0006 at the time of saving or updating or deleting the infotype record. I used BADI HRPAD00INFTY for this. It is working fine if we go through PA30 T-code.
      If I enter the records into infotype 0006 through ESS then this BADI is not triggering. Tried in SDN and found that for ESS we need to use BADI HRPAD00INFTYBL. In this my problem is how can we get whether it is updation or deletion or creation mode?
      Otherwise can any one provide me another BADI is available for this scenario which will work through ESS.
    Thanks,
    SC

    If you are trying to use this BADI and you don't have access to the current operation being executed (INS, MOD, DEL etc), you can always have access by using the PSYST structure used on the main program of the infotype you are working with.
    You just have to use a field-symbol to get access.
    FIELD-SYMBOLS: <FS> TYPE PSYST.
    ASSIGN('(MP000100)PSYST') TO <FS>.
    CASE <FS>-IOPER.
    WHEN 'MOD'.
    ENDCASE.

  • All of my apps on my new ipad2 are not working. I had this iPad about 4 months and nothing bad has happened before this. I need help on how to make my apps stop crashing. All my built in apps are fine though.

    All of my apps on my new ipad2 are not working. I had this iPad about 4 months and nothing bad has happened before this. I need help on how to make my apps stop crashing. All my built in apps are fine though. WHATBCAN I DO TO MAKE MY APPS STOP CRASHING. I ALREADY TURNED IT OFF THEN ON AGAIN AN IT STILL CRASHES. HELPPP!!!!

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • T40 sound not working after motherboard replaced....bad sound card?

    Hello, 
    I recently brought back to life my old t40 2373-75U by switching out the motherboard (it would no longer charge batteries) with a used R51 1830 motherboard (which I believe was a recommended upgrade by someone on this site).  
    Anyways, long story short - I have the gently used motherboard now installed and the machine is up and running with my old T40 hard drive.  I also have XP-SP3 installed on it, and just had to make a few minor driver updates...everything seems to be working great, EXCEPT I have no sound.
    I have tried everything I can think of:  
    Software:
    -un-installing and re-installing the audio driver several times
    -installing the 2004 version of the hotkey driver (the 2013 version did not work with my system) because the Access IBM and volume buttons were not working and I thought that might be the culprit
    -I believe I updated the BIOS drivers, but not sure if I "flashed" it...admittedly, I don't even know how to do that.
    Hardware:
    -the hardware in device manager shows that it's working properly
    -I've performed the "test hardware" function through the control panel/device manager and it shows a signal with my USB "test" microphone going in and a signal coming out, but still no sound is actually coming out
    -lastly, I've tried connecting external speakers to the headphones jack and still nothing..
    At this point, all I can think is that the sound card is bad.
    Would you agree with this assessment or am I forgetting something?
    Thanks for your help.
    Solved!
    Go to Solution.

    I'm not familiar with Linux Mint as I have been a Fedora guy for a long time, but since LM7 was
    released in 2009, all audio drivers should be present for your machine. But, as I said, that could
    be different for LM.
    But you shouldn't have to do anything further regarding codecs or anything else, and since the Soundmax
    uninstallation also removed the device as well, then it should be completely reset in the OS. Alas, is there
    anything from Via in Control Panel - Add/Remove programs? If so, you should remove that before proceeding.
    The driver for your machine is here:
    Audio driver for Windows XP
    And if you already installed this version, the driver can be found @ C:\DRIVERS\WIN\AUDIO
    I did some rummaging through various forums today in regards to your issue, and found this one,
    a couple of R51 users chime in there too.
    http://forums.windrivers.com/printthread.php?t=73987&pp=40
    and in the above link, a user found a solution by following the advise in this post:
    http://www.techspot.com/community/topics/audio-drivers-not-found.14328/#post-184512
    But instead of getting the drivers mentioned there, you could point to the installation location I
    posted above.
    One thing they mention in these threads, is running
    sfc /scannow 
    in a command prompt, which checks your OS for essential system files, but for XP you'll
    almost certainly need the Windows XP installation media.
    Finally, here is another thread on audio issues for a R51 user:
    http://www.techsupportforum.com/forums/f19/solved-ibm-r51-no-sound-512806.html
    Sorry for a bit muddled reply, but there you go... something to sink your teeth in at least.
    ThinkPad W540 (20BG) - i7-4800MQ/24GB // ThinkPad T440s (20AQ) - i7-4600U/12GB
    ThinkPad T440p (20AW) - i7-4800MQ/16GB // ThinkPad Helix (3698-6EU) - i5-3337U/4GB
    ThinkPad W520 (4282-W4Q) - i7-2720QM/32GB // ThinkPad T400 (2767-W1C) - P9500/8GB
    ThinkPad T61 (7665-CTO) - T7700/4GB // ThinkPad T60p (8741-C2G) - T7400/4GB

  • Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the n

    Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the network. what have you done with your phone moym ?! solve all these problems! I beg of you!

    Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the network. what have you done with your phone moym ?! solve all these problems! I beg of you!

Maybe you are looking for

  • Nano a little wet - how to tell if dead?

    My nano, in it's protective rubber case, somehow got wet (maybe a little splash over from some ice coffee or water while in the car, I doubt sweat from running), probably a week or so ago, and I did not realize it. When I did, I took it out of the ca

  • How to get Airport Express to authenticate the PPPoE connection so that more than one computer can get online

    Hello, I have to use a PPPoe Connection with my ISP and have some troubles setting up the Airport Express. I can only use the Airport in Bridge Mode and DHPC and authenticate the PPPoE on the mac individually. With this solution, no second computer c

  • Upload on BI Ondemand

    Hi, I have SAP BO 8.82 PL 08 and I cannot upload on BI Ondemand from Quey manager. What do I have to do to get an user and password to do this on https://bi.ondemand.com/session.

  • Help me find my lost photos....

    Hi there.  I use a iMac with adobe bridge and photoshop elements. Yesterday I loaded up some pics into adobe bride.  They went into two seperate file folders in adobe bride.  I wanted to merge the two files together so all the photos from that shoot

  • System 7.1 "not enough memory to open program"

    Yes, I know this is not the corect place but it was the closest I could get. I have a Macintosh LC II running System 7.1. The machine has been working fine and I have not done anything new/installed. I attepmted to open "Making The Grade" when I get