Derive 'company code' and 'currency'??

Hi there,
I have <b>company cody, chart of account, and currency</b> in my planning level. <b>How can I derive 'chart of account' & 'currency' from 'company code'</b> if I don't like to 'manually' enter 'chart of account' and 'currency' everytime when I enter planning data?
I know that I can use '<b>exit</b>' to do that. Can someone let me know how to use 'exit' to make it work???
Thank you.
J.

Hi John,
You don't have to use any exits for your requirement.
Since <b>Chart of Account (0CHRT_ACCT)</b> and <b>Currency (0CURRENCY)</b> are attributes of the Characteristics <b>Company Code (0COMP_CODE)</b>, it would suffice you to apply the derivation of type "<i>Attribute</i>", provided the master data of the characteristic Company Code is properly maintained.
But, <i>you would take out the characteristics 0CHRT_ACCT and 0CURRENCY out of your planning level, where you want to  automatize the derviation</i> (where you have your planning layout). <i>This is the requirement of characteristics derivation</i>.
<b>The characteristic from which another characteristic has to be derived <u>must be taken in</u> the planning level and the derived one <u>would stay out</u> from the planning level.</b>
<b>You would proceed as follows:</b>
1) Go to change Planning area
2) Select the tab "Characteristic Relations"
3) Choose "type" as Attribute, and use the push button "Detail view"
3) Select there, "derviation, combination check and combination proposal".
4) Choose the baisc Cha. as Company code (0COMP_CODE) and Attribute as Chart of account (0CHRT_ACCT).
5) Go back to previous screen (Characteristic relations)
6) Use the next line and repeat the steps 1-5.
7) Here you would choose the baisc Cha. as Company code (0COMP_CODE) and Attribute as Currency (0CURRENCY).
8) Save the settings.
9) Regenerate your planning layout settings.
And thats it!
Many Regards!

Similar Messages

  • Report sould support multiple company codes and currencies

    Hi Experts,
    I had requirement, my report should support multiple company codes and currencies. Right now it is supporting 2 company codes and currencies(EUR, USD) only. Now the report should support all copmany codes and currencies.
    I had analyzed report. In the report there are class and authorization objects. In this authorization objects, they may be any chances of maintaining company codes and currencies?  This is regarding PS Module.
    Need ur suugestions to solve this issue...
    Regards,
    K. Bharat

    Hi raja,
    Could you share what you had to do to attain this functionality? I have the same requirement.
    Thanks,
    Kiran

  • How to derive Company Code and Vendor Number from CDHDR / CDPOS ?

    Hi everyone,
    This is my first post and my apologies if this is a wrong forum to ask this.
    I'm creating an analytic that will track changes to the vendor master.  I know that I have to look into CDHDR and CDPOS tables and that CDHDR.OBJECTCLAS = KRED.
    However, part of the requirements is to be able to filter the results by Company Code and Vendor Number as well.  How do I do this? How can I link CDHDR to LFA1/LFB1 to get the company code and vendor code?
    Any information will be highly appreciated
    Thanks!

    I think you would have gotten answers sooner in the abap forum :P. Anyways the change pointer tables are kept in a different format, not in the normal flatly structured tables. What this means is that the data which comes through the pointer tables are somewhat encrypted. The object class and id present you records; Each change in master data (where the option is set) is recorded in these pointer tables.
    I believe there is a function module for converting the data into a readable format; that data should have your company code/vendor number in it.  You cannot link the chdr and lfa tables directly- you will need to first convert the data from the pointer tables

  • Deriving 'company code' &'currency' with function module ????????

    Hi all,
    I created a function module to derive 'company code' and 'currency'and use a user EXIT variable for the CURRENCY. And it works.
    My issue is : <b>is there any solution that I can avoid to enter CURRENCY (system will pop up a screen and ask for it) when I enter planning data?????</b> I think that this is because CURRENCY (in the selection)is a dependence with my KF-amount. However, I still want to try if I can make it not show up. Thank you.
    J.

    John,
    Try putting the currency in the header of the layout and then hide it in the header characteristics screen.
    Thanks and regards.
    Rajendra Tewani

  • How to calculate no.of records for a specific company Code and Transaction

    Hi All,
    Could you please help me how to calculate or count no.of records, in a table which are having a specific Company Code and Transaction Code and populate  in an output table displaying that these many records are present for this company code and Transaction code.
    The table is having the data like this:
    LOB   TRAN CODE    COUNT
    X1                             1   
    X1                              2   
    X1                              3   
    X1                              4   
    F1   NB                      5   
    F1   NB                     6   
    F1   NB                     7   
    F1   NB                    8   
    F1   NB                    9   
    F1   NB                    10  
    F1   NB                    11  
    F1   NB                    12  
    F1   NB                     13  
    F1   NB                     14  
    F1   NB                     15  
    F1   NB                     16  
    F1   NB                     17  
    F1   NB                     18
    F1   NB                    19  
    F1   NB                    20  
    F1   NB                   21  
    F1   NB                   22  
    F1   NB                   23  
    F1                          24  
    F1                         25  
    F1                         26  
    F1                         27  
        In the above table there are totally 27 records,where as the no.of records with F1 as company code and NB as transaction code are 18..so i have to display like F1 NB and 18 as one record as output.
    Thanks and Regards,
    Johny

    You can go for Control Breaks for your requirement.
    First sort the internal table by company code and transaction. Declare a counter variable.
    Now loop the internal table and increment the counter variable. within the loop use AT END OF tcode.......ENDAT. Within the control break append the counter variable as well as the company code and tcode to some other ITAB and clear the counter.
    This will give you the total number of records for a combination of co code and tcodes.
    This will be a good reference for your requirement. What I am doing here is, for each Vendor i am calculating total number of deliveries and amounts for that vendor. For every new vendor i am writing the ouput on to a list and clearing the counter variables.
      LOOP AT t_vend_prod_grp INTO fs_vend_prod_grp.
        w_total_delv = w_total_delv + 1.
        w_total_amt = w_total_amt + fs_vend_prod_grp-dmbtr.
        AT NEW matkl.
          w_mat_grp = fs_vend_prod_grp-matkl.
    * To display the material group and the header texts for the data
    * grouped by material group and vendor.
          SKIP 1.
          WRITE:  text-mtk  COLOR COL_HEADING
                                  INTENSIFIED,
                / w_mat_grp COLOR COL_NORMAL
                                  INTENSIFIED OFF.
          SKIP 1.
          FORMAT COLOR COL_HEADING ON INTENSIFIED.
          ULINE  1(54).
          WRITE:/ sy-vline,
                2 text-ven,
               12 sy-vline,
                  text-dlv,
               26 sy-vline,
               38 text-amt,
                  sy-vline,
               46 text-cur,
               54 sy-vline.
          ULINE /1(54).
          FORMAT COLOR COL_HEADING OFF INTENSIFIED.
        ENDAT.                             " AT NEW MATKL
        AT END OF lifnr.
    * To display the actual data for the grouping based on Material group
    * and Vendor.
          FORMAT COLOR COL_NORMAL ON INTENSIFIED OFF.
          WRITE: / sy-vline,
                 2 fs_vend_prod_grp-lifnr COLOR COL_KEY,
                12 sy-vline,
                   w_total_delv,
                26 sy-vline,
                   w_total_amt CURRENCY text-usd,
                   sy-vline,
                46 text-usd,
                54 sy-vline.
          FORMAT COLOR COL_NORMAL OFF INTENSIFIED OFF.
          CLEAR: w_total_amt,
                 w_total_delv.
        ENDAT.                             " AT END OF LIFNR
      ENDLOOP.                             " LOOP AT T_VEND_PROD_GRP

  • Company code and Purchase Org during vendor registration

    Hi,
    I have one enterprise context, with many company codes and purchasing org.
    I am aware that vendor master data is at enterprise level in ESO. However while integrating to backend i need to capture the relevant co code and Purchasing org.
    When the Purchaser wants to create a vendor, there does not seem anyway to enter which Purchasing org and company code the vendor should be created for.
    Need your suggestions for the following options
    1) capture co code and Purchasing org on bespoke fields and then in PI, pass these values to Co code and Purch org resp
    2) create company contexts - would this resolve this? what are the implications if one vendor needs to be extended to multiple co codes
    regards
    Subrote

    Hi,
    Have you imported integration config workbook.
    As part of ECC integartion  guide we have couple of workbook and XML needs to integrated, which will create all the required extension for vendor master and vendor registration.
    Once you imported the integration workbook, you will able to see the company code and purchasing org screens in vendor master.
    Thank you,
    Mani

  • PO creation-ME21n-Why SAP does not check company code and Plant relation

    Hi All,
    Does someone know, why SAP does not check Plant and company code relation at the time of PO creation or how can we put validation between plant and company code at the time of PO creation.
    <b>Example:</b> Suppose i have a company 0001 which is assinged to Plant 0001. when i am creating a PO with another company code 0002(Entering at header level-Org, data) and using Plant 0001 at line item level. SAP does not do this validation.
    How can we put this check in place?
    Thanks in advance.
    Deepak

    Hello Deepak,
    There are three types of purchasing
    - Company code specific :You need to assign company code to Pur organization
    - Plant specific : You must assign plant to pur organization
    - Cross company purchasing: No assignment between company code and pur organization.
    In the case 3, the system will not check company code and plant relationship, but it will check plant and pur organization specific.
    The following is the copy of sap help text:
    You can assign a purchasing organization to one company code. This is company-specific purchasing.
    You can assign a purchasing organization to no company code. This purchasing organization can then procure for all plants assigned to it, irrespective of the company code to which the plant belongs.
    Since each plant must be assigned to a company code, the company code can be determined via the plant in each procurement transaction, even if the procuring purchasing organization is not assigned to a company code.
    A purchasing organization must be assigned to one or more plants. This is plant-specific purchasing.
    Now, check your company-code and purchase organization assignment.
    Hope this helps.
    Regards
    Arif Mansuri

  • Authorization object for company code and profit center together

    Hi all,
    Please help me with the following requirement..
    Company Code = ABCD
    Profit Center = *
    The user is authorized to run the report for company code ABCD only but any profit center within this company code.
    2       Company Code = *
    Profit Center = WXYZ
    The user is authorized to run the report for Profit Center WXYZ only but any company code.
    3       Company Code = *
    Profit Center = *
    The user is authorized to run the report for any company code and profit center.
    The same user could have 1 and 2. So, in this case he should be able to run a report for the total inventory of company code ABCD, and a report for total inventory of profit center WXYZ only regardless company code.
    He should not have visibility to other company codes inventory other then profit center WXYZ.
    Regards,
    Raj

    Hi ,
    Anyone please help me..
    Regards,
    Raj

  • Automatic creation of Company Code and Sales Area Data for Customer Master

    Hi,
    We have a organisation structure setup with multiple company codes and sales areas.
    A customer will be created using VD01 via the Sales Order VA01. Because the customers are created using VD01 we need to automatically extend the customer for the various company codes and sales areas. The data on these views will be populated using reference customers.
    Any recommendations on the best approach (technically) to auto extend the customer master would be appreciated.
    I'm reluctant to use BDC's because of performance. We are in a Retail environment.
    Thanks in advance
    Craig

    The sample code has been taken from the SAP notes - in which have the affected as outlined in the example.
    The codes does not do what my requirements are, which is to identify the next available number in isolation of the BP type.

  • Decimal places adjustment based on company code or currency

    Hi experts,
        my requirement is i have to adjust the decimal places in amount fields of internal table based on company code or currency given by user.
    suppose for example in my internal tables having 5 amount fields like 1.50 1.234 1.45 1.34, 1.67  for  company code is in01
    the same values for VN01 should be like this
    150 1234 145 134  167  ....
    can any body plz tell me any functional module is there to covert or abapcode?
    Thanks in advance,
    veena.

    That code is a bad idea.  Why would you hard-code that type of action for currency/amount handling?
    @poster: If the output is based on the local currency defined for the specified company code or one specified by the user, then use it.  SAP handles amount output automatically with a currency specification because the currency definition identifies where/how the decimal is output. 
    Just use WRITE as Florian indicated but  use the CURRENCY extension instead of DECIMALS.  You can do this dynamically based on the company code easily...
    A simple 3 line program shows you how this works:
    PARAMETERS: p_wrbtr type wrbtr.
    write:/ p_wrbtr CURRENCY 'USD'.
    write:/ p_wrbtr CURRENCY 'JPY'.
    Edited by: Brad Bohn on May 12, 2011 1:07 PM

  • Company Code and Tax company

    Hi Experts,
                 Help me to define what's the difference between the company code and a tax company. Do we have any integration between company code and tax company. I have a scenario with a client where they have only one company code and asking me to define multiple tax companies so that the can generate the W'2 seperately based on the tax company. My concern in this was when we run the tax reporter it will look for the temse files so if we define multiple tax companies with one company code will it effect us any way when we do the w'2 from the tax reporter at the year end.
    Any help is appreciated
    Thanks in advance
    Regards,
    Raj Aitha

    Hi,
    1) Tax Cos are not assigned directly to co.Code. These are assigned to the Personnel areas (Table V_t5uop).
    2) Tax co.is assigned to a distinct Employer Identification Number (EIN) and is mapped to a BSI tax company for tax calculation purposes.
    3) You may also want to check feature UTXRP & UTXTM based on your requirement & business process.
    Hope this helps.
    Sarika

  • Extend customer to multiple company codes and mutliple sales organisations

    Hi,
    Customers with only general info. are getting created from CRM system to SAP ECC. Now we extend the same customer to differnt company codes and different sales organisations.
    When I checked the BADI, CUSTOMER ADDDATA, in this S_KNA1, S_KNB1, S_KNVV structures are there only. So is it possible to extend it to mutiple company codes at the same time.
    It is mostly appreciated for early response.
    Thanks,

    Hi,
    You can use fm SD_CUSTOMER_MAINTAIN_ALL to extend customer to sales are and company code.
    Using this fm you can maintain all customer master data.

  • To get the company code and country grouping attached to a position

    Hi everyone,
    I have a position and I need to get the company code and the country grouping that this position is attached to. Could you kindly suggest an FM or a class which would fetch the above data keeping in mind the inheritance tree. That is, if the company code is not maintained in HRP1008, then it should look for the same in the Org Unit that this position belongs to and so on..
    Any help will be greatly appreciated.
    Regards,
    Alpana.

    Hi
    Check the A011 relationship of the position and get the cost center, from cost center you can get the company code and country grouping from Cost Center Master CSKS.
    ~~~Ganesh Kumar K.

  • Where can I find the relation between company code and plant?

    where can I find the relation between company code and plant?
    I need to the list of plants under a company code.
    Which table?

    yes,wayne weng   .What you said is right.
    Thank you very much!
    My MSN:[email protected]

  • Function Module to get Company code and Plant on the basis of infotype and pernr

    Hi Experts,
    I need to know the function module which will return company code and plant based on infotype and pernr(employee Number).
    Thanks,
    Salil Bagchi

    I think thats the only way
    CALL FUNCTION 'CU_READ_RGDIR'
        EXPORTING
          persnr          = p0001-pernr
        TABLES
          in_rgdir        = it_rgdir
        EXCEPTIONS
          no_record_found = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    check whether "Pay date for payroll result" with in Start Date and
                  End date, and "Reason for Off-Cycle Payroll" is initial
      LOOP AT it_rgdir WHERE paydt >= v_begda
                             AND paydt <= v_endda AND
                             void IS INITIAL
                             AND ocrsn IS INITIAL
                             AND srtza = 'A'.
        v_seqnr = it_rgdir-seqnr.
    ENDLOOP.
    Hope this helps.
    Thanks
    Kiran

Maybe you are looking for