Reading material ledger header record

Dear Gurus,
I am getting the following error when i save the 561 movement posting.
Error reading material ledger header record
Message no. C+065
Diagnosis
Internal error in function module CKMS_HEADER_READ_WITH_ITAB.
System Response
The transaction was terminated.
Procedure
Inform your system administrator.
Kindly help..
Aktolga

Hi Aktolga,
The mentioned error means that the material is relevant for Material Ledger but it does not exist in Material Ledger tables. It is
an inconsistency and should be repaired. This type of inconsistencies are repaired by Sap support, to repair it, you should create a oss message.
Best regards,
Maria Luisa

Similar Messages

  • Material ledger error while doing GR

    Hello,
    I am getting the error " Error reading material ledger header record while doing Gr for particular material.when double clicked the error,I see this message "Internal error in function module CKMS_HEADER_READ_WITH_ITAB"
    what may be the issue?
    Regards
    Goutham

    HI,
    I  assume, you got the problem after material ledger activation or Material split valuation
    please check the following two points;
    There may be one reason, i hope the material is split valuated after creation of PO.  Plese check the Material master in the accounting view  whether it is split valuation activated or not
    2. problem is other side, at the time PO creation, material is having split valuation after that materil was changed to non- split valuation.
    With regards
    Madhav

  • Material Ledger -- WIP values

    Hi,
      We have material ledger functionality active and want to extract the WIP values based on the Production Order. Currently we are executing transaction Code CKMLWIPDISP for viewing the WIP details and the values in object currency and controlling area currency are appearing. We want to know the table which provides the above details
    Can anybody suggest the table which will provide us the WIP values based on the Production corder incase if the material ledger active.
    Regards,
    Shree.
    Edited by: Shree Ja on Nov 18, 2010 10:19 AM

    Hello Shree,
    Some more tables
    CKMLCRWIP                      Material Ledger: WIP Period Records (Values)
    CKMLLACRWIP                    ML Activity Types: Period/ Currency Records WIP
    CKMLLAPPWIP                    Ml Activity Types: Period Records WIP (Quantitie
    CKMLMV004WIP                   Process Model: Deductions WIP
    CKMLPPWIP                      Material-Ledger: Period Records WIP (Quantities)
    CKMLWIPCUST                    Customizing: WIP To Actual
    As told earlier I'm not in a position to verify since there are no records in the current system.
    Kind Regards // Shaubhik

  • Canceling Material Ledger

    Hi all,
    I need to understand better which are the consequences in material ledger canceling procedure described in the following SAP notes:
    SAP Note 108374 - Canceling material ledger production startup
    SAP Note 425487 - Deactivating the material ledger in production systems
    In particular I'm intrerested in which are the tables anda data involved by the deleting procedure.
    My goal is the subsiquent reactivation  of the material ledger in a multiple valuation scenario as described in the SAP note:
    SAP Note 120380 - Subsequent activation of multiple valuation approaches
    Thanks in advance  for your cooperation.
    Best regards, ALDO26X1

    The following tables contain data that can appear in the material ledger documents:
    · MLHD Material Ledger Document: Header
    · MLIT Material Ledger Document: Items
    · MLPP Material Ledger Document: Posting Periods and Quantities
    · MLPPF Material Ledger Document: Field Groups (Posting Periods and Quantities)
    · MLCR Material Ledger Document: Currencies and Values
    · MLCRF Material Ledger Document: Field Groups (Currencies and Values)
    · MLCRP Material Ledger Document: Price Change (Currencies, Prices)
    · MLMST Material Ledger Document: Costing Run Header Data
    The following types of material ledger documents are available, differing by transaction type:
    · CL Material Ledger Closing Entries
    · UP Material Ledger Update
    · PC Price Changes
    · ST Single-Level Price Determination
    · MS Multilevel Price Determination
    · RE Material Ledger Data Repairs
    USE :
    Material ledger documents are data that is recorded during each business transaction that is relevant to valuation. You can archive documents for closed periods when they are no longer needed for material price determination or reporting purposes. Archiving the documents deletes them from the database.

  • Material Master BDC recording

    hi gurus,
    i am trying to do a material master creation using BDC recording,
    i am new i dont know how to modify the code,
    the following is the code, please let me know how to make changes.
    report ZTEST95
           no standard page heading line-size 255.
    include bdcrecx1.
    parameters: dataset(132) lower case default
                                  'C:\Documents and Settings\Deskt'
                                & 'op\test95.txt'.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: begin of record,
    data element: MATNR
            MATNR_001(040),
    data element: MBRSH
            MBRSH_002(001),
    data element: MTART
            MTART_003(004),
    data element: REF_MATNR
            MATNR_004(040),
    data element: XFELD
            KZSEL_01_005(001),
    data element: MAKTX
            MAKTX_006(040),
    data element: MEINS
            MEINS_007(003),
    data element: MATKL
            MATKL_008(009),
    data element: SPART
            SPART_009(002),
    data element: MTPOS_MARA
            MTPOS_MARA_010(004),
    data element: BRGEW
            BRGEW_011(017),
    data element: GEWEI
            GEWEI_012(003),
    data element: NTGEW
            NTGEW_013(017),
          end of record.
    End generated data section ***
    start-of-selection.
    perform open_dataset using dataset.
    perform open_group.
    do.
    read dataset dataset into record.
    if sy-subrc <> 0. exit. endif.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  record-MATNR_001.
    perform bdc_field       using 'RMMG1-MBRSH'
                                  record-MBRSH_002.
    perform bdc_field       using 'RMMG1-MTART'
                                  record-MTART_003.
    perform bdc_field       using 'RMMG1_REF-MATNR'
                                  record-MATNR_004.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                  record-KZSEL_01_005.
    perform bdc_dynpro      using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  record-MAKTX_006.
    perform bdc_field       using 'MARA-MEINS'
                                  record-MEINS_007.
    perform bdc_field       using 'MARA-MATKL'
                                  record-MATKL_008.
    perform bdc_field       using 'MARA-SPART'
                                  record-SPART_009.
    perform bdc_field       using 'MARA-MTPOS_MARA'
                                  record-MTPOS_MARA_010.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARA-BRGEW'.
    perform bdc_field       using 'MARA-BRGEW'
                                  record-BRGEW_011.
    perform bdc_field       using 'MARA-GEWEI'
                                  record-GEWEI_012.
    perform bdc_field       using 'MARA-NTGEW'
                                  record-NTGEW_013.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    perform bdc_transaction using 'MM01'.
    enddo.
    perform close_group.
    perform close_dataset using dataset.
    thanks.

    Hi,
    It is better if the Material Master creation step is done by LSMW - Direct Input method with the following object:
    Object               0020   Material master
    Method               0000                 
    Program name         RMDATIND             
    Program type         D   Direct input
    Check the program documentation for more details.
    For a sample data file generation ( Sequential file ),  check the program RMDATGEN
    If the reqmt., is for a repetetive loading of Material Master you could schedule / execute the LSMW by following program: /SAPDMC/SAP_LSMW_INTERFACE.
    Hope this helps.
    Best Regards, Murugesh

  • Cost of goods manufactured vs COGS+ Material ledger

    Hi Experts,
    My company is implenting Material Ledger. They want to see the actual cost of goods manufactured. We are able to develop the actual cost of goods sold in COPA. The required report is to show:
    1- Direct material used at standard + variances (price + usage) to give the actual.
    2- Direct labor (standard + variances = Actual)
    3- Manufacturing overhead ( standard + variances = Actual)
    Attached excel file is showing the requirement.
    Your guidance to develop this report by any means (Report painter, BI, other).
    Regards
    Ahmed Zain Hassan

    Hi Ahmed / Ajay.
    1. In order reports KKO0, you dont see the revaluation of ML, as you said Consumption and Activities are revaluated at  Material level, and as far as i know, theres no way to add  records that represent the revaluation.
    2. The easy way to have a Order Report revaluated at actual cost is with LIS(Logistic InfoSys), creating a Z infostructure (eg copy lis S027) that store consumption and activity QTY, and a user exit  that read the actual cost of consumed materials (depending if this is V, S2, S3) and activities and revaluate. In LIS, there are standard way to "re-post" or repopulate the infostructures. This LIS can be reported with the standard functions (ReportPainter, quers on SQ01), or create a Z tcode that show the info stored in the way you want. Problem: Not all know how to customize LIS, and also you need code in the exit.
    3.  In my country (Peru), there are lots of companies that develop a Z Kardex valuated at actual cost (because, is a legal requirement), and also create Zprograms that calculate the order at actual cost (indeed, i create this reports twice). Its a bit complex, but not impossible and depends on custo EG if you have multiple valuations, you need to write code in order to get the infor for this specific valuations.
    4. About COPA, you can post to copa the Actual Cost Component Split calculated by ML. In this CCS, you can identify the Labor, Direct Materials, and overheads.  You have 2 options, You can post the delta to the original field or have an aditional field that store the difference. This stuff is done in KE27, i see 1 example in the SCN (i guess i bookmarked). Its important to understand you dont have the detail of the delta per consumed material, just an agregated value.
    Here is the link
    http://wiki.scn.sap.com/wiki/display/ERPFI/KE27+Periodic+Valuation
    5. There is a new ML DrillDown report functionality. Indeed, i couldnt spend time analizing the solution (my test system is with EHP5 and dont plant to upload the OSS), but i guess this is the future. You can look for info with tcode KKML0 in the marketplace, also check this oss 1639462 - ERP accelerators: enhancements in ML drilldown reporting
    My questions:
    What you want?
    + Order Report, i mean Cost detaild per Order? The Actual CCS por order?
    + Material Report? I mean, the monthly average of a Fert, and its CCS ?
    + a PA Report, that show Sales (Incomes), and Costs per matiral , split by Direct, Labor and OverHead?
    Arturo.

  • Tables used for material ledger

    What are the standard tables used for material ledger

    Hi,
    All req. configuration i have defined in last thread...
    The following tables contain data that can appear in the material ledger documents:
    ·        MLHD      Material Ledger Document: Header
    ·        MLIT  Material Ledger Document: Items
    ·        MLPP      Material Ledger Document: Posting Periods and Quantities
    ·        MLPPF    Material Ledger Document: Field Groups (Posting Periods and Quantities)
    ·        MLCR      Material Ledger Document: Currencies and Values
    ·        MLCRF    Material Ledger Document: Field Groups (Currencies and Values)
    ·        MLCRP    Material Ledger Document: Price Change (Currencies, Prices)
    ·        MLMST    Material Ledger Document: Costing Run Header Data
    The following types of material ledger documents are available, differing by transaction type:
    ·        CL     Material Ledger Closing Entries
    ·        UP    Material Ledger Update
    ·        PC    Price Changes
    ·        ST     Single-Level Price Determination
    ·        MS    Multilevel Price Determination
    ·        RE    Material Ledger Data Repairs
    USE :
    Material ledger documents are data that is recorded during each business transaction that is relevant to valuation. You can archive documents for closed periods when they are no longer needed for material price determination or reporting purposes. Archiving the documents deletes them from the database.
    Regards,
    Priyanka.P
    PLS AWARD IF HELPFULL
    Edited by: Priyanka Paltanwale on Aug 7, 2008 9:34 AM

  • Material Ledger Error CKMLWIP099

    I have been working with Material LEdger (ML) for several years and was deeply involved in the configuration and testing prior to deployment. I have recently come across a problem I can find no resolution for. The message is CKMLWIP099. The text is as follows:
    "Internal error in FORM/FUNCTION CL_CKML_WIP_DBACCESS->QS_COMPLETE in position 5 with RC"
    The issue occurs when running the WIP Revaluation step within CKMLCP Costing Cockpit.
    Our version is 4.7. I tried wating until the material period was two periods old and using the "Must_WIP" tip, but the same error happened. Now, the few parts with this error have infected 10 times as many other parts. I have reviewed the materials as well as all movement types and can not find a logical problem.
    If anyone has any ideas or advice I would appreciate it greatly. I have logged an SAP help ticket, but that could take a long time and become very difficult.
    Edited by: Juggler2010 on Dec 15, 2010 6:11 PM
    We opened a ticket with SAP.  They found that some PP orders from 2007 popped up in Oct-2010 for which WIP had been run.  In my experience there was a time that PP orders RA was accidentally run for a period far into the future, which caused ML to break for every part involved.  They had given us a special program to cure that.  I ran that program before opening the ticket, but it found nothing to fix.  This time, SAP asked us to implement note 1497118, which installs the program WIP_HELPDESK.  That program should only be run by SAP.  After deleting the bad WIP qty records, I ran material ledger for the failed periods with full success.  Problem resolved.

    This may help others who experience this unusual issue.

  • Error-Material Ledger currency were changed in material master creation

    Hi all,
    Iam trying to create a material master record in IDES database.
    When iam entering into accounting 1 tab system is throwing the following error "Material Ledger currency were changed".
    Without entering necessary information in the accounting tab i cannot proceed further , so kindly suggest me what is the necessary  setup that i need to do to avoid this error.
    Expecting a reply from you all.
    Thanking You
    Gopala

    Hi,
    In the configuration the material ledger might be active in the valuation area.If it is active in the valuation area then the check box in the material master is automatically checked.
    If the material ledger is active for a particular valuation area, all materials in the valuation area are valuated using the material ledger.
    If you activate the material ledger for a plant, you should also activate it for all the other plants in the company code. This ensures that the accounts in Financial Accounting and Materials Management are reconciled.
    You can deactivate this in SPRO-Controlling -General controlling--Multiple valuation approaches-Basic settings-Check material ledger settings.
    But be careful about the controlling settings while changing this.

  • Material Ledger : Cost component split different in CO PC and ML

    Hello SAP People,
    In ML cost component split I don't have the same split that in CK13N COPC.
    History
    We changed the cost component structure in OKTZ, because we wanted to split on two different cost component the cost of Copper :
    -     Copper
    -     Primes :Premium cost (transformation cost for producer) on copper.
    In CK11N the split is OK and we can read the new cost element corresponding to premium cost.
    To split the costing tool goes on the purchase info records to read condition type that are different for copper and premium.
    The problem we have is that when we run Material ledger we are not able to see after a good receipt a similar split in the cost component view.
    We already run MLCCS_RESET and MLCCS_Startup programs this month and created new Raw material after. But it seems the ML do not take care of this and all the actual cost (I stop to single level) are on the copper cost component and there is nothing on Premium cost component.
    We just run single level on ML for current month.
    Could you please help me to explain why we are not able to obtain the correct split between Copper and u201CPrimesu201D

    Hi Marco,
    yes, these both are independent from each other. You will have no issue when these are different.
    It is very typical that you want to report different kind of information for activities as for materials.
    A typical setup might be
    Activity                                   Material
    Asset depreciation                   Raw Material Cost
    Room cost                               Energy
    Labour                                     Production Cost
    labour overhead                      Production Overhead
    Electricity                                 Packaging
    When you use the activity for the production of a material (confirmation CO15) the assignment goes normally to a single cost component in the material, above for example into production cost. This is controlled by the cost element. Only when the primary cost component split is activated and a transfer structure betweeen both is maintained you could achieve
    Asset depeciation, Room Cost, Labour overhead  -> Production overhead
    Labour -> Production Cost
    Electricity -> Energy
    Best regards,  Udo

  • PMW/ACH Vendor Payments - Batch Header Record (5) not in file

    We're trying to get PMW/ACH vendor payments up and running, and thought we were about ready to send a test file to the bank, but I've discovered we have no batch header (record type 5) in the file?
    We're configured to use the PMW.  I have checked and rechecked our configuration, but must be missing something?  We have payment methods and banks configured.  Variants defined and bank/master data set up on a few vendors for testing. Everything else seems to be working fine. A small test via F110 selects these vendors into the file for payment, prints advices, and posts FI documents in SAP properly. I have record types 1, 6, 8, and 9 in the file...but no 5 (Batch Header).
    Any guidance would be greatly appreciated.
    Thanks.
    Lisa Tanner

    Record 5 is defined by the Format Supplement in FBZP, Payment method/country. Here you will find 3 supplements CTX, CCD and PPD.

  • How to create sqlplus output spool to a flat file  with a header record

    Hi all,
    I've requirement to spool data from a table to a flat file along with column headings in the first row.I'm getting data but I need header record in the first row also?
    Thanks,
    Mahender.

    Hi, Mahender,
    If you give this SQL*Plus command before you start SPOOLing
    SET   PAGESIZE  50000then you can get the usual SQL*Plus column headings, and they won't repeat unless you have more than 50,000 rows of output.
    When I can't do that, I use PROMPT
    {spool}
    SPOOL foo.txt
    PROMPT empno ename job mgr ...
    SELECT empno, ename, job, mgr ...
    PROMPT will trim leading whitespace (unless you enclose it in quotes), but it will leave spacing between the columns alone.
    You could also do a separate query, where you select some literals from dual:SPOOL foo.txt
    SELECT ' empno ename job mgr ...'
    FROM dual;
    SELECT empno, ename, job, mgr ...

  • Problem in using FM READ_TEXT to read Material Sales Text.

    Hi Guys,
    I am developing a Customer Outstanding report in which I display all the invoices of a particular customer.
    I need  to read "Material Sales Text" which comes under "Item Text" tab in transaction FBL5N.
    I have used READ_TEXT in my program. I have identified the Object, and ID but I am stuck up with the Name. I dont know what Name to pass. I have tried passing the Invoice Number in "Name" but couldnt get the text.
    Request you to please help me out. Please check the below code.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            =    '0001'
        language                      =  SY-LANGU
        name                          =  -
        object                        =  'VBBP'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         =  tl001
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       OTHERS                        = 8
    Thanks.

    *&      Form  READ_TEXT
    FORM read_text  USING    p_tdid  p_tdname
                    CHANGING p_tdline.
      DATA: it_line  TYPE STANDARD TABLE OF tline,
            wa_line  TYPE tline                  ,
            l_tdid   TYPE thead-tdid,
            l_tdname TYPE thead-tdname.
      l_tdid   = p_tdid.
      l_tdname = p_tdname.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id       = l_tdid
          language = 'E'
          name     = l_tdname
          object   = 'VBBP'
        TABLES
          lines    = it_line
        EXCEPTIONS
          OTHERS   = 8.
      LOOP AT it_line INTO wa_line.
        IF NOT wa_line-tdline IS INITIAL.
          p_tdline = wa_line-tdline.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " READ_TEXT

  • Material Ledger Unit Of Measurement different from Material Master

    Dear Team,
    In my client, there is a difference between unit visible in CKM3N and MM03. The base unit of measurement in MM03 is MT. Other than that, there are some other units maintained (not M3) in additional data tab in material master. In CKM3N, the visible unit is M3. M3 is not present anywhere in MM03.
    Why would such unit flow in material ledger table? (CKMLPP has unit M3). Please advise.
    One more observation is that when there is some price change document in Material Ledger, the proper UoM (MT) is being captured. Only in the basic price determination structure visible unit for each head is M3. Please check the attached screen shot.
    Any help would be appreciated.
    Thanks.
    Jay Shah.

    Hi..
    Refer to Data Inconsistency of BUOM in Material Ledger Tables

  • Costing run with values for material from info record.

    Hi All
    there is requirement with my client, that when i run my costing run the values of the components in BOM should be from the latest purchase order.
    For this i am maintined valuation criteria as price from info record and sub strategy as gross price from PO.
    When i am create a PO the info record is created automatically in background. So when i run costing run the value is picked correctly.
    Now when i create a PO with same material from diff vendor the info record is generated, but on costing run it picks the value from the info record of earlier vendor. For this i go and check the conditions tab in info record, ensure its balnk and save it. Again generate new PO and then run a costing run. This time the system reads the latest info record.
    My problem is that i want to ensure that during the costing run, system should read the latest info record w/o manual intervention. System behaviour is not consistent when there is multiple vendor and same material info records. Sometimes it pick up the value and sometimes it refers the old info record.
    Can any one help me out in resolving this issue. Its critical.
    Regards
    Rakesh

    Hi!
    Generally first info records will be created with vendor, then PO will be created, based on info records price, price will be updated in PO.
    If you have more than one vendor for same material, you have to create info records for each vendor. then you need to maintain source list, where you can fix the vendor. If there is no fix vendor, then you can do schedule agreement with vendors, where you have to give proportionate percentages again each vendor.
    Now for costing run :
    1. if you have only one info record, the price will take from that info record.
    2. if you have more than one info record, you need to mantain source list, where you can tick the fixed vendor, then system will take price from that vendor info record.
    3. if there is no fixed vendor and you have maintained scehduel agreement with weightage to vendor, then higher percentage vendor info record price will be picked up.
    4. if you have more info reocrds, not maintianed source list or schedule agreement, price will be picked up from first info record ( based on info record creation date).
    5. if you have a schedule agreement, but you have given equal weightage for example 50% and 50%, then also system will pick up from first info record.
    i think it is clear now.
    regs,
    ramesh b

Maybe you are looking for

  • When i open itunes it wont open and saying i have to re download it and when i do the same thing pops up i have a hp pavilion

    i have tryied to download it over, restart it and it still wont come up

  • Photosmart c4740 not printing black

    Help! My printer is not printing black ink! I just changed the cartridges and the color is printing fine but the black won't print at all. I've tried everything i can think of! And it keeps telling me that my cartridges are low on ink which isn't tru

  • Gl Gurus! Query help

    We have 100's of accounts in GL_CODE_COMBINATIONS segment2, not been used for years. We want to inactivate these accounts not used for more then 3years. Does any one have any idea about to find this out in a query which tables to join we are in apps

  • FLASH 8 publishing a QUICKTIME movie

    Hello I am trying to publish a FLASH 8 file as a QUicktime movie. WHen I go to publish as a QUICKTIME it says to select VERSION 5 of FLASH. But when I click OK to publish, I get a message tha tfeatures in the flash file are not supported by VERSION 5

  • Can't log in to OBIEE analytics

    Good day, i'm installing OBIA 11g on a windows server 2008 machine , i followed the documents to install Informatica 9.1.0 & DAC 11.1.1.6.4 it's all up & running i can successfully log in to EM and weblogic server but i can't log in to my analytics (