Using BAPI_REQUIREMENTS_CHANGE for deleting planned inde.requirements

Dear all,
Pls let me know how we can delete a requirement in MD62 using BAPI_REQUIREMENTS_CHANGE. If we check delete _old parameter in BAPI that also doesn't work.
Helpful answers will be rewarded.
thanks in advance!!!
Sankar M

Hi Sankar,
Please check the below link that explains the issue.
[http://www.sapfans.com/forums/viewtopic.php?f=13&t=211754&start=0&st=0&sk=t&sd=a]

Similar Messages

  • Planned ind.requirement is not reduced during processing of the goods issue

    Hello to all,
    I am facing a problem.
    We are using make to stock production with strategy 10 (LSF).
    On 1.12.2006 the ind.requirement (LSF) is entered for week 4.2007 (I see that from schedule line history) for the material A.
    In the system at that time there were a sales order which needed that material A in exact quantity the LSF was. The GI of the delivery were on 13.01.2007.
    The LSF still exist in the system and it can be seen in MD04.
    Before running every MRP, a planning scenario is being created and run. From MS04 I can see that the LSF exists since then in all scenarios except from 3.
    The schedule line history of the LSF has only its creation (1.12.2006).
    Can you please explain to me the following:
    1. why in the first place the LSF did not reduce after the GI of delivery?
    2. the LSF does not exist in olny 3 scenarios. how it could disappear (delete) and appear (create) again without history displays that changes?
    3. If I delete the LSF I think I will not have a problem. Correct?
    Thank you in advance for your help.
    IX

    Hi Ismini,
    For the first question, there could be several reasons, like for example, 13.1 is not week 4. So if the consumption parameters did not allow forward for at least around 7-10 days (to get to the date of the first day in week 4), then consumtion didn't take place. Another reason could be that you defined planning strategy 10 for the material AFTER the sales order was already created.
    Point 2: I really don't know he details of these LTP scenarios that you mention.
    Point 3: if it really is from 2007 I think that you can delete the PIR without fear.
    Regards,
    Mario

  • Transport for delete planning layout

    is it possible to create a transport request for deletion. i would have to delete a planning layout i created using FAGLPLC(new g/l planning). i do not use this anymore and would like to delete it from the system and propagate the same to other environment(testing) . could you please let me know if it is possible to do so.

    thanq,
    ur correct that, looks like, ONLY standard lay outrs r transportable. bcoz, when I used my_alv_layout, I did  NOT see the SETTINGS option in MENU, instead there is ?????????????????????????????
    1) So, Is there any alternative for my requirement?
    OR
    2) pls. see my other thread, with title, Can I TRansport a table entry of LTDX, which DELIVERY CLASS is E, ALLOWED?
    Its about the TRANSPORTING the same new entry content from TABLE of LTDX , as its "E" type?
    and
    3) pls. let me know, Wht is the flag to show the alv field as CURRENCY?
    thanq
    Edited by: Srinivas on Mar 18, 2008 2:50 AM

  • Function modules or BAPI for deleting plan costs on a cost center

    Hi all,
    I search for a function module or bapi to delete plan costs / activity on a cost center.
    At the moment I update the planning with 0, but that cause a mass of needles entries on the cost centers.
    For check and posting I use the function group 6026 - BAPI_COSTACTPLN_* ,
    but there is no function for deleting.
    Has anyone an idea?
    Thx for help - points as reward !

    check
    BAPI_COSTACTPLN_POSTACTINPUT   Activity Input Planning: Posting                
    BAPI_COSTACTPLN_POSTACTOUTPUT  Activity/Price Planning: Posting                
    BAPI_COSTACTPLN_POSTKEYFIGURE  Stat. Key Figure Planning: Postings             
    BAPI_COSTACTPLN_POSTPRIMCOST   Primary Cost Planning: Postings                 
    BAPI_PDTRANSCO_POSTPRIMCOST    Transfer of Planning Data: Post Primary Costs   
    K40C                           CO Actual Postings, Manual                      
    BAPI_ACC_PRIMARY_COSTS_POST    Accounting: Post Primary Costs                  
    BAPI_COPAACTUALS_POSTCOSTDATA  BAPI Operating Concern: Post Costing-Based Actua
    BAPI_PRIM_COST_CHECK_AND_POST  Primary Costs: Formal Parameter Check           
    S@meer

  • Deleting planned individual requirement

    Hiya,
    Is there a way to delete an planned individual requirement...
    Thanks in anticipation
    Regards

    Hi Ranjeet,
    Do you think of planned independent requirement (PIR)?
    You can delete it in transaction MD62. Please enter the relevant material number, version, validity period > enter > select the record (line) > delete it (right click and choose from the appearing menu or there must be some button for this purpose - sorry I'm not before SAP).
    All your PIRs will be deleted for that material&version&period.
    If you want to delete only one figure (one PIR) you don't have to select the whole record, you only have to delete the undesired figure > save.
    BR
    Csaba

  • How to use CSAP_MAT_BOM_MAINTAIN for deleting / changing sub-items?

    I'm trying to use CSAP_MAT_BOM_MAINTAIN for BOM create / change / delete.
    Issue: This Function module is not working when I'm trying to delete / change sub-items of a BOM. I'm getting update termination (ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC) during BOM post.
    Is there a way to fix this?
    (1) BOM creation part is working fine
    (2) BOM item (without any sub-item change) change / delete is also working

    hi
    The following parameter are important parameter and mandatory
    Matnr ;  Enter the material Number
    BOM_USAGE : Ther many BOM available that is sales BOM and Production BOM etc  here you need to mention usage of BOM that is for sales or production
    I_STKO : Enter the BOM Header information  . Note : Ask your Functional consultand
    Apart form this parameter, all are optional so do worry
    regards
    anand kumar

  • MRP setting for Purchase (Planned Order ) Requirement date

    Dear Sir,
    During the MRP run , we desire that the genertaed Planned Orders for the Purchase related items , should have requirement date as either the current date or the current date plus procurement lead time defined in the Material Master against the item .
    To achive the abobe requirement , we request you to pl guide us as what setting / parameters are required to be set in the MRP setup .  Or if there is some other alternate approach , pl suggest the same .
    With Thanks and Rgds
    Sonia Agarwal

    Dear
    Generally , during MRP run , system will genarted Planned order for Purcahsed item if it is opening period .
    The opening period for the planned order represents the number of workdays that are subtracted from the order start date in order to determine the order opening date. This period serves as a time float, which is available for the MRP controller when converting a planned order into a purchase requisition.
    You define the opening period for the planned order in Customizing for MRP in the IMG activity Define floats (scheduling margin key) and assign it to the material in the Scheduling margin key field (MRP 2 view) in the material master
    Now if you want to have Planned order for purchased item with requirement date as current date , then maintain Demand date like Sales Order requirement date as curent date in VA01 or PIR date as current date.
    Where as MRP will consider the Planned Order based on planned opening date , lead time , GR processing time from MRP2 view .So for current date requirement , u should keep Lead time and GR processing time as 0.
    Regards
    JH

  • BAPI for deletion of a requirement plan

    Hi,
    Is there a BAPI to delete a requirement plan (created through TCODE MD61).
    I have found BAPIs for creation and modification of those requirements:
    BAPI_REQUIREMENTS_CREATE,  BAPI_REQUIREMENTS_CHANGE ...
    but none for the deletion.
    Thanks & regards

    The BAPI BAPI_REQUIREMENTS_CHANGE will be helpful to delete the PIR,     
    please go the transaction BAPI and find it for detail information, you   
    can check the documentation of it.            
    Later you ahve to run MD74/75 and 76 to delete completely form the database.                                                                               
    best regards

  • Using ASCP for Repair Planning and Service Parts Planning

    I have a client that is doing a large scale Oracle ERP (most modules). The customer is a large aircraft maintainer and perform most of the maintenance internal. Has anyone implemented ASCP is a complex repair environment that his heavily influenced by service parts concepts. I am a Xelus/ClickCommerce implementor and I am looking for some insight on how to implement the key service parts concepts including: fractional repair BOM's/Factors, time phased bills of materials, importing time phased re-order points, time phased carcass returns , constraint based planning on carcasses, material and resources.

    Partha ,
    The simple scenario mentioned by you where one supplier/supplier site is there for an item and supplying to two org ... the suggested due date can be different by having different purchasing lead time(pre processing + post processing + processing) set at item org level .
    But this solution will not work when you have multiple supplier/supplier site is there for an item rog combination. However here it can be tried modeling through a combination of post processing lead time at ASL Level and pre processing lead time + post processing lead time at item org level.
    Regards
    Abhishek

  • SQ01/SQVI SAP QUERY for PIR Planned Independent requirement

    I wanna make a query to see all the PIR with respect to a plant , material , date etc ..
    I tried with table PBIM and PBID , but could not get a success.
    Can you tell me the table names to be included to make this query along with the links.
    Thanks

    Dear,
    Even i have created query with three tables, and kept plant as input field from one of the table, but after executing system responding as no data exists. please guide
    thanks in advance
    kaialsh thakkar

  • Urgent - Deletion of Planned Independent Requirements

    Hi
    I need to delete Planned Independent Requirements (MD62). I tried using the bapi 'BAPI_REQUIREMENTS_CHANGE' setting the delete_old parameter to 'X'. However this does not delete the planned independent requirement.
    Plz suggest a method for deletion of PIR programatically.
    Thanks
    Vijay

    Hi,
    Have you checked in ECC MD04 tcode. What is the date it is showing there?
    If in MD04 date of ind. requirement is showing same as APO then there is no problem it is expected behaviour.
    If not Try running CCR to correct inconsistency.

  • "Marked for Delete" flag in Hyperion Planning

    Does anybody know how can I set "Marked for Delete" value by ODI? I have reversed planning model by RKM, but it hasn't field "Marked for Delete".
    Thanks a lot in advance

    user11340418 wrote:
    Hi John,
    In that case, what is the best practice for deleting a Hyperion Planning shared member.
    I have to delete a shared member manually from Planning front end.
    Is there a better way for deleting planning members?
    Cheers,
    RSHi, the Marked for Delete is nothing to do with deleting shared member.
    You can can delete members by using the Operation column and it set to Delete, you will have to provide the member to delete and the storage type of Stored.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • BAPI_REQUIREMENTS_CHANGE To cancle Planned Independent Req

    i want BAPI_REQUIREMENTS_CHANGE
       to cancle planned independent Requirements:
        CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE'
            EXPORTING
               material = IT_CANCLE-MATNR
               plant = IT_CANCLE-WERKS
               requirementstype = IT_CANCLE-BEDAE
               version = IT_CANCLE-VERSB
               reqmtsplannumber = IT_CANCLE-PBDNR
               vers_activ = SPACE
              vers_activ = 'X'
              DELETE_OLD = ''
              REQUIREMENT_PARAM =
              MATERIAL_EVG =
              IMPORTING
              REQUIREMENT_ITEM_OUT =
           TABLES
               requirements_schedule_in = lt_rschin
               requirements_char_in = lt_rcharin
               return = lt_return
    what defference for use MD62 to cancle planned independent Requirements is
    in PBIM TABLE of field PBIM-LOEVR = 'X'.
    but to use BAPI i find the PBIM-LOEVR = ''. so when i use
          CALL FUNCTION 'BAPI_REQUIREMENTS_CREATE'
            EXPORTING
              REQUIREMENTS_ITEM              = ls_ritem
             REQUIREMENT_PARAM              = ls_rparam
          DO_COMMIT                      = 'X'
          UPDATE_MODE                    = 'X'
          REFER_TYPE                     = ' '
          PROFILID                       = ' '
        IMPORTING
          MATERIAL                       =
          PLANT                          =
          REQUIREMENTSTYPE               =
          VERSION                        =
          REQMTSPLANNUMBER               =
          MRP_AREA                       =
            TABLES
              REQUIREMENTS_SCHEDULE_IN       = lt_rschin
          REQUIREMENTS_CHAR_IN           =
              RETURN                         = lt_return
    to create again. will return error.
    how to change my cancle parameter can get effect like MD62 of CANCLE PIR.

    thank you !
    i set it DELKZ = 'X'.
    i run it! no change in result!

  • How to use SPEL for Dynamic View Objects?

    Hi Gurus,
    In Benefits Self Service particularly in the Designate Beneficiaries page, we have a requirement to set the row for Self designation as Read Only. What this means for any plan that you're eligible and that requires beneficiary designation, you are not allowed to designate yourself. Unfortunately this is an intended functionality and the only way to achieve our requirement is thru Personalization. I was able to accomplish this successfuly thru the SPEL functionality. However the view object corresponding to each plan that requires beneficiary designation is somewhat dynamic. For example, Plan A corresponds to BeneficiaryPeopleVO1, Plan B corresponds to BeneficiaryPeopleVO2, Plan C corresponds to BeneficiaryPeopleVO3, etc. The Personalization Page only allows me to use the SPEL for only one view object at a time. So if an employee is eligible for 3 plans that require beneficiary designation and my SPEL points to BeneficiaryPeopleVO1, it will only set the Read Only in Plan A. Plan B and Plan C would still allow self designation. Is there a way I could use the SPEL to work for all View Objects?
    Thanks,
    Ronaldo

    jeanluca wrote:
    I've seen things like this in scripting languages, so I was wondering if things like this are possible in java. Here is an not working example:
    Is something like this possible ?AFAIK, it is only possible in a very limited way as noted above and is nearly always not recommended and definitely not necessary. The variable name has little importance, but OTOH the object reference has great importance. Instead learn about arrays, Lists, and Maps.

  • Planned Independent Requirements Data Conversion

    Hi, I am currently trying to figure out what data I need for converting Planned Independent Requirements from Oracle 11i to SAP.  Can someone explain to me what equates to a PIR in SAP from Oracle?
    Thanks in Advance,
    Brian

    Hi YMReddy,
    my requirement is that I input PIR for some materials, and want those materials reserved by this PIR, since this PIR are special, can not be used by other requirement.
    regards
    Gang

Maybe you are looking for