BAPI_REQUIREMENTS_CHANGE: Data deleted

Hi
Any existing data in other weeks gets deleted. Why?
Week 1 to 5 exists.
I want to change week 2 and 5 but week 1 , 3 and 4 are overwritten/deleted.
TYPES : BEGIN OF tp_data,
          matnr LIKE bapisitemr-material,
          plant  Like BAPISITEMR-plant,
          week LIKE scal-week,
          qty(30),
        END OF tp_data
DATA : t_table TYPE STANDARD TABLE OF tp_data WITH HEADER LINE.
LOOP AT t_table.
REFRESH i_requirements_schedule_in.
  perform populate_requirements_schedule.
CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE'
            EXPORTING
              material                = t_table-material
              plant                   = t_table-plant
              requirementstype        = 'VSF'
              version                 = 'AB'
              reqmtsplannumber        = '  '
              vers_activ              = 'X'
*         REQUIREMENT_PARAM              =
*         MRP_AREA                       =
*       IMPORTING
*         REQUIREMENT_ITEM_OUT           =
            TABLES
              requirements_schedule_in    = i_requirements_schedule_in
*         REQUIREMENTS_CHAR_IN           =
              return                         = return.
ENDLOOP.               
FORM populate_requirements_schedule.
  i_requirements_schedule_in-date_type = '2'.       " W C_day.
                                                                                call function 'WEEK_GET_FIRST_DAY'
    exporting
      week         = t_table-week
    importing
      date         = iweek
    exceptions
      week_invalid = 1
      others       = 2.
                                                                                i_requirements_schedule_in-req_date  = iweek
  i_requirements_schedule_in-req_qty   = t_table-qty .
  append i_requirements_schedule_in.
                                                                                ENDFORM.                    "populate_requirements_schedule                                                                               

Hi Giovanni,
BAPI_REQUIREMENTS_CHANGE is used for changing the Planned Independent Requirements (PIR).  However it does this by deleting the old data first
corresponding to the Mateiral and Plant. This the reason why data for week 1 , 3, 4 and overwritten / deleted.  However this bapi cannot be used to delete an independent
requirement only.
Thanks
Vijay
PLZ reward points if helpful

Similar Messages

  • Data Error in the Query/Report after selective data deletion for infocube

    Hi Experts,
    Please advise what i was missing and what went wrong...
    I got a Query (Forecast) on a Multicube...which is based on 2 Infocubes with Aggregates...
    As i identified some data discrepency..yesteraday i performed selective data deleation on one of the Infocube
    and executed report yesteraday and the results in the query are correct...
    When today i executed the same report i am getting different results..
    When i compared the results of the report with that of data in cube they are not matching
    The report is not displaying the data in cube..for some rows it is displaying the data in the cube but for some rows it is just displaying same as the above row
    there is no data loaded into info cube after selective deleation
    Do i need to perform request compression and fill the aggregated after selective deleation
    Please advise what went wrong

    Hi Venkat,
    No i haven't done anything on aggregates before or after selective delete
    As there is not data load after the selective delete according to SAP Manual we don't need to perform any thing on aggregates...as selective data deletion on cube will delete data from aggregates as well
    Please update how to identify error

  • Finish date deleted automatically

    If I delete a resource from a taks that is marked as finish, Project automatically (sometimes) marks the task as unfinished.
    Is there any way to keep Project from trying to be too clever? In most cases there was minimal or no work needed, or done by someone else.. this does not matter as the task is finished and I'm only using Project for planning.
    Valgardur Gudjonsson

    Hi Valgardur,
    I've never heard of such a bug. Nevertheless MS Project has a powerful scheduling engine that requires to follow scheduling best practices. Such as not deleting a resource assigned on a task with actual work which results in loosing the actual.
    That being said, many parameters could create such an unexpected behavior such as the task type (fixed work or duration), constraints on the start date, deleting actual start and finish dates, other resources assined on the same task, new task
    creation date parameter (project start or current date), ...
    If you're willing to dig into this issue, please send me your file at guillaumeDOTrouyreATgcosiDOTcom (replace caps) with some more details and I'll be pleased to investigate.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Data deletion on primary index and secondary index

    Hello, I have a question regarding data deletion in BDB-JE.
    Suppose I have an Entity class which has a primary index and a secondary index, the secondary key does not have outer related entity. So when I want to delete this entity, is it correct we only need to remove the entity from primary index? or I also need to do it for secondary index or just remove it from secondary index and internally BDB_JE will remove it from primary index?
    Thanks
    Anfernee

    You can delete an Entity using the delete method for primary index or the secondary index. When an entity is deleted, secondary index records are automatically deleted. The primary and secondary indices are always kept in sync.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • PSA Data Deletion in SAP BW running on Oracle

    Hi,
      I deleted 2 failed requests (10000000 Records) from PSA Tables because of the disk space issue for our BW System.
    RSA1—PSA –DELETE PSA DATA –
    The requests are deleted from the PSA, In BW in can see that there not requests in that particular PSA.
    But Basis/Database team raised an issue that the data has been added to the Database…
    What is this mean and how can I proceed with this
    Thanks

    This is probably not an Oracle issue.
    refer to your other topic at PSA Data Deletion in SAP BW running on Oracle

  • Missing secondary index after TDMS data deletion

    We have done a TDTIM transfer to a single client system. The deletion technique used by TDMS is Drop-insert technique.
    During our initial analysis, we found that many of the secondary indices are not re-created by TDMS at database level. For many few tables the secondary indices are re-created at the database level.
    Will TDMS delete and re-create the secondary index for re-created (droped & created) tables during data deletion in receiver system ?
    Why did TDMS re-create secondary indices for few tables and why it didnot re-create secondary indices for few other tables?
    Thanks
    Praven

    Indexes are deleted from the receiver only in cases when they were not present at the DB level in the receiver system
    prior to TDMS run. This is to avoid any kind of error/exceptions when records are inserted into the table.
    You need to create these indexes manually.
    In order to do so, you can follow the steps below:
    1. Execute transaction DB02.
    2. Select the button "missing indexes". A list of 1091 is shown
    3. Place the cursor on the line "secondary indexes" and hit F9
    4. Now hit "create on DB".
    5. A popup will ask if you want to do a mass select. Press "Yes"
    6. A further Popup will then ask for background processing. Say "Yes".
    Best Regards,
    Rupam

  • Logs for ODS data deletion?

    Hi ,
    I want to know the ODS data deletion logs.
    I mean to say I want to know who has deleted the contents of ODS.
    Please help me.
    Thanks,
    Vasu

    In the manage screen of the dso goto reconstruction tab .. Just beside the reconstruction button you will find a button as "Logs" .. click on it .. in the next option you need to select the deletion request from the infocube and select continue ..  It brings in a table with the status and Message .. select the relevant line and click on the application log .. It leads you to the slg1 screen with the inputs and there you just need to execute and it pulls out all the information for you ..
    Hope that helps ..

  • How do I reclaim the unused space after a huge data delete- very urgent

    Hello all,
    How do I reclaim the unused space after a huge data delete?
    alter table "ODB"."BLOB_TABLE" shrink space; This couldn't execute with ora 10662 error. Could you please help

    'Shrink space' has requirements:
    shrink_clause
    The shrink clause lets you manually shrink space in a table, index-organized table or its overflow segment, index, partition, subpartition, LOB segment, materialized view, or materialized view log. This clause is valid only for segments in tablespaces with automatic segment management. By default, Oracle Database compacts the segment, adjusts the high water mark, and releases the recuperated space immediately.
    Compacting the segment requires row movement. Therefore, you must enable row movement for the object you want to shrink before specifying this clause. Further, if your application has any rowid-based triggers, you should disable them before issuing this clause.
    Werner

  • Will there be any data deleted if i upgrade my software version?

    will there be any data deleted if i upgrade my software version?

    what are you updating?  But the short answer is no.  whether an iOS device or a Mac you should't "lose" anything.  the only problems you might run into are compatibility issues with software not being able to run on newer system software....ie.  upgrading to OSX LION means no more PPC apps anymore.  

  • Load of EBS Supply Chain data deletes data for General Ledger

    Hi,
    we are trying to load data from EBS 11.5.10 to BIAPPS 7.9.6. We have loaded data to Financials Subject Areas (Budget, Financials - COGS, Financials - General Ledger, Financials - Payables, Financials - Receivables) using pre-defined execution plan Financials_Oracle 11.5.10 and data has been successfuly loaded and shown on dashboards.
    Later we have loaded data into Supply Chain Subject Areas (Employee Expenses, Financials - Payables, Supply Chain - AP Invoices, Supply Chain - Purchase Cycle Lines, Supply Chain - Purchase Order, Purchase Receipt, Purchase Requisitions) using pre-defined execution plan Procurement and Spend: Oracle 11.5.10. After this load data are visible on Procurement and Spend dashboards but previously loaded data on Financials - General Ledger dashboards are missing.
    So we have loaded data to Financials again which brought Financials data back to dashboards but data for Procurement and spend disappeared.
    We have also trying to load all data using Complete Oracle 11.5.10 execution plan. After this load most of the dashboards for Financials and Procurement and spend are empty.
    And finally we have created our own execution plans for Financials, Supply Chain and both and tried the same scenario. The results are the same. It seems to me that load of Financials data deletes Supply Chain data and vice versa.
    Can somebody advice how to load data for Financials and Supply Chain together?
    Thanks a lot, Petr
    Edited by: user793851 on Oct 23, 2009 11:02 AM
    I have to add new info: the all data are back and visible after the night. We didn't perform any actions. Does anybody know about some settings which can cause such behaviour?
    Many thanks,
    Petr

    Try the BI Apps forum: Business Intelligence Applications

  • Issue with master data deletion

    Hi,
    In one of our report, there is a filter option on country.The help values on this filters shows some country codes along with country Text values.These codes were once used before the codes with text were maintained.We dont want these codes to appear in the selection options.
    Filter looks like this :
    AE
    AZ
    Austria
    Australia
    B
    Belgium
    Now, once the texts were maintained, we deleted the data from cube and reloaded it however, the filter option still shows those codes.
    I checked in the cube entries and these codes are no where used.
    These codes are however, still lying in the dimension table.
    how can we get rid of these country codes in the selection option.
    Query already have option of having only posted values in Infoprovider as selection input.
    I hav tried RSRV elementary test "Entries not used in dimension table" n this didnt work.
    Any clue ?
    Regards,
    Tapish

    Dbl click 0COUNTRY infoobject, under 'Business Explorer' tab, select Only Values in InfoProvider' for 'Query Def Filter Value selection' & 'Query Execution Filter Value selection'. See whether this works.
    ELSE
    Delecion of the master data
    Deleting Master data

  • User profile - hold data, set data & delete data

    Hello friends,
    In menu, system - user profile we have sub selections for Hold data, set data, Delete data.
    What is the function of these selection items?
    Thanks

    Use Hold data to keep data values that you have entered in fields in an application for the duration of a user session. When you call up the application again, you can overwrite these values.
    Once you set data, you can no longer overwrite these values and have to use delete data if you want to enter different values.

  • Data deletion routine in the info package

    Hi All,
    I am writting an data deletion routine in the info package.
    it is working fine...
    but when we are transporting the info package, that routine is not getting transported.
    we have tried sending ths info package through a transport connection.
    but still it is not taking the routine to next system.
    please let me know if any one has a solution for this.
    Thanks,
    Mugdha

    Hi Mughda,
    Collect the infopackage using transport connection, While collecting the infopackage make sure that Routines are also collected in the same request.
    Else most of systems will have authorizations to create infopackages, so try to create one IP and use the routine in IP.
    Hope this helps.
    Rgs,
    I.R.K

  • Data deleted in ODS, data coming from the data source : 2LIS_11_VASCL

    Friends,
    I have situation :
    Data deleted in ODS, data coming from the data source : 2LIS_11_VASCL.
    when for the above ods and the data source when trying to delete the request whole data got delted.
    All the data got deleted in the fore ground. no background job has been generated for this.
    I ma really worried abt this issues. can u please tell me what should be the possibilities for this issue.
    Many Thanks
    VSM

    Hi,
    I suppose you want to know the possibilitiy of getting the data.
    If the entire data is being deleted, you can reload the data from source system.
    Load the setup table for your application. Then carry out init request.
    Please note that you would have to take a transaction-free period for carrying out this activity so that no data is missed.
    Once this is done, delta queues will again start filling up.

  • Master Data Deletion

    Hello Experts,
    I know this is not a new topic to be posted in forum as we can find lots of threads on the same. But i tried different ways and could not succeed and so there is no other way except to post what i did and get suggestions from you all. Any help will be greatly appreciated and rewarded.
    Now coming to the scenario where i am in: There are two invalid master data values in SID table (no attributes for this, => SID and value). I tried deleting the two values
    1. using functional module RSDDCVER_USAGE_MDATA_BY_SID. But this resulted in short dumps with messsage INVALID TAB NAME
    2. using program RSDMD_DEL_MASTER_DATA: Though i could delete values in development in few seconds, this program took more than 3hrs and did not complete. When i checked the process in SM66, it was deleting unused dimension Ids in other dimension of infocube in which this object is being used.
    3. i could not try "maintain master data" of infoobject from RSA1 since i dont have authorization to do it.
    i think the only way is to delete using a custom program. Any thoughts, any experiences please share and do let me know in case of any details.
    thanks,
    Madhav

    Hi Madhav,
    I don't have a specific answer for you, but I had a similar problem with master data deletion.  It was with 0Vendor and I just wanted to delete all the unused entries, but running the RSDMD_DEL_MASTER_DATA program would always give a short dump.  Same think if I tried to delete using the Delete Master Data button on InfoObject.
    Applying the latest SPs worked for me.  We are on BW 3.5 (NW2004), SP 18.
    Good Luck.
    Dave

Maybe you are looking for

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

  • Invoking MS Excel from Java

    HI, I'm trying to create a standalone application that would need to logon in a database.If the user is a valid one, the user can then choose which table he wanted to update. All the rows of the column will be shown in an excel format. (the program w

  • Build and Deployment Tools

    Hi All, Are there automated build and deployment tools available? are there any recommendations? Thanks Sravz

  • How to install XI mail package?

    Hi, I wanna use the mail package I can download from SAP-Note 748024. I already read different HowTos (e.g. How To use the mail adapter of the Xi 3.0 J2EE Adapter Engine,...) but I cannot find an information about how to install the XSD-File? Do I ha

  • JDev 10g - Security - web.xml - URL pattern matching

    Hello, I use JDeveloper 10.1.3.4. It's 4 hours I try to figure out what is going on: I set security constraint in web.xml: <security-constraint> <web-resource-collection> <web-resource-name>books</web-resource-name> <url-pattern>faces/app/books/*</ur