Material Master Change Documents

We have currently added additional fields to MARA and I am trying to add the changing of these new fields to the Material Master Change Documents.  Does anyone know how I can accomplish this?

Dear Khrista,
I hope you are looking for change documents that would be generated whenever specific field value changes when you change material master. It would be stored in CDHDR and CDPOS.
One way is to add custom fields to be considered is to implement a proper BAdi/Enhancement.
Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
REPORT ZTEST.
TABLES: TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA: FIELD1(30).
DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS: P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA: WA_TADIR TYPE TADIR.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
ENDCASE.
Alternatively, you can do the following:
1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
2. Double click on to the program name and go inside the program (Abap editor)
3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
ull get a list of Enhancements related to that Componene....
5. Choose which ever enhancement will suit ur business need ..
6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
For a user exit......
Finding whether there is any User Exit or not for tcode VA42
1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
2. Double click on to the program name and go inside the program (Abap editor)
3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
Hope this will help.
Regards,
Naveen.

Similar Messages

  • Accessing material master change information

    We have a requirement to pull all changes to material master records by month.  I know that I can hit the CDHDR and CDPOS tables using CHANGEDOCUMENT_READ_HEADERS and CHANGEDOCUMENT_READ_POSITIONS functions to pull this; however our change tables are so huge that the program is timing out.  Running in background does not work either because the spool request only shows a few of the pages (10, I think) where the document is actually over a thousand printed pages.   I can't email the spool request either because the file is too large. 
    My question is...is there an infostructure that only contains material master changes (as opposed to all changes as in the CDHDR and CDPOS tables?)  I know that when you go into MM03 and view materail master changes they pull up really quickly.  Is this program hitting something else rather than the CDHDR and CDPOS tables?  How do they pull up so quickly even if there are many changes.
    Thanks in advance.

    >
    SDW wrote:
    > I know that when you go into MM03 and view materail master changes they pull up really quickly.  Is this program hitting something else rather than the CDHDR and CDPOS tables?  How do they pull up so quickly even if there are many changes.
    >
    That's the beauty of having the option to debug a program. Wondering how SAP reads the data fast: go debug!

  • BAPI or FM to do scheduled(planned) material master change

    If this is has been asked and answered before I apologize in advance.  Sorry, but I can't seem to find it.
    I am quite happy with using fm BAPI_MATERIAL_SAVEDATA.  But as far as I am aware, this does an immediate change only.  I am trying to find a similar FM to schedule material master changes like can be done with transaction MM12.
    Do you know of FM to do this?
    Thanks,

    Hi,
    I would suggest you perform the BDC recording for the transaction ME52 istead of the ME52N, as it wil be easy to record and perform the necessary updates later.
    AS for the FM to be used you can useFM 'ME_UPDATE_REQUISITION'  field ' PLIFZ (Planned delivery time in days) ' from the structure UEBAN (Change Document Structure; Generated by RSSCD000)
    Hope it helps
    Regards,
    Mansi.

  • Material master change report

    I've been asked to created a program for material master changes that will run nightly and send an e-mail if any field on any material number has changed that day.  I've checked into MM04 and MM44 but both run for a single material only.  Is there any report that will run for all materials and give the change records?  I'm trying to explore all options before writing a custom report.
    Thanks!

    see OSS note 336668, it describes a modification to MM04 which fulfills your requirement.

  • Table name for material master change

    What is the table name for material master change, so that I can get the old values and new values at plant level.
    More specific:
    I want to check the old values for Re order point and Safety stock in MRP1 and MRP2 fields in material master for many materials. Please help.

    Use CDPOS and CDHDR table to get the values which were changed.
    CDPOS>use fields Change doc. object give in as MATERIAL and in the Table name>MARC

  • Material master change with ECN mandatory?

    Dear All:
               How can I make the field of ECN number mandotary in case of  material master changing?  Thx.
    BR
    Kevin Dai

    Hi,
    For making Material Master change  with ECN mandatory you need to activate ECM.
    For more details of ECM, pls go through the following link :
    [Engineering Change Management|http://help.sap.com/erp2005_ehp_03/helpdata/EN/64/a49a382ba4e80fe10000009b38f8cf/frameset.htm]
    Hope this helps.
    Regards,
    Tejas
    Edited by: Tejas  Pujara on Nov 14, 2008 8:29 AM

  • Reg : material master change history

    Hi All.
    I am changing the value of the material master characterstic assigned to class under the classification TAB of material master.
    I want to extract the last chaged date of the characterstic value.
    The material master change history ( Table CDHDR)  is not reflecting the changes done to the characterstic value.
    Can anybody please suggest me how can i extract the change history of the characterstic value of a given class for a given material.
    Thanks
    Vijay

    Hi
    If a field is changed in any transaction with a new values those changes are recorded in CDHDR and CDPOS tables with the field name, Transaction name and field old and new values, changed by and date etc
    So you have to fetch the change data history from those tables passing the
    OBJECT CLAS = MATERIAl and the Objectid = Material no and fetch the data from CDHDR first and then for all entries of CDHDR fetch the data from CDPOS and use the data and required fields
    Regards

  • Material master changes - approval

    Hi ,
    Is there any way that material master changes can will go to approving manager as we have MI20 used to approve stock take changes.
    Please suggest.
    thanks

    Hi,
    No. MI20 is different because it is posting a difference in costs, so this is how it can be approved.
    You should instead restrict change authorisation of material master to key users.
    Thanks.

  • Standard report for material price change documents

    Hi Friends,
    Is there a standard report which lists all the material price change document?
    To view the document individually t-code CKMPCD can be used, but I need a report which lists all the documents for a specified period of time.
    Thanks a lot for all the efforts.
    Regards,
    Shilpi

    Hi,
    I do not know a standard report but an infoset+query created based on logical database BRM and BKPF-AWTYP = PRCHG (price change), BKPF-BUDAT (posting date),... and some BSEG-fields will give you the posted amounts. The original document (=corresponding price change document) number can be seen in BKPF-AWKEY.
    best regards, Christian

  • Material Master Changes in a Particular Date

    Hi Experts,
    We want to check, how many changes have been done in the mateiral master on certain date in certain login thru T-Code MM02 or MM17.
    How Can I get a report of this.
    I believe Table CDPOS and CDHDR is used to know the changes in the master, but when I am making a query, Table CDPOS can not be using as a join table.
    Kindly guide me, full points for helping answers.
    GR

    hi,
    You can use the table EKBE for purchasing doc history...
    FOR MATERIAL MASTER:
    see changed Material Price by MR21
    see Material Change Document by CKMPCD & CKMPCSEARCH
    Display all Material Changes by MM04
    Regards
    Priyanka.P

  • Material Master Change Pointer IDOCs not generated for Moving Avg Price GR

    No IDOC is created or distributed when the moving average price
    changes. Each time a Goods Receipt is performed, the material master
    moving average price (MBEW-VERPR) changes but the change is not
    distributed. No change pointer is created in the tables. Why?
    We need to send the moving average price each time it changes. In our
    case, each time a Inbound Delivery has been Post Goods Receipt this
    value changes for that material + plant combination and the value
    should be sent.
    The field MBEW-VERPR is included in BD52 as a field relevant for change
    pointers for the message type.
    Please advise.

    Hello,
      SAP will not generate change pointers (and no IDOCs) for Moving Average Price (MAP) changes. This is because MAP updates are not really Master Data changes and they are driven by transactions such as Goods Receipts, Revaluations etc. For these transactions, SAP will generate respective accouting documents for traceability.
    Thanks,
    Venu

  • Bapi_material_savedata and material master change log

    Hi,
    The BAPI_MATERIAL_SAVEDATA is called to extend a part number to a storage location and change MRP4 Re-order point qty and Replenishment qty.
    The material master (MM03) correctly shows that the part number was extended successfully and the Re-order point qty and Replenishment qty are reflected correctly in MRP4.
    However, when I view the Change Documents (menu-Environment-Display Changes), only the extension to storage location is listed. There is no record for the quantities.
    Is this as expected? Is there something that can be done to enable recording of the quantities as well?
    Because it's a new part number in the storage location, I expect to see the usual as below, but there's none.
    old value / new value
    0            /                  02
    0            /                 10
    Many thanks,
    Huntr

    Hi,
    The solution is to call the bapi twice: once to create the mrp view and once to change the values in the view.
    The first call will generate a Create event in the document log and the second call will generate a field Change event.
    Thanks,
    Reyleene

  • Most use ful t code for Material Master changing

    Dear All,
    Can any one give me most useful T-codes for create, change and display material master.
    I have one T-code which is very useful for material master it is "MM50". With help of this tcode you can see material extend detail and also you can delete mass material with help of this tcode.
    So please use it and also give me other this type of tcodes.
    Regards,
    Mahesh Wagh

    Hi,
    MM17, LSMW, MM50 --- These are the 3 main transactions which is used frequently to Mass change the  Material master.
    There is one more option is there using BDC Upload.
    Batch Data Communication or BDC is a batch interfacing technique that SAP developed. It is mainly used for uploading data into the SAP R/3 system. BDC works by simulating the user input from transactional screen via an ABAP program.
    The data input data file will come in the form of a flat file which the user save as file type txt file or prn file from the Microsoft Excel program. An Abaper will create a program to read the text file and upload into the SAP system.
    Transaction -- SHDB will be used to record the change material master. After, the simulation, the Abaper can generate a sample program and modify from there. It makes the programming easier and faster.
    For a BDC upload you need to write a program which created BDC sessions.
    hope you got it. Take a help of  ABAPer for this BDC Upload.
    rgds
    Chidanand

  • Material Master changes are not allowing (MM02)

    Dear All,
    we have done year end activities successfully for the 2010 fiscal year. we are following January to December. In 2011 January 9th date we have activated Material ledger. after that when we try to go to material master the system is giving this error.
    "Currency was not defined at production startup
    Message no. C+040
    Diagnosis
    You have set the material ledger to productive in valuatione area DEL1. Nevertheless, information about the currency settings at the time of production startup are missing.
    System Response
    The system cannot ensure data consistency, since it is not possible to compare the current currency settings with those made at production startup.
    Procedure
    1. Make sure that the currency settings have not been changed since material ledger production startup in valuation area DEL1.
    2. Inform your system administrator."
    Even when I try to create the new material master it is showing the same error.
    Could anybody guide me how to solve this.
    Thanks and regards,
    Mr.Rao

    Hi Mr Rao ,
    Your ML currency settings are incorrect .. which is causing the issue..
    A . Have you checked the following notes which give a detailed information about Material Ledger activation: 596558 Material ledger production startup 384145 Advice note on material ledger production startup 165844 Material ledger production startup Please, check attached note 596558, which provides recommendations on Material Ledger production startup: ...before ML activation .. i hope not ..
    B Always activate the material ledger for a complete company code and copy all currencies from FI. This is the only way to ensure the reconciliation with FI. c) In addition, it is recommended that you activate the material ledger for a complete company code because the invoice verification can neither store invoices that contain materials from plants the material ledgers of which are active nor more materials from plants the material ledger of which is not active. ... Please, consider that only transactions performed after the startup will be taken into account for the actual price calculation.
    C .Now to correct it .. you have to deactive ML and correct the currencies and then re-activate ML . Have a look into SAP  : Note 53947 - Changing currencies after production startup.  Now , are e the actual activities now posted and production is active .. if yes .. the deactivating ML is a pain.
    D .If the Material ledger is already set to u201CProductiveu201D, run the report SAPRCKMJX using SE38. This report should only be run in Development or Testing environment. It is not recommended to be used in Production. It may be used in case there is no activity in the plant (no stock, no movements have happened ever). SAP recommends use of their CO-PC development support for this (OSS Note 108374).
    Please revert back for any further clarifications
    Regards
    Sarada

  • Problem in BDC for Material master Change

    Hi,
      I have made a BDC to change the material master, I have done the recording with SHDB   I want to do changes in Sales data and MRP data, when I do the recording I have selected views and it was 4  , 11 AND 12 VIEW IN select vie option    but in some material  Classifcation view is maitain and it is coming at 2nd position and my selected views are shiftin by one position  due to this BDC is giving error Screen contain no filed  -
    I sthere any way that I acn directly select the Three views as Sales data , MRP1 and MRP2,   because when we do the recording it is not showing the name  it is showing as
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(12)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=DEF_SAVE'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(04)'
                                  'X'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(11)'
                                  'X'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(12)'
                                  'X'.
    regards,
    zafar

    Hi,
    Myproblem is solve , in the table MARA i found the filed VPSTA : Maitenance status,   Having the vakue may  KVEDLBZX  those value is diffrent for different  material   this value indicates
      User department                       Maintenance status
    Work scheduling                                      A
    Accounting                                               B
    Classification                                            C
    MRP                                                           D
    Purchasing                                                E
    Production resources/tools                       F
    Costing                                                      G
    Basic data                                                  K
    Storage                                                       L
    Forecasting                                                 P
    Quality management                                    Q
    Warehouse management                             S
    Sales                                                           V
    Plant stocks                                                 X
    Storage location stocks                               Z,
    after reading what fields are maitain according to that i have selected the proper views  and my problem is solve.
    regards,
       zafar

Maybe you are looking for

  • New MBP 15" Weird Freezing & Disk (Volume Header) Problems, related?

    Hi all I hope someone can help me, and I hope I don't have a faulty Mac! I bought a 15" MBP a week ago and while it's awesome, I have a problem where the system will completely freeze, except for the mouse cursor. Nothing on the keyboard works, force

  • I can´t turn off my phone

    I have a strange problem. I can't turn it off without it initiating a boot loop all on its own. Every time I press the power button and select "Power Off", it turns off and then about 5 seconds later the Sony screen comes back on, stays on for a few

  • Questions regarding HR Org Structure replication from ECC to SRM

    Hi Experts , We have SRM7.0 ( SP08) with ECC6 ( Ehp4) having Classic Scenario . I managed to replicate entire  HR Org Structure  from ECC system to SRM system.  I replicated O (Organization), S( Postion) and P ( Person), which successfully created O,

  • Is it possible to associate a condition to authentication

    What I am trying to do is, authenticate only if a particular attribute say Field1="fine", basically trying to avoud a search,and then attribute, It there a way to do in one shot ? Thanks

  • Runtime error with PrinterJob.

    Hi All, I am running one application on WINDOWS 98, which invokes a JFrame containing JTable.Using PrinterJob.getPrinterJob()... i am trying to print the JTable.It's giving me a runtime error saying Application caused an exception 10h in module JVM.d