Disadvantage of using change document

Hi all,
I am currently using triggering certain code (which is written in receiver fm in SWETYPV associated with an event) based on change documents using SWEC.
I just want to know are there any disadvantages associated with usage of change documents, creation of change document objects.
Pointers to any documentation on change documents would be helpful, I am aware on how to use change documents but I want to get in depth of what exactly happens behind the scenes.
Thanks.
кu03B1ятu03B9к

I dont find any disadvantages with change documents.
http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm

Similar Messages

  • Regarding Workflow trigerring using change document

    Hi all,
    I am trying to trigger a workflow using change document object.
    I want that to trigger the workflow on the material master change through MM02.
    I have created  a business object ZBUS1001 and wanted that on change of material master
    the custom change document object should call the workflow
    I went through all the material avaialable over SDN ,but can not find a change object for change in material master through MM02  for std business object  BUS1001.
    Please tell me how to find one.
    Please reply if any one of you have some solution.

    Hi,
    Thanks for your reply.
    I am using an existing change object - MATERIAL_N of Business Object - BUS1001 and the event
    BASICMATERIALCHANGED.
    I have mentioned  the details in the tcode SWEC.
    And even in the workflow i have given the start of event  as the BUS1001 and event BASICMATERIALCHANGED.
    But workflow not called .
    Do we need to maintain an entry in SWED?
    If yes then in function module column what we need to mention.

  • Track a field by using Change Documents

    Hello,
    Does anyone knows how to get the history changes of an Equipment Classification? (IE02 -> Click on Classification tab).
    We have a requirement that needs to fetch an equipment number based on a classification change. Everytime a value changes on a particular classification (TEST_ID) we need to populate the corresponding equipment number affected in this update.
    We are using "Change Documents" to track changes from the equipment master information but I have no idea how to track changes from the Classification information.
    Any ideas would be highly appreciate it.
    Thanks in advance,
    -C

    CarstenDD wrote:
    Hello,
    I assume it is quite easy but I don't get it.
    I have 2 tables ANTRAG and PERSON and I want to update
    UPDATE ANTRAG SET SysKD = (SELECT DISTINCT PERSON.SysPERSON FROM PERSON WHERE PERSON.SysVM = ANTRAG.SysVK AND PERSON.SysVM > 0) WHERE ANTRAG.SysLS IN (11,12);
    This delivers the error "subquery returns more than one row". I assume due to the fact that I have more than one record in ANTRAG which fullfills ANTRAG.SysLS IN (11,12).
    PERSON.SysVM > 0 is needed because there are records in PERSON and ANTRAG with PERSON.SysVM = 0 and ANTRAG.SysVK = 0 (but not where ANTRAG.SysLS is in 11 or 12, these have all ANTRAG.SysVK > 0).
    I have no clue how to get a single returnvalue out of the select statement.
    Thanks for help
    Regards
    CarstenIt means that your subquery is returning more than one row of data so it can't set SysKD to just a single value.
    That implies you have more than one distinct PERSON.sysPERSON value that matches the where clause.
    Without your data, we can't help you any more than that.

  • How to use change document object ?

    Friends,
    I am learning to use the Change Document object for one of my Z table. I have created a change doc object using SCDO. I have now written a test report in which i am issuing the SELECT statement for fetching old and new values from the Z table and passing them to the FM generated by SCDO.
    I am not able to see the changes in the CDHDR and CDPOS tables. I am doubtful abt the values being passed to the FM. Here are the values i am passing:
    CALL FUNCTION 'YTEST_WRITE_DOCUMENT'
      EXPORTING
        objectid                      = 'YTEST'
        tcode                         = 'se38'
        utime                         = sy-uzeit
        udate                         = sy-datum
        username                      = sy-uname
      PLANNED_CHANGE_NUMBER         = ' '
       OBJECT_CHANGE_INDICATOR        = 'U'
      PLANNED_OR_REAL_CHANGES       = ' '
      NO_CHANGE_POINTERS            = ' '
       UPD_ICDTXT_YTEST               = 'U'
        n_ztest_cle                   = wa_ztest_cle
        o_o_ztest_cle                 = o_ztest_cle
      UPD_ZTEST_CLE                 = ' '
      tables
        icdtxt_ytest                  = itab_cdtxt.
    Is the object ID the same as the Change Document Object name ??
    Please help.
    Thanks,
    Ram.

    Well, i found a way out for the problem i was facing. I was not setting the "UPD_ZTEST_CLE " FM parameter. When i set it to 'U', the changes got reflected in the CDHDR and CDPOS tables.
    Can i reward myself as i solved this by myself ???

  • How to use change document for AUSP table in MM02?

    Hi All,
    I am working with MM02. When I change the characteristic value in classification view, I want that change to be logged in CDHDR table.
    I have created a change document object for AUSP table and generated update program for that. Now that program needs to be called in some <b>badi</b> or <b>exit</b> which can be called upon saving in MM02 after changing the values in classification view.
    Can anybody give me some idea where can I call that program.
    Any help wud be appreciated.
    Regards,
    Pragya

    Hi
    You have 2 possible solutions to meet this requirement.
    Option 1: Implement point # 3 of SAP OSS Note 943559
    Option 2: This is a workaround solution to skip standard SAP check for activation of change documents of Classification system and allow entries to be written into CDHDR and CDPOS table through MM01 / MM02 / CL20N tcode
    Solution: Implement an implicit enhancement inside include program 'LCLVFF10', at end of subroutine 'FILL_REDUN' i.e. line number '337'.
    Here modify the entry of table 'REDUN' where OBTAB = 'MARA' and set the flag 'AEBLGZUORD' equal 'X'. This will activate the change document creation for Change Object 'CLASSIFY' in CDHDR and CDPOS tables.
    Sample Code
    LOOP AT redun WHERE obtab EQ 'MARA'.
           redun-aeblgzuord = 'X'.
    ENDLOOP.

  • Code sample for using change document function modules

    Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS?  I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material.  I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)
    Thanks!

    hi check this..
    CHANGEDOCUMENT_READ_HEADERS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    CHANGEDOCUMENT_READ_POSITIONS
    Example:
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
    EXPORTING
    objectclass = 'EINKBELEG'
    objectid = l_objectid
    username = space
    TABLES
    i_cdhdr = lt_cdhdr.
    LOOP AT lt_cdhdr WHERE udate IN s_aedat.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
    EXPORTING
    changenumber = lt_cdhdr-changenr
    TABLES
    editpos = lt_editpos.
    LOOP AT lt_editpos WHERE fname = 'LOEKZ'
    AND f_new = 'L'.
    p_desc = text-r01. " Cancel Contract
    ENDLOOP.
    ENDLOOP.
    Check this link.
    http://www.sap-img.com/mm001.htm
    <REMOVED BY MODERATOR>
    venkat.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM

  • ALE Delta using Change Document

    Hi Experts,
    Im having a problem here..
    We need to create R3 Delta Extractor for SAP Standard tables but these tables doesnt have the delta-specific field that can be used as delta.
    So we tried to use ALE Delta for some of the sap standard tables and it worked and thats because the ALE Delta config already maintained in SCDO by SAP. But there are some of the SAP tables are not set in the tcode SCDO so I need to create a new entries in SCDO and generates the update program. But the thing is these tables are maintaned by user in SAP Standard tcode and the user do not want to have a customized program to maintain the tables. So how should I do this? Where should I park the generated update program? I already checked he tcodes doesnt have any user exits.
    These are the tables that i want to create the ALE Delta:
    T8J1A
    T8J1B
    and they are maintaned in standard sap tcode GJ25 and GJ26 respectively.

    Hi Sudheer,
    I have the same business requirement.  If you get an answer to this, I would be interested in hearing the resutls.  Thanks!

  • Triggering events using changed documents

    Hi friends,
                      In transaction SWEC, How can I use the two options 'On create' and 'on delete'.
    Thanks,
    Gaurav

    Check this beautiful [artcle|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80ddeba4-e780-2b10-7bb2-fc7a33efabbd]

  • Problem while generating Update progam for a Change Document Object

    Hi,
    I'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced
    "Function module name is reserved for SAP"
    Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.
    My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?
    Further (I decided not to open a new thread) - generated Update program uses
    CALL FUNCTION 'xxxxx' IN UPDATE TASK
    for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed  (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.
    Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?
    Well, to be precise, I think I have to give a sample:
    1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).
    2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).
    3. I call the CDO FM.
    4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).
    Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.
    In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.
    Any hints are wellcome.
    Thanks in advance.
    Ivaylo Mutafchiev
    Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM

    "IN UPDATE TASK" resolved by myself. The one should explicitly call 'COMMIT WORK' from Z-program after CALL FUNCTION '...' IN UPDATE TASK in order to get changes in the CDHDR/CDPOS commited. The key in this issue for me was to check the documentation of CALL FUNCTION :-).
    Regards,
    Ivo

  • Regarding Change document read

    Hi All,
    Am using Change Document read function module to find out the changed material details. i want to fetch the plant from marc to filter the records am having the only relationship i.e material to fetch the details from marc and mara,with this i can't filter because for one material four plants will be there.so am using the tabkey from that function module to fetch the plant i don't think is this a right way can anyone explain how i can get a plant.

    Think you query is misleading...
    As per my understanding you are trying to find all changes for materials in a specific plant right????
    If so below code can give you some idea:
    TABLES: mara.
    SELECT-OPTIONS: so_date FOR mara-laeda. " Date Criteria
    PARAMETERS: p_werks TYPE werks_d obligatory. " Plant
    CONSTANTS: c_tcode TYPE sytcode VALUE 'MM02'.
    TYPES: BEGIN OF ty_marc,
             matnr TYPE matnr,
             werks TYPE werks_d,
           END OF ty_marc.
    DATA: i_cdocs TYPE STANDARD TABLE OF cdred,  " Change Docs
          wa_cdocs TYPE cdred,
          i_marc TYPE STANDARD TABLE OF ty_marc, " Plant Existence
          wa_marc TYPE ty_marc.
    START-OF-SELECTION.
    " Read Change documents
      CALL FUNCTION 'CHANGEDOCUMENT_READ'
        EXPORTING
          date_of_change             = so_date-low
          objectclass                = 'MATERIAL'
          date_until                 = so_date-high
        TABLES
          editpos                    = i_cdocs
        EXCEPTIONS
          no_position_found          = 1
          wrong_access_to_archive    = 2
          time_zone_conversion_error = 3
          OTHERS                     = 4.
    " Delete documents where materials are not changed
      DELETE i_cdocs WHERE tcode NE c_tcode.
      CHECK NOT i_cdocs[] IS INITIAL.
    * Check for Material existence in Plant
      SELECT matnr werks INTO TABLE i_marc
             FROM marc
             FOR ALL ENTRIES IN i_cdocs
             WHERE matnr = i_cdocs-objectid(18)
             AND   werks = p_werks.
      LOOP AT i_cdocs INTO wa_cdocs.
        READ TABLE i_marc INTO wa_marc
           WITH KEY matnr = wa_cdocs-objectid.
        IF sy-subrc EQ 0.  " Material Defined in specified plant
          " Further Processing statements
        ENDIF.
      ENDLOOP.
    Correct me if my understanding is wrong.
    Regards
    Eswar

  • Regarding change document generation

    Hi,
    In t-code SCDO, for one object class STUE_V I have added one new table MAST and generated the same.  But while I execute my t-code CS01, the same is not appearing in exporting parameters in the standard program where it is calling my generated fucntion module.
    Hence it is giving dump.  This is part of BOMMAT idoc change pointer creation.
    Could someone shed some light on this as I am really stuck here.

    Hi
    Have you tried generating after adding the table in the class ? This is more a generation issue. Might be the include LCSVBF30 has not got properly generated.
    What I feel is if you are adding a table to a standard class then you must also change the code yourself and SAP is not changing the where used list of the update function calls.
    Refer
    http://www.scribd.com/doc/12627676/Logging-Using-Change-Document
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
    http://wiki.sdn.sap.com/wiki/display/ABAP/Change+Document
    note - 0000391833  -  No change documents for object dependencies change
    Regards
    Vijay

  • Change Documents for Sales Order (VA03)

    Hello,
    Is it possible to track changes to the text (VA03 - Header Detail - Text Tab) from a Sales Order by using change documents?
    Thanks in advance for your help,
    CL

    I don't think that is possible. These are getting stored in Longtext (ie STXH & STXL) by retrieving this also we need to use fm READ_TEXT.
    and also in change document table CDPOS fields VALUE_NEW & VALUE_OLD have length limit of 254.

  • Change Document for IH08 (Equip Record)

    Hello,
    I need to track some specific fields for the equipment record (EQUI) that changes over time. We are currently using Change Documents (CDHDR & CDPOS) in order to achieve this (it worked with the majority of the fields).
    We have been told that we also need to track when an equipment change it status, for instance, the equipment has change from Active (ACTV) to Inactive (INAC). I'm wondering why this type of changes are not being populated neither in the CDHDR table nor CDPOS. I also went to the IH08 transaction -> Extras -> Display Changes and is not reflected there as well.
    Is the equipment status different than the other field changes? What would be the best approach in order to track if a Equipment Status changed?
    Thanks in advance for your time and help.
    Kind Regards,
    CL

    Hi,
    It will provide the current status of equipment
    like
      select        * from  jest into jest up to 1 rows
             where  objnr  = lobjnr
             and    stat   like 'E%'
             and    inact  = space.

  • Change document for internal orders - RKAUFTRAG

    I am trying to trigger a workflow event using change document RKAUFTRAG (internal order).  It works when I change the internal order, but not when I CREATE an internal order.  Any help?

    Hi Kenneth,
    I am facing the same problem for object class RKAUFTRAG, for creation i am not getting the data.
    please let me know the user-exit.
    it will realy helpful for me.
    with regards,
    Debdutta Dey

  • Change document steps

    hi all,
    i want to keep track of changes to dictionary objects, can anybody guide me how to start with change document objects .
    please suggest me  step by step procedure.
    thanks in advance..
    regards,
    ujwalkumar

    Hi Bhavesh,
    sorry if i confused you.
    let me tell you what exactly i want to do...
    i heard there is something known as change document in ABAP which is used to keep track of changes to table fields ....
    changes can be update, delete or insert....
    and while reading SAP documentation on change document i understood that change document can be created using  SCDO Tcode...
    i want detailed step by step procedure to try out an example which uses change document objects..
    please help me in this regard...
    Thanks and Regards,
    Ujwalkumar

Maybe you are looking for

  • Can I highlight items in the open sites listing

    in the open sites listing on the left side, is there any way I can differentiate by highlighting items. Case in point, I have to search through the entire listing to locate my open gmail, if it was obvious, I could find it faster. Also, if a webinar

  • Clear or refresh WSDL cache in SOA  11G.

    How can do this in 11G? Thanks for your help!!

  • X220 Integrated Webcam

    Hi all, I have weird issue with my Lenovo x220 integrated webcam. Previously my integrated webcam used to appear as a device under the Printers and Devices, and this also used to get presented through to a windows 7 VM which I run on the x220 tablet

  • Calling SQL*Loader from PERL; Message 2100 not found

    I am trying a simple PERL script to call sqlldr and load data into an Oracle 10G database. I get the error message: Message 2100 not found; No message file for product=RDBMS, facility=UL Many forums have said the answer to this is to set environment

  • ALE - MATMAS user exit

    Hi all. I send a material using bd10 (matmas). I need for example add or change some information in receivng system (master data). I found the user exits EXIT_SAPLMV01_002   EXIT_SAPLMV02_002 I set a break point but how to set up a debbuging mode. I