Currency key relationship

hi,
   i m working on pm module alv report.
i m using mara, mbew,marc, ausp, and makt.
according to functional spec currency key is in t001 table (WAERS).
but i m not getting any relationship to add into my final table.
plz help me if there any direct or indirect relationship is there.
in final out put i m showing.
matnr maktx werks mtart matkl atwart( equipment ,make and model, OEM part no)
lbkum meins salk3 and WAERS(CURRENCY KEY).
THANKS IN ADVANCE.
REGARDS
VIJAY
MARKS WILL B REWARDED FOR EACH HELPFULL ANSWER*

Hi,
You can get the currency key from the table T001 (t001-waers)...The company code can be get from the table T001K..(T001K-BUKRS)..The valuation area Needed for the T001K is available in MBEW.
Check this code..
* Get the valuation area
SELECT SINGLE * FROM MBEW WHERE MATNR = 'TEST'.
* get the company code
SELECT SINGLE * FROM T001K WHERE BWKEY = MBEW-BWKEY.
* get the currency.
SELECT SINGLE * FROM T001 WHERE BUKRS = T001K-BWKEY.
* Currency
write: / t001-waers.
Thanks
Naren

Similar Messages

  • F4 help values for currency key field in table

    Hi all,
    I have added currency and currency key fields in my Z table. For the curreny key field, i have assigned the standard data element WAERS. I have implemented Table Maintenance Generator for my table. But the F4 help values for the currency key field is not appearing when i tried to maintain table entry.
    Should i need to check the Foreign key check box for the field attribute? But this check box is in disable field in screen layout.
    Could someone tell me how to solve this issue?

    Hi,
    Make the check table of the currency field of your Ztable as TCURC,which is the master table of Currency.Inside the domain of the field you write the TCURC as a value table.and make foriegn key relationship with the TCURC table.
    Regards,
    Suvajit.

  • Problem with Foreign Key relationships in SAP R/3 4.7

    Hi Experts,
    I am trying to create a foreign key relationship between 2 transparent tables in SAP R/3 4.7
    Table 1:ZAAVNDR (MANDT (pk), VENDORNO (pk), NAME, REGION, COUNTRY (fk)) Foreign Key Table
    Table 2: ZAAVNDRREF(MANDT(pk), COUNTRY (pk)) ---Check table
    I have added few valid countries in check table but when I am adding some records in foreign key table with invalid countries these records are not being restricted and are still successfully going into the table.
    Could any one please help in this.
    Thanks in anticipation.
    -Amit

    Hi Sandra,
    Many thanks for your response and providing time of yours.
    Now, I have done exactly the same thing, but still it is the same.
    I have created two new tables as below:
    ZAAVREF (Check table)
    MANDT (PK)
    COUNTRY (PK) Domain:ZAACOUNT (CHAR 10)
    ZAAV1 (Foreign key table)
    MANDT (PK)
    COUNTRY (PK) Domain:ZAACOUNT (CHAR 10)
    Then I have created FK on country of foreign key table ZAAV1 and then SE16 (for table ZAAVREF)->Create Entries-> Entered values for Country only->Save....Records entered with valid Country values.
    After that SE16 (for table ZAAV1)->Create Entries-->Entered an Invalid country->Save->Still the record entered to the Database successfully....
    Could you please let me know where I am going wrong.
    I am using SAP R/3 4.7 and creating tables using Tools->ABAP Workbench->Development->ABAP dictionary

  • How to create a Foreign key relationship between 2 user defined tables...

    Hi Folks,
    I have created two user defined tables... Where in i want to create foriegn key relationship between the 2 tables.... Can anyone guide the step by step procedure to do this scenario...
    Any help would be highly appreciated...
    Thanks

    Hi
    1.  In the 2nd table call the field of the 1st table which is a primary key.
    2.  Give the same field and dataelement name.
    3.  Select that field and then click on the foreign key field icon which is beside Search Help button.
    4. Then give short text, and the 1st table name.
    5. Then in the below box give the 2nd table name and 2nd table field name which you have called from 1st table.
    6. Then click on copy, then u will be able to see Check table name and check table field name beside foreign key table name.
    7. Then again click on copy.
    Regards
    Haritha.

  • Maintenance View for custom table with foreign key relationship

    Hi Folks,
         I have created a custom table with foreign key relationship with other check tables. I want to create a maintenance view / tablemaintenance generator. What all things I need to take care for the foreign keys related fields while creating the maintenance view / tablemaintenance generator.
    Regards,
      santosh

    Hi,
    You do not have to do anything explicitely for the foreign key relationships in the table maintainance generator.
    Create the table maintainance generator via SE11 and it will take care of all teh foreign key checks by itself.
    Regards,
    Ankur Parab

  • Mapping in OWB with primary key and foreign key relationship

    Hi all,
    I am new to this datawarehousing field. I have just started my career. I have to now create a mapping in owb where a table has a field which is a primary key of another table in the same staging area. If you guys could help me out with the a method it can be created that would be very helpful to me.
    I thought of 2 ideas,
    1. If I can use a look up, but then I am not sure if i can use a lookup for primary key, foreign key relationship. If I can use also, I do not know how to use that.
    2. What if I can directly take that the first table and link the primary key of that table to the second table which uses that primary key of the first table as one of its fields.
    I do not know how feasible these methods are. Please guys help me out.
    Thanks in advance.

    I have a similar case where table a and table b having relation but table a got inserted with data and table b is empty so there no values for foriegn key column in table b to realte with table a.
    Now i want to load table b foriegn key with primary key column values of table a.
    how can we do this in owb
    thanks
    kumar

  • Code generation - foreign key relationships

    I'm using the code/descriptor generation tab to generate classes from existing tables. It offers an option of choosing which relationships to generate, but seems to miss out some of the defined foreign key relationships in the database.
    I have three tables, CLIENTS, TXNS and REG
    The following constraints are defined in my database:
    TXN Primary Key: (TXN_ID)
    CLIENTS Primary Key :CLIENT_ID, TXN_ID)
    CLIENTS Foriegn KEy : TXN_ID references TXNS
    REG Primary Key: CLIENT_ID, TXN_ID
    REG Foreign Key: CLIENT_ID, TXN_ID references CLIENTS
    I select these three tables and choose generate classes and descriptors for selected tables. When the "Choose Relationships to generate" screen comes up, it only shows me the CLIENTS<-->TXNS relationship, but not the REG<-->CLIENTS relationship, even though the database foreign key constraints all look as though they've been defined in similar ways.
    thanks for any help.

    Hi Matt,
    I'm not surprised that you have an issue with this. One bugbear I have with Gateway is that for some reason the designers don't think any context beyond the immediate preceding navigation node is important. They don't support this within the same service,so it's hardly likley to work in a service reference.
    I may be wrong but I don't think GW is OData compliant in this respect. If I have the navigation path /blindservice/FromHereSet(1)/ToAPoints(22)/ToBPoints, it's rather restrictive to say I cannot see the initial key of '1' in the path when I am trying to resolve 'ToBPoints'. If that value - where I started - is key to the context, I have to know it.
    Currently the only way to access this context is to embed the 'key history' in the intermediate entities, i.e. /blindservice/FromHereSet(1)/ToAPoints(1,22)/ToBPoints. In my view that is corrupting the URl to suit the limitations of the SAP OData implementation. What's even more confusing/frustrating is that the technical request context appears to be able to store the stacked navigation keys but doesn't make use of this design. 
    I feel your pain
    Ron.

  • Any Orjinal SAP Reports which has currency field and currency key

    Hi Friends,
    I am looking for a report which has currency field and currency key at selection screen. I want to learn how SAP do selection with currency. Can you say a transaction deal with my desire?
    Thanks.

    try report RFSSLD00
    A.

  • Currency Key Reference field in WebDynpro Table Column

    Hi Experts,
    I am using a WebDynpro table (not ALV) showing multiple currency fields in a single row - each one potentially referencing a different currency key e.g. Japanese Yen and USD in a single row.
    My currency context attributes are already defined as currency types, but how can I assign different currency key references to each of my currency context attributes? Or is this somehow done as a property of the table column UI element?
    Thanks for your help,
    Peter

    Hi Kris,
    You answer is very helpful, but I do have a question about going the DDIC route. So you are saying that if I take a DDIC structure into my context with multiple currency keys as reference fields for multiple currency fields, then my WebDynpro context will know exactly which currency key is the reference for which currency field without having do do this programatically as you described? If that's true, can I bring a whole DDIC structure over to the context and then delete the 'Dictionary Structure' refrence from my context node, so that I can add my own additional fields to the context node?  E.g. in the case of DDIC structure VBAP can I get all my currency fields and their reference fields from the DDIC from VBAP and then delete 'VBAP' as a 'Dictionary Structure' from my context node and add my own custom fields. The fields I would have brought in from VBAP still retain their type and everything after the deletion of 'VBAP' as a 'Dictionary Structure', so my question is will it also retain the node_info of what currency key goes with what field?
    Please let me know if you happend to have done this before.
    Thanks,
    Peter

  • Currency key for amount of zero

    I load an ODS and have an amount assoociated to 0currency. When the amount is zero, the currency key is not loaded into ods even though there is a key in source?

    Check the update rules for the object as well as the start routine for any restriction on Zero amount.
    Hope this helps.
    Bhargava

  • Currency key in COPA document

    Hi,
    Do you know how the currency key entered in COPA document is found ?
    The currency key should be equal to document currency.
    For the operating concern view of the COPA document, my currency type is not equal to document currency but to company currency.
    Thank you for help !

    I might have misunderstood your question.  In the summarization tables that are normally used for BW extraction there is no transaction currency available.  You can have transaction currency only at line item level.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/4c38c24a0111d1894c0000e829fbbd/content.htm

  • About field HWAE2  Currency Key of Second Local Currency)

    can anybody tell me that field HWAE2 ( Currency Key of Second Local Currency)
    in which TRANS.TABLE...?????

    it is in BKPF table
    or go to se11, Select data element radiobutton
    type HWAE2 click enter.
    and check for where used list, it will give all the tables assosiated with HWAE2 field.
    regds,
    kiran

  • Currency key for Conversions using NODIM

    Hello Experts,
    I have question related to Currency key.
    I have below mentioned scenario -
    My Report output looks something like this
    Doc No|Doc Value| 500 |USD |
    so KF value and currency key(USD) are in seperate fields(column in Bex Report)
    I seperated them by doing NODIM on KF and including the Currency key in Report.
    The problem arise when I do currency conversion.
    So on the initial Selection screen I gave user an option to run by different currency, so when he select lets say CAD.
    The KF does get converted from USD to CAD but my currency key still remains a USD, whereas I would like to show that one based on what user entered on initial Selection screen(which would be CAD in this case).
    I have searched forum for this but couldn't find proper solution.
    Any guidance is appreciated. Thanks in advance.
    Regards,
    DNP

    Hi friend
    If you are working on UAE, the country grouping have to use is 99. 
    Check with your FI guy that he had assigned the currency AED to your company code.  You can view this in table V_T001.
    When you define the personel area, do give country as AE in table T500P
    You can default your currency as per pays Scale type and Pay scale area in table V_T510F_B selecting country grouping 99.
    I hope this will resolve your problem.
    Regards
    Santhosh.S

  • Query Builder - foreign key relationships not showing automatically

    Is it standard functionality in APEX that foreign key to primary key relationships are not shown in Query Builder when choosing related tables? Do you always have to join FKs to PKs manually (i.e. using control click) whenever you create joins in queries? In Oracle forms and SQL Developer the foreign key constaints are always draw in automatically. Any reason why this is not part of APEX's query builder as well? It's such a hassel to have to put them in each time when the relationships could easily be read directly from the data dictionary constraints.
    regards
    Paul P

    bump...

  • Message no. M8584 ''Enter a currency key'' in MIRO

    Hi Gurus,
    Infact I am facing a warning message while doing MIRO. Just after inputing MIRO header like Doc date, Posting date, Reference and lastly amount field when I press the enter, I get the above cited warning error. Can you please tell me how to remove this warning error message.
    Thanks
    BABA

    HI,
    It sounds like your system is operating according to design. System behaviour changed with note 982645.
    The message always comes if you enter header data into miro BEFORE entering PO number and hitting ENTER. It comes even then if you enter header data and PO but press ENTER only afterwards! This is because the check of existence of currency key in the coding happens before the determination of the currency key from the PO. At the time the data are not determined from the PO, the system cannot know whether there will be  a PO entry as in MIRO you can post also without a PO reference.
    To eliminate the message is to enter the PO first then all other relevant data.
    To get rid of this behaviour please implement SAP Note 1001420. This note just deletes new coding.
    Please assign points if it useful.
    Regards
    Ravinagh Boni

Maybe you are looking for

  • SSO Help - Portal to ABAP via logon tickets

    Hi All, I've done this configuration in the past but it seems that the process has changed a bit and I'm in need of some advice. I have a portal system which I've setup SSO. The SSO is done through Kerberos and the users are pulled from LDAP. Users l

  • I had to re-install iTunes and now when I try to sync/modify apps I can't

    I had to reinstall itunes onto the original laptop I synced my phone to and when I try to remove some apps to provide space for an iOS update, I get the error that "apps installed on iPhone can not be determined".  Help...

  • Missing in /dev/

    Why i haven't /dev/ttyUSB0 and 1 ?

  • Not able to distribute the model

    Hi I created a model using BD64 according to the procedure to the best of my knowledge. But i am getting the following error "Model view has not been updated. Reason: the distribution model is currntly being processed." Nobody else are logged in. Can

  • Help needed for Pie chart rendering

    Hi All, I have a question related with pie chart rendering. I tried this example with manual node creation. This worked fine for me. After that i tried to change using array concept. But i held up with one issue. var mySeq = [50, 100, 75]; var angleS