Quantity structure - Tcode CKMLQS

Hello Experts,
  I would like to know which table stores the data as shown in the Quantity structure (Tcode CKMLQS)? Basically how do we know which of the Semi finished goods have come from other plants?
The table STPO holds the BOM components, but i could not find the plant from which it was transferred.
Is it the field "Issuing plant"?
Thanks in advance.

*&      Form  get_cklmqs_data_ag
     -->if_matnr  Material Number
     -->if_werks  Plant
     -->if_bdatj  Posting date YYYY
     -->if_poper  Posting period
     -->if_curtp  Currency Type and Valuation View
FORM get_ckmlqs_data_ag  USING if_matnr
                            if_werks
                            if_bdatj
                            if_poper
                            if_curtp.
  DATA : ls_mlkey TYPE mlkey.
  DATA : qstree   TYPE REF TO cl_qstree_ckml.
  DATA : lcl_node  TYPE REF TO cl_qsnode_material_ckml,
         lcl_node1 TYPE REF TO cl_qsnode,
         lcl_node2 TYPE REF TO cl_qsnode,
         lcl_value TYPE        ckmlqs_fields .
  DATA : BEGIN OF lt_ckmlqs OCCURS 100,
           seqnr    TYPE i            ,
           kalnr    TYPE ck_kalnr1    ,
           matnr    TYPE matnr        ,
           text(30) TYPE c            ,
           quantity TYPE menge_pos    ,
           unit     TYPE meins        ,
           bewer    TYPE kkb_ml_bewer ,
           abwe     TYPE kkb_ml_abwe  ,
           ges      TYPE kkb_ml_ges   ,
           preis    TYPE kkb_ml_preis ,
           currency TYPE waers        ,
           ressource TYPE kkek_ress   ,
           peinh    TYPE ck_peinh_1   ,
         END OF lt_ckmlqs             .
  DATA : lv_seqnr TYPE i              .
  DATA : BEGIN OF lt_inputs OCCURS  10,
           seqnr    TYPE i            ,
           qsnode   TYPE REF TO cl_qsnode,
         END OF lt_inputs             .
  STATICS : st_t001w TYPE t001w        .
  IF st_t001w-werks NE if_werks.
    SELECT SINGLE * FROM t001w INTO st_t001w
                  WHERE werks = if_werks.
  ENDIF.
  ls_mlkey-matnr = if_matnr.
  ls_mlkey-werks = if_werks.
  ls_mlkey-bwkey = st_t001w-bwkey.
  ls_mlkey-bdatj = if_bdatj.
  ls_mlkey-poper = if_poper.
  ls_mlkey-werks_ml_productive = if_werks.
  ls_mlkey-curtp = if_curtp.
  CALL METHOD cl_qstree_ckml=>create_docking_tree
    EXPORTING
      is_mlkey                   = ls_mlkey
    IMPORTING
      er_qstree                  = qstree
    EXCEPTIONS
      container_already_exists   = 1
      treecontrol_already_exists = 2
      object_create_error        = 3
      container_create_error     = 4
      kalnr_notfound             = 5
      treecontrol_create_error   = 6
      OTHERS                     = 7.
  CHECK sy-subrc EQ 0.
  lcl_node = qstree->mr_rootnode.
  READ TABLE lcl_node->t_inputs INTO lcl_node1 INDEX 1.
  ADD 1 TO lv_seqnr.
  lt_inputs-seqnr  = lv_seqnr.
  lt_inputs-qsnode = lcl_node.
  APPEND lt_inputs.
  LOOP AT lt_inputs.
    CALL METHOD lt_inputs-qsnode->expand_inputs.
    lcl_node1 = lt_inputs-qsnode.
    LOOP AT lcl_node1->t_inputs INTO lcl_node2.
      IF sy-tabix = 1.
        ADD 1 TO lv_seqnr.
        lt_inputs-seqnr = lv_seqnr.
      ENDIF.
      lt_inputs-qsnode = lcl_node2.
      APPEND lt_inputs.
    ENDLOOP.
  ENDLOOP.
  LOOP AT lt_inputs.
    lt_ckmlqs-seqnr    = lt_inputs-seqnr           .
    lt_ckmlqs-kalnr    = lt_inputs-qsnode->kalnr   .
    lt_ckmlqs-text     = lt_inputs-qsnode->text    .
    lt_ckmlqs-quantity = lt_inputs-qsnode->quantity.
    lt_ckmlqs-unit     = lt_inputs-qsnode->unit    .
    SELECT SINGLE matnr FROM mbew INTO lt_ckmlqs-matnr
                        WHERE kaln1 = lt_ckmlqs-kalnr.
    CLEAR lcl_value.
    READ TABLE lt_inputs-qsnode->t_values INTO lcl_value
                          WITH KEY curtp = if_curtp.
    lt_ckmlqs-bewer     = lcl_value-bewer    .
    lt_ckmlqs-abwe      = lcl_value-abwe     .
    lt_ckmlqs-ges       = lcl_value-ges      .
    lt_ckmlqs-preis     = lcl_value-preis    .
    lt_ckmlqs-currency  = lcl_value-currency .
    lt_ckmlqs-ressource = lcl_value-ressource.
    lt_ckmlqs-peinh     = lcl_value-peinh    .
    APPEND lt_ckmlqs. CLEAR lt_ckmlqs.
  ENDLOOP.
ENDFORM.                    " get_cklmqs_data_ag

Similar Messages

  • Material cost estimate with quantity structure (tcode: CK11N)

    Hey dear friends.
    I donu2019t know in which forum I should put my question above.
    In fact, Iu2019m new to SAP PM module.
    Iu2019m trying to create material cost estimate with quantity structure (tcode: CK11N) for a material u201CXu201D.
    This material is manufactured.
    While running the transaction CK11N, I got an error message.
    After analyzing this error message, Iu2019ve realised that somebody had assigned wrong activity types to cost centers which are linked to this material in tcode: CR03, tab: costing.
    So Iu2019ve changed and assigned the right activity types.
    Then, Iu2019ve tried to run the tcode CK11N again. But the system still brings the wrong activity types and seems to ignore the ones that Iu2019ve assignedu2026
    It seems like the old activity types still linked to the cost centers somewhere else than in tcode CR03u2026
    Any idea about what am I mising ?
    Thank's in advance.
    Bahia.

    Dear Bahia,
    If its rate routing means,i guess you must be working in REM scenario.
    So goto CA22,delete the existing operation and then assign the same work center in a new
    operation,check what activity types is it proposing in the rate routing,if its reflecting correctly means
    save the datas.
    Also goto KKF6N--->click the change mode icon and then calculator button to create a preliminary cost
    estimate and then save the datas.
    One of our forum friend has asked you to check the production order read PP master data once
    again,but understand there is no production order concept in REM scenario,only planned orders.
    Then come back with your queries.
    Regards
    Mangalraj.S
    Edited by: Mangalraj.S on Jun 17, 2009 12:05 PM

  • How is full the "Valuated Quantity Structure" of CKM3 transaction?

    Hello everyone!
    I need some help to understand how works the CKM3 transaction, specially the "Valuated Quantity Structure". I need to know where comes those data, in what table can I see the multilevel data that is display on CKM3?. I need the maximun detail level of the Valuated Quantity structure to extract the values of consumption of some products to make the material in the specific plant  that I entered as a filter of CKM3.
    I attach a image with an example of what level I need to find, I highlight in yellow the level of the information that I need.
    Thanks for any help! Regards,
    Rosmar.

    Hi Rosmer
    1. This OSS explain the tcode 1004597 - CKMLQS: Valuated quantity structure (multilevel)
    2.  About the tcode:
    + This tcode is some sort of advice.
    +The detailed info is in CKM3N.
    + In general, the sum of the componentes is not equal to the cost of the principal material.
    3. The info is spread in tables, here just some hints
       + CKML_MGV_BOM_READ: This function gives you the QTYs in the level BOM and Activities. No values here.
      + The values are calculated by  the tcode, reading lots of tables and doint lots of calcs. Its a bit difficult to explain. tcode CKMDISPTAB - Technical View of ML Master Data  can give you a good advice. In ckmlqs, all the calcs are packed methods, so reuse the code is a bit difficult.
    Wish this give you an advice.
    Arturo.

  • Equivalent to KKPAN+CK24 for without quantity structure costing

    Hi,
    In costing we can use CK40N instead of CK11n+CK24 (with quantity structure) as far as I know. Is there any single tcode like CK40N for us to do both cost estimate creation and marking and release instead of using both KKPAN+CK24 for without quantity structure costing?
    Thanks
    M.K

    Dear MK,
    CK40N  = CK11N only for exploding BOM and saving cost Estimate.   +  CK24 (open perid and mark the pice and update the price)
    All in one place, see below screenshot.

  • Error  - Material cost estimate with quantity structure

    Hello Gurus!
    Can anyone please help with the following problem:
    I’m trying to do the material cost estimate with quantity structure, but the system is throwing back the message  " There is no exchange rate for exchange rate type P on 1.01.2008: CHF -> EUR". 
    This happens because I have a subcontratation in my routing in CHF, and in transaction OB08, and I don’t had defined that rate (type P CHF –EUR).
    I need to know if there is any solution to the system assumes other Type of Exchange Rate (the last real exchange rate that I have introduced in my system, not the planned!)
    Points will be assigned to the suitable answer.
    Thanks in advance.
    Mary Jane

    Hi Sridhar
    Thanks for your reply.
    In OKEQ for the version 0, I have the rate type M.
    I don't understand why the system throwing back the message  " There is no exchange rate for exchange rate type P on 1.01.2008: CHF -> EUR".!
    Do you know why?
    Thanks and regards
    Mary Jane

  • Material cost estimate with quantity structure and without quantity structu

    What is the difference between material cost estiame with quantity strucutre and without quantiry structure?

    For the quantity structure pl read the following link
    http://help.sap.com/erp2005_ehp_02/helpdata/en/7e/cb938143a311d189ee0000e81ddfac/frameset.htm
    For without quantity stucture
    http://help.sap.com/erp2005_ehp_02/helpdata/en/7e/cb938143a311d189ee0000e81ddfac/frameset.htm

  • Material Cost Estimate with Quantity Structure (How to download)

    Is there a standard report or feature available in SAP to download the material cost estimate with quantity structure?
    Currently we have to print screen and it is very tedious and can't do analysis with those screenshots.
    Please advice.

    Hi,
    There is a standard report you can use - S_P99_41000111 - Analyze/Compare Material Cost Estimates .
    With this report, you can report the standard cost estimates for a range of materials.
    Good Luck!!!  Assign points if this was a useful input to you.
    Thanks and Regards,
    Bhuvaneswari.S

  • Material cost estimate and mateiral cost estimate with quantity structure

    Hi sap guys,
    What is the difference between material cost estimate and material cost estimate with quantity structure

    Hi
    Both are in one way the same.
    Material cost estimate can be calculated as
    1. Material with quantity structure
    2. Material without quantity structure
    You can get more insight into it at the following link
    http://help.sap.com/saphelp_47x200/helpdata/en/7e/cb938143a311d189ee0000e81ddfac/frameset.htm
    Regards,
    Suraj

  • BAPI to create cost estimate without quantity structure.

    Hi All,
    I have to create a cost estimate without quantity structure using a BAPI.The transaction used for this is KKPAN.Does anyone kow any BAPI which can be used to perform the same functionality as this transaction?
    Thanks
    Shwet

    check FM KKPI_BDC_COSTING_CREATE / KKPI_BDC_COSTING_CHANGE and template pgm RCKUNITCOSTING
    Execute FMs in background mode with update = Synchone

  • Update of Activity Consumption in the Quantity Structure = 2

    We have gone live with Material Ledger with Update of Activity Consumption in the Quantity Structure not active.
    Now we are planning to golive with Update of Activity consumption on 1st July 2010.
    '2' = Update is active and relevant to price determination. Variances between the activity prices/process prices posted during the period and the actual price at the end of the period are adjusted subsequently.
    Issue:
    i)     We can only close ML for month of May 2010 on Sunday 4th.July 2010.
    ii)     Between 1st to 4th. July, we will confirm process order relate to May 2010
    iii)     Also between 1st. to 4th.July 2010, we confirm all process order relate to month of July 2010
    Do we transport the  Update of Activity Consumption 2 to Production Client:
    On 1st.July 2010 but will it have impact on the ML closing for May done on 4th.July 2020
    Or
    On 4th.July 2010, after ML closing for May 2010 but we are not going to confirm the Process Order for the July 2010 between 1st. to 4th.July 2010. Only start confirming after the activation transport to L03 300.
    Hope that you can advice what is the best option on when to transport.
    Thanks.
    Regards,
    Kulasingam Balasingam

    I would recommend strongly to wait with the switch from 1 to 2 until after the June closing. The transactions posted for Juky in the meantime will not be lost.
    The only thing to keep attention to is not to change planned activity prices after June 30, but to leave them fixed for the whole month of July. When setting  2 is active, ML will take care of that. With 1 it does not care, but you should refrain from that.
    So from your alternatives:
    >
    kula69 wrote:
    > On 4th.July 2010, after ML closing for May 2010 but we are not going to confirm the Process Order for the July 2010 between 1st. to 4th.July 2010. Only start confirming after the activation transport to L03 300.
    Even the holding back of confirmations is not necessary
    Best regards,
                     Udo

  • How is full the "valuated Quantity structure" in CKM3 transaction?

    Hello everyone!
    I need some help to understand how works the CKM3 transaction, specially the "Valuated Quantity Structure". I need to know where comes those data, in what table can I see the multilevel data that is display on CKM3?. I need the maximun detail level of the Valuated Quantity structure to extract the values of consumption of some products to make the material in the specific plant  that I entered as a filter of CKM3.
    I attach a image with an example of what level I need to find, I highlight in yellow the level of the information that I need.
    Thanks for any help!
    Regards,
    Rosmar.

    Hi,
    This  is a material ledger component.You can use the datasource: 0CO_PC_ACT_1 for the same and  ensure that report is running  after the month end close. Let me knowif you need further help.
    Regards,
    Rajesh

  • Reg:Cost Estimate without Quantity Structure

    Hi Guru's,
    For Cost Estimate with Quantity Structure we need to run the following T.Codes....
    1) KP06
    2) KP26
    3) KSPI
    4) CS01
    5) CA01
    6) CR01
    7) CK11N
    8) CK24
    I want what are the T.Codes for Cost Estimate without Quantity Structure

    Hi,
    while am doing T.Code:KKPAN the following issue is coming....
    *Material F29 in plant 1000 w/o cost comp split: price acc to val strategy
    Message no. CK193*
    Diagnosis
    When valuating material components,
    the system could not find a cost component split for F29 in plant 1000.
    Possible causes:
    The material has not been costed.
    The material has not been selected for the costing run.
    The BOM was changed after the selection or BOM explosion for the costing run was carried out, and the material now has a new low-level code.
    This is a configurable material and does not have a costing view in the material master.
    The default value for price control is not set in the material type.
    The material belongs to a recursive structure. With this material, the system begins the iterative costing of the cycle. You can check in the material overview of the cost estimate whether the material belongs to a cycle.
    System Response
    The material is valuated with the price determined through the valuation strategy.
    Procedure
    Check the log.
    Carry out selection and BOM explosion for the costing run again.
    If the material is a configured material, create a costing view in its master record.
    Note: I already checked cost component spilt assigned for Plant....

  • Product costing without quantity structure configuration document

    Hi Gurus
    Can any one send product cost configuration document without quantity structure to [email protected] in
    i need only without quantity structure document only please
    Thansk
    Rao

    Dear MK,
    CK40N  = CK11N only for exploding BOM and saving cost Estimate.   +  CK24 (open perid and mark the pice and update the price)
    All in one place, see below screenshot.

  • Product Costing - Quantity Structure Off not working

    Hi All,
    I have a Material of Type FERT. It has a BOM of its own. When I do the product costing of this material for costing variant PPC4, it always explodes the BOM, irrespective of its status of Indicator "With Quantity Structure" in its Material Master.
    Note:
    1. Costing Variant PPC4 has Indicator "Ignore Product Cost Estimate Without Quantity Structure" set OFF.
    2. BOM is exploded irrespective of the Procurement Type.
    Pl suggest a way to cost FERT Material without Qty. Structure (no explosing of BOM, instead directly pick the cost from the FERT Mat Master)
    Br,
    Vasu

    HI,
    1. FYI, if you maintain procuretype as E or X, then explosion of BOM happen. If you maintain F, it is possible to explode the bom.
    2. Let me say, as per the below reqt, you want to pick up the value from the material master itselt. So, i assume, you maintain future price or planned price in accounting view.
    If that is the case, then change the costing variant with T code OKKN and in the valuation variant button with strategy sequence start with Future price from accoutnign or current Planned price.
    Please let me know if you expect any clarification in this regard
    vijay

  • Mixed costing for cost estimated WITHOUT quantity structure

    Dear all experts
    Anyone can help me for this question u201CCan we use mixed costing for cost estimated WITHOUT quantity structure?u201D. If u201CYesu201D, please give me a hint how.
    Thank you for your help
    Noy

    Dear Ajay
    Thank you for your quick answer. So I will try to use  cost estimated WITH quantity structure instead.
    Thank so much
    Noy

Maybe you are looking for

  • Failed to export the report in Crystal Reports 2008

    I am using Crystal Reports 2008 version 12.1.0.892, when i try to export data to Microsoft Excel(Data Only) it's failing with the error "Failed to export the report.", please help in resolving this issue.

  • L&F Windows

    If i'm using Windows XP and GUI with swing, wahts do I have to do to make it get the WinXP look and feel? Thanks

  • Ddi_regs_map_setup fails in solaris 11

    Hi I have a driver (parent=isa) in x86 that ioremaps (ddi_regs_map_setup) a physical address range between 0xE0000 and 0xF0000. This is a device memory mapped region. The ddi_regs_map_setup was successful in solaris 10 (32 bit and 64 bit) but fails i

  • Smartform through mail

    I have developed a Smartform ..i want to send this to my friend in denmark who got same requirement . Can i send it to my friend through mail....I want to send every screen of tht form.. Points will be awarded regards, Reddy

  • Losing Bold Format in Framemaker 10

    Hello, I have been having a problem with the format of my headings, footers and logos losing the bold appearance in Framemaker 10. When the document was created according to our EDD, template and paragraph designer, certain Headings were defined as B