ZXKKEU03 delivers wrong values in company code currency

Hello,
it is requested to transfer the value of a SD-condition (tables A004 + KONP) to a COPA value field with the help of the exit ZXKKEU03. Although the SD condition value is already in company code currency the system converts the value from operating concern currency into company code currency. An attempt to revert the conversion within ZXKKEU03 fails due to less decimal places (2) in ZXKKEU03 than in the SAP standard programs.
Does anybody have an idea how to solve this problem?
Many thanks in advance,
regards,
Martin

Hi Eric,
my message refers to that part of the source code within ZXKKEU03:
SELECT SINGLE * FROM VBKD INTO W_VBKD
                   WHERE VBELN = LINE_ITEM_7000-KAUFN
                     AND POSNR = '000000'.
                       Z_DATUM = W_VBKD-PRSDT.
     SELECT * FROM A912                          "Price acc. Price list
           WHERE  KAPPL       =   'V'
           AND    KSCHL       =   'PR00'       "Gross turnover
           AND    VKORG       =   LINE_ITEM_7000-VKORG
           AND    VTWEG       =   LINE_ITEM_7000-VTWEG
           AND    SPART       =   LINE_ITEM_7000-WWVSP
           AND    MATNR       =   LINE_ITEM_7000-ARTNR
           AND    DATBI      >=   Z_DATUM
           AND    DATAB      <=   Z_DATUM.
    IF SY-SUBRC  =  0.
      SELECT * FROM KONP INTO W_KONP
               WHERE  KNUMH    =  A912-KNUMH
               AND    KAPPL    =  A912-KAPPL
               AND    LOEVM_KO =   ' '
               AND    KSCHL    =  A912-KSCHL.
               EXIT.
      ENDSELECT.
      IF SY-SUBRC  =  0.
          LINE_ITEM_7000-VV104 = W_KONP-KBETR * LINE_ITEM_7000-VV005 /
                                 W_KONP-KPEIN.
      ENDIF.
    ENDIF.
    ENDSELECT.
    IF LINE_ITEM_7000-VV104 = ' '.
    SELECT * FROM A004                           "Price acc..Price list
           WHERE  KAPPL       =   'V'
           AND    KSCHL       =   'PR00'          "Gross turnover
           AND    VKORG       =   LINE_ITEM_7000-VKORG
           AND    VTWEG       =   LINE_ITEM_7000-VTWEG
           AND    MATNR       =   LINE_ITEM_7000-ARTNR
           AND    DATBI      >=   Z_DATUM
           AND    DATAB      <=   Z_DATUM.
    IF SY-SUBRC  =  0.
      SELECT * FROM KONP INTO W_KONP
               WHERE  KNUMH    =  A004-KNUMH
               AND    KAPPL    =  A004-KAPPL
               AND    LOEVM_KO =   ' '
               AND    KSCHL    =  A004-KSCHL.
               EXIT.
      ENDSELECT.
      IF SY-SUBRC  =  0.
          LINE_ITEM_7000-VV104 = W_KONP-KBETR * LINE_ITEM_7000-VV005 /
                                 W_KONP-KPEIN.
      ENDIF.
    ENDIF.
    ENDSELECT.
    ENDIF.
    IF LINE_ITEM_7000-FRWAE NE 'EUR'.
    IF SY-SUBRC = 0.
    SELECT * FROM TCURR INTO CORRESPONDING FIELDS OF TABLE I_TCURR
           WHERE KURST      = 'M'
           AND   FCURR      = LINE_ITEM_7000-FRWAE
           AND   TCURR      = 'EUR'.
    IF SY-SUBRC = 0.
      SORT I_TCURR ASCENDING BY GDATU.
      LOOP AT I_TCURR INTO W_TCURR.
           Z_UKURS = W_TCURR-UKURS.
           LINE_ITEM_7000-VV104 = LINE_ITEM_7000-VV104 * Z_UKURS.
           EXIT.
      ENDLOOP.
    ENDIF.
    ENDIF.
    ENDIF.
Regards,
Martin

Similar Messages

  • Report Similar to CN41N which is having values in Company Code currency

    Hello All,
    In my landscape Controlling Area Currency is GBP & Company Code Currency is EURO.
    I want to see all the values in CN41N in EURO only but not able to see the same because as per standard SAP it will show in GBP only.
    Can anyone suggest me any other report or any settings in CN41N itself so that i am able to see values in EURO.
    Thanks & Regards,
    Ankush Sethi

    Hello,
    Yes, i tried with RPPO as well but still not able to see the values in EURO.
    Thanks,
    Ankush

  • 0CO_PC_10 datasource extracting wrong values for company code

    Hi,
    I am extracting data from the datasource 0CO_PC_10  product cost analysis and found that Company code values are wrong in the extractor checker. Company code field is taking values of Plant.  For example:
    if  company code 6100  has got plants 6101  6102  6104,   ideallly all the rows should have company code value as 6100, instead
    it is taking 6101 6102 6104 which are nothing but plant values.  So in both columns I am getting same values.
    Is this behaviour  normal for this datasource?
    I have tried to check help.sap on this data source in the below link, it says company code value is extracted from AUFK table but it is not happened.
    http://help.sap.com/saphelp_tm70/helpdata/en/9d/c31a8cee714393b1c75eb3e8f32a64/frameset.htm
    Please suggest ideas to overcome this problem.
    Regards
    Sreekanth S

    Hi,
    Raise a SAP message there must be some problem with the Extraction logic use.
    Also, in the meantime you can try debugging the program used to extract the data.
    Regards,
    Rahul

  • KEA0 activate company code currency

    Hi every body !
    Can some one tell me what would be the program to generate prior values for company code currency in COPA ? Actually the controlling area is only customizing in group currency.
    Thanks by advance

    Hi,
    if company code currency is activated in KEA0 at a later point in time, it does not have an effect on data that has already been posted. This data is only kept in    in the operating concern currency.
    Check the OSSnote for futher details:
    Note 400237 - CO-PA INFORMATION: Line item in company code currency
    Regards,
    Harish

  • Seeking Information on Company Code Currency in COPA

    Greetings all,
    I am working on a project to activate the company code currency flag in COPA (attributes under KEA0). I have activated the flag in a test system and as expected I now get two PA docs, a 10 and a B0. The oddity begins when I compare PA docs created from SD and FI. In my example I am creating documents in three different currencies; 1) transaction curr = SEK, 2) company curr = EUR, and 3) operating concern curr = USD. I am on ECC 6.0 EP 4.
    If I create a PA from a billing document (record type F) then the data looks exactly as I expect it. The foreign currency key (FRWAE) is SEK. I can see the transaction currency is SEK with value fields in SEK, I can see the company currency is EUR with an exchange rate of SEK <-> EUR along with value fields in EUR, and I can see the operating concern currency is USD with an exchange rate of SEK <-> USD along with value fields in USD.
    However, if I create a similar document with FB50 (record type B) the foreign currency key (FRWAE) is EUR instead of SEK and the exchange rate to USD is 1 (KURSF) instead of the actual exchange rate. I only get company currency and operating concern currency values. The values in the value fields are correct per currencies eventhough the fx rate is whacked. In FI the transaction currency is SEK but you would never know it in PA. The really bizarre thing is when I go to display the PA doc (I am branching from the FI doc) it behaves very odd. The default view is Op conc which is in USD. If I click the foreign curr button it displays USD. If I click the company code curr button it displays EUR. If I then go back to the foreign curr view it is now in EUR???
    I am hoping someone can explain the difference between the two, or at least point me to a good resource. If there is a rational reason for this system behavior then I am hoping someone can suggest some way to manipulate the data.
    Many thanks,
    Chris

    Hi,
    CO-PA will only store values in either operating concern currency or company code currency(if active). For FI postings CO-PA fills the field foreign currency in the CO-PA line item with the currency with the currency of the company code. The reason for this is that the currency conversion for FI documents is that the currency conversion for FI documents is executed with the
    company code currency and the field FRWAE is always filled with the currency that is used for conversion. This is designed in order to allow a reconciliation between FI and CO-PA. CO-PA uses company code currency as the base to convert to operating
    concern currency for FI postings. The field FRWAE is not intended to reflect the transaction currency. It is just used to store the currency from which the conversion to the currency of the record is made.
    In case of direct postings from FI/MM CO-PA takes over group currency directly if group and operating concern currency are identical. As group currency is translated in FI with exchange rate ( according the settings in transaction 'OB22' for company code) you'll find this exchange rate in CO-PA too. I have attached SAP Note 604936 to this ticket that describes the translation logic used in PA for postings from FI and MM.
    The currency translation from SD however works differently as described in SAP Note 429517. In this case PA will not consider any values in group currency. Values in operating concern currency are either translated based on transaction or company code currency using exchange rate type 'M'.
    Hope this will help.
    Best regards, Takashi
    Edited by: Takashi Kotani on Mar 6, 2010 2:24 AM

  • Miro Company code currency amount displaying 0, incorrect posting

    Dear All,
    When I use miro to simulate one of my posting which is in the foreign currency is showing incorrect when changing to company code currency.
    By right there should be a ppv posted, however it does not show the gl accoutn for the vendor and the amount is totally wrong and it only show the gr/ir clearing amount which is correct.
    Any kind souls can help me?
    Many Thanks!!!

    Anyone can help ???

  • Document Currency Vs Company code Currency.

    As per business requirement Company code level currency is mainatained as USD but when i am generating the Excise invoice for loacl currency INR.,  the Excis edocument posting in USD . can any body helpme out to Post excise invoice as document currency where Excise tables is also updating the USD.
    rgadrs
    Ramesh.

    Closing this Thread as I found the answer
    Within the Purchase Order, when the new TOTAL NET ORDER VALUE is higher than the old one, release strategy will be triggered once release charateristic is set for checking rule
    System will check through The total net order value which is linked to CEKKO-GNETW for a purchase order.
    In purchase order, the currency conversion will act as below:
    Purchasing documents: Header currency converted to company code currency.
    Company currency converted to characteristic currency
    Hence, eventhough the exchange rate is increased but document currency is remained unchanged, the company code currency is increased and hence trigger release strategy.
    for more information, please refer to http://wiki.sdn.sap.com/wiki/display/ERPSCM/RELEASE+PROCEDURE

  • Hungary VAT report in HUF - company code currency is EUR

    Hi,
    We have the below requirement from our client.
    Company is incorporated in Switzerland and is having a plant in Hungary.
    We have decided to have 2 company codes one with country key as CH(switzerland) and the other with country key as HU (Hungary).
    The client wants to have the currency for the Hungary company code as EUR (Company code currency)
    Requirement: VAT report generation in currency HUF for the Hungarian company code. While accounting should consider the European bank rates for converting foreign currency Invoices into EUR, the VAT report should consider the Hungarian Bank Rates for converting all Invoices into HUF. This conversion should be on daily rates for all the invoices.
    There is an option to activate report generation in an Alternative currency (RFASLD15). However, the translation is made on a fixed translation date to be given in the report selection criteria.
    Any suggestions to meet the requirement would be of great help to us.
    Many Thanks
    Hema

    Hema,
    Please activate hard currency(Local currency 3) as HUF, so that you can have transaction amounts in HUF also eventhough your company code currency is EUR.
    Please check F.12 report for your VAT requirement.
    Here you have to capture BSEG-DMBE3 value as per your requirement.
    Rgds
    Muarli. N

  • Cost centre reports in Company code currency

    Hi
    I want to check all reports in company controlling area currency and company code currency. Controlling area currency is USD and company code currency is SAR.
    For example when i execute the following report it shows only in controlling area currency.
    S_ALR_87013611 - Cost Centers: Actual/Plan/Variance
    KSB1 is working fine I can check object currency which called company code currency.
    regards
    imdad

    Hi Ajey
    I have make changes in RPC0 following changes and as you said re-login but still this report showing results in controlling area currency instead of company code currencye.
    Reporting currency tab:
    - Select radio button controlling area currency
    Currency Translation into target currency
      - Select radio button object currency
    Exchange rate
      - Current
    Exchange rate type
      - M
    Its still not working, whats wrong setting in RPC0. please advise.
    regards
    imdad

  • KE30 report display in company cod currency

    Hi,
    We have two company code:
    1. In China, currency:CNY, controlling area:A  operatiing concern:C,   Operating concern currency is :CNY
    2. In HK: currency:HKD, controlling area:B  operating concern:C
    So two company codes having different currency, two controlling area, but same operating concern.
    Now for HK company code, every COPA posting, have two lines in CE1R***, one with currency:CNY with currency type:01 operating concern currency, one with currency:HKD with company code currency.
    My question is for KE30 report, for HK company code, how to directly show in HKD? If using currency translation, the number will not show correctly.
    Thanks.

    HI,
    the report creation/definition must be made for operating concern currency (CNY) and comp. code currency, this allows to select the currency type (10 or B0) during report execution.  Zhis happens when you are executing KE31 to create a new report and cannot be changed if the report is already created.
    If your report was only created for operating concern currency you cannot display comp. code currency values.
    Best regards, Christian

  • COPA-Company Code Currency

    Hi,
    In CO-PA, we have operating concern, say abcd, having operating concern currency, say KD. Now, we have activated company code currency, say AD using T.Code KEA0. Now, our requirement is that if we run T.code KE30,  we need report in operating concern currency and company code currency. Presently, we are getting the report in Operating Concern currency only. Any clue...
    Thanks in advance.
    Regards-
    Ganesh

    Hi
    CO-PA supports the following currency types:
    B0 (operating concern currency)
    10 (company code currency)
    When To Use Multiple Currencies
    The answer to this question is demonstrated in the following example.
    An international corporation has its headquarters in the United States and has a subsidiary in the UK. The operating concern currency is the U.S. dollar, while the company code currency of the subsidiary is the British pound.
    If this organization uses parallel currencies in CO-PA, all transactions carried out by the British subsidiary are posted in British pounds in Financial Accounting (FI), but stored in two currencies in CO-PA - pounds and dollars. Both of these currencies are updated simultaneously in CO-PA when each transaction is posted.
    It makes sense to use both currencies when the organization carries out transactions in currencies whose exchange rates change daily (such as US dollars and British pounds). This helps you avoid exchange rate differences and makes it possible to reconcile the CO-PA data with that in FI.
    You can plan in CO-PA in either the company code currency or the operating concern currency in each version. You can convert your planning data to the other currency by copying the data to a plan version that uses the other currency and translating it using a planned exchange rate.
    In the information system, you can display reports in the operating concern currency as well as in the company code currency.
    When Not To Use Multiple Currencies
    If your organization works with average exchange rates by period instead of exchange rates that fluctuate daily, it is advisable not to update both currencies. If you did, you would be doubling your data volume without gaining any additional information. Alternative currency translation functions are available in planning and in the information system to let you translate all values using average exchange rates by period.

  • Impacts of new company code currency

    Hi Gurus,
    We have a company code which is setup 2 months back. We have it setup with USD and this company code is assigend to a controlling area in one -one basis. So it should be fine . But now business want to change the CCode currency.  All G/L and master data is created with USD.  What would be the impacts if we change currency of master data also into new currency?  We have no New-GL . We used special ldgers but just for a specific activity.
    Any thoughts ?
    Thanks,
    GB

    Hi GB,
    If there is no transaction data posted in your company code then you can change the company code currency and in GL Mater data. But if transaction data is already been posted then its better to create new company code with new GL Master data and currency setting and upload transaction data posted in last two months.
    Regards,
    Santosh

  • Company code currency balance not equal Group currency balance

    Dear experts,
    Some of our account balances are inconsistent bewteen the company code and the group amount. This company has the same currency in both the company code and group currrencies which are USD. The exchange quotation is also setup in OB08 with 1 in both dir / indir quote. Below is an example for a HKD expenses with a HKD AP account.
    GL accounts setup with same currency as company code / group currency.
    Exchange quotation setup in OB08 for HKD to USD is dir.qut. 7.8 and indir.quot 7.8.
    After translation, the result supposed to be,
    In Document currency, Dr expenses HKD780, Cr AP HKD780
    In Local currency (company code currency), Dr expenses USD100, Cr AP USD100
    In Group currency, Dr exepnses USD100, Cr AP USD100
    However, the current result is,
    In Document currency, Dr expenses HKD780, Cr AP HKD780
    In Local currency (company code currency), Dr expenses USD100, Cr AP USD100
    In Group currency, Dr exepnses USD110, Cr AP USD110
    The amount in local and group currency should be the same supposedly as they are in the same currency.
    Have anyone ever experienced the same situation?

    Thanks all,
    I have checked that both 1st local currency (company code currency) and 2nd local currency (group currency) are USD.
    Our user also didn't change the group currency amount during data entry as there seems no way to alter the amount as it is greyed out.
    Is there any other configuration or system flow that may be configured to post these 2 currency amount in a different way of translation?

  • Conversion error in company code currency for general costs activity

    PS Experts,
    Please guide me in the following , The below message appeared when i created a customer project in CJ20N in our new DEV server
    This is the scenario
    Create customer project with 3 WBSE, each one has 3 NTW and 3 activities, i maintained the cost with currency same as project curr and company code currency in the first two act.
    in the third activity (General act)  in cost tab i put a currency is different than project currency& company code currency and tried to save the project, the message appears.
    note: Company code curr same as projet curr & controlling area curr
    Is there any setting is missing in customizing
    Conversion error in company code currency for general costs activity 0010
    Message no. CK443
    Diagnosis
    For cost activity 0010, a conversion error occurred in the currency of the company code to which the material is assigned.
    Procedure
    Check the global settings in Customizing to be sure the exchange rate for conversion into the company code currency is correct
    Thanks

    Hi Yassin,
    I believe you have maintained exchange rates for rate type M as per your config in OPSB.
    Now do one thing, maintain the conversion rate for P for those currencies in OB08 and then save your project.
    This will solve your problem.
    Regards,
    Kabir

  • Different company code currency

    What is the significanc of flagging "different company code currency" in OKKP setting.
    What are the advantages of the above settings?
    What kind of reports available by flagging this?
    Moderator: Please, read help.sap.com

    Hi Anilkg
    We are not able to directly check this indicator. When you select the currency type other than 10-Company code currency, this indicator gets indirectly ticked and thereon the system allows different company code currency for the companies which are assigned to one controlling area which has specific controlling area currency. There is no specific advantage or report by this tick. It only informs that different currencies are allowed for the companies assigned to the controlling area.
    Trust this helps much!
    Cheers!

Maybe you are looking for