Inconsistent currency information

Hi Expert,
When i will post MB1B, system occur a error message F5800 of Inconsistent currency information as below:
Inconsistent currency information
    Message no. F5800
Diagnosis
    The currency information for the financial accounting component must be
    transferred fully for each currency type.
    If, for example, the sending application sends corporate group currency
    data to Accounting, this currency data must be transferred for every
    company code line item.
    An error has occurred for line item '0000000002' of the financial
    accounting document (company code '5000') with currency type '12'
    (currency key 'CNY'). This could be for one of three reasons:
    Line item '0000000002' does not have any currency data for currency type
    '12', although at least one other line item has currency data for
    currency type '12'.
     Line item '0000000002' contains currency data for currency type '12',
     although at least one other line item contain no currency data for
     currency type '12'.
     Line item '0000000002' has no currency data for currency type '12',
     although the currency type '12' corresponds to the local currency (
     currency type '10').
System Response
     Data processing within Financial Accounting can only take place with
     consistent currency information.
Procedure
     The calling application probably contains a system error. Contact the
     calling application to locate the error.
PS: I have already activated transfer price with material ledger.
Could you please help to solve it? tks.

Hi,
Pls. check whether note:964650 -》TP: Error message F5 800 with MM posting has been applied in your system or not!
WIth Best Regards,
Gladys Xing

Similar Messages

  • Inconsistent Currency Information F5 725 while releasing Billing Document

    Hi
    I am working on ECC 6 version. While releasing the billing document for our Inter Company Transaction where the goods are flowing from Mexico Country to Swizz Country, am facing the error Inconsistent Currency Information. Error Message Number is  F5725. Complete error is as below :
    ====================================================================
    Inconsistent currency information
    Message no. F5725
    Diagnosis
    Company code '2006' has currency type '31'. This currency type has the currency key 'INR' in the financial accounting application.
    The same currency type is conveyed to financial accounting across the accounting interface with currency key 'MXN'
    System Response
    Currency data conveyed with this key cannot be processed in the financial accounting module.
    Procedure
    This is a system error in the calling application.
    Currency type '31' in company code '2006' must have currency key 'MXN' when the data is transmitted
    ====================================================================
    According to my settings in OB22, for Mexico Company Code, 1st Local Currency is MXN (Legal Valuation) 2nd Local Currency (Profit Center Valuation) is also MXN and 3rd Local Currency (Group Valuation) is the Group Currency which is INR.
    Any inputs and help where to check or any SAP Notes to be applied will be of help.
    Regards
    Gemini

    Hi Lakshmipathi
    Thanks for your inputs. But both the Notes are not relevant for me and are meant for the lower versions. I am working on ECC 6.0 with EHP4.
    Any further inputs are welcome.
    Gemini

  • Error: Inconsistent currency information J2I8

    Hi Experts,
    We are capturing the balance 50 % credit on capital goods using T-code J2I8 we are getting below error
    Inconsistent currency information
    Message no. F5725
    Diagnosis
    Company code '6202' has currency type '10'. This currency type has the currency key 'INR' in the financial accounting application.
    The same currency type is conveyed to financial accounting across the accounting interface with currency key 'JPY'
    System Response
    Currency data conveyed with this key cannot be processed in the financial accounting module.
    Procedure
    This is a system error in the calling application.
    Currency type '10' in company code '6202' must have currency key 'JPY' when the data is transmitted
    Regards
    VR

    Hi,
    Have you maintained the settings properly in OB08? Please check with the proper currency type.
    Regards,
    Phani Varma

  • INCONSISTANCE CURRENCY INFORMATION

    HI
    FRIENDS
                  WHEN I AM POSTING TR6 CHALLAN THROUGH J1IH TRANSACTION CODE-HERE AFTER ENTERING DOCUMENT NO & PROCEEDING FOR SAVING SYSTEM IS GIVING THIS ERROR. THE DETAILS OF THE ERROR IS GIVING BELOW-
    Inconsistent currency information
    Message no. F5725
    Diagnosis
    Company code 'KCL1' has currency type '10'. This currency type has the currency key 'INR' in the financial accounting application.
    The same currency type is conveyed to financial accounting across the accounting interface with currency key ''
    System Response
    Currency data conveyed with this key cannot be processed in the financial accounting module.
    Procedure
    This is a system error in the calling application.
    Currency type '10' in company code 'KCL1' must have currency key '' when the data is transmitted.
    PLZ PROVIDE ME SOLUTION
    REGARDS
    AMBARISH

    Hi,
    How did u resolve the issue? I am facing the same issue, it would be very helpful if you guide me on this.
    Thanks,
    P.S.Chitra

  • ASKB - Message error F5800 - Inconsistent currency information

    Mrs., I am with a problem when a I execute the transaction ASKB. This message appears in the error log:
    Inconsistent currency information
    Message no. F5800
    Diagnosis
    The currency information for the financial accounting component must be transferred fully for each currency type.
    If, for example, the sending application sends corporate group currency data to Accounting, this currency data must be transferred for every company code line item.
    An error has occurred for line item '000' of the financial accounting document (company code '5557') with currency type '10' (currency key 'BRL'). This could be for one of three reasons:
    Line item '000' does not have any currency data for currency type '10', although at least one other line item has currency data for currency type '10'.
    Line item '000' contains currency data for currency type '10', although at least one other line item contain no currency data for currency type '10'.
    Line item '000' has no currency data for currency type '10', although the currency type '10' corresponds to the local currency ( currency type '10').
    System response
    Data processing within Financial Accounting can only take place with consistent currency information.
    Procedure
    The calling application probably contains a system error. Contact the calling application to locate the error.
    Somebody knows what can I do to solve this problem?
    Tks,
    Eliana

    Hi Eliana,
    Have a look to the Wiki from Markus, this should help you:
    /people/markus.bredel/blog/2008/11/28/currencies-in-fixed-asset-accounting

  • Error KO88 - Inconsistent currency information

    Dear all,
    When i run for KO88 order settlement, below error is created. I understand that this may caused be different currency in FI and CO, but what can we do to solve this..thanks
    Inconsistent currency information
    Message no. F5725
    Diagnosis
    Company code '1270' has currency type '30'. This currency type has the currency key 'CHF' in the financial accounting application.
    The same currency type is conveyed to financial accounting across the accounting interface with currency key 'USD'
    System Response
    Currency data conveyed with this key cannot be processed in the financial accounting module.
    Procedure
    This is a system error in the calling application.
    Currency type '30' in company code '1270' must have currency key 'USD' when the data is transmitted.

    Hi,
    I suppose, that you make a settlement to a G/L account in a different company code. But it is only possible,
    if the affected company codes have the same currency. SAP standard does not support settlement to a company code
    which has a different local currency, because this functionality is not implemented in the settlement source code.
    As a workaround, you could settle to a G/L account in the same company code and repost manually into the other company code.
    Regards,
    Greta

  • Inconsistant currency Information

    FI/CO Interface: Inconsistant currency Information

    hi,
    Check this note
    Note 1040798 - BAPI_ACC_DOCUMENT_POST: Error message F5 800
    Thanks and regards
    Praveen.J

  • What is the best way to update Currency information in SRM?

    Dear Experts,
    there was additional information introduced in R/3, with respect to a certain currency (this currecy got a second abbreviation, whereas the first abbreviation was set as the primary ISO code).
    Can you please help me understand, what is the best way to get this additional information updated in SRM 7.0 (Classic)?
    - Do we replicate via the DNL_CUS_BASIS3 object?...and if yes, do we replicate from Development R/3 system to development SRM system and than transport it to SRM Quality and Production...or do we replicate level by level, i.e. from R/3 development to SRM development and than from R/3 Quality to SRM Quality and so on...
    OR
    - Do we update this change manually in SRM Development and than transport it to SRM Quality and Production?
    Thank you very much.

    Please elabotate what additional information regarding currency you need to update.
    As per std. SRM we may use "BBP_GET_CURRENCY" that will update currency details from ECC to SRM.
    But always you may add on required fields as required using enhancements.

  • Error: (-1) Inconsistent UoM information [Message - 111]

    Hello All,
    We currently moved from 2007A PL 49 to 8.8 PL12. One of our Add-Ons for creating Sales Orders has stopped working due to the Subject error.
    After some investigation, it seems that SAP now Requires a Unit of Measure (system field unitMsr) to be populated upon entering the Sales Order.
    After referencing the new SAPbobsCOM 8.8 inside the project, I have tried to directly enter a value into this field by the below code:
    Documents.Lines.MeasureUnit = "EACH";
    But this doesnt seem to be solving the issue.
    Just wondering if anyone else is seeing this error and if anyone has had success solving it.
    Thanks,
    Matt

    Hello Matt,
    I believe it is better to link this UoM to Item Master to avoid such error.
    Thanks,
    Gordon

  • Error while posting tresury transaction

    hi gurus,
    i got the error , while excuting treasury transaction:
    Inconsistent currency information
    Message no. F5725
    Diagnosis
    Company code '1000' has currency type '10'. This currency type has the currency key 'SAR' in the financial accounting application.
    The same currency type is conveyed to financial accounting across the accounting interface with currency key 'EUR'
    System Response
    Currency data conveyed with this key cannot be processed in the financial accounting module.
    Procedure
    This is a system error in the calling application.
    Currency type '10' in company code '1000' must have currency key 'EUR' when the data is transmitted.)
    Kinldy help to resolve this issue.

    Hi All,
    I am facing the same issue..Can U pls help me in resolving the error.
    ERROR:
    Inconsistent currency information
    Message no. F5725
    Diagnosis
    Company code '6242' has currency type '10'. This currency type has the currency key 'SGD' in the financial accounting application.
    The same currency type is conveyed to financial accounting across the accounting interface with currency key 'INR'
    System Response
    Currency data conveyed with this key cannot be processed in the financial accounting module.
    Procedure
    This is a system error in the calling application.
    Currency type '10' in company code '6242' must have currency key 'INR' when the data is transmitted.
    Regards,
    Venkat

  • F-47 downpayment process in ME28 transaction

    Hello,
        I have a requirement that after release+save  PO in t-code  me28 ,automatic downpayment process(f-47) has to be happened(after final approval of PO,based on payment terms downpayment should be created automatically).For this purpose i am calling  BAPI_ACC_DOCUMENT_POST in the EXIT 'EXIT_SAPLEBND_002' But i am facing few issues in the function module like:
    1.Error in document :BKPFF $
    2.FI/CO Interface:Inconsistent currency information
    3.No funds center entered/derived in item 0000(1000/43020018)
    4.Account 43020018 requires an assignment to a CO object.
    Please help me to resolve the above issues.
    Regards,
    Vasavi

    Hi,
    Kindly refer below for all your queries.
    1) This error is due to non -zero prefix in your G./L account, pass the G/L account in this form"0000123456"
    2) Refer the below OSS Note
    1040798 - BAPI_ACC_DOCUMENT_POST: Error message F5 800
    3) Refer the below KBA:
    KBA: 1825677 - KO88 execution_Error-FI313: No funds center derived in item 00001 (Cmpny Code \ GL Acc)"
    4)  Assign a CO object for account 43020018 in FS00 or ask your finance team to check in KA03
    Rgds,

  • BAPI_ACC_DOCUMENT_POST & generated document number

    Hi,
    I am using BAPI function BAPI_ACC_DOCUMENT_POST to post financial documents in the system. My question is, how properly retrieve generated document number (BKPF-BELNR). We are using internal document number generation so the function generates document number. But, function itself, does not return generated document number. Currently, after commit I try to locate a record of generated document using reference key ... Isn't there any better way how to get generated document number?
    Tkank you.

    Yes, I found this code ... as I wrote, there is not problem if I set curtp = '10'. BUT, there is another problem, with different currencies. Then, when I try to post document in different currency that the currency of company code is, function raises error "Inconsistent currency information" ...
    here is an example, how I fill tax information, as requested:
    DATA:   docHeader     TYPE BAPIACHE09,
            accGL         LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
            accReceivable LIKE BAPIACAR09 OCCURS 0 WITH HEADER LINE,
            accAmnt       LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
            accTax        LIKE BAPIACTX09 OCCURS 0 WITH HEADER LINE,
            extension     LIKE BAPIACEXTC OCCURS 0 WITH HEADER LINE,
            tax_account   TYPE STRING,
            tax_code      TYPE STRING,
            tax_trans     TYPE STRING,
            tax_spec      LIKE ZIFPRMS-VALUE,
            itemno        TYPE N LENGTH 10.
    * initialize document header
      docHeader-bus_act    = 'RFBU'.
      docHeader-username   = sy-uname.
      docHeader-header_txt = fin_data-text.
      docHeader-comp_code  = header-company_code.
      docHeader-doc_date   = header-document_date.
      docHeader-pstng_date = fin_data-posting_date.
      docHeader-ref_doc_no = header-id_sale.
      docHeader-doc_type = params-doc_type.
    * process document items, in loop
      LOOP AT fin_items INTO fin_item.
    * initialize AR (line 1)
         accReceivable-itemno_acc = itemno.
         accReceivable-customer   = cus_data-id_contact.
         accReceivable-comp_code = header-company_code.
         CONCATENATE fin_item-text ' (receivable)' INTO accReceivable-item_text.
         accReceivable-pmnttrms = params-payment_term.
         accReceivable-pmnt_block = params-payment_block.
         IF doc_type = 'APR'.
            accReceivable-sp_gl_ind = 'F'.
         ENDIF.
         APPEND accReceivable.
    * initialize receivable amount
         accAmnt-itemno_acc = itemno.
         accAmnt-currency = fin_data-currency.
         accAmnt-curr_type = '10'.
         accAmnt-amt_doccur = fin_item-vat_base + fin_item-vat.
         IF doc_type(2) = 'CR'.
            accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
         ENDIF.
         APPEND accAmnt.
         itemno = itemno + 1.
    * do not continue when posting a down payment request
         CHECK doc_type < > 'APR'.
    * initialize GL account line item
         accGL-itemno_acc = itemno.
         accGL-gl_account = params-doc_gl_account.
         CONCATENATE fin_item-text ' (revenue)' INTO accGL-item_text.
         accGL-pstng_date = fin_data-posting_date.
         accGL-tax_code = tax_code.
         accGL-doc_type = params-doc_type.
         accGL-costcenter = fin_item-cost_centre.
         APPEND accGL.
    * initialize GL amount
         accAmnt-itemno_acc = itemno.
         accAmnt-currency = fin_data-currency.
         accAmnt-curr_type = '10'.
         accAmnt-amt_doccur = - ( fin_item-vat_base ).
         IF doc_type(2) = 'CR'.
            accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
         ENDIF.
         APPEND accAmnt.
         itemno = itemno + 1.
    * initialize TAX account line item
         IF STRLEN( tax_code ) > 0.
            accTax-itemno_acc = itemno.
            accTax-gl_account = tax_account.
            accTax-tax_code   = tax_code.
            accTax-cond_key   = 'MWAS'.
            APPEND accTax.
    * initialize tax amount
            accAmnt-itemno_acc = itemno.
            accAmnt-currency = fin_data-currency.
            accAmnt-curr_type = '10'.
            accAmnt-amt_doccur = - ( fin_item-vat ).
            accAmnt-amt_base = - ( fin_item-vat_base ).
            IF doc_type(2) = 'CR'.
               accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
               accAmnt-amt_base = accAmnt-amt_base * ( -1 ).
            ENDIF.
            APPEND accAmnt.
            itemno = itemno + 1.
         ENDIF.
      ENDLOOP.
    * translate customer field to BAPI format
      CALL FUNCTION 'MAP2E_BAPICOBL_CI_TO_BAPIEXTC'
         TABLES    INTERNAL_CI_COBL      = cust_ext
                   EXTENSION_CODINGBLOCK = extension.
    * call BAPI function to create customer invoice
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
         EXPORTING DOCUMENTHEADER = docHeader
         IMPORTING OBJ_TYPE = obj_type
                   OBJ_KEY  = obj_key
                   OBJ_SYS  = obj_sys
         TABLES    ACCOUNTGL = accGL
                   ACCOUNTRECEIVABLE = accReceivable
                   ACCOUNTTAX = accTax
                   CURRENCYAMOUNT = accAmnt
                   EXTENSION1 = extension
                   RETURN = returnTab.
    Edited by: Rastislav Mojzis on Jul 9, 2008 7:18 AM

  • Message F5725 and MR11

    We're using MR11 to clear the GR/IR account.  We have a US PO that the user put a Canadian cost center on.  When we try to post it in MR11, we get F5725.
    Inconsistent currency information
    Message no. F5725
    Diagnosis
    Company code '2000' has currency type '10'. This currency type has the currency key 'CAD' in the financial accounting application.
    The same currency type is conveyed to financial accounting across the accounting interface with currency key 'USD'
    The currency definitions are accurate and cannot be changed.  The problem is with this PO and the posting.  I can't change the Cost Center on the PO now.  How do I fix this? 

    I believe that we're getting this error because of the way we have our currencies defined.  However, changing currency configuration because of one error message for one PO is not the fix.  I'm not going to change our config in OB22 or OX06 because of this single PO.  Our currencies were defined over 4 years ago and now I have this one problem. 
    When the user entered the PO with the wrong Cost Center from a different company, he would have received this message. 
    2070061 belongs to a company code with a different local currency
    Message no. KI189
    Diagnosis
    You made an account assignment to 2070061. This object is assigned to controlling area CA00 which in turn is assigned to company code 2000 with a different local currency. You can post only to objects belonging to this controlling area from company codes that have the same local currency as the object's company code. 2070061's company code has local currency CAD but the current company code's currency is USD.
    System Response
    You cannot post to 2070061 from the current company code.
    Procedure
    Check the object 2070061 and the company code it is assigned to. If the posting is in FI, you can change the company code in the posting row.
    This warning message is a result of having our currencies defined the way we do, which is 30 (group) in OX06 and 10 (local) CAD in 2000 and 10 (local) USD in 1000, with each company having 30 as the second currency.  If we had these defined differently I doubt we would have the issue we're having with this PO.  However, changing the currencies is NOT an option.
    Can someone tell me how to correct this PO or the Posting?  In the message above it says that "you can change the company code in the posting row".  What does this mean?  In what transaction? Thanks

  • Problem  in TR6 challan through J1IH

    Dear Experts,
    While  at the time posting TR6 challan through J1IH.I am getting following problem.
    Kindly help
    Inconsistent currency information
        Message no. F5725
    Diagnosis
        Company code 'PSML' has currency type '10'. This currency type has the
        currency key 'INR' in the financial accounting application.
        The same currency type is conveyed to financial accounting across the
        accounting interface with currency key ''
    System Response
        Currency data conveyed with this key cannot be processed in the
        financial accounting module.
    Procedure
        This is a system error in the calling application.
      Currency type '10' in company code 'PSML' must have currency key '' when
      the data is transmitted.

    Check the currency you have assigned for your company code and the required valuation area in defining the valuation area and assigning to the accounting code,
    You can also refer SAP notes, 164235 - F5725 for cross-company code goods movement & 501342 - Message F5725 during release to accounting (2)

  • Tax data with BAPI_ACC_DOCUMENT_POST

    Hi All,
    I am facing problem in passing tax data to BAPI BAPI_ACC_DOCUMENT_POST.
    below is my code:
       *fill header
    gd_documentheader-username   =  sy-uname.
    gd_documentheader-header_txt = 'Test'.
    gd_documentheader-comp_code  = p_ccode.   "SQ
    gd_documentheader-doc_date   =  sy-datum.
    gd_documentheader-pstng_date =  sy-datum.
    gd_documentheader-doc_type   = 'KR'.
    gd_documentheader-ref_doc_no = p_xblnr. "SQ
    gd_documentheader-bus_act = 'RMWE'.
    city = p_city.
    state = p_state.
    zipcode = p_zip.
    *get tax juridisction code
    IF NOT ( city     IS INITIAL ) AND
       NOT ( state    IS INITIAL ) AND
       NOT ( zipcode IS INITIAL ).
      SELECT SINGLE rfcdest INTO ttxd-rfcdest FROM ttxd
       WHERE kalsm = 'TAXUSX'.
      CLEAR x_com_jur.
      REFRESH t_com_jur.
      x_com_jur-city     =  city.
      x_com_jur-state    =  state.
      IF zipcode+5(4) EQ space.
        zipcode+5(4) = '0000'.
      ENDIF.
      CONCATENATE zipcode+0(5) '-' zipcode+5(4)
             INTO x_com_jur-zipcode.
      x_com_jur-country  = 'US'.
      CALL FUNCTION 'RFC_DETERMINE_JURISDICTION'
        DESTINATION ttxd-rfcdest
        EXPORTING
          location_data    = x_com_jur
        IMPORTING
          location_err     = x_com_err
        TABLES
          location_results = t_com_jur.
      IF sy-subrc = 0.
        READ TABLE t_com_jur INTO x_com_jur INDEX 1.
        it_accountgl-taxjurcode =  x_com_jur-txjcd.
      ENDIF.
    ENDIF.
    *fill AP (line 1) - vendor related data
    SELECT SINGLE zterm FROM lfb1 INTO p_zterm WHERE lifnr = p_lifnr.
    it_accountpayable-itemno_acc = 1.
    it_accountpayable-pmnttrms   = p_zterm. "SQ
    it_accountpayable-vendor_no  = p_lifnr. "SQ
    *it_accountpayable-item_text = 'S2P Testing in UDR1'. - SQ
    it_accountpayable-pymt_meth = p_pmet. "- SQ
    APPEND it_accountpayable.
    *fill GL (line 2)
    it_accountgl-itemno_acc      =  2.
    *item_text - sq
    IF p_asset IS NOT INITIAL.
      TABLES : anlz,
               anla.
      SELECT SINGLE * FROM anlz  WHERE anln1 = p_asset.
      SELECT SINGLE * FROM anla WHERE anln1 = p_asset.
    *concatenate '00' anla-KTOGR into it_accountgl-gl_account .
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = anla-ktogr
        IMPORTING
          output = it_accountgl-gl_account.
      it_accountgl-asset_no = p_asset.
      it_accountgl-sub_number = '0000'.
      it_accountgl-cs_trans_t = '105'.
      it_accountgl-acct_type = 'A'.
    ELSE.
      it_accountgl-gl_account      = p_gl.
      it_accountgl-costcenter      = p_cc.
      it_accountgl-wbs_element     = p_posid.
    ENDIF.
    it_accountgl-comp_code       = p_ccode.
    it_accountgl-tax_code = p_txcd.  "SQ
    it_accountgl-pstng_date      =  sy-datum.
    it_accountgl-fisc_year       =  sy-datum(4).
    APPEND it_accountgl.
    *fill currency ammounts for lines 1 & 2
    it_currencyamount-currency    = p_waers.  "SQ
    it_currencyamount-itemno_acc  = 1.
    it_currencyamount-amt_doccur  = - p_totamt.  "SQ
    APPEND it_currencyamount.
    CLEAR  it_currencyamount. .
    it_currencyamount-itemno_acc  = 2.
    it_currencyamount-currency    = p_waers.  "SQ
    it_currencyamount-amt_base    =  P_lamt.
    it_currencyamount-TAX_AMT  = p_ttax.  "SQ
    APPEND it_currencyamount.
    *tax data
    it_accounttax-itemno_acc = 2.
    it_accounttax-tax_code = p_txcd.
    it_accounttax-GL_ACCOUNT = p_gl.
    APPEND it_accounttax.
       CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = gd_documentheader
    IMPORTING
       obj_key                 = wa_obj_key
      TABLES
       accountgl               = it_accountgl
    *   ACCOUNTRECEIVABLE       =
       accountpayable          = it_accountpayable
       ACCOUNTTAX              = it_accounttax
        currencyamount          = it_currencyamount
    *   CRITERIA                =
    *   VALUEFIELD              =
    *   EXTENSION1              =
        return                  =  it_return
    COMMIT WORK.
    I am getting folowwing error.
    Message Type:    E
    Message Class:   RW
    Message Number:  609
    Message:         Error in document: BKPFF $ UDRCLNT200
    Message Type:    E
    Message Class:   RW
    Message Number:  602
    Message:         Required field ACCT_KEY was not transferred in parameter ACCOUNTTAX
    Message Type:    E
    Message Class:   FF
    Message Number:  765
    Message:         Transaction key  does not exist
    Message Type:    E
    Message Class:   ZVAL1
    Message Number:  021
    Message:         Cost Center US00000012 is closed.
    Message Type:    E
    Message Class:   KI
    Message Number:  235
    Message:         Account 54010011 requires an assignment to a CO object
    Can anyone help me on this.
    Regards,
    Priyaranjan

    Hi Nabheet,
    I have passed these required data.
    Now erros is :
    Message Type:    E
    Message Class:   RW
    Message Number:  609
    Message:         Error in document: BKPFF $ UDRCLNT200
    Message Type:    E
    Message Class:   RW
    Message Number:  008
    Message:         FI/CO interface: Inconsistent currency information
    Below is the code
       *fill header
    gd_documentheader-username   =  sy-uname.
    gd_documentheader-header_txt = 'Test'.
    gd_documentheader-comp_code  = p_ccode. gd_documentheader-doc_date   =  sy-datum.
    gd_documentheader-pstng_date =  sy-datum.
    gd_documentheader-doc_type   = 'KR'.
    gd_documentheader-ref_doc_no = p_xblnr.
    city = p_city.
    state = p_state.
    zipcode = p_zip.
    *get tax juridisction code
    IF NOT ( city     IS INITIAL ) AND
       NOT ( state    IS INITIAL ) AND
       NOT ( zipcode IS INITIAL ).
      SELECT SINGLE rfcdest INTO ttxd-rfcdest FROM ttxd
       WHERE kalsm = 'TAXUSX'.
      CLEAR x_com_jur.
      REFRESH t_com_jur.
      x_com_jur-city     =  city.
      x_com_jur-state    =  state.
      IF zipcode+5(4) EQ space.
        zipcode+5(4) = '0000'.
      ENDIF.
      CONCATENATE zipcode+0(5) '-' zipcode+5(4)
             INTO x_com_jur-zipcode.
      x_com_jur-country  = 'US'.
      CALL FUNCTION 'RFC_DETERMINE_JURISDICTION'
        DESTINATION ttxd-rfcdest
        EXPORTING
          location_data    = x_com_jur
        IMPORTING
          location_err     = x_com_err
        TABLES
          location_results = t_com_jur.
      IF sy-subrc = 0.
        READ TABLE t_com_jur INTO x_com_jur INDEX 1.
        it_accountgl-taxjurcode =  x_com_jur-txjcd.
      ENDIF.
    ENDIF.
    *fill AP (line 1) - vendor related data
    SELECT SINGLE zterm FROM lfb1 INTO p_zterm WHERE lifnr = p_lifnr.
    it_accountpayable-itemno_acc = 1.
    it_accountpayable-tax_code = p_txcd.
    it_accountpayable-pmnttrms   = p_zterm. "SQ
    it_accountpayable-vendor_no  = p_lifnr. "SQ
    *it_accountpayable-item_text =
    it_accountpayable-pymt_meth = p_pmet. "- SQ
    APPEND it_accountpayable.
    *fill GL (line 2)
    it_accountgl-itemno_acc      =  2.
    *item_text - sq
    IF p_asset IS NOT INITIAL.
      TABLES : anlz,
               anla.
      SELECT SINGLE * FROM anlz  WHERE anln1 = p_asset.
      SELECT SINGLE * FROM anla WHERE anln1 = p_asset.
    *concatenate '00' anla-KTOGR into it_accountgl-gl_account .
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = anla-ktogr
        IMPORTING
          output = it_accountgl-gl_account.
      it_accountgl-asset_no = p_asset.
      it_accountgl-sub_number = '0000'.
      it_accountgl-cs_trans_t = '105'.
      it_accountgl-acct_type = 'A'.
    ELSE.
      it_accountgl-gl_account      = p_gl.
      it_accountgl-costcenter      = p_cc.
      it_accountgl-wbs_element     = p_posid.
    ENDIF.
    it_accountgl-comp_code       = p_ccode.
    it_accountgl-tax_code = p_txcd.  "SQ
    it_accountgl-pstng_date      =  sy-datum.
    it_accountgl-fisc_year       =  sy-datum(4).
    APPEND it_accountgl.
    CLEAR it_currencyamount.
    *fill currency ammounts for lines 1 & 2
    it_currencyamount-currency    = p_waers.  "SQ
    it_currencyamount-curr_type = '00'.
    it_currencyamount-itemno_acc  = 1.
    it_currencyamount-amt_base = - '1000'.
    it_currencyamount-amt_doccur  = '200'. "p_totamt.
    *it_currencyamount-tax_amt  = p_ttax.
    APPEND it_currencyamount.
    CLEAR it_currencyamount.
    it_currencyamount-itemno_acc  = 2.
    it_currencyamount-currency    = p_waers.  "SQ
    it_currencyamount-amt_doccur  = '800'.
    APPEND it_currencyamount.
    *tax data
    it_accounttax-itemno_acc = 1.
    it_accounttax-tax_code = p_txcd.
    **it_accounttax-tax_rate = p_ttax.
    it_accounttax-gl_account = p_gl.
    it_accounttax-acct_key = 'NVV'.
    it_accounttax-cond_key = 'XP2I'.
    *it_accounttax-direct_tax = 'X'.
    APPEND it_accounttax.
       CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = gd_documentheader
    IMPORTING
       obj_key                 = wa_obj_key
      TABLES
       accountgl               = it_accountgl
    *   ACCOUNTRECEIVABLE       =
       accountpayable          = it_accountpayable
       accounttax              = it_accounttax
        currencyamount          = it_currencyamount
    *   CRITERIA                =
    *   VALUEFIELD              =
    *   EXTENSION1              =
        return                  =  it_return
    COMMIT WORK.
    Regards,
    Priyaranjan

Maybe you are looking for

  • Is it possible to add the date to a photo in an iPhoto calendar?

    After a picture is dragged to a day on my calendar the date disappears, is it possible to add or restore the date? I am using the latest update of iPhoto.

  • Strange voice mail

     I have Prepaid Plus.  This evening I started to receive voice mails that were sent back in April. I remember receiving them back then, and deleting them.  Why would I start getting these voice mails now? And for some reason I can't find how to delet

  • I want a slideshow that when any individual image is clicked on it goes full screen

    Right now I have a slideshow that only fills the centre of the page, which is how I want it. I do not want a fullscreen slideshow. However, what I want is that when anyone clicks a particular image within this slideshow, that image becomes full-size

  • Cut, Copy & Paste Nodes in a JTree

    Hi everyone! I would just like to ask you if anyone knows how cut, copy and paste can be implemented on a JTree. I have seen some postings with similar questions, but none of them got any answer. Thanks in advance

  • Dynamic method signatures

    This does not compile: public class Main {   public static void main(String[] args) {     Object sok = Socket.class.newInstance();     foo(sok); // syntax error only as help to prevent runtime errors?     Object x = ArrayList.class.newInstance();