Problem while Posting Assets through BAPI

Hi,
I am using BAPI_ACC_DOCUMENT_POST to handle assets postings in SAP.Here whenever i am running BAPI from SE37 using asset_no with regular length which is 6digits[730011] bapi is giving me correct results and documents gets posted successfully with assets.
The same thing when I do it from my program by populating values and filling the asset_no correctly in BAPI Structure I am getting error as below
"Asset 730011 not found in Company 1001".
but the same assets works fine through SE37.
Could anyone let me know why is this happening?
Thanks

Try adding leading zeros.
( When you test via SE37 you come across conv_exit_module / kind of screen exit )
Hope this helps,
Erwan

Similar Messages

  • Document Splitting problem while posting asset acquisition using F-90

    Hi,
    We are using ECC 6.0 with document splitting functionality and are facing problem while posting asset acquisition using F-90.
    The transaction entry details are as below:
    Document Type - KR
    Vendor Line Item PKey - 31
    Amount - 10000
    Asset Line Item with PKey - 70, Transaction Type - 100
    Amount - 10000
    The Document Splitting Rule - 0000000012 is used and the Field Status Group for the Vendor Reconciliation Account and Asset Reconciliation account have Cost Center, Profit Center and Segment as "Optional" field.
    The Balance Sheet Item - Asset Reconciliation Account has been created as
    Secondary Cost Element - 90.
    The Profit Center and Segment field have been made mandatory and zero balancing is also set in the settings for Document Splitting.
    While posting asset acquisition using F-90, we are getting the error message - "Balancing Field "Profit Center" in line item 001 not filled"
    The first line refers to the Vendor Line item.
    Please let me know how to overcome this error.
    Regards,
    Ramanand

    Please follow the below path and do config :-
    IMG>FA>Asset Accounting>Integration with the General Ledger>Additional Account Assignment Objects>Specify Account Assignment Types for Account Assignment Objects
    here you have to put KOSTL (Cost center) for both against APC and Dep run for each Dep area.
    Thanks
    Pyare

  • Problem while creating assets using BAPI

    Use table enhancement BAPI_TE_ANLU
    Diagnosis :The BAPIs for creating and changing assets currently support only those customer enhancements that relate to the user fields created using SAP enhancement AIST0002.
    Can anybody give the appropriate solution why this error is coming while creating assets using BAPI.

    Looks like you are trying to transfer custom fields into the asset master data that were not added following the steps in enhancement AIST0002.
    Using EXTENSIONIN parameter, you can transfer user fields from the asset master record. However, it is not possible to transfer fields that are updated in user-defined tables. Only user fields that were defined using SAP enhancement AIST0002 and are automatically updated in table ANLU can be udpated in this way. This means you have to use table extension BAPI_TE_ANLU.
    Enhancement AIST0002 contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
    The documentation ( BAPIPAREX) of the structure that forms the basis for this parameter contains additional information about using this parameter.
    Please check how table ANLU has been enhanced and also go through the documentation of enhancement AIST0002.
    Regards,
    Shyam

  • Getting problem while posting Invoice

    Hi all,
            Ofcourse this problem is related functional thing, i am posting in ABAP group. we are getting problem while posting invoice through f-43 transaction. The error is "Fiscal year 0000 not allowed for year-dependent commitment items". Please let me know if u have any solution.
    Thanks in advance.
    chandrasekhar.

    Hi chandrasekhar,
    pls post some infos:
    1) application aerea of the message and message no.
    2) document date / posting date
       and ohter date-fileds of the document
    3) SAP-Release
    Have you search in SAP-OSS with the message no. or
    message text ?
    regards Andreas

  • Error AU133 received while posting asset transfer

    Hi Friends,
    While posting asset transfer to affiliated co. (t.code ABT1N) got error message "Account 'Clear.revenue sale to affil.company' could not be found for area 01".
    We have already maintained GL A/c in Ao90 in tab 'Clear.revenue sale to affil.company' .The asset is a AUC asset.
    The GL is also existing in the co  code from which the transfer is made.
    Kindly help to solve the issue..
    Thanks & Regards
    Bhairavi

    Hi Bhairavi,
    1) the note is relevant for your release to check the transfer variants
    2) In fact, when the field in OABE is selected the system uses another posting schema than the standard one (used when the OABE is not set).
    3) Do you one or more depr areas which are derivied from area 01 ans use different accounts? For example:
    AFAPL  AFABER XSTORE ABVOR1 AFABE1 ABVOR2 AFABE2 VZANSW VZREST BUHBKT  
    ABCD   03            +      01     -      02     *      *      4       
    ABCD   05            +      01     -      04     *      *      4       
    Regars Bernhard

  • FA Retirement- 21151: error while posting asset document: '100000039'

    Hello Experts,
    I have a client who encountered this error during fixed asset retirement - scrapping.
    After selecting the asset to be retired, sap did not assign an account in the account column, but the user
    was able to save the document.  After saving it, the user needs to retire again another asset - scrapping, but the document would not be saved because of this error: 21151: error while posting asset document '100000039'.  The document number the systems is referring to is the last document saved but sap did not assign an account code.
    Please help. My client is using sap b1 8.81 patch5.
    Regards,
    Luz

    Hi Too Mui Hwee,
    What we did is to put letters on the number so the series will continue example there is already 100333, 100334, 100335 since the error is encountered from 100333. We add 100333A, 100334A, 100335A.
    Thanks

  • Error while posting asset acquisition

    hai
    while posting asset acquisition in f-90 iam getting error that "asset is incomplete' when analysed using RAUNVA00 , it is asking to update field group-22 i.e scrap value, but this field is not found in asset master, pls help me.
    thank u
    shivaji.a

    In AS02 you go the Depreciation key and double click on the depreciation key. In the following screen "additional Specifications" you give Scrap value.

  • Problem while posting to accounts.posting period  002 2010 not open

    Hi experts,
    Im facing problem while posting to accounting.
    I ran the live payroll run and  while posting im got the incorrect document.
    System is showing the error message that  ""Posting period 002 2010 is not open"""
    How we have to open the periods.
    Please advice.
    Vi Sai.,

    Hi vicky,
    Goto t-code OB52.
    Variant :Posting Period variant, Account Type : +, From Account : space, To Account : ZZZ..Z, From Period : 2,Year :2010, To Period :2, Year : 2010
    Save.
    Regards,
    Dilek

  • Problem while uploading data through F-43

    Hello Experts ,
    I am facing a problem while data uploading through F-43.
    Suppose I have many vendors with having several debit and credit items for each.So in t code same screen will appear for same vendor several times where we have to enter debit / credit items.
    Please suggest how to solve this issue through LSMW/BDC program.
    Thanks in adv.
    A Miter.

    Hi..
    Use BDC Recording MEthod ...
    Develop BDC program, Before Recording the Transaction sit with Functional Consulatnt for REcord The f-43.
    After that  that  u can do ur coding  and built ur own logic.
    Prabu

  • Problem while posting FI document through BAPI - Multiple Exchange Rates

    I am able to post FI document with multiple exchange rates for the same currency using FB01. But, when I try to post the same document details using BAPI_ACC_DOCUMENT_POST , it throws an error F5 701 - Inconsistent Rate for Currency XXX .
    How can we avoid this error while posting through BAPI ?
    Thanks & Regards,
    Nidhi

    Hi Nidhi,
    Value range
        The field CURR_TYPE (currency type) describes the role played by a
        currency in the SAP System.
        The currency type can take on the following values, for example:
        o   00      Transaction currency
        o   10      Company code currency
        o   20      Controlling area currency
        o   30      Group currency
        o   40      Hard currency
        o   50      Index-based currency
        o   60      Global company currency
        If an entry is not made in the field CURR_TYPE, the default value "00"
        is retained.
        If only one data record is transferred in transaction currency for each
        line item, the field CURR_TYPE does not need to be filled out. If
        several data records are transferred for each line item, the currency
        type must be entered for each record.
    If the parameter CurrencyAmount is filled with the currency fields,
    a complete document check including characteristics and value
    components of profitability analysis (CO-PA). Otherwise, the account
    assignment objects are checked.
    Check the BAPI documentation SE37.
    Regards,
    Boobalan Suburaj

  • Error while posting asset aquisition

    Hi to All,
    I am getting following error while posting aquisition entry.
    "Company code 211 manages parallel currencies in Asset Accounting. For each area that posts automatically online to FI, you have to define one dependent depreciation area that adopts both identical values and depreciation terms from depreciation area 01, and which is assigned to currency type 30 and currency GBP. There is no depreciation area of this type defined for depreciation area 01"
    I had made all settings what the error says above but still error persists.
    PLEASE ITS VERY URGENT
    tanuja

    Hi tanuja,
    Please check the setting in the T- code OABT.
    If it helps pls reward some points.
    JS

  • Error while posting FBS1 via BAPI

    Hi Experts,
    getting below error  while posting FBS1 via BAPI_ACC_DOCUMENT_POST
    TYPE ID                   NUMBER MESSAGE
    E   |RW                  |609   Error in document:  BKPF 10000022440GF3032010 TERCLNT303
    E   |RW                  |609   Error in document:  100000224 AC_DOC_NO
    FB03 Header values --
    Document Number 100000250        Company Code    40GF         Fiscal Year     2010
    Document Date   30.11.2010       Posting Date    30.11.2010   Period          11
    Currency  EUR
    FB03 Line item 1 ( posting key  40 )
    G/L Account     711014
    Company Code    40GF
    Amount          100,00  EUR
    Cost Center     40GF219001
    Quantity        0,000
    FB03 Line item 2 ( posting key  50 )
    G/L Account     167005
    Company Code    40GF
    Amount          100,00 EUR
    Assignment      20101130
    Text            ITEM TEXT 7
    Please tell me what i am missing in below code because of which i am getting  error  in return table
    FORM fill_header.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
        IMPORTING
          own_logical_system = gd_documentheader-obj_sys.
      gd_documentheader-obj_type   = 'BKPF'.
      gd_documentheader-obj_key    = '10000022440GF3032010'.
      gd_documentheader-username   = sy-uname.
      gd_documentheader-header_txt = 'BAPI Test'.               "#EC NOTEXT
    gd_documentheader-obj_key_r  =
    GD_DOCUMENTHEADER-reason_rev =  '05' .
      gd_documentheader-comp_code  = '40GF'.
    GD_DOCUMENTHEADER-AC_DOC_NO  =  '100000224' .
      gd_documentheader-fisc_year  = '2010'.
      gd_documentheader-doc_date   = sy-datum.
      gd_documentheader-pstng_date = sy-datum.
    GD_DOCUMENTHEADER-TRANS_DATE =
    GD_DOCUMENTHEADER-VALUE_DATE =
    GD_DOCUMENTHEADER-FIS_PERIOD = '11' .
    GD_DOCUMENTHEADER-DOC_TYPE   = 'SA' .
    GD_DOCUMENTHEADER-REF_DOC_NO =
    GD_DOCUMENTHEADER-COMPO_ACC  =
      gd_documentheader-bus_act    = 'RFBU'.
    ENDFORM.                    "fill_header
    FORM fill_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 1.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = -100.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 2.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = '100'.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
    ENDFORM.                    "fill_currencyamount
    FORM fill_accountgl.
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 1.
      T_accountgl-gl_account     =  '0000711014'.
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
    T_accountgl-DE_CRE_IND     =  'S' .
    T_accountgl-tax_code       = 'V1'.
    T_ACCOUNTGL-ACCT_KEY       =
      T_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
    T_ACCOUNTGL-BUS_AREA       =
    T_accountgl-costcenter     = '40GF219001' .
    T_ACCOUNTGL-ORDERID        =
    T_ACCOUNTGL-MATERIAL       =
    T_ACCOUNTGL-QUANTITY       =
    T_ACCOUNTGL-BASE_UOM       =
    T_ACCOUNTGL-BASE_UOM_ISO   =
    T_ACCOUNTGL-PLANT          =
      T_accountgl-profIT_ctr     =  'S001'  .
    T_ACCOUNTGL-WBS_ELEMENT    =
    T_ACCOUNTGL-BILL_TYPE      =
    T_ACCOUNTGL-DISTR_CHAN     =
    T_accountgl-ac_doc_no      =
    T_accountgl-acct_type      =
    T_accountgl-doc_type       =
    T_accountgl-comp_code      =  '40GF' .
    T_accountgl-func_area      =
    T_accountgl-plant          =
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
    T_accountgl-pstng_date     =
    T_accountgl-value_date     =
    T_accountgl-customer       =
    T_accountgl-vendor_no      =
    T_accountgl-costobject     =
    T_accountgl-acttype        =
    T_accountgl-val_area       =
    T_accountgl-po_number      =
    T_accountgl-po_item        =
      APPEND T_accountgl  to t_accountg2 .
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 2.
      T_accountgl-gl_account     =  '0000167005'.
    T_ACCOUNTGL-STAT_CON       =
    T_ACCOUNTGL-REF_KEY_1      =
    T_ACCOUNTGL-REF_KEY_2      =
    T_ACCOUNTGL-REF_KEY_3      =
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
    T_accountgl-DE_CRE_IND     =  'H' .
    T_accountgl-tax_code       = 'V1'.
    T_ACCOUNTGL-ACCT_KEY       =
      T_accountgl-item_text      = 'ITEM TEXT 7'.  "#EC NOTEXT
    T_ACCOUNTGL-BUS_AREA       =
    T_accountgl-costcenter     = '40GF219001' .
    T_ACCOUNTGL-ORDERID        =
    T_ACCOUNTGL-MATERIAL       =
    T_ACCOUNTGL-QUANTITY       =
    T_ACCOUNTGL-BASE_UOM       =
    T_ACCOUNTGL-BASE_UOM_ISO   =
    T_ACCOUNTGL-PLANT          =
    T_accountgl-profIT_ctr     =  'S001'  .
    T_ACCOUNTGL-WBS_ELEMENT    =
    T_accountgl-ac_doc_no      =
    T_accountgl-acct_type      =
    T_accountgl-doc_type       =
    T_accountgl-comp_code      =  '40GF' .
    T_accountgl-func_area      =
    T_accountgl-plant          =
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
    T_accountgl-pstng_date     =
    T_accountgl-value_date     =
    T_accountgl-customer       =
    T_accountgl-vendor_no      =
    T_accountgl-costobject     =
    T_accountgl-acttype        =
    T_accountgl-val_area       =
    T_accountgl-po_number      =
    T_accountgl-po_item        =
      APPEND T_accountgl  to t_accountg2 .
    ENDFORM.                    "fill_accountgl

    Hi Experts,
    getting below error  while posting FBS1 via BAPI_ACC_DOCUMENT_POST
    TYPE ID                   NUMBER MESSAGE
    E   |RW                  |609   Error in document:  BKPF 10000022440GF3032010 TERCLNT303
    E   |RW                  |609   Error in document:  100000224 AC_DOC_NO
    FB03 Header values --
    Document Number 100000250          Company Code    40GF         Fiscal Year     2010
    Document Date   30.11.2010           Posting Date    30.11.2010   Period          11
    Currency  EUR
    FB03 Line item 1 ( posting key  40 )
    G/L Account     711014
    Company Code    40GF
    Amount          100,00  EUR
    Cost Center     40GF219001
    Quantity        0,000
    FB03 Line item 2 ( posting key  50 )
    G/L Account     167005
    Company Code    40GF
    Amount          100,00 EUR
    Assignment      20101130
    Text            ITEM TEXT 7
    Please tell me what i am missing in below code because of which i am getting  error  in return table
    FORM fill_header.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
        IMPORTING
          own_logical_system = gd_documentheader-obj_sys.
      gd_documentheader-obj_type   = 'BKPF'.
      gd_documentheader-obj_key    = '10000022440GF3032010'.
      gd_documentheader-username   = sy-uname
    gd_documentheader-obj_key_r  =
    GD_DOCUMENTHEADER-reason_rev =  '05' .
      gd_documentheader-comp_code  = '40GF'.
    GD_DOCUMENTHEADER-AC_DOC_NO  =  '100000224' .
      gd_documentheader-fisc_year  = '2010'.
      gd_documentheader-doc_date   = sy-datum.
      gd_documentheader-pstng_date = sy-datum.
    GD_DOCUMENTHEADER-FIS_PERIOD = '11' .
    GD_DOCUMENTHEADER-DOC_TYPE   = 'SA' .
      gd_documentheader-bus_act    = 'RFBU'.
    ENDFORM.                    "fill_header
    FORM fill_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 1.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = -100.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 2.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = '100'.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
    ENDFORM.                    "fill_currencyamount
    FORM fill_accountgl.
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 1.
      T_accountgl-gl_account     =  '0000711014'.
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
      T_accountgl-item_text      = 'BAPI Test 1'.
    T_accountgl-costcenter     = '40GF219001' .
      T_accountgl-profIT_ctr     =  'S001'  .
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
      APPEND T_accountgl  to t_accountg2 .
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 2.
      T_accountgl-gl_account     =  '0000167005'.
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
      T_accountgl-item_text      = 'ITEM TEXT 7'.
    T_accountgl-comp_code      =  '40GF' .
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
      APPEND T_accountgl  to t_accountg2 .
    ENDFORM.                    "fill_accountgl

  • Error while posting asset in PY-ABZON

    Hi Expert,
    Im trying to post asset acquisition through T-code-ABZON and am facing the error that For the K4 Fiscal year Variant, no period is defined for XX period
    I've checked my fiscal year variant Its not K4 have checked the Posting period Variant its open for the said period,but still this error.
    Please help me with it
    Regards

    Check your configuration
    IMG->FA->AA->Valuation->Fiscal Year->Fiscal Year Vairants....
    Specify Other versions on company code level
    Specify Other versions on depreciation area level

  • Error while posting asset in F-90

    Hi
    While posting the asset in tcode F-90 iam getting below error.
    Pls suggest me.
    Contact your system administrator (table error)
    Message no. AA463
    Diagnosis
    There is an inconsistency between the posting keys entered for Asset Management and the definition of the posting keys.
    System Response
    Posting is not possible.
    Procedure
    Check the posting keys that are specified for Asset Management in the Customizing menu for Financial Accounting (under the menu option Business transactions).
    Regards,
    Muniraj

    hi,
    Please let me know what are the postings keys that you are entering for the F-90
    Please use 31 cr  Vendor
                    70 Dr asset
    Cheers

  • 'Document does not contain any items' error while posting GR from BAPI

    Hello Friends,
    I am trying to post GR from BAPI 'BAPI_GOODSMVT_CREATE' but some time it post successful and some time it does not post..gives error 'Document does not contain any items'....i have search all option but did not get any solution why this error is coming....kindly help me if you have any information regarding that.
    The strange thing is i have alrady posted GR with some test data and later on again am trying to post GR with same test data but it is giving error as above.
    For your information...i am using enhancement spot in standard program for GR posting...could it give any problem.
    Regards,
    Rajkishor.

    Solved by my self...problem was i were using enhancement spot in standard program because of this it was creating problem have search new enhancement spot and put my code out there now it is working fine.
    Thanku very much all of you for your reply.

Maybe you are looking for

  • In bridge i select a jpg image with cntrl r to open in camera raw but get "camera raw not avail"

    In bridge i select a jpg image with cntrl r to open in camera raw but get "camera raw not available"  camera raw editing requires that a qualifying product has been launched at least once to enable this feature.  I can open nef. in camera raw with no

  • Business Object : access to object attribute in method

    Hi, i've created a BOR object named Z_myobject : - Attributs :   . START_DATE (type SYST-DATUM)   . END_DATE   (type SYST-DATUM)   . MANAGER    (type BOR EMPLOYEET) - Methods   . Check_actors In the Check_actors method i want to access to the MANAGER

  • Persistent IP Routes in Mac OS X Tiger

    Hello I have a mac book Pro 10.4.8. I try to add static Routes, i was following this post http://www.webboise.com/persistent-ip-routes-in-mac-os-x-tiger/ My problem is when after the reboot the rootes was deleted. I must launch directly the script on

  • Analyze netmon .cap file with logparser

    Hi all, I'm trying to analyze a cap file with logparser. I'm exporting all the content of the file to a CSVfile. But when I open the CSV file, it doesn't shows source IP and destination IP for any of the packets. Whereas if I open the file with netwo

  • 1020 update to cyan, now cortana not working

    Prior to the cyan update, I had installed developers preview 8.1 an update one. Both were successful and Cortana worked without issue. Prior to installing the cyan update, I used the Nokia recovery tool to return my 1020 to the factory 8.0 version. I