Update termination with BAPI_FIXEDASSET_CHANGE

Hello,
We want to capture the serial number of an asset at the point of goods receipt. There does not appear to be any standard functionality to do this so I am making use of a BAdI in transaction MIGO. But I am encountering a problem with BAPI_FIXEDASSET_CHANGE.
The full scenario is as follows:
1. The user creates an asset in SAP.
2. They then generate a purchase order and specify account assignment of A for the PO item in order to assign the PO item to the relevant asset
3. At the point of goods receipt, the user uses transaction MIGO to receive against the PO. The user is prompted for a serial number for each item received.
The above steps are all standard but there is nothing in SAP to link the serial number entered in MIGO to the serial number of the asset. So I am making use of BAdI MB_DOCUMENT_BADI. I have implemented some code in method MB_DOCUMENT_UPDATE. This BAdI is called in the update task at the point that the material document is posted by MIGO. My code determines what serial numbers have been entered by the user and tries to update them on the asset master.
The problem is that BAPI_FIXEDASSET_CHANGE contains some code that does a CALL SCREEN and this fails because the code is run in the update task.
The following call stack is where the failure occurs:
Line 22 of include LAISTF20 (FORM MUSSFELDER_NEU) is CALL SCREEN GD_DYN-MAST.
Line 31 of include LAISTF7P (FORM update_stamm)
Line 112 of include LAISTF3B (FORM screen_performing)
Line 69 of include LAISTF39 (FORM asset_change)
Line 149 of function module ASSET_MASTERRECORD_MAINTENANCE
Line 172 of function module BAPI_FIXEDASSET_CHANGE
I believe this is an error with the BAPI and I'll raise this as a customer message separately but in the meantime, has anyone seen this problem with this BAPI before or alternatively does anyone know how to get around a BAPI that does a CALL SCREEN in the update task even though the statement doesn't produce a proper screen?
For info, this is SAP ECC 6.0 at SAPKH60010.
Thanks in advance,
Ben
Edited by: Ben Hallinan on Feb 13, 2008 4:53 PM

I tried using :
wa_poitem-po_item    = 000001.
wa_poitem-calctype   = 'A'.
APPEND wa_poitem TO t_poitem.
CLEAR wa_poitem.
wa_poitemx-po_item   = 000001.
wa_poitemx-po_itemx  = 'U'.
wa_poitemx-calctype   = 'X'.
APPEND wa_poitemx TO t_poitemx.
CLEAR wa_poitemx.
But it didn't work.
Thanks.

Similar Messages

  • PO update terminated with error - migo

    Experts,
    Entering a goods receipt in R/3 for an SRM replicated P.O. (using trx.
    MIGO). Upon backing out of the transaction, an "update terminated"
    message is received with a short dump in the system log.
    The Material doc. is posted correctly and all accounting documents are
    posted correctly.
    We looked at SAP note 131178 but this does not seem to be exactly what
    we need.
    This error does not happen every time. Sometimes the PO can be posted
    without any short dump.
    We are on using ECC 6.0 that is connected to SRM 5.5
    Any help would be greatly appreciated.
    Below is the output of the shortdump in ST22:
    Runtime Errors         PERFORM_NOT_FOUND
    Exception              CX_SY_DYN_CALL_ILLEGAL_FORM
    Date and Time          10/10/2007 13:24:45
    Short text
    Call (PERFORM) to a non-existent routine.
    What happened?
    There exist various options:
    Error in the ABAP Application Program
    The current ABAP program "RMCSS012" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    or
    Error in the SAP kernel.
    The current ABAP "RMCSS012" program had to be terminated because the
    ABAP processor detected an internal system error.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FORM', was
    not caught in
    procedure "F0020_UPDATE" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    The program "RMCSS012" is meant to execute an external PERFORM,
    namely the routine "MCE1_100" of the program "SAPFMCEF", but
    this routine does not exist.
    This may be due to any of the following reasons:
    1. One of the programs "RMCSS012" or "SAPFMCEF" is currently being developed.
    The name "MCE1_100" of the called routine may be incorrect, or
    the routine "MCE1_100" is not yet implemented in the program "SAPFMCEF".
    2. If the program SAPMSSY1 is involved in the runtime error, one of
    the function modules called via RFC is not flagged as remote-capable.
    (see Transaction SE37  Goto -> Administration -> RFC flag)
    3. There is an inconsistency in the system. The versions of the
    |    programs "RMCSS012" and "SAPFMCEF" do not match.

    Hi Pooja,
    Check SAP Note 1015948 - AFS:Update terminated after PO Change ME22N. and SAP 485651
    Thanks
    Sunny

  • Update Terminated with me22n

    Hello,
    Updates are terminating while updating PO in ME22n.
    Function Module        ME_UPDATE_DOCUMENT
    Status                 Update was terminated
    Report                 LEINUU05
    Row                    401
    Error details   Class:     ME         Number:    808
    ME 808: System error: error during update Table EKET
    Please help to find out what can be the cause of this.

    Hi Pooja,
    Check SAP Note 1015948 - AFS:Update terminated after PO Change ME22N. and SAP 485651
    Thanks
    Sunny

  • How to update FixedAsset with  BAPI_FIXEDASSET_CHANGE

    Hi
    I'm using  BAPI_FIXEDASSET_CHANGE to update Cost Center, return message show it's update but when I check AS03, no update make it.
    Data exported through BAPI
    Company Code ZZ01
    Asset   5102591
    TIMEDEPENDENTDATA-BUS_AREA      = US02
    TIMEDEPENDENTDATA-COSTCENTER  = ZZLIAZVP02
    TIMEDEPENDENTDATAX-BUS_AREA       =     X
    TIMEDEPENDENTDATAX-COSTCENTER   =     X
    how can I do for updating?.
    Thanks in advance.

    Thanks J@y for answering
    did u call the bapi_transaction_commit ? I'm executing just in SE37
    check if you have any error messages in the bapi_return table.
    Return Table
    TYPE                S
    ID                     BAPI1022
    NUMBER          008
    MESSAGE        Fixed Asset 000005102591 have been modified
    LOG_NO
    LOG_MSG_NO  000000
    MESSAGE_V1   000005102591
    MESSAGE_V2   0000
    MESSAGE_V3   AF
    MESSAGE_V4   AF
    PARAMETER
    ROW                 0
    FIELD

  • Update Terminated on transaction VL01N - VERKBELEG_WRITE_DOCUMENT

    Hello gurus,
    I'm trying to create a delivery based on a sales order.
    When I save the document system says that outbound delivery was created, however after that a pop-up appears saying "Update Terminated" with error info "Error Info...   DUPREC:POS&VERKBELEG&0000126659"
    If I go to SM13 to check the log system display error on function module VERKBELEG_WRITE_DOCUMENT.
    And no delivery document is created.
    Do you have an ideia how to solve this?
    Thanks and Regards,

    Hi,
    Refer to note:
    [Note 208010 - Update termination in VERKBELEG_WRITE_DOCUMENT|https://service.sap.com/sap/support/notes/208010]
    Also check your delivery document number range.
    Cheers

  • Integrating SD with FSCM using WS-RM - Update Termination error

    Hello experts .
    We are trying to integrate SD with FSCM ( credit management) using WS-RM (without PI).
    Details of the issue and steps followed so far.
    Ideal Scenario :
    Once we create / change a sales order ( in SD ) , the interface Creditworthinessquery_out (WS Consumer ) gets triggered (in SD) and the subsequent response CREDITWORTHINESSQUERY_IN(Provider) is triggered from FSCM (with the details of creditworthiness).Once the query response in received an notification is triggered from SD to FSCM (asynchronous service).
    After receiving the query response the functionality of credit check happens while creating / changing the sales order .
    Configuration steps followed in SOAMANAGER
    We have created end points for all the relevant service interfaces (Providers) , and also created logical ports for the respective consumers.
    During the creation of  logical ports -  for the consumers we used the WSDL (of the providers) as the inbound message action.
    (This has been done to all the services query , notification that are relevant in our integration).
    Current behavior / issue .
    While creating sales order the sales order is not getting saved (getting updated in the database).System allows us to complete the sales order creation process and also we get a message as sales order saved successfully. But then there is a update terminated express document that pops up. Sales order is not getting updated  in the database.
    When I see the logs/traces in SOAMANAGER I see that the query out is successful , query in has the right response (in warning state though) . But no notification is being triggered ?? 
    How to overcome this update termination issue ?
    When we see the SM13 log , it points to SLD issue (LCR 010: Internal error in SLD API). why do we need a SLD without PI ?

    Hi ,
    Can you tell me more details of how you are testing this ? I was successfully able to impilment this solution (credit management using ws-rm in ehp5). If you can give me more details i can surely try to help .

  • Update Statistics of CRM Production system is terminated with errors

    Dear All,
    Update Statistics of CRM Production System is failing ie terminated with errors.
    Kindly help.
    Following  are the logs:
    BR0973W Database operation alert - level: WARNING, operation: cegnnbuz.chk, time: 2011-08-12 09.32.37, condition: Last successful 'chk' op
    BR0252E Function fopen() failed for '/oracle/KPC/saptrace/diag/rdbms/kpc/KPC/trace/alert_KPC.log' at location ora_alert_check-1
    BR0253E errno 13: Permission denied
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.36
    BR0977I Checking database profile...
    BR0978W Database profile alert - level: ERROR, parameter: COMPATIBLE, value: 11.2.0 (<> 10.2.0)
    BR0978W Database profile alert - level: WARNING, parameter: LOG_BUFFER, value: 11198464 (>< 4096,512 KB)
    BR0978W Database profile alert - level: WARNING, parameter: OPTIMIZER_INDEX_COST_ADJ, value: 20 (set in parameter file)
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.36
    BR0980I Number of changed database profile parameters: 0
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.37
    BR0955I Number of signaled error/warning/exception alerts for database administration: 0/0/0
    BR0956I Number of signaled error/warning/exception alerts for database operations: 0/1/0
    BR0957I Number of signaled error/warning/exception alerts for database messages: 0/0/0
    BR0958I Number of signaled error/warning/exception alerts for database profile: 1/2/0
    BR0806I End of BRCONNECT processing: cehmkvis.chk 2011-12-22 04.07.37
    BR0280I BRCONNECT time stamp: 2011-12-22 04.07.37
    BR0804I BRCONNECT terminated with errors
    Thanks
    -Madhura

    Hii
    I ve checked all conditions as:
    1.      -rwxrwxr-x   1 orakpc   dba      3406704 Aug 12 16:54 brtools
    2.
    SQL> show parameter compatible;
    NAME                                 TYPE        VALUE
    compatible                           string      11.2.0
    3.  Brtools version is 7.00 and oracle is 11G
    4.  drwxrwxrwx   6 orakpc   dba            6 Aug  7 14:19 saptrace
    Still we are facing this issue.
    pls help.
    -Madhura

  • Update termination error SAPSQL_ARRAY_INSERT_DUPREC with transaction f110

    Hi ,
      When we executed the transaction F110 for payment runs it gave an update termination error "Express document 'update was terminated' ".
    Update was terminated
    Error Info  00671: ABAP/4 Processor : SAPSQL_ARRAY_INSERT_DUPREC
    Could you please anyone suggest me how to overcome this express document error.
    Thanks,
    Saran

    Hi,
    I think u r getting this exception as ur trying to INSERt a record which ia already existing, so try to change the data and Run the tcode.
    Revert back if any issues,
    Reward with points if helpful ,
    Regards,
    Naveen

  • Unable to update iPhoto and iMovie. "Update Unavailable with This Apple ID"

    I updated to Yosemite and all went well but for the message "Update Unavailable with This Apple ID" for the two apps iPhoto and iMovie. I have tried using the terminal window and used code that others have suggested and obtained a SmartSearch. I deleted everything in that folder and I still can't update these two apps. The other apps updated without problems. Thanks for any help.

    For a couple of years now, the verson of the iLife apps that come preinstalled on new Macs are the Mac App Store (MAS) versions. MAS apps have the Apple ID that bought them encoded in the app as an anti-piracy scheme. Since these apps are preinstalled, before using any of the three apps, the new Mac owner must open the MAS, go to the Purchases pane and accept these apps into their MAS account. This allows the MAS to encode the owners Apple ID into the apps.
    Failure to accept these apps into your account and have them encoded with your Apple ID before using one of them renders the apps "as is" and they cannot be updated or downloaded to another Mac. The only way that I know of to rectify the problem is to use OS X Recovery to erase the Mac and reinstall OS X and the iLife apps, so that the initial setup can be attempted again and the apps be accepted into the MAS account and encoded with the Apple ID.

  • Update termination during Periodic Posting in RE-FX

    Hi,
    I am getting a update termination error -SAPSQL_ARRAY_INSERT_DUPREC during periodic posting for Lease Out Contract. Tcode - RERAPP
    We use deferred tax. This functionality is used to transfer service tax
    credit from interimn account to final account as applicable in India.
    As suggested in the note 913805 by SAP we deleted the BTE's in application Key FI-TAX
    Inspite of that we get the same update error.
    Also we observed that after deleting the BTE's our service tax credit
    functionality is also not working.
    Further I have observed the following:
    I am getting error only while posting contracts with service tax.
    Tax Code L1 Account Key OS1 & OS2 & OS3
    Please help me in finding a soultion to this.
    Thanks & Regards
    Sanjay

    Hi,
    The transfer step will transfer controlling assignments from the contract to the rental objects. This is useful if you want to run the controlling reports in order to see a P&L statement for a Building for example.
    Regards,

  • While saving service work order Update termination

    Hi Friends,
    We have a service order integration with Notifications. First we create a Notification and in turn create as service order.
    When the order is saved it goes for a update termination and the error message is " 00 671: ABAP/4 processor: DBIF_RSQL_INVALID_RSQL "  for IW52 transaction. Actually when we save it provides the order number but never gets updated in the data base.
    Again when we create the order from Notification for the second time, order gets created by skipping a number. For example when we save the order if the ordewr number is 902345 where it is not created , then when we create again the order number is 902346.
    Have any one come across such terminations in IW52 for IW32?
    Regards,
    Selva

    Friends,
    At last my problem was resolved as it was escalated to SAP and SAP analysed as below,
    This problem is caused becuase of the error in database interface. As the database server and the application server is a mix of platforms with different internal character data representations, this error occurs,
    The work around solution as narrated below,
    " For this we need to set the following parameters on the Default and Instance Profiles:
    Profile Name                            Parameter name         Current Value     Recomm by SAP
    DEFAULT.PFL                           rdisp/vbname              not set           rdisp/vbname=$(rdisp/myname)
    CRH DVEBMGS00 cr1apod        rdisp/wp no vb               2                  Greater than 0
    CRH DVEBMGS00 cr1apod        rdisp/vb dispatching        1                  Set to 0
    crap0 CRH 20                            rdisp/wp no vb                4                  Greater than 0
    crap0 CRH 20                            rdisp/vb dispatching        1                  Set to 0
    Inorder to reflect all the changes, System CRH-202 needs to be restarted. Basis have done the above changes through T.Code: RZ11 and CRH indicates the Quality client.
    So the profile paprameters will be different in each of SAP systems.
    Hope this will be very useful for future reference to all of us.
    Regards,
    selva

  • The Lync Server Front-End service terminated with service-specific error %%-1008124893.

    Hello, everyone
    I've installed Lync Server 2010. There was no error during installation. But when i start Lync Server Front End Server, i'm getting following error:
    The Lync Server Front-End service terminated with service-specific error %%-1008124893.
    In event viewer:
    The evaluation period for Microsoft Lync Server 2010  has expired. Please upgrade from the evaluation version to the fully licensed version of the product. Look at help for Setup.exe to learn how to upgrade from evaluation version to the licensed version.
    Cause: The evaluation period for Microsoft Lync Server 2010  has expired.
    I've upgraded Lync Server according to http://technet.microsoft.com/en-us/library/gg521005.aspx?ppud=4
    Also I've installed all Lync Server updates.
    But I still could not start Lync Front End Sever. How can I solve this problem?
    Thanks

    Hi,
    Can you try to run
    start-cswindowsservice -report c:\report.html
    and post the report so we can have more information about your problem ?
    Regards,
    Adrian TUPPER - ABC Systemes - http://thelyncexperience.blog.com/ If answer is helpful, please hit the green arrow on the left, or mark as answer Thank you

  • FSCM via WS-RM (without PI ) - Update termination issue

    Hello experts .
    We are trying to integrate SD with FSCM ( credit management) using WS-RM (without PI).
    Details of the issue and steps followed so far.
    Ideal Scenario :
    Once we create / change a sales order ( in SD ) , the interface Creditworthinessquery_out (WS Consumer ) gets triggered (in SD) and the subsequent response CREDITWORTHINESSQUERY_IN(Provider) is triggered from FSCM (with the details of creditworthiness).Once the query response in received an notification is triggered from SD to FSCM (asynchronous service).
    After receiving the query response the functionality of credit check happens while creating / changing the sales order .
    Configuration steps followed in SOAMANAGER
    We have created end points for all the relevant service interfaces (Providers) , and also created logical ports for the respective consumers.
    During the creation of logical ports - for the consumers we used the WSDL (of the providers) as the inbound message action.
    (This has been done to all the services query , notification that are relevant in our integration).
    Current behavior / issue .
    While creating sales order the sales order is not getting saved (getting updated in the database).System allows us to complete the sales order creation process and also we get a message as sales order saved successfully. But then there is a update terminated express document that pops up. Sales order is not getting updated in the database.
    When I see the logs/traces in SOAMANAGER I see that the query out is successful , query in has the right response (in warning state though) . But no notification is being triggered ?? 
    How to overcome this update termination issue ?
    When we see the SM13 log , it points to SLD issue (LCR 010: Internal error in SLD API). why do we need a SLD without PI

    Hi  ,
    Finally we are able to solve the update termination issue . But again we are using a work around .
    Situation :
    Once we executed the VA01 transaction we were getting update termination issue . After lots of debuggung we found that system was trying to get the Business system details ( Own business system data ) . The table lcrt_clntcache had no values.
    Solution
    We inserted appropriate values in the Table LCRT_CLNTCACH (business system data ) and now it works .This is a work around we got as of now.Credit checks are happening successfully and also integration is good .
    (typically if we define business system in SLD (PI) , and run SLD_CHECK , this table gets populated , but in our case we are not using PI instead we are using WS-RM)
    But now few questions arise .
    a) Why do we need a business system in case we are not using PI ( typically we define business system and technical system in PI )  and instead using WS-RM ?
    b) Is it a good practice to update the table ( as did in workaround above )?
    c) Is this any bug and needs to be consulted with SAP ?
    Please let me know your views .
    Edited by: Vedula Adeep on Jan 16, 2012 8:42 AM

  • F-44 Vendor Clearing Update Terminated

    Dear All,
                  When we try clearing Open Line Items of a particular Vendor, system posts the document but eventually produces an ABAP RunTIme Error with Update Terminated Error. The line items remain as open items instead of getting cleared.The Dump Details are:
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLJ1IDEFTAX" had to be terminated because one of
    the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    The termination occurred in the ABAP program "SAPLJ1IDEFTAX" in
    "J_1I_POST_DEFTAX_ITEM".
    The main program was "RSM13000 ".
    The termination occurred in line 44 of the source code of the (Include)
    program "LJ1IDEFTAXU04"
    of the source code of program "LJ1IDEFTAXU04" (when calling the editor 440).
    The program "SAPLJ1IDEFTAX" was started in the update system.
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "J_1I_POST_DEFTAX_ITEM" "(FUNCTION)" but was not handled locally, not
    declared in the
    RAISING clause of the procedure.
    The procedure is in the program "SAPLJ1IDEFTAX ". Its source code starts in
    line 7
    of the (Include) program "LJ1IDEFTAX$04 ".
      DATA ls_deftax_item_insert TYPE J_1IDEFTAX_IT.
      LOOP AT it_deftax_item_insert INTO ls_deftax_item_insert.
        IF ls_deftax_item_insert-line_type IS INITIAL.
          message x025(DEFTAX) with sy-tcode
                                           'NO_LINE_TYPE'
                                           'DEFTAX_ITEM'
                                           'FI_POST_DEFTAX_ITEM'.
        ENDIF.
      ENDLOOP.
      IF NOT it_deftax_item_insert[] IS INITIAL.
        INSERT J_1IDEFTAX_IT FROM TABLE it_deftax_item_insert.
      ENDIF.
      IF NOT it_deftax_item_update[] IS INITIAL.
        UPDATE J_1IDEFTAX_IT FROM TABLE it_deftax_item_update.
      ENDIF.
    ENDFUNCTION.
    Is anybody aware of any solution or note related to this.
    Regards,
    Sonali.

    Hi Sonali,
           This error due to Some text objects and messages are missed in consolidation system. Please take help of the basis consultant and implement the support packages 932658 & 932659
    Regards,
    Srinivas Muthyala

  • Update termination in Transaction ME9F

    Hello MM Guru’s,
    I would like to inform you that we are observing update termination in transaction ME9F for a particular user repeatedly in production environment.
    Error in Functional Module: RV_MESSAGE_UPDATE
    Error Message: WHT type Z4 missing in vendor master XXXXXXXX
    When I check in vendor master data Indicator for withholding tax type Z4 already maintained.
    It was strange why when users execute transaction ME9F the above updates terminate happens in the system.
    I got a similar issue earlier where at that time Indicator for withholding tax type not maintained in vendor master data and I have informed business to maintain and re execute the transaction ME9F.
    Request you to help me on this issue as I said this is a repeated one which is occurring for a particular user and I need to fix it by taking your valuable input.
    Revert back in case you need any information required from my end.
    Cheers,
    Kumar S

    Hello Bijay
    I was asking you about my analysis (2 different users access ME9F for the same PO) done along with ABAPer whether its correct or not.
    In your earlier response you have not responded to my analysis instead you are replying me that experts cant access my system.
    I very well understand that our Experts cant access my system but they are always helping me for my all issues with their valuable input.
    We just wanted to know whether we are deviating from the issue in this case.
    I have also checked what other experts like Jurgen/AKPT & Mallinath suggested me and the analysis given below,
    To inform experts that we never use custom print program and we are using standard SAPFM06P print program.But the layout is custom according to our business requirement.
    Let me know still you need any clarification from my end.
    Regards,
    Kumar.S

Maybe you are looking for

  • I have lost all my itunes data due to a cumputer crash how do i sync my iphone and ipad to itunes without starting all over agian

    Hi, I have lost all data from itunes on my computer, is there a way to re-sync or get all the data from my phone and ipad 2 back to itunes on the computer as when I go to sync message appears saying this phone is sync to a different itunes library an

  • Funky radio buttons... help?

    Hey - I'm having some trouble with my radio button components. The problem is that the text lables for the buttons are displaying wrong (clipped at bottom and/or right side) until you mouse over them. After that, they correct themselves and they are

  • Hooking up old Graphite Airport to wired router.

    I had my old Graphite Aiport hooked up to a D-Link wired router which I also used for my iMac and Dell. The Airport was working like a charm until last week when the my D-Link wired router went kaput. I went out and bought a new D-link wired router (

  • Loan Contract for Multi-company

    HI all, My client has a scenario as the sentences below, 1. subsidiary company need to use loan contract amount with the parent (ex.company 1000 and 2000 use the loan amount together)  , can SAP support for this case? 2. Need the letter of credit (L/

  • TKprof and 9i EE

    Trying to find Tkprof but it looks like it wasn't installed. Reading the docs and they still reference it so I'm a tad confused. Anybody know where to find it ?