Exp incurred by HO for project where both are diff PCs under a Company Code

The invoice is booked in HO for expense of Project i.e. liability is to be booked in HO (as payments are done from HO) & expense is booked to the project.
Here there is only one company code and HO and project are different profit centers. Please let me know how this scenario can be mapped in SAP.

What's wrong with F_GET_COMPANY_CODE ?  Below is similar code - try running this and seeing what you get:
report zlocal_jc_t001w.
tables:
  t001k,     "Valuation area
  t001w.     "Plants/Branches
parameters:
  p_bukrs          like t001k-bukrs default '1000'.
select-options:
  s_werks          for t001w-werks.
start-of-selection.
  perform get_data.
*&      Form  get_data
form get_data.
  data:
    begin of gt_t001k occurs 10,
      bukrs             like t001k-bukrs,
      bwkey             like t001k-bwkey,
      werks             like t001w-werks,
    end of gt_t001k.
  select
    t001k~bukrs
    t001k~bwkey
    t001w~werks
    into corresponding fields of table gt_t001k
    from t001k as t001k
    inner join t001w as t001w on t001w~bwkey = t001k~bwkey
    where t001k~bukrs = p_bukrs
    and   t001w~werks in s_werks.
  loop at gt_t001k.
    write: /
      gt_t001k-bukrs,
      gt_t001k-bwkey,
      gt_t001k-werks.
  endloop.
endform.                    "get_data
As for links to locally defined database tables, that will depend on what the keys defined in SE11 are e.g. there will be a primary key plus relationships to other tables (for example "WERKS LIKE YSDA_EXP_PRTLOG-YY_PLANT" indicates YY_PLANT relates to T001W).
Jonathan

Similar Messages

  • What is difference between sy-index and sy-tabix and where both are using ?

    what is difference between sy-index and sy-tabix and where both are using ?

    hi nagaraju
    sy-tabix is in Internal table, current line index. So it can only be used while looping at the internal table.
    sy-index is in Loops, number of current pass. This you can use in other loop statements also (like do-enddo loop, while-endwhile)
    SY-INDEX is a counter for following loops: do...enddo, while..endwhile
    SY-TABIX is a counter for LOOP...ENDLOOP, READ TABLE...
    Here is an example from which you can understand the difference between sy-tabix and sy-index.
    Itab is an internal table with the following data in it.
    id Name
    198 XYZ
    475 ABC
    545 PQR.
    loop at itab where id > 300.
    write :/ itab-id, itab-name , sy-tabix, sy-index.
    endloop.
    My output will be :
    475 ABC 2 1
    545 PQR 3 2
    Sy-tabix is the index of the record in internal table.
    sy-index gives the no of times of loop passes.
    So, for the first record in the output (475 ABC), 2 is the index of the record in internal table and as it is first time loop pass occured, sy-index value is 1.
    Regards,
    navjot
    award points

  • [svn] 3519: Fix typo in error string for situations where there are advanced messaging configuration settings from LCDS used in the configuration files but no AdvancedMessagingSupport service .

    Revision: 3519
    Author: [email protected]
    Date: 2008-10-08 04:17:40 -0700 (Wed, 08 Oct 2008)
    Log Message:
    Fix typo in error string for situations where there are advanced messaging configuration settings from LCDS used in the configuration files but no AdvancedMessagingSupport service. The error string said that there was no flex.messaging.services.AdvancedMessagingService registered but it is the flex.messaging.services.AdvancedMessagingSupport service that needs to be registered.
    Add configuration test that starts the server with a destination that has the reliable property set which is an advanced messaging feature but there is no AdvancedMessagingSupport service registered.
    Modified Paths:
    blazeds/trunk/modules/common/src/flex/messaging/errors.properties
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/error.txt
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/services-config.xml

    Hi,
    Unfortunately I already tried all kinds of re-installs (the full list is in my original message). The only one remaining is the reinstall of Windows 8 itself, which I would really like to avoid.
    What I find really strange is the time it takes for the above error message to appear. It's like one hour or even more (never measured exactly, I left the computer running).
    What kind of a timeout is that? I would expect that, if ports are really used by some other application, I get the message in less than a minute (seconds, actually). To me this looks like the emulator itself for some reason believes there's a problem with
    some port while in reality there isn't.
    I'll eventually contact Microsoft Support, thanks for the suggestion.

  • Multiple currencies under one company code for contracts

    Gooday!
    We have a new schenario ( In RE-FX) where we have a couple of contracts which were negotiated with the landlord that needs to be settled in Rand, whilst the company code are setup for another currency, which is dollar (caters for the bulk of the contracts). So each time you create a new contract the currency is already greyed out (Dollar), which obviously means that it cannot be changed there.
    Apparently the company code can be setup in FI to accommodate secondary currencies, however, this seems not to be the case in RE-FX.
    My question is this, is it possible to have multiple currency contracts under one company code in RE-FX, and if so, do one set it up in FI or RE-FX?
    Any assistance would be greatly appreciated!

    Conditions in Foreign Currency (New)
    As of SAP ECC 6.0, Enterprise Extension Financials, Enhancement Package 2 (EA-FIN 602), Business Function Real Estate (RE_GEN_CI_1), you can enter conditions for contracts, rental objects, or contract offers that are in a currency that differs from the local currency of the company code.
    You can enter the currency directly when processing conditions. You can also enter a currency translation rule in the posting term. The rule is then used for all conditions to which this posting term is assigned.
    You specify in Customizing which currency translation rules are allowed for each contract type and usage type.
    See SAP Note 123819.

  • Where we assign Exchange rate type at company code level,

    Dear All,
    Where we assign Exchange rate type at company code level, In 0BA7 we assign by Document type wise and OB22 will assign by controlling area wise , but we are not maintain Controlling area, exactly where we assign , and how it will pick at the time of PO creation ,
    Thanks in advance
    Vijay

    Hi,
    In OB22 we assign Exchange rate type against company code and not against controlling area .
    Regards,
    Shayam

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

  • Urgent: Maintain std cost for plants under different company codes

    Hi all,
    Company code(s)/Plant(s): C1/P1, C2/P2, ..., CnPn
    BOMs and Routings are maintained under P1. I believe that unlike BOM routing can't be made available across plants. So how does one maintain std cost across plants under different company codes?
    Thanks.

    Hi,
    You have to maintain individual BOM, Routing and varaint for all plants.
    Best Regards
    Ashish Jain

  • Am I billed for periods where there are no events?

    Assume I have a dev/test scenario where there are long periods of time when I'm not actively testing my code. If I have running jobs waiting for input and there are no events, am I billed for that time?

    There are two meters for which your Stream Analytics gets billed [1]
    (1) Data ingressed by your streaming job
    (2) CPU memory used by the running job
    http://azure.microsoft.com/en-us/pricing/details/stream-analytics/
    So if you are not sending any events you will not be billed for (1) but you will still be billed for (2) since you have a streaming job that is allocated and running.
    You will have to STOP your job in order to avoid getting billed at all
    Thanks
    Zafar Abbas

  • Settings for the new plant under same company code

    Dear all,
    As I am into the roll out project. I need to know the necessary configuration settings from FICO (FI and Contolling Settings) point of view.
    I need this very urgently. If u have any documentation with regard to the same, u can forward to my mail id  [email protected]
    Input will be of great help and rewarded too.
    Thanks
    Niha

    Hi Neha,
    please follow the follwing steps relating to new plant in all madual.
    Steps needs to be configured
    1.New Plant to be created (Copy the new plant from the existing Plant)– Configuration
    2.Create Plant as Location - Configuration
    3.Define Shipping Point- Configuration
    4.Transport Planning Point Description to be changed – Configuration.
    5.Create a new Profit Center – Master Data
    6.Create a new Cost Center – Master Data
    7.Cost Center allocation to Shipment Cost – OKB9 – Configuration
    8.Assign Business Area to New Plant – Configuration
    9.Assign New Plant to Sales Organization & Division - Configuration
    10.Update all the GLs related to the new Plant. Default assignment to a Profit Center - 3KEI – Configuration
    11.Update Table J_1IT030K_V for Indian Tax Account Determination. - Configuration
    12.Account Assignment Category – VKOA – Assign GL Accounts to Sales Org/AcctAssgGr/AcctAsgnmt/Plant/Acct Key – Configuration
    13.Maintain Excise Registration for New Plant- Configuration
    14.Maintain Plant settings for New Plant- Configuration
    15.Maintain Excise Group for New Plant- Configuration
    16.Define GL Accounts for taxes – Configuration
    17.Specify GL account for Excise Transaction- Configuration
    18.Create all Inbound and Outbound Routes for new Plant –Configuration
    19. Assign new plant to company code.
    Please note that the above steps are for new plant by copying the existing plant and modification. If you define a new plant without copying the existing plant lot of steps are involved.
    as per FI/CO part point nos 5 to 8, 10 to 17.
    Hope this will help u, please assign the points if its helpful.
    please cheek your mail i have sent the material.
    regards
    sai krishna

  • PO for Plants belonging to different Country under same Company Code

    Hi,
    We have created a Company      1000 (Country u2013 India)
    We have created two Plants 1001 (Location - Delhi, India), 1002 (Location - United Kingdom).
    We have created a pricing Procedure      ZDOMES & ZIMPOR for Domestic & Imports Procurement.
    We have created a Tax Code V0, Country IN.
    We have tested the Procurement Cycle for Plant 1001 (Location - Delhi, India) and it is working fine.
    For Plant 1002 (Location - United Kingdom) what extra configuration do I need to do? Can we use the same pricing Procedure, Tax Code?
    Please advice.
    Regards,

    Thanks for the reply.
    Here in our scenario, we have created only one Company Code and one of our Branch is in UK.
    we need to create only One Company Code & Branches (Plants) in Delhi & UK
    Please suggest .
    Regards,

  • Why can't I have the Windows Media Player plugin in firefox? Why is that there is a page maintained on Mozilla that links to some port25 for plugin whereas other are available directly from firefox?

    I am sick and tired of going to 3rd party websites and install plugin that have malware and virus. Need to have this Windows Media player plugin from Firefox directly.

    Thanks, but again, I'm either missing something or Firefox is being finicky. I play videos on Apple.com just fine thru Firefox, so the QuickTime plugin is apparently working. Of course, I didn't try every video on Apple.com so it's possible I picked the few that worked. And with some serious massaging I've actually been able to get Firefox to play low resolution .mp4 videos. Videos rendered at 256x144 display in the HTML5 video player in Firefox. Videos rendered at resolutions greater than 256x144 do not display in Firefox. At least, these are the results I'm getting....I suspect others may be getting different results.
    This isn't a file size thing because a 512x288 .mp4 video is actually less than 1/2 the size of the lower resolution 256x144 .mp4 video, and yet Firefox does not display a 512x288 .mp4 video.....again, for me anyway. This is beyond confusing, but thanks for the suggestions. You are correct - Firefox does NOT support .mp4 videos (most resolutions) in the HTML5 video player....for some unknown reason!

  • COGS Value showing as null for Projects

    Hi All,
    We have a report called Revenue Report. In this report we track the revenue and cogs value for both OM orders and Projects. We are able to see th cogs value for OM order(i.e. sales order)but not for projects. We are using OOTB out of box mapping(i.e.SDE_ORA_GLCOGS) for populating cogs value.So we have approached oracle team to address this issue. Please find the below reply from Oracle. Can somebody help me how to calculate COGS value for projects.
    BIApps 7.9.6.x do not support the integration of Project and COGS out of the box. If you have cogs trx from Projects and would like to extract these trx, you can customize the SDE sql.
    [OOTB sql in SDE_ORA_GLCOGS]
    WHERE
    MMT.TRANSACTION_TYPE_ID IN (15, 33, 10008) AND
    (MMT.TRANSACTION_ACTION_ID,MTA.ACCOUNTING_LINE_TYPE ) IN
    ((27, 2), (1, 36), (36, 35))
    MMT : MTL_MATERIAL_TRANSACTIONS
    MTA : MTL_TRANSACTION_ACCOUNTS
    15 = RMA Receipt (Return Material Authorization)
    33 = Sales order issue (Ship Confirm external Sales Order)
    10008 = COGS Recognition
    (27, 2) = (Receipt into stores, Account)
    (1, 36) = (Issue from stores, Deferred Cost of Goods Sold)
    (36, 35) = (COGS Recognition, Cost of Goods Sold)
    These are OOTB default values to extract the cogs trx for sales order etc. These are configurable. You can add/modify these values as needed. You can check the OLTP MTL module for the meaning of each values

    Please do not post duplicates -- COGS Value showing up as null Projects

  • Performance Based Equipment Document for Projects

    Dear All,
    We are implementing Performance based equipment process in ETM module. We want to create PBE document for projects where we want to enter the WBS against each line item in PBE document.
    Currently we are able to create the recipient with reference type WBS where we assign WBS element and the same we are assigning in the PBE document to populate the WBS in PBE document. Here the issue is, we have to create the recipient for each WBS element to create the PBE document as WBS element will get populated for  the recipient. We are not able to enter the WBS element directly in the PBE document as it is in non editable mode in the screen.
    Could any body suggest how to enter the WBS element directly in the PBE document without the reference of recipient as we have thousands of wbs elements and creating recipient for each wbs element is not feasible.
    Thanks and regards,
    Basavaraj

    Hi,
    There are multiple questions in your query.
    1. You have to define a counter for finding the performance based maintenance
    2. Measurement document needs to be updated regulary by putting the counter reading.
    3. Call objects will happen based on Plan and scheduling Or deadline monitoring by considering the updated measurement reading.
    4. Running Deadline monitoring is based on frequency of the calls needed. may be daily or weekly or monthly (Example: Every week  maintenance  (Week time interval calls) for an equipment needs atleast weeky once deadline monitoring)
    Thanks
    Siva

  • No reservations relevant to MRP exist for project

    Hi all,
    While doing MRP for WBS through MD51 i have got an error " No reservations relevant to MRP exist for project " . I am not getting where the problem is occurs.
    Regards,
    Swapnil Vaidya

    Dear .
    1.Please check wether in your project builder(CJ20N) Project Status is REL  and  Procurement Type is  :Reservation for WBS element . then it will not create this masg.
    2.Check whether MRP run date is after the project start date as well as the WBS element is also with in the time frame
    3.Check the material master parameters(MRP1-MRP4 view ) for Project material which are to be planned by that Project WBS .
    Check and revert
    Regards
    JH
    Edited by: Jiaul Haque on May 1, 2010 2:27 PM

  • APIs for Project Events and Project Invoices

    Hi All,
    Can anyone tell me the APIs for creating project events and project invoices.
    any help will be greatly appreciated.
    Thanks
    gt1227

    Hi
    go through the below link, all API for projects API's are listed
    http://docs.oracle.com/cd/B12190_11/current/acrobat/115pjapi.pdf
    Thanks
    Krishna

Maybe you are looking for