FM to find out the total cost/cost analysis of each production order

hi Friends,
Im on report development to list out Production Order Costing analysis. Where Iam using table of AFKO, AUFK and COSS, in that COSS table is for Cost Totals for Internal Postings which is taking too much time as performance issue to fetch the records as per my select condition (which is given below) for even my date period range is a day or two.
select * from coss INTO TABLE IT_COSS FOR ALL ENTRIES IN IT_AUFK WHERE OBJNR EQ IT_AUFK-OBJNR AND VRGNG
EQ 'RKL'.
Is there any FM available where I can get my values through the object number of each production order? or is any other way to derive my requirement?
Please advise.

Hi Sankar,
Try this.
For production order nos. - AUFK or AFKO
For production order status - JEST & to know the status eg REL etc, refer TJ02
For costs - COSS & COEP (Pass order nos. to the field OBJNR as OR followed by 12 digit order number)
Add this logic.
{*IF NOT it_aufk[] IS INITIAL.
    SORT it_aufk BY aufnr.
    DELETE ADJACENT DUPLICATES FROM it_aufk COMPARING aufnr.
    SELECT * FROM coss INTO TABLE it_coss
               FOR ALL ENTRIES IN it_aufk
               WHERE objnr EQ it_aufk-objnr
                 AND vrgng EQ 'RKL'.
  ENDIF.*}
Hope the above helps.
Regards,
Vijay
Edited by: vijay chavan on Sep 21, 2009 2:49 PM

Similar Messages

  • How to find out the total cost of a specific VM

    I've downloaded the usage statistics file from billing section and I could see the data categorized by different type of resources consumed by a virtual machine. Eg.
    Name ResourceGuid
    Unit Consumed
    "Virtual Machines" "1b4d8861-8cbc-40c8-88f9-e1b78509c3be"
    "GB" 0.000158
    "Networking" "9995d93a-7d35-4d3f-9c69-7a7fea447ef4"
    "Hours" 11.100002
    "Data Management" "964c283a-83a3-4dd4-8baf-59511998fe8b"
    "10,000s" 6.8899
    "Storage" "0e9d0c9b-ab6d-4312-9c7e-3794e22af9c4"
    "GB" 0.436496
    I'm looking for a way to retrieve the ResourceGuid of all the resources linked to a particular VM, to find out the total cost of it (VM + Networking + Data Management + Storage)
    Is it possible through Service Management API? Or any other means?

    Hi,
    This issue is related with billing, I would suggest you contact with azure support:
    http://www.windowsazure.com/en-us/support/contact/, it is the best choice for you. I find a releated voice, it discusses to display the total fee before created service, here is the link: http://feedback.azure.com/forums/170030-billing/suggestions/6478992-display-total-fee,
    please vote it.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to find out the total, subtotal in alv report

    hi dears,
    how to find out the total, subtotal in alv report?
    pls tell me logic ,
    i will be waiting for eply
    regards
    eswar

    Hi,
    <b>ALV Grid List with sub-totals</b>
    REPORT z_demo_alv_sort.
    * This program lists orders (VBAK) with sort and sub-total for        *
    * 'sold-to-party' (KUNNR) and 'Sales organization' (VKORG)            *
    TABLES : vbak.
    TYPE-POOLS: slis.                      " ALV Global types
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
      BEGIN OF gt_vbak OCCURS 0,
        vkorg LIKE vbak-vkorg,             " Sales organization
        kunnr LIKE vbak-kunnr,             " Sold-to party
        vbeln LIKE vbak-vbeln,             " Sales document
        netwr LIKE vbak-netwr,             " Net Value of the Sales Order
        waerk LIKE vbak-waerk,             " Document currency
      END OF gt_vbak.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
    *      Form  f_read_data
    FORM f_read_data.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak
                 UP TO p_max ROWS
              WHERE kunnr IN s_kunnr
                AND vbeln IN s_vbeln
                AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA
    *      Form  f_display_data
    FORM f_display_data.
      DEFINE m_fieldcat.
        add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname   = &1.
        ls_fieldcat-ref_tabname = 'VBAK'.
        ls_fieldcat-do_sum      = &2.
        ls_fieldcat-cfieldname  = &3.
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        ls_sort-up        = 'X'.
        ls_sort-subtot    = &2.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv,
        lt_sort     TYPE slis_t_sortinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        ls_layout   TYPE slis_layout_alv.
      m_fieldcat 'VKORG' ''  ''.
      m_fieldcat 'KUNNR' ''  ''.
      m_fieldcat 'VBELN' ''  ''.
      m_fieldcat 'NETWR' 'X' 'WAERK'.
      m_fieldcat 'WAERK' ''  ''.
      m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
      m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
      m_sort 'VBELN' ''.                   " Sort by vbeln
      ls_layout-cell_merge = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout   = ls_layout
                it_fieldcat = lt_fieldcat
                it_sort     = lt_sort
           TABLES
                t_outtab    = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA
    ***************** END OF PROGRAM Z_DEMO_ALV_SORT **********************
    Regards
    Sudheer

  • How can I find out the total number of gigabytes of all my photos in Iphoto?

    How can I find out the total number of gigabytes of all my photos in Iphoto?

    In the Event mode open the Info window at the bottom left  (Command+i or click on the blue i button).  Then select all of the Events.  The number of photos and size will be shown in the Info window at the right.
    OT

  • I want to back up my photos, how do I find out the total size of all photos in Adobe Elements?

    I have windows 7 and adobe elements 8. I need to have my computer do a backup and have a large amount of photos in Elements. I would like to know how large the file is so that I can know how big of a flash card or how many dvds I will need.

    You're backing up hundreds or thousands of files:  There's the catalog (database) itself and also the media files. 
    In PSE10, when doing a backup, PSE displays the size of the backup before you begin the actual backup:
    I assume PSE8 will have something similar.
    Ken

  • Table to find out the list  which shows the last load of infoobjects

    Hi All,
    I have to find out the Info objects which stop loading in production system, so that we can delete number range buffering for those objects. In table  RSDCHABALSLOC I found the info objects which has number range buffering. But total 17000 objects are there its not possible for me to go and check in manage tab for each object manually. I need a table which shows the information like when was the last load happened for the info object. I checked in RSDIOBJ table but time stamp of it not matching with manage data target tab of Infoobject.
    Regards,
    Asim

    Hello Asim,
    Have a look at the table RSLDPIO, this should give the last run time of infopackage with other details like related datasource, info object etc. everything.
    Just go to SE11 and display data of this table - provide your datasource name to OLTPSOURCE or Info Object Name to VARIANT. Also you can check based on specific infopackage name.
    Then sort it in ascending on TIMESTAMP, top most timestamp will be the last run time of that infopackage.
    Another helpful table will be RSREQDONE.
    Please let me know if this serves the purpose.
    Thanks
    Amit

  • Please let me know a good query to find out the memory being used in DB

    Hi All,
    We are using Automotic memory management by using parameter memory_target option. I want to find out the total memory being used and which is free.
    ie;(SGA+PGA). Please let me know.
    Thanks & Regards,
    Vikas Krishna

    Since we are using memry_target we will not get an accurate value there I guess.
    SQL> show parameter memory
    NAME TYPE VALUE
    hi_shared_memory_address integer 0
    memory_max_target big integer 12G
    memory_target big integer 12G
    shared_memory_address integer 0
    SQL> select round(used.bytes /1024/1024 ,2) used_mb
    2 , round(free.bytes /1024/1024 ,2) free_mb
    3 , round(tot.bytes /1024/1024 ,2) total_mb
    4 from (select sum(bytes) bytes
    5 from v$sgastat
    6 where name != 'free memory') used
    7 , (select sum(bytes) bytes
    8 from v$sgastat
    9 where name = 'free memory') free
    10 , (select sum(bytes) bytes
    11 from v$sgastat) tot;
    USED_MB FREE_MB TOTAL_MB
    1660.92 378.71 2039.62
    Thanks & Regards,
    Vikas Krishna

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • How to find out the cost of SAP user for a particular user id

    Dear All,
    I got one issue like how to find out the cost of SAP user, i mean for a particular user id.
    Could you please advice me regarding this.
    Raghu

    Hello Raghu,
    I got one issue like how to find out the cost of SAP user, i mean for a particular user id.
    Could you please advice me regarding this.
    I think you need to reach out to BASIS consultant to check out the Cost involved for User ID for the SAP application.
    Regards,
    Sarthak

  • To find out recently new cost center

    Hi all,
    I have a problem that I had updated one request new data(it's like 200904 transaction data) to cube,
    while the inexistent cost center in master data is added(0Costcenter).
        The problem arise,how could i find out which new cost center is added to 0costcenter,because I
    need to listed those new cost center to user.
        Thanks.

    in the maintain master data screen for cost center give all the attributes a restriction to initial value.
    once you get cost centers search with them in the infocube and take out final list from there.
    or you write a abap report to check cost centers which have all fields initial and get it in a file.
    data: itab type standard table of /Bi0/pcostcenter with header line,
            itab2 type standard table of /Bi0/pcostcenter with header line
    select * from /Bi0/pcostcenter
    into table itab
    where objvers = 'A'.
    loop at itab.
    if itab-BUS_AREA is initial.
      if itab-0COMP_CODE is initial.
    .... keep checking for all the attributes.
         .... if all atributes are initial
          append itab to itab2
      endif.
    endif.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = <give file name here>
    write_field_separator = space
    TABLES
    data_tab = iout
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    no_authority = 5
    unknown_error = 6
    header_not_allowed = 7
    separator_not_allowed = 8
    filesize_not_allowed = 9
    header_too_long = 10
    dp_error_create = 11
    dp_error_send = 12
    dp_error_write = 13
    unknown_dp_error = 14
    access_denied = 15
    dp_out_of_memory = 16
    disk_full = 17
    dp_timeout = 18
    file_not_found = 19
    dataprovider_exception = 20
    control_flush_error = 21
    OTHERS = 22.
    you will get all cost centers which doesn't has any attribute

  • How to find out Plant wise Cost centre/ Profit Centre

    Hi Guru
    My problem is How to find out plant wise cost centre. To be more clear------ I want to know what cost centre is valid for a particular plant
    My mail Id. [email protected]

    Hi,
    Then this explains the problem.
    The message number starts with a Z and so it is not a standard SAP message because SAP does not link cost centres or GLs to Plants
    But also, the message doesn't indicate a problem with the link? it is stating that you should check that the GL account and the PROFIT CENTRE are valid for the posting for the period???.
    It looks like someone has written a custom modification  in your system and so we are , unfortunately, unable to help because the data would be in custom tables and not standard SAP tables.
    You can only solve this problem by speaking to someone within your own company who knows the mdofication that has been done.
    Sorry
    Steve B

  • How can Oracle ERP system reduce the total cost of ownership

    i have read a report that describe the advantages of using Oracle ERP system in different organizations ; it is mentioned that
    "+Oracle’s ERP solution suite helps customers achieve 30-80% lower total cost of ownership, benefit from a predictable cost model, and reduce risk+".
    So does this means that Oracle ERP system reduce the total cost of ownership because it provides cheaper price comparing to other ERP providers, or it is meant that using Oracle ERP system will reduce the total cost of ownership for other assets in the organization by 30-70% ?
    Thanks

    My thoughts:
    1) Oracle ERP (or any ERP) typically replaces numerous applications. Each of those applications needed separate licensing fees, separate support mechanism, and separate employees in your organization to support them. By consolidating into one, it is easier to support it.
    2) Normally, Oracle ERP is cheaper than SAP but it certainly not the cheapest ERP in the market. There are some smaller ERPs which are cheaper but may not offer the breadth that Oracle offers. In fact, Oracle offers a small business ERP that is quite cheaper than EBS.
    Sandeep Gandhi

  • Thinking about the total cost of ownership (TCO) of BI?

    Hi there,
    I lead the survey research conducted by Aberdeen Group. We are conducting a survey right now that will reveal your peers insights and experiences (and yours, if you participate) regarding managing the total cost of ownership of BI. I ask two things: 1) Take the survey - it only takes 10-12 minutes and you'll get a free copy of the report when it publishes... the link to the survey is here: http://tiny.cc/KF3hR 2) Let me know what you think fo the survey. Does it get at the major issues regarding TCO of BI?
    Thanks!

    My thoughts:
    1) Oracle ERP (or any ERP) typically replaces numerous applications. Each of those applications needed separate licensing fees, separate support mechanism, and separate employees in your organization to support them. By consolidating into one, it is easier to support it.
    2) Normally, Oracle ERP is cheaper than SAP but it certainly not the cheapest ERP in the market. There are some smaller ERPs which are cheaper but may not offer the breadth that Oracle offers. In fact, Oracle offers a small business ERP that is quite cheaper than EBS.
    Sandeep Gandhi

  • Hi This is Rezwan from Bangladesh. I requests to my aunty who lives in Virginia to buy an iphone 5s country unlocked for me and send to Bangladesh. Now i want to know the total costing of iphone 5s country unlocked phone and how can she send it to BD?

    Hi This is Rezwan from Bangladesh. I requests to my aunty who lives in Virginia to buy an iphone 5s country unlocked (Without Contract) for me and send to Bangladesh. Now i want to know the total costing of iphone 5s country unlocked phone and how can she send it to Bangladesh?

    Note: When you buy an iPhone from another country, you do not have warranty in your country of residence. Any warranty and sevices are only valid in country of purchase.
    For prices, ask your aunty or go online yourself.

  • Report to Evaluate the Total Cost of Producing a Meterial

    Dear Experts,
    Is there any report from where I can generate the total cost incurred for producing a material for a given period of time.
    Please Help
    Thanks

    Thanks
    We can generate the report from KOB1,S_ALR_87013002,KOC4 based on the production orders.
    Thanks

Maybe you are looking for

  • Weblogic Server 9.2 - JMS File Store not working as expected.

    Hi, I am facing a problem at the server startup possibly due to huge size of the JMS File Store created. My question is that our application receives messages via MDB (container managed), Even after successfully processing the message, the message wh

  • Added a Northbound SNMP Trap Receiver in Cisco PI 1.3, but not getting traps

    Hi; I tried going into the Administration, System Settings, Notification Receivers menu and adding a receiver. The receiver was our  Zenoss 4.2.3 Resource Manager system. Zenoss has no problems  receiving traps from  IOS devices such as switches; tha

  • Positioning a pop-up in flash

    I have a site with multiple pop-ups containing information, forms,etc... right now the pop-ups come up in the exact center of the stage... but I'd like them to be in the upper right. How do I do that? Here's what I have to bring up the pop-ups now: o

  • Can i delegate more than 1object

    hi , im working on Document management systems.i have created ZDRAW1 by copying the standard DRAW object. i have delegated the standard DRAW to my  ZDRAW1. the workflow is working. now i got another scenario to create new workflow. shall i have to cr

  • Setting Date as YYYY-QX?

    I've done some Googling for this with very limited success. I am just getting started in Form Design and one field I am having trouble with is the Date Field in Acrobat Pro 9. I'm trying to set the Date Field to be entered as YYYY-QX, where YYYY is t