BAPI_ALM_ORDER_MAINTAIN - cost determination error when deleting operations

Dear all,
I have a problem with BAPI 'BAPI_ALM_ORDER_MAINTAIN'.
When I add and delete operations several times in an order using this BAPI, cost determination works incorrectly:
in transaction IW32 Plan costs sum on 'Costs' tab becomes wrong. But if I look at the detailed report (Rep. Plan/Act button on the same tab), the total plan costs sum is correct.
What I have tried so far:
1. adding method 'CALCULATE' for the header (within the same call and within a call in separate transaction)
2. changing the order in IW32 and saving it
3. 'Calculate costs' button in the same transaction
3. clearing buffers using FM 'CO_ZF_DATA_RESET_COMPLETE' before calling the BAPI,
but without luck.
Any help will be much appreciated!
Andrey

Hi Andrey,
Thanks a lot for the prompt reply.
As you said, the problem is in the standard BAPI BAPI_ALM_ORDER_MAINTAIN where the costs table is not getting refreshed, it is taking the buffer value.
Few OSS notes like 750606 were suggested by SAP, which also suggested the solution suggested by you, ( to use'Destination 'NONE' when callling the function module so that the BAPI will get called in the new session each time ),but it did not work. and SAP note also says that the complete solution is not yet  implemented.
So, to resolve this ( to clear the buffer) I have used two  programs, the internal one is called by the main program  using 'submit' statmeent so that buffer value is cleared as it is a separate program. Finally it worked out
Thanks & Regards,
Vishnu Priya

Similar Messages

  • Attribute change run fails - "Error when deleting the data record /B05/X.."

    Hello,
    I get the error message "Error when deleting the data record /B05/X.." on doing the change run.
    I have already done RSRV on this objects and found no errors, but still the activation fails.
    please give your suggestions ASAP to fix the issue as it is on production system.
    Thanks.

    Attribute change run could fails due to 2 reasons-
    (1) attribute xchange run is already runnnig for any toher object(monitor lock) (check by thi prog-RSDDS_CHANGERUN_MONITOR)
    (2) data is loading deleting from the object on which attribut changerun is running.(go in a manage tab and check)
    check this two conditions and rerun the attribute changrun again from program - RSDDS_AGGREGATES_MAINTAIN and give the master data name in the selection.
    Hope it helps you.

  • Acct. determine error when make out an invoice

    hi,gurus,
         After DN and PGI, When create the invoice, it show that "Acct. determine error ". can someone help to solve it.

    hello, friend.
    when you have an account determination error when you do billing, please check the following:
    1.  first, as the others said, do t-code VKOA and check the assignments to the GL accounts.  the assignments come in the form of:  application + condition + chart of accounts + customer account assignment group + material account assignment group + account key = GL accounts.
    2.  let's say in VKOA you see that the assignments have already been done.  now, you have to go back to your invoice using VF02 and see if account assignment groups in your header (customer) and item (material) have been properly entered.  inspect by following the menu path GoTo > Header > Header, and check the entry in the "Account Assignment Group" field for customer and choose a value.  do the same for the material by highlighting each line item, then following the path GoTo > Item > Item details, and checking the entries in the "Account Assignment Group".
    3.  when all is done, try releasing the invoice.  if all goes well, the invoice will post to FI and an accounting document will be generated.
    regards.

  • CO41: cost determination error and no routing

    Hello,
    I convert planned orders in production orders massively with CO41. Is it possible to set automatically the answer "no" for popup "no routing" and "cost determination error" ? Is there a point of customizing for this? Or I can only say it one by one?
    Thanks

    Hi,
    Goto OPL8 (Order type dependent parameters) and under Routing, you have Routing Selection selection option. If you do not have routing for this type of orders, then choose 0.
    This will solve first issue.
    Cost determination error  - are you planning to release materials without SCE?
    Thanks
    Prem

  • ORA-22813 error when deleting spatial objects in LIVE

    Hi,
    We are getting an ORA-22813 error when attempting to delete a spatial object from a version-enabled table in workspace LIVE. The spatial object to be removed has a SDO type of multipolygon. The geometry information consists of 4 rings with a combined ordinate count of 4120. The statement used to delete the row is:
    delete from tableA where tableA.id in (select tableA.id from tableA where tableA.id = 3);
    The error occurs only on a 10g R1 Oracle instance (10.1.0.5.0) with Workspace Manager version 10.1.0.7.1. The delete operation succeeds without problems on a 10g R2 (10.2.0.2.0) instance with Workspace Manager version 10.2.0.3.1. The statement is also executed successfully on the 10g R1 instance if the table is not version-enabled.
    Any help on this would be appreciated.
    Thanks

    Hi,
    I would recommend filing a TAR in this one. The only ora-22813 error involving workspace manager and geometry columns that I know about involves queries that need to sort data for which the size of the geometry column was >30k. Does the execution plan for the delete statement involve any kind of sort? However, this is an old 9.2 bug, that I believe was fixed for all 10.1 and newer releases.
    Does the same error happen if you do not use the subquery?
    Regards,
    Ben

  • Error when deleting Page Group

    Hi
    I got the following error when i am trying to delete a Page Group.
    How can i rectify this.
    Portal Version:9.0.2.2.14A
    Error: An unexpected error has occurred (WWS-32100)
    ORA-1: User-Defined Exception (WWC-36000)
    Error while deleting page. (WWC-44130)
    An unexpected error occurred: ORA-01422: exact fetch returns more than requested number of rows (WWC-44082)
    And also clicking on "Actions" icon of a "Text" item in this page group, i got the following error....
    Error: Item does not exist. (WWS-22507)
    An unexpected error has occurred in portlet instances: ORA-01422: exact fetch returns more than requested number of rows (WWC-44846)
    Any patch is available to just rectify this "Text" item related issues.....!!
    Thanks&Regards
    Krishna Prasad

    Please report this problem to Oracle Support.
    Regards,
    Jerry
    PortalPM

  • Error when deleting a record:  "FRM-40202 Field must be entered"

    Dear all, please I need your help in this little problem.
    I am using Forms 10g , and I am having an issue when deleting a record at runtime. It is giving "FRM-40202 Field must be entered".
    I have reviewed the code but still cannot guess what could be the reason.
    Any idea please. Thanks
    Edited by: user562674 on 02/05/2011 12:35 ص

    Hi
    This error is caused due to the NOT NULL constraint u have in ur db for that item...
    u have 2 options to use ...
    1.Either u set the Required property of that item to > no
    2.Or u give it an intial value...
    To get ride of this error message...
    Hope this helps...
    Regards,
    Ammatu Allah.

  • Error when deletting internal table

    Hi to all,
       I have small requirement. Am getting runtime error , when am deleting internal table when that internal table will have only one record. how i can solve this problem. Give me some clues.

    Hi Geetha, you can do this
    IF itab[] IS NOT INITIAL.
      LOOP AT it_ekbe.
        IF it_ekbe-bwart_i NE '101' AND it_ekbe-bwart_i NE '105' AND it_ekbe-bwart_i NE '201' OR it_ekbe-bwart_i NE '202' AND
           it_ekbe-bwart_i NE '221' AND it_ekbe-bwart_i NE '222' AND it_ekbe-bwart_i NE '231' AND it_ekbe-bwart_i NE '232' AND
           it_ekbe-bwart_i NE '241' AND it_ekbe-bwart_i NE '242' AND it_ekbe-bwart_i NE '251' AND it_ekbe-bwart_i NE '252' AND
           it_ekbe-bwart_i NE '261' AND it_ekbe-bwart_i NE '262' AND it_ekbe-bwart_i NE '281' AND it_ekbe-bwart_i NE '282' AND
           it_ekbe-bwart_i NE '291' AND it_ekbe-bwart_i NE '292'.
          DELETE itab WHERE mblnr   = it_ekbe-lfbnr_i
                        AND matnr_i = it_ekbe-matnr_i
                        AND ebeln_i = it_ekbe-ebeln_i
                        AND ebelp_i = it_ekbe-ebelp_i
                        AND werks_i = it_ekbe-werks_i.
        ENDIF.
      ENDLOOP.
    ENDIF.
    This routine does the same but with better performance, I hope this help you.
    Regards
    David Carballido

  • HT2500 Error when deleting email

    I encountered the following error when trying to delete old email.  I'm using the mail client on my MacBook Air.  OS is Mountain Lion.
    Error text:
    “81842.emlx” couldn’t be copied to “Messages” because an item with the same name already exists.
    Any info is appreciated.  Thanks

    Mr. Hoffman,
    I tried again, this time it did work.
    Thank you so much.
    Candy

  • Subcontracting Order - No error when delete an Item after I made 541 MB1B

    Hello ,
    I want to know if I can solve by Customimzing that the SAP send me an error when I try to delete an item of a
    Subcontracting Order AFTER I have made 541(Transfer posting to stock with subcontractor)  for this item  ...
    The system shouldn´t allow this action ...and it does !! .
    Some body have any idea what could be ??
    I have SAP R/3 Release 6 C
    Kind Regards.

    ...The system shouldn´t allow this action ...and it does !!...
    Why should not it allow? One thing is that you provide the subcontractor with components and one thing that they use it for production.
    There migh be business processes when the subcontractor cannot avoid using the compoenents but there might business processes when the subcontractor won't use it (e.g. the subcontractor gets different instructions in the meanwhile or uses its own rawmaterial or the client changes his mind and doesn't need one component, etc).
    In my opinion there's no such setting in SAP.
    Best regards,
    Csaba
    Edited by: Csaba Szommer on Aug 26, 2009 7:55 PM

  • Error when deleting file: Could not find this item. This is no longer located in ...

    We are setting up a new Windows 2012 server. Users access this server using a 'terminal services'. We have mapped some folders from a legacy server (different domain). Using group policy preferences, we map this folder as a drive for a user.
    When user wants to delete some files, he get's the error: 'Could not find this item ..' The error is displayed to the user and it looks like the file can't be deleted. But when I press the F5 (refresh) button, the file is gone. My problem is very similar
    to a problem in the following post: http://social.technet.microsoft.com/Forums/windowsserver/en-US/042e747a-0e25-4190-b0a2-82f3e9635eb0/can-not-delete-file-error-is-could-not-find-this-item?forum=w7itprogeneral
    When I create 'txt' (or 'pdf', 'zip') file, i can delete it without the error. When I create 'xlsx', 'docx', 'pptx', 'bmp', 'jpg', I get the error.
    Does somebody have an idea, how can I fix the cause of this problem? (I can't tell to users to hit the F5 button everytime when they face this issue)
    Thank you for your help in advance!
    Juraj

    Hi,
    Please check if the problematic files’ filename ended with a dot. If so, you could refer to the article below to troubleshoot the issue:
    Solved: “Cannot read from the source file or disk”
    http://blog.dotsmart.net/2008/06/12/solved-cannot-read-from-the-source-file-or-disk/
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Why does iTunes create disk errors when deleting movie files?

    I use a Macbook Pro, OSX 10.7.5. When I delete movie file from my iTunes library I get disk errors. I need to option boot select the recovery disk and repair the disk.  Deleting a movie file I have placed on my desktop with finder does not create any errors.  Most of the movie files are created as .m4v movies. They all play just fine with my Apple TV. I have tried turning off the Apple TV and rebooting before I delee files but nothing seems to work.
    Any ideas?
    Lance

    If you let iTunes organise your media folders then that is the way it is. An option would be to change the Media Kind to TV Show which would gather them togther in one folder, but in a different part of the library.
    tt2

  • Error when deleting a customer table

    Hi guys, im deleting a Z table with a loop, and the following error is displayed after 10 minutes.
    the log reads as follow.
    1. ORACLE storage space request failed.                                
        (ORACLE error 1547)                                                
    To execute this operation, the ORACLE instance needs more              
    storage space for a segment. This storage is                           
    managed by ORACLE in logical units known as extents.                   
    The size of an extent depends on the segment definition and            
    the current storage situation.                                                                               
    One segment (possibly more) is stored in one tablespace.               
    The storage space available for a tablespace must be explicitly        
    preallocated by the database adminstrator. If, in course of time, the  
    volume of data in this tablespace increases considerably, the storage  
    space may be filled up (in real terms or through fragmentation).       
    2. Maximum number of extents reached for rollback segment.             
        (ORACLE error 1556)                                                
    To execute this operation, the ORACLE instance needs more              
    storage space for a segment. This storage is                           
    managed by ORACLE in logical units known as extents.                   
    The size of an extent depends on the segment definition and            
    the current storage situation.                                                                               
    For each segment, the ORACLE instance can manage only a certain number 
    of extents. The maximum number for this                                
    segment has been reached.                 
    HERE THE CODE:
    DO 48 TIMES. " HASTA 4 años.
    DELETE FROM (p_ztable)
    WHERE perio = periodo.
    IF mes = '01' OR mes = '1'.
    mes = 12.
    anio = anio - 1.
    ELSE.
    mes = mes - 1.
    ENDIF.
    CONCATENATE ANIO '0' MES INTO PERIODO.
    ENDDO.
    any ideas?

    Looks like the temporary memory pages are overflowed.
    System hold the data in the temporary memory to enable ROLLBACK work.
    So, we need to either do the COMMIT WORK or ROLLBACK WORK after cretain number of data.
    Or, Reduce the number of loops and process smaller number of data at a time (before next COMMIT or ROLLBACK work).
    Regards,
    Naimesh Patel

  • BEx error when deleting a query in BWD

    Hi All,
    I am getting error "BEx Transport request ‘BWD903385’ is not available or not suitable" when trying to delete a query in BEx in BWD. Does any body knows the solution to this. Thanks in advance and I will assign points.

    Hi Toja,
    It means that this query has been transported to other systems and so you need an open transport request to capture this delete and send it to other systems. Please create a new request and assign it to the Dev Package that this query is assigned to (RSA1 > Transport connection > Bex Truck icon). Then log back into Bex and try to delete the query.
    Hope this helps...

  • Error When Deleting From A Trigger

    When I use a trigger to delete from my Oracle Spatial table, the triggering delete statement will fail if the Oracle Spatial table has a spatial index.
    Details:
    Tables CHEV_WELLBORE and CHEV_WELLBORE_SDO need to stay in sync. CHEV_WELLBORE_SDO has an sdo geometry column plus foreign keys to join back to CHEV_WELLBORE. When you delete from CHEV_WELLBORE, my trigger is supposed to delete the related row from CHEV_WELLBORE_SDO. When I execute the DELETE FROM CHEV_WELLBORE (one row), it processes for a minute or two then fails with an End Of Communications error. If I try the same thing without the spatial index on CHEV_WELLBORE_SDO it works fine. Can anyone see what I'm doing wrong here?
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    SQL> drop INDEX CHEV_WELLBORE_SPX force;
    Index dropped.
    SQL> CREATE OR REPLACE TRIGGER SYNC_WELLBORE_SDO_D
    2 AFTER DELETE
    3 ON CHEV_WELLBORE
    4 FOR EACH ROW
    5 WHEN ((old.NO2_BH_LONGITUDE IS NOT NULL AND old.NO2_BH_LATITUDE IS NOT NULL) OR (old.NOD_SURFACE_LONGITUDE IS NOT NULL AND old.NOD_SURFACE_LATITUDE IS NOT NULL))
    6 BEGIN
    7
    8 -- Keep the CHEV_WELLBORE_SDO table in sync with CHEV_WELLBORE
    9
    10 DELETE FROM CHEV_WELLBORE_SDO WHERE CHEVNO = :old.CHEVNO AND SIDETRACK = :old.SIDETRACK;
    11
    12 EXCEPTION
    13 WHEN OTHERS THEN
    14 null; -- Do Nothing, and allow triggering statement to continue without error.
    15
    16 END;
    17 /
    Trigger created.
    SQL>
    SQL> DELETE FROM CHEV_WELLBORE WHERE CHEVNO = '123456';
    5 rows deleted.
    SQL> ROLLBACK
    2 ;
    Rollback complete.
    SQL> CREATE INDEX CHEV_WELLBORE_SPX
    2 ON CHEV_WELLBORE_SDO(GEOMETRY)
    3 INDEXTYPE IS MDSYS.SPATIAL_INDEX
    4 PARAMETERS (' SDO_LEVEL=14 SDO_NUMTILES=0 SDO_MAXLEVEL=32')
    5 ;
    Index created.
    SQL> DELETE FROM CHEV_WELLBORE WHERE CHEVNO = '123456';
    DELETE FROM CHEV_WELLBORE WHERE CHEVNO = '123456'
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel

    Does your DELETE key have an associated After-Process-Branch? Does you page have an "unconditional" Branch. Your unconditional one should have the highest sequence number (of all your branches).
    If you have one assinged to the DELETE key, can you check to see what Page or URL is referenced withint that After-Process-Branch.

Maybe you are looking for

  • I just installed cs6 on a Lenovo Yoga 3 and the size of the type on the program is super small.

    I have tried changing the display settings on my computer but that did not help. Help!

  • Has the content viewer or apps its own browser?

    Hello. Is there an internal browser in the content viewer or Viewer-builder apps? And then can it be that the Android Content-Viewer internal Browser can not W3C-Standards or can not interpret the GoogleGears geolocation API?

  • Urgent - DELIMITEDDATA question

    How to eliminate some columns that exist in the data model from the delimited output ? How to change the column header names in the delimited output? How to eliminate Place holder, Formula, Summary columns in the delimited output? Thanks in advance.

  • ICloud photostream issues with iPhoto 9

    MacbookPro 2013, running 10.9.1 with iPhoto 9.5.1 I have set up a new photostream with iCloud and it's fine on all my devices, but when I try to open the pics through iPhoto it takes me to my 'trash folder'. I can see the folder and the thumbnails ar

  • Photoshop Elements 4 to install

    I've got a 17" iMac 1,83Ghz Intel Core Duo and running Tiger 10.4.10 and want to get Photoshop Elements 4 to install, but the specifications on the adobe and apple website say that it requires a minimum G4 processor, and Intel processors require Rose