Intractive alv report while adding coloums of cost element of G/L account

Hi guys,
i have a proble with interactive alv report.
i did all the things. its working fine also.  now they r asking me to add some coloums
which are from COSP-KSTAR this is cost element.
i need to ristrict perticular cost element according to the company code and fiscal year.
i don't know how we can take the cost elements and how to pass them.
plz any of u help me to come out of this problem.
Thanks & Regards,
Lakshmi..

so   ,  write   a   select   query to  table   cosp   in to it_cospt   internal table  .
where  condition   
WRTTP
VERSN
GJAHR .
the  above   should   hard coded the  data   by asking the   Function consultant   like  version  &   value type   .,
then    loop at   your   final  internal table    .
read table   of   it_cospt   where   gjahr  =  gjahr 
IF   final-KOSTL  CA   it_cospt-OBJNR .  for Costcenter  validate
because  it stores the  Costcenter  only in the   COSP-OBJNR   , IF you check table data in BSEG  and  COSP  , even AUFNR ( Internal order )  also  to the same  field . so that   the   cost center  gets validated   in the  if  condition   ,   for your information  if they ask   you costelement  then  it  include  internal  order also  if  you want   ask question to  you FI consultant   about   cost center  and  Internal order difference ***************
<b>move all  your  fresh  data  to  your  new  internal table       your   it_cospt-KSTAR    </b> data  also.
<b>append   new  internal table  </b> .
Elseif final-AUFNR  CA   it_cospt-OBJNR .  for INTERNAL ORDER  validate
b]move all  your  fresh  data  to  your  new  internal table       your   it_cospt-KSTAR    </b> data  also.
<b>append   new  internal table  </b> .
ENDIF
**********like   that  for   project  id    if there is any   PS module  integration data then .********************
so that your  new  internal table will have all  data   including  cost element   also .
now after this   , loop you new  internal table  
hide technque   for drilldown.
Regards  ,
Girish
regard ,
Girish

Similar Messages

  • Avoid splitting of columns ALV report while download output to Excel sheet

    Hi friends,
                  I have 170 columns in my ALV report
    while downloading the report to Excel sheet
    the column descriptions and values are splitting in two lines.
    How can i avoid the problem.
    before calling REUSE_ALV_GRID_DISPLAY function module in my code
    for the Layout i assigned LS_LAYOUT-MAX_SIZE = 1023.
    but still the problem is not solved.
    Please help me in this Issue.
    Thanks in Advance,
    Ganesh

    Hi friends,
    I dont want to use and Keyboard shiftcntrl....
    or dont want to change any code in ALV report
    by simply assigning some value to any of the export parameter in ALV function module
    can we achieve the functionality
    Thanks in Advance,
    Ganesh

  • Increasing the font size of an ALV report while printing it.

    The requirement is to increase the font size of an ALV report while printing it. The ALV Report is coded using the Factory method.
    I could find a class called CL_SALV_ITEM with a SET_FONT method but I am not sure how to link it with the CL_SALV_TABLE class from which the display table has been created. I even tried checking the report display in SPOOL transaction SP01.But I guess the font shown there depends on the SAP GUI settings.
    Do you have any suggestions?
    Thanks and regards
    Sathya

    The status bar is a fixed fontsize which does not change. While I have no problem reading the time off the status bar you should also have the time on the lockscreen and/or glance screen with a much larger font so I do not really see the issue.
    I have all my music on SkyDrive so would not know for sure, but check out THIS to see if it serves your needs.
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • Webi report on OLAP Bex query -  Cost element Hierarchy not working Drill down

    Hello,
    We have a BO report on Bex query, Not on universe, we have a Hierarchy for Cost Element Group, and we are expecting the Drill down functionality for that in BO report, but it does not.
    Webi report on OLAP Bex query -  Cost element Hierarchy not working Drill down
    Any pointers how to do it please
    Thanks
    Krishna

    Hi,
    WebI reports on BEx source don't use same Drill feature as other sources, it's replaced by expland/collapse of hierarchy nodes (documented in WebI user guide in § "24.1 Drill defined"). This means you have to create query which selects all hierarchy sub-tree you plan on exploring later in report, otherwise if no data is available under a node there will be no '+/-' sign to visit this part of tree.
    You could try first to select "All members" from hierarchy in QueryPanel and see if behavior in report suits your needs. Then you should restrict hierarchy member selection to what's really needed to avoid performance issues.
    Regards,
    Loic

  • Error while creating/changing/desplay cost element

    Gents
    Need urgent help. I am getting a below error while creating/changing/Displaying the cost element.
    Table CI_CSKB is not an active table
    Message no. AD 228
    Kindly help me to get the resolve this issue.
    Thanks and Regards
    Vinay Thakre

    hi
    In Cost Elements (Data is Dependent on Controlling Area), please go to extras and check your controlling area while creating the cost element, and make sure if u r creating Primary CE, it has been created as a G/L account and also make sure you use correct CE Category.
    Thanks
    plz award points if helpful.

  • Report Painter Report - Leading White Spaces in Cost Element

    When calling up a report painter report, e.g. S_ALR_87013613, with cost element characteristic in Office integration/Microsoft Excel as output parameters, the cost element (row item) is indented with white spaces.  The number of white spaces seems to be in relation with summation levels (sub-totals) visible in the left panel.  For some cost centres that only have limited transactions, such as no posting to salary account group, there are less levels of summation, meaning less leading white space in cost elements.  Is there any way to eliminate or have a fixed number of leading white spaces in cost elements? 
    We export the report to Excel worksheet for further processing.  VLOOKUP function is used to read the cost element into another workbook.  The inconsistent number of leading white spaces creates a problem for the formulas to work properly. 
    Any suggestion is appreciated.
    Regards,

    Hello,
    There are different ways of downloading the report to excel. One option is
    System ==> List ==> save (to local file)
    Please try with other options.
    If still not working, then the work around would be
    You can put ctrl+H (replace all spaces)
    Then text to columns
    Hope this works.
    Regards,
    Ravi

  • Cannot view report for postings done to cost elements - ke5z

    Hi,
    i'm trying to view the postings that I made to cost elements. I was able to view them when I check it at for the costr centers (gr55), however I'm unable to run the report for the assigned profit center in ke5z.
    The warning message was
    Insufficient selection parameters (even after I entered the required fields version, CO area, Co code, posting prd, fiscal yr)
    if I proceed further, the error message that pops up is
    Diagnosis
         No data could be found in the database to match your selection criteria.
         The data might already have been archived.
    Procedure
         Check your entries or choose datasource "archive".
    I'm not sure what this is. please help.
    Thanks

    use the below transaction code
    S_ALR_87013611 - Cost Centers: Actual/Plan/Variance

  • Manual/Autometic creation of cost elements in chart of accounts field

    Dear Friends,
    While creation of Chart of accounts (OB13) under  Controlling Integratiion tab
    thers is two options are there.
    1 manual creation of cost elements
    2 autometic creation of cost elements.
    While creation of cost elements if we select
    (MANUAL CREATION OF COST ELEMENTS) what will happen???
    (AUTOMETIC CREATION OF COST ELEMENTS) what will happen?
    What is the main difference between about two fields?
    Thanks in advance,
       Mallika

    Hi,
    MANUAL CREATION OF COST ELEMENTS -  Cost elements maintained manually. A push button is available for
    this purpose, with which you can go directly to the related cost
    element.
    AUTOMETIC CREATION OF COST ELEMENTS - Cost elements maintained automatically. When you save a new G/L
    account, the related cost element is automatically created. A prerequisite is that a default value for the cost element category
    has been set up for this cost element. If no default value is found, the system will not create a cost element.
    You can make default settings via :
    Cost Element accounting --> master data --> cost element --> automatic creation of primary and secondaru cost element --> make default settings
    Dhara.

  • Cost Element and Profit center accounting

    hi to all,
    in my production system,  most of  PL accouts have been created as cost element. but some revenue and COGS accounts have not been created even there existed transaction data.
    now i want to create all PL accounts as cost elements. revenue (category is 11) and COGS(category is 12) accounts link with Logistic, so i am not sure the effluence in the auto posting with Logistics.  if there is any problem?
    by the way, after create all PL accounts as cost element, i want all the transaction data for PL account can flow into profit center accounting because i want to generate profit center PL report.  what shoul i do?  set the profit center field mandatory or set Substitution? or some more reasonable solutions ?
    expect your valuable suggestion/
    thanks in advance
    Ivan

    Hi,
    After creating P/L accounts as cost element when ever you will post to that account it will ask for posting to true CO object it can be a real cost center, real internal order or profitability segment etc.
    If you want all P/L account to post to profit center,  you can  set profit center field mandatory and you can enter profit center  manually.If your CO account assignment  is cost center System can also derive profit center from cost center master data.and OKB9 is more option which u can make use of.

  • How to find cost element group linked to account number

    Hi all,
    I have following scenario.
    I have account number and i want to find out it's cost element group.
    In t-code KAH3 when i enter cost element group i get all the account number in that group.
    But the problem is that i have account number and i want to find out in which cost element group this
    account number belongs.
    Is there is any fuction module from which i can get cost element group from account number or from which table i can fetch cost element group depending upon the account number.
    Thanks in advance.
    sachin

    hi,
    check this function module.
    BAPI_COSTCENTERGROUP_GETDETAIL
    table - SETLEAF.

  • Statistical Cost Element for B/S accounts related to inventory - HELP

    Dear Gurus,
    I need to create a CE type 90 for my inventory accounts. In SAP help it says
    "System Response
    Balance sheet accounts cannot be created as cost elements in cost accounting, except for:
    Asset reconciliation accounts
    Material stock accounts for valuated sales order stock for sales orders or projects."
    For assets tcode OAK7 can be used after maintaining relevant accounts in AA -> Integration w/GL -> Assign G/L accounts.
    How do I do the same for material stock accounts (which are B/S as well)?
    Thank you in advance!
    Ciao!
    Max

    Hi,
    In SAP the cost element category is pre set to 90 for all Balance Sheet Accounts.
    Hence you cannot create cost element with category 90 for any Balance Sheet account.
    Award points if found useful.
    Regards,
    Satish Pasumarthi

  • When not to create cost elements for P&L accounts? Implications?

    I noticed some P&L gl accounts are not created as cost elements eg. R&D expense, COGS (posted during SD delivery), sales (posted during SD billing), freight charges, production variance (posted during prod.order settlement), etc.. I'm thinking if cost elements are not created, FI and CO will not reconcile.
    Example of our SD delivery posting :
    Debit   COGS (sales order assignment)
    Credit    Stock
    From above posting, there is amount posted to COGS gl account but no CO assignment except for sales order. Is there supposed to be a follow-up to this posting to reconcile FI with CO ? Or is our setup wrong?
    Fyi we do not use CO-PA.
    Thanks in advance.
    Edited by: Pixel8 ation on Aug 3, 2010 5:16 PM

    Hi,
    Sorry, I probably confused things by mentioning Revenue. Your settings are correct, with Revenue defined as a revenue element (11) rather than a cost element (1).
    With respect to WIP (P&L), I would create it as a cost element, since it represents the absorption of cost centre costs and materials into the production of goods, even though the goods are not yet complete. When the goods are completed they will be credited in CO-OM and debited to stock using a similar entry. The impact of these credits (to WIP or to Stock) is to move costs out of CO-OM into the goods produced (CoGS). In CO-OM, the net result of Costs less credits to WIP/Stock, indicates the efficiency of your cost centres or the accuracy of your standards.
    I would also create the manufacturing variance accounts as Cost Elements and settle them back to your production costs centres (or possibly CO-PA if you used it), since they are also a reflection of the efficiency of your cost centres - i.e. if a Cost Centre manager is not achieving the standards, (s)he should be accountable for the variance, and if you are concerned about reconciling CO-OM and the costs in P&L, you won't reconcile if the variances aren't posted back to CO.
    Regards,
    Marc

  • COST ELEMENT FOR G/L ACCOUNT [KA01]

    HI,
    KA01 GIVES ERROR
    COST ELEMENT:  SILT
    VALID TO XXXX VALID FROM: XXX
    eRROR: CREATE G/L ACCOUNT SILT FIRST.....

    Hello,
    You need to create a G/L account first. Create a G/L account with transaction code FS00 and give this account as the cost element in cost element creation (KA01).
    If you have any doubt then check the existing cost elements in the system and check the G/L account and try to replicate in FS00.
    Prase

  • Few columns in ALV report while printing move to next page

    Hi,
    While printing, 14 columns are printing in first page and the next 5 cols in next page, how do u resolve this to accommodate all the 19 columns in a single page?
    Regards,
    Chitwanjit Singh

    Hi Chitwanjit,
    You can optimize your coloumn width in the layout like -
    gd_layout-colwidth_optimize = 'X'.
    May be this will help.
    Thanks and Regards,
    Nidhi Srivastava

  • Error while Adding Profit Center Data element to Data Model of MDG-M

    Hello gurus,
    Can any one help me in adding profit center filed (Data element) to zztable, basically want to use the Data Element (PRCTR).
    Getting error" There is an attribute with data element assigned that refers to a check table. Besides the client, the check table can only have one key field that corresponds to the attribute.
    Regards,
    Mandapati

    Hi Mandapati,
    looks like you are assigning data element in existing attribute or you are assigning data element more than once.
    Try to create a new attribute and then assign the Data Element (PRCTR).
    Go to General Settings-> Data Modeling-> Edit Data Model.
    Select your datamodel( note that it should be MDGM data model. For MDG the MDGM data model is called MM. We can only add pre-delivered SAP ERP material master database field to an MDGM entity as an attribute)
    Select the entity types and then the attributes subdialog.
    Create a new attribute and assign a data element. The system then derives the properties, field labels for the attribute
    Regards
    Goutham Kanithi

Maybe you are looking for

  • Can not fiend  the payment run 02.09.2009 in transaction F110

    Hello Experts, Can you solve following problem - We have a problem where the end user can not fiend  the payment run 02.09.2009 in transaction F110 Tha payment run has been executed and document is shown in log SM37, But payment is not med....further

  • Problem running report

    Here is the error we are getting after trying to run a newly created Oracle Report on DEV Portal. All of the old reports are still working, but any report added new doesn't work, and all with the same error: SQL-6502: ORA-06502: PL/SQL: numeric or va

  • Can I shuffle within a playlist?

    I have many gigs of different kinds of music on my iPod touch. What are the limitations of shuffle? I know iPod doesn't recognize folder 'categories' of music, like classical, jazz, etc. But am I able to shuffle (by shaking, I guess) within a given p

  • Thunderbolt Display "dead" after firmware upgrade to Version 1.2

    Hi, I just run the Thunderbolt F/W update to 1.2 as offered by the AppStore Update. I have a 2014 MacPro with 2 Displays connected. In good faith I just confirmed to apply the update without much reading the fine print. The F/W update brought the sys

  • Howto: Custom MonitorMBean ?

    Hi! We are currently adopting JMX is the management and monitoring layer in our application. As a starting point to my question, just take it given, that I can access several statistic values via a DynamicMBean. What I want to do, is to monitor some