Hr abap report related to company code

Hi friends,
can anyone suggest me or send me related report.
my requirment is  that i have to give company code  and date , then i have to display personel area and personal subarea and  no of employee in each division.
please help.

Not sure what date you are looking for.  But here is something really basic that might work.  This is not 100% complete code so you might have to fill in some gaps.
Step 1. Create a program using logical data PNP.  This is the standard logical database for PA reporting.
Setp 2.  The following are the key pieces of the code you will need:
infotypes:  0001.
types: begin of ty_data,
             bukrs like p0001-bukrs,
             werks like p0001-werks,
             btrtl    like p0001-btrtl,
             count type i,
          end of ty_data.
data: t_data type standard table of ty_data,
        w_data type ty_data.
start-of-selection.
get pernr.
   rp_provide_from_last p0001 space pn-begda pn-endda.
   IF pnp-sw-found = 1.
      move: p0001-bukrs to w_data-bukrs,
               p0001-werks to w_data-werks,
               p00001-btrtl  to w_data-btrtl,
               1                 to w_data-count.
   endif.
end-of-selection
Step 3.  Write code to output your data.
Hope this helps,
Chris H.

Similar Messages

  • 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]

  • Error relating a company code to a valuation plan

    Hello,
    I am trying to relate my company code to a valuation plan in OAOB transaction but it appears the error AC551. I have checked it and I don´t know where could I enter the value for VAT indicator for nontaxable transactions.
    Could you help me with this issue?
    Thanks a lot!

    Hello
    The result of the check of company code  shows that important global
    parameters from Financial Accounting are missing for Asset Accounting.
    One or more of the following fields are affected:
    Currency
    Chart of accounts
    Fiscal year version
    Input tax indicator for non-taxable transactions
    You cannot use the company code for Asset Accounting without this information.
    Please check input tax code for non-tax relevant postings
    (for example depreciations) can no longer be maintained via
    IMG -> Fin. Accounting -> Asset Accounting
    Maintenance is done via the IMG using the following path:
    Financial Accounting -> Financial Accounting Global Settings -> Tax on
    Sales/Purchases -> Posting -> Allocate tax codes for non-taxable
    transactions or transaction OBCL. Note 47055 is for your reference.
    regards
    Ray

  • How to schedule one report for multiple company code?

    How you can schedule reports in BW 3.5? Suppose I need to schedule one report for multiple company code, how can you do that and notify the users? I do not want to send multiple emails to the same user if the report runs for 20 times (for 20 different companies).
    points are given for ASAP replies.
    Thanks in advance
    Peter

    Dear Peter,
    Try to restrict the Company Code with  those 20 values and schedule.
    Regards,
    Ramkumar.

  • Consolidated HR report from 2 company code

    Hi ,
    How can we extract consolidated HR  report from 2 company code
    Rex

    Hi,
    What kind of report you are talking about? If it is employee master data report (Flexible employee data) then enter company codes in multiple selection dialog by clicking on the multiple selection button in front of company code selection option.
    Regards,
    Waqas Rashid

  • How to upload company code data related to Company Code BP01?

    How to upload company code data related to Company Code BP01 FOR CIN?

    Hi,
    First check whether all the pre-requisites are completed.
    I'm assuming you have installed the Best Practices Baseline package (for country IN). If you have succeeded in actvating the buildig blocks (as per your scope) using Solution Builder, you would have populated all the company code data related to Co. code BP01. Looks like some steps are missing.
    Please refer to the OSS note 1408706 in this regard. From there, you also can refer to the "Quick Guide to Implementing the SAP Best Practices Baseline Package V1.604 (DE), which is self-explanatory. 
    Let me know if this helps.

  • 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

  • Report painter,cross company code transactions

    Hi Masters,
    1,  Please send material of  REPORT PAINTER ?
    2,  Please  Send material of CROSS COMPANY CODE TRANSACTIONS
    3.  Please send material of  FUNCTIONAL SPECTS
    my  mail id [email protected]
      Thank you friends

    Hi,
    Hi,
    Cross-Company-Code Configurations
    Step1: T Code: OBYA
    We have to maintain Receiver Company Code as Customer in Sender Company Code and Sender Company Code as Vendor in Receiver Company Code. Then problem will be solved.
    Step2: T Code: OB60
    There you can find 4 line items, Copy all the 4 Line Items using Copy As button and customize to your company code.
    Cross-Company-Code Transactions
    1. To Change Cross Company Code Document: T Code: FBU2 - Change
    2. To Display Cross Company Code Document: T Code: FBU3 - Display
    3. To Reverse Cross Company Code Document: T Code: FBU8 - Reverse
    regards,
    Santosh kumar

  • 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

  • TEM : Report based on Company Code.

    Hi All,
    We have a requirement where the client want to have the report of the training conducted based on the Company Code.
    Please let me know your suggestion.
    Thanks & Regards,
    Deb

    Hi Rohini,
    What he wants is to have a list of training programmes conducted under any company code.
    If you have some inputs then please share.
    Regards,
    Bhupesh Wankar

  • FBL3N- Abap error for new company code

    Hello Forum,
    I have created a new company code and created few GL accounts in My Test system. However when i try to run this report FBL3n it gives a runtime error.
    Runtime Errors         CALL_FUNCTION_NOT_FOUND
    Except.                CX_SY_DYN_CALL_ILLEGAL_FUNC
    Date and Time          02/11/2014 11:13:48
    Short text
         Function module "LINE_ITEMS_GET_GKNOT" not found.
    However it works fine with other company codes and report is executable and displaying the values properly.
    Any help is apreciatable
    Thanks
    David

    Hello David,
    Please go through in the below link which is already answered for your query.
    http://scn.sap.com/thread/1859902
    Yes, you are correct there is no  Function module "LINE_ITEMS_GET_GKNOT" with this name. PFA the screenshot for your easy reference.
    This is because of spelling error. Correct FM is LINE_ITEMS_GET_GKONT
    Please  follow the below given steps to correct the FM Name spelling error.
    Go to FIBF ---> Settings tab ---> Choose P/S Modules ----> Of a Customer ---->
    Event: 00001650
    Product: ZFBLOFF (which has been created in the previous step)
    Function Module: LINE_ITEMS_GET_GKONT
    Modify GKNOT as GKONT by choosing the correct line entry and then save.
    I hope it will resolves.
    Thanks & Regards,
    Lakshmi S

  • Report FI-AA & Company code 001

    Hi,
    I would like to know is there any possibility do not obtain by default the company code 0001 in FI-AA report?
    Company code 0001 is not assigned to a chart of depreciation so we do not understand why the system fillin automatically the field BUKRS with the company code 0001.
    And of course, I don' want to delete this company code from my configuration in FI-GL.
    Thanks for your help,
    Cheers
    Karim

    And of course, I don't want to delete this company code from my configuration in FI-GL.
    Why not?  It's not sacred...  If it's not a valid company value for a customer it shouldn't be in the system.

  • Report GR55 - add company codes

    Report GR55...  Hello !  the company codes in my company filed are missing, how knows how to add the company codes in my reports?
    the layout is not good now?
    Thank you !

    Hi,
    This is SAP Business one reporting and printing forum. Please find correct forum and repost your discussion to get quick assistance.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Relation Between Company code Business Area,Cost centre etc

    Hi Experts,
    Can anybody tell me How the following are related to each other the same is mentioned below.
    1.Company Code
    2.Business Area
    3.Profit Centre
    4.Cost Centre
    5.Cost elements
    AR

    Hi,
    Follow the Link, I think it may help you
    [http://wiki.sdn.sap.com/wiki/display/ERPFI/BuldingBlocks(Masterdata)ReleventtoControlling]

  • While pgi there is date error related to company code?

    I created a sales order and transfer order, then trying to post goods issue, I am getting this issue
    "Good movement: Error log
    Item         Material        Description            Delivery qty    UoM   Batch
    000010    E M7 053        adafdfasd                        10       PC
                   Posting only possible in periods 2002/11 to 2002/10 in company code 1000"
    Could anybody tell, where to change to solve this problem?
    Fully rewarded.
    Thanks,
    Manohar.

    Hello
    Follow these steps for the resolution of your query.
    <b>Step 1:</b>
    Check the t-code 'OMSY'
    As to what is the period. also see in controlling are what type period schedule u selected...
    In the t-code, select the the year and period  for your company as 2007 amd 01.
    <b>Step 2:</b>
    Next in the using the t-code 'MMPV' close the period for your company by entering the company code and the current date.
    Once these are done, you would be good for posting in the current period.
    Regards,
    Gauravjit.
    Reward points if the solution is helpful

Maybe you are looking for