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

Similar Messages

  • UCCX 8 - Dramatic change in the Create File Document step that is used by the Create XML Document step in order to read an XML file

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    For the last 5 years (and in IPCC3.x/4.x,UCCX/5.x/7.x) I've used the same basic subflow to read a XML document that contains holiday dates where the queue should be closed.  I've re-used this script on 20+ client installs and it's always worked.  The structure of the script allows you to pass the path and filename of the XML document as parameters to the subflow. (The document is in the repository)
    I loaded this script in UCCX 8.0.2 recently and it crashed with a Java.IO error.  It looked like it was trying to read the file system directly and not the repository. (In the Linux appliance model this kind of makes sense but why is the step trying to read the file system directly?)
    So I open a TAC case (SR# 615243125) and TAC tells me that the method of using the Create File Document step is not supported anymore and that I should specify the filename directly in the Create XML Document step
    The problem that I see (aside from having to edit all my scripts that use XML files) is that the Create XML Document step is looking for the input to be a type DOCUMENT and not a type STRING.  This seems to imply that I have to hardcode the document in each script that I deploy for a customer.  When it was a string it was easy to construct the full file path from parameters and pass to the subflow.
    Questions to the group
    #1 Am I missing something here?
    #2  Do you assume that you'll be able to load a script that worked fine in UCCX 7 into UCCX 8 and that it should completely function when you're doing everything according to the step reference documentation.
    #3 Cisco didn’t document this in any way that I can find.
    #4 How can you use the Create XML Document step in a fashion that would let you construct the path of the file and the filename previously in the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    (Background)
    Create File Document Step
    The input filename is a STRING, could be an explicit path and filename in the repository or a variable that represents that path and string
    The output of this step is a DOCUMENT to be used in the Create XML Document step
    The string FILE_FullPathHolidayFiles references  en_us\folderName\documentName.xml
    The document was properly uploaded into the repository only, NOT trying to directly read c:\foo\blah…
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    The create XML document input can only be a type DOCUMENT

    #1 Am I missing something here?
    You are mixing two different issues together here.
    The Create File Document step is indeed not needed or supported for creating an XML document. That is why there is a unique step; to trigger XML parsing within the MIVR subsystem.
    Accessing the file system is restricted to a single folder within the VOS model (i.e. 8.0+). This folder is not backed up, replicated, or cleaned up automatically. It was intended to give developers some FS access as a temporary swap location only.
    #2  Do you assume that you'll be able to load a script that
    worked fine in UCCX 7 into UCCX 8 and that it should completely
    function when you're doing everything according to the step reference
    documentation.
    Assume nothing; read the documentation and attend one of the dozens of partner training sessions that CCBU put on advising of the upcoming changes.
    #3 Cisco didn’t document this in any way that I can find.
    You're right, I guess, on the Create File vs. XML Document step. AFAIK Cisco never wrote a notice into the Step Reference Guide explicitly stating that you cannot use the Create File Document although the documentation seemed pretty clear to me without it. File system restrictions are documented in the 8.0 release notes.
    Scripting and Development Series: Volume 2, Editor Step ReferenceUse the Create XML Document step to create a logical document that maps a document to another document variable (where the document has already been pre-parsed as an XML document and is ready to be accessed by the Get XML Document Data step).Use this step before the Get XML Document Data step to obtain data from a document formatted using the Extensible Markup Language (XML).
    #4 How can you use the Create XML Document step in a fashion that would
    let you construct the path of the file and the filename previously in
    the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    No it hasn't; just concatinate a string to build the Source Document parameter the step needs. Example:  "DOC[" + myFilePath + "]"

  • Problem with Change Document FM  - Not all fields are tracked in CDPOS

    Hello everybody,
    Using transaction SCDO and following necessary steps described in forum, I have created a change document ZFBR to track changes of a table ZFBR. The problem is, the generated FM ZFBR_WRITE_DOCUMENT does not track changes of some fields of the table (inserts are always ok, problem is with updates). After some debugging I realized that the FM DDIF_NAMETAB_GET was returning the table DFIES_TAB where the LOGFLAG was empty for some fields (which are not tracked) so that changes of these fields were not visible in table CDPOS. However, fields with LOGFLAG = 'X' are tracked succesfully (changes are visible in table CDPOS).
    I did not specify any fields to be get logged or not during the steps in SCDO (can we do such a specification anywhere?), does anyone know why the field LOGFLAG has the value '' (space)?
    Best regards;
    Ozcan.

    Hi again,
    The problem has been solved.
    The data elements used in a table are the reason for the problem I have described above. When displaying the details of a data element, under tab "Further Characteristics" , the "Change Document" checkbox has to be selected to enable change document tracking. I have copied the problematic data elements with Z prefix and made the necessary enabling. I have replaced the data elements with their Z equivalents.
    Best regards.
    Ozcan.

  • Change Pointers - adding a new field to existing Change Document

    Hi,
    We have a requirement to capture the changes made to the Material object through the transaction C223. The changes to field MKAL-PRFG_F have to be captured.
    There is an exisitng Change Document Object - MATERIAL. This is included in Message Type MATMAS. These are the steps we have done:
    1. In SCDO - added the Z structure to the Change Document Object - Material. [Z structure contains the field MKAL-PRFG_F. Change pointer option is checked for this Data element.
    2. Created a Z Message Type with reference as MATMAS.
    3. In BD52 - we have listed the fields for the new Z Message Type created.
    4. The Change Pointers - reactivated after the steps are done.
    The changes to the field MKAL-PRFG_F through C223 Tcode are not recorded in BDCPV table.
    Have we missed any steps here?
    Thanks,
    Pallavi

    HI,
    I don't think a new zmessage type is required in this case.. is the structure added to MARA table??The change document programs are there which triggers the iodcs... In SCDO transaction code , click on generation info for MATERIAL.. You will find the includes. The FM MATERIAL_WRITE_DOCUMENT creates entries in CDHDR and CDPOS, if we maintain entries in BD52 , the entries wil be written in BDCP and BDCPS tables.
    Try to add your structure in MARA table as append strucre and then you can debug the IDOC from WE19 and use the FM "MASTERIDOC_CREATE_SMD_MATMAS" and then you also need to switch on Update Debugging on, to debug the changes in update FM   MATERIAL_WRITE_DOCUMENT.
    Please see if the change is reflected or not....
    ELSE.
    may be you need to create a new entry in SCDO and do all the ALE configurations for change pointers.
    Please find the link for change pointers and also you can get lot of information on change pointers in SCN.
    http://help.sap.com/saphelp_nw70/helpdata/EN/12/83e03c19758e71e10000000a114084/content.htm
    Regards,
    Nagaraj

  • 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

  • Problem while creating change document

    hi all
    i am creating change document for master data like project type , project applicant
    but i am unable to complete it as i am very new to ABAP
    can any one give me step-by-step procedure to do the same?
    I have followed the procedure given in sap Liabrary i.e.
    1 -  Define the change document object
    2 -  Check in the Dictionary, whether the data elements of the fields which are to
          be logged are flagged appropriately.
    3 -  Generate the update.
    4 -  Program the appropriate calls in your program.
    But then i got stucked on point 4...what exactly I need to do in that?
    Regards
    Sheetal

    Hi,
    The table you have used is having the key which comprises both MANDT and ID. However, while writing the code you must have used only the ID. The system takes MANDT and ID both as the key fields.
    This may be the reason of the error you are encountering.
    Thanks,
    Jyoti

  • Creation of change document to trigger workflow.

    Hi,
    I need to trigger a workflow when there is a change in the PO line item (EKPO). For this, I can use the standard change object EINKBELEG, but this only bears the purchasing document number as the key. hence when ever a change event is triggered in the custom BO, the key is just the PO#. This should be not the case.
    The key field should be a combination of the purchasing document number and the line item number, hence I created a custom change object ZEINKBELEG refering to EKPO and generated it too. The steps in SCDO, SWED, SWEC has already been handled. But the custom event in the business object does not get triggered. I need some help regarding this.
    Precisely speaking, if there is a change in the line item value (in ME22N). The business object event should trigger.
    Thanks,
    Sukumar.

    Hey Sukumar,
    Do one thing  instead of creating  custom change document. create a new  event in bus2012 using condition editor of SWEC only create a event only when there is a change in EKPO. that resolves your issue..  just a suggestion

  • Not able to release normal change document for development

    Hello All
    We have Implemented ChaRM in SolMan 7.1 SP10
    Have created the Project and activated Charm with required DEV/QA/PRD logical component and before creating the Maintenance cycle, we did a check in the project which showed all green..
    We are able to create a request for Change and go till the approval, when we try to change the status to release for development, it is throwing the below error and not letting us go further.
    We have checked the MC phase, and it is in phase Dev with release.
    Project is in IN PROCESS state.
    IBASE and Component details are correct.
    Tried to put back to Validation and re tried for Development and this did not work.
    Until unless change document created successfully, we cannot go ahead even though MC phase is in DEV with release.
    I have seen few blogs and I have checked below steps
    system roles in SMSY
    Landscape system info
    Changed MC phase to DEV with release
    Strange why it is not allowing to create change document ???
    Please assist
    Thanks
    Sateesh.

    Hello,
    Three consistency checks are performed when you choose action "release for development" (resulting in the SMCR's status "being implemented"):
    PROJECT_ASSIGNED: Project is Assigned
    SYSTEM_EXIST: System assigned to collective change request
    FOLLOW_ON_GEN_OK: Change Documents Can be Created
    In case any of these checks fails, the SMCR's status returns to "approved".
    These same consistency check are also checked when the SMCR status is set to "approved". The behavior for a failed check, however, is different in this case. Just a warning message is shown on the top of the screen and the "approved" status can be set.
    Question 1: When you set the SMCR to "approved", those warnings are shown too?
    Perhaps there is something wrong with the assigned project.
    Check if the assigned logical component has the correct systems/clients.
    Check if the transport tracks between the systems listed in the logical component are working.
    Question 2: When you assign the scope (change type, in your case, Normal Change), some system data from the production system defined in the logical component are automatically filled (System, Client, Configuration Item, etc). Is this happening?
    Regards,
    Daniel

  • Cancel price change documents

    Hi all,
    User in our company   run  transaction mr21 a lot of materials in many plants and change the moving average price.
    He get a   of   price change documents numbers (display in transaction CKMPCD)
    Now I want to cancel the documents and return the moving averege price before change.
    Can any transaction  that cancel the document in one step   ? (   it a lot of work to do this in mr21 for all material in many plant)
    Thanks and best regards
    yuval

    Hi,
    You can again post MR21, with the original price. Secondly you can create a LSMW with the original price, co, plant, valuation type (if the material is split valuated) and upload.
    The price will be corrected.
    You can not cancel financial docuement using FB08.
    Ishu

  • Regarding a Change Document Function Module ----- VERY VERY Urgent

    I am using a Change Document Function module "CHANGEDOCUMENT_READ". It is taking a long time.
    I am using the parameters:
    Start date is the first date of the current month
    Enddate as last date of the current month
    Object class as 'MATERIAL'
    Table Name as 'MBEW'

    Hi ,
    When you want to read the change documents, please follow the below process.
    1. Read the change documents headers with function modules
    call function 'CHANGEDOCUMENT_READ_HEADERS'
           exporting
                date_of_change             = cdhdr-udate
                objectclass                = cdhdr-objectclas
                objectid                   = cdhdr-objectid
                time_of_change             = '000000'
                username                   = cdhdr-username
           tables
                i_cdhdr                    = gt_cdhdr
           exceptions
                no_position_found          = 1
                wrong_access_to_archive    = 2
                time_zone_conversion_error = 3
                others                     = 4.
    2. From above step you will get data of change documents very quickly into Itab (gt_cdhdr)
    3. Read the details on change documents with functiion module by using Itab in loop for each document.
      loop at gt_cdhdr.
        call function 'CHANGEDOCUMENT_READ_POSITIONS'
             exporting
                  changenumber            = gt_cdhdr-changenr
             importing
                  header                  = cdhdr
             tables
                  editpos                 = gt_cdshw
             exceptions
                  no_position_found       = 1
                  wrong_access_to_archive = 2
                  others                  = 3.
    Above is the best way to read the change documents.
    Rewards please if above info is useful.
    Thanks.

  • Change pointer - Change Document  - IDOC

    Hi,
    I have to capture changes occurring to master data (customers' table )and to distribute them via the IDOC interface (customers' IDOC)  .
    My steps:
    1. SCDO - create change document object and bind customers' table, generate update function
    2. WE31 - develop customers segments with same customers' table structure
    3. WE30 - develop new IDOC type
    4. WE81 -  create new message type
    5. WE82 - assign message type to IDOC type
    6. SW01 - build business object for supertype IDOCAPPL
    7. BD105 - supported object determonation
    8. BD104 -  assign message type to business object
    9. BD52 - define change-relevant fields
    10 .????
    It does not work. I didn't find one help for my purpose.
    Have any idea how to do it?
    Thank you very much.
    Best regards, Natalia.

    Hi,
    Yes I mark my message type in BD50 and in BD64 (Distr.model)
    May be I do extra operations?
    Thank you, Natalia.

  • Get change document data

    How do we get the change document data to be used in a workflow,
    I have made entry in swec , there i associated the change object and my zbo delegeted from standard bo and specified the event as "on change". now i want to send a mail using this changed data.
    I have two options either i use an exit fm to trigger the mail or use a workflow to trigger tha mail, but how do i use the changed data that i get from cdhdr, i need to specify these fields in tha mail body.
    or if i choose to use an exit fm how to do it.
    regards,
    кu03B1ятu03B9к

    Hello,
    Create a new background method in the ZBO to get all the required details from CDHDR and CDPOS tables. Export them from the method as separate variables or as an internal table.
    Create a task in the workflow to execute this method before the sendmail step. Once the data is exported from the method, it is going to be available in the workflow container and so you can use the same in the SENDMAIL step.
    Hope this will help.
    Thanks,
    Samson

  • Change Document program Generation

    Hi all,
    We are trying to capture changes to several ECC tables. We want to capture any change to that table. We want to know what kind of change (Insert, delete or update) and then the key of the record that has changed. Our goal is to capture the most updated information from a table after a change.  In order to achieve that we are using a process in which change document objects are created and changes are logged as change document in CDHDR and CDPOS tables. I have generated a program to extract data from CDPOS and CDHDR table. The following link describes the whole process of change log enablement
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
    a. Created a Change Document Object /TEST/ZXXXXXXXXXXXXX using transaction SCDO and assigned the tables to that Object.
    Following function modules and generated parts are automatically generated, followed the above SAP Help document.
    Include programs and function modules
    Data declaration, TOP...................... /TEST/FZXXXXXXXXXXXXCDT
            Consisting of............................. /TEST/FZXXXXXXXXXXXXCDF
               and....................................... /TEST/FZXXXXXXXXXXXXCDV
    Update function module..................... /TEST/ZXXXXXXXXXXXX_WRITE_DOCUMENT
    Call updates function module................ /TEST/FZXXXXXXXXXXXXXCDC
    I have included the generated /TEST/FZXXXXXXXXXXXXXCDT and /TEST/FZXXXXXXXXXXXXXCDC
    to the main program of function module SAPLZxxxxx.  But I am getting syntax error in the Include /TEST/FZXXXXXXXXXXXXXCDC xxxxxx variable is not in the main program.
    I need some help on this:
    a.       As per SAP response what steps are left?
    b.       Is there any other configuration step that we need to perform? The attached document talks about transactions SWED, SWEC and SWO1 in appendix D: Connecting Change document to work flow. We would like to understand if it will be relevant to our enablement work or can we by pass this and still be able to enable the change document logging for our tables
    Any help is greatly appreciated...
    Thanks,
    Mili.

    Instead of the main program SAPLxxx, try to put include /TEST/FZXXXXXXXXXXXXXCDT  into the TOP include of the main program. TOP include porgram name would be like LxxxxTOP. Try to compile it again.
    Regards,
    Naimesh Patel

  • SCDO - Change Document

    Hye,
    Facing problem with the change document with update status. The tables CDHDR & CDPOS are getting updated , however my custom table ZEMPTABL is not getting updated with new values.
    The steps for creation i followed is as:
    1) Custom table : ZEMPTABL with Change document ticked for data elements
    2) SCDO - Object created.
    3) My program which calls function module for write document:
    REPORT  ZMSR_TRACKCHNG_CUSTOMTBL.
    TABLES : ZEMPTABL.
    DATA : GS_EMPTABL LIKE ZEMPTABL,
           LS_EMPTABL LIKE ZEMPTABL.
    DATA : T_CDTXT TYPE STANDARD TABLE OF CDTXT WITH HEADER LINE.
    BREAK-POINT.
    SELECT SINGLE * FROM ZEMPTABL INTO GS_EMPTABL
      WHERE EMPNUM = '101'.
    LS_EMPTABL = GS_EMPTABL.
    GS_EMPTABL-EMPNUM = '101'.
    GS_EMPTABL-EMPNAME = 'TET'.
    T_CDTXT-TEILOBJID = 'ZTEST_TABL_CHNG'.
    T_CDTXT-TEXTART = 'TEST'.
    T_CDTXT-TEXTSPR = 'EN'.
    T_CDTXT-UPDKZ = 'U'.
    APPEND T_CDTXT.
    CALL FUNCTION 'ZTEST_TABL_CHNG_WRITE_DOCUMENT'
      EXPORTING
        OBJECTID                         =  'ZTEST_TABL_CHNG'
        TCODE                            =  SY-TCODE
        UTIME                            =  SY-UZEIT
        UDATE                            =  SY-DATUM
        USERNAME                         =  SY-UNAME
       PLANNED_CHANGE_NUMBER            = ' '
       OBJECT_CHANGE_INDICATOR          = 'U'
       PLANNED_OR_REAL_CHANGES          = 'U'
       NO_CHANGE_POINTERS               = 'U'
       UPD_ICDTXT_ZTEST_TABL_CHNG       = 'U'
        N_ZEMPTABL                       =  GS_EMPTABL   "new values
        O_ZEMPTABL                       =  LS_EMPTABL  "old values
       UPD_ZEMPTABL                      = 'U'
       LV_OPT                           = ' '
      TABLES
        ICDTXT_ZTEST_TABL_CHNG           =  T_CDTXT
    COMMIT WORK.
    WAIT UP TO 3 SECONDS.
    Can anyone let me know why the table is not getting updated with new values

    You should have TWO function modules to call, like
    * Update Database Table(s)
    CALL FUNCTION 'ZTEST_TABL_CHNG_UPDATE' IN UPDATE TASK
         EXPORTING
              n_zemptabl                 = gs_emptabl  "new values
              o_zemptabl                 = ls_emptabl  "old values
              upd_zemptabl               = 'U'.
    * Insert Change Document(s)
    CALL FUNCTION 'ZTEST_TABL_CHNG_WRITE_DOCUMENT' IN UPDATE TASK
         EXPORTING
              objectid                   = 'ZTEST_TABL_CHNG'
              tcode                      = sy-tcode
              utime                      = sy-uzeit
              udate                      = sy-datum
              username                   = sy-uname
              planned_change_number      = ' '
              object_change_indicator    = 'U'
              planned_or_real_changes    = 'U'
              no_change_pointers         = 'U'
              upd_icdtxt_ztest_tabl_chng = 'U'
              n_zemptabl                 = gs_emptabl  "new values
              o_zemptabl                 = ls_emptabl  "old values
              upd_zemptabl               = 'U'
              lv_opt                     = ' '
         TABLES
              icdtxt_ztest_tabl_chng     = t_cdtxt.
    COMMIT WORK.
    Regards
    Raymond

  • Change document and triggering workflow

    Hi,
    There's a z-table in ERP. The requirement is to send a notification to the Java server whenever there is a change in the data content of this table.
    Can anyone describe the steps to be followed.
    Thank you.

    Hi Pavan, Sharath,
    Now that I understand the concept of change documents, I have doubts about it's utility. I mean I did not find it to be a very good feature. The reason I say that is that one has to code for everything. It becomes the developer's responsibility to get the old record and the new record and pass these to the WRITE_CHANGE_DOCUMENT function. In addition, the developer also has to pass an indicator representing what kind of change is it - insert, update, delete.
    The only utility I see is when you have maintain an archive of the changes that happened in a table's content over a long period. In that case, you could refer to the CDHDR and CDPOS tables and find out what change occurred on which date.
    Your comments would reinforce my understanding of the concept.
    Thank you.

Maybe you are looking for

  • Error in Invoking Webservices from ODI

    Hi, I started getting the below error when using the ODI Webservice Invocation Tool. "com.sunopsis.wsinvocation.SnpsWSInvocationException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0" The webservice does get invoked properly inspite of the

  • New Computer...how to connect ipod & dwnld music on computer??

    Old computer gone...bought new computer...how do I download my music already on my ipod onto the new computer>???

  • Terminal help (i'm a newbie, too)

    Ok. i've been using firefox as my browser and i have to start it in safemode to fix an extension problem/bad profile. while going through the troubleshooting steps, i eventually reached this: "go to your Terminal and run: /Applications/Firefox.app/Co

  • Time Controlled digital line PXI-6251

    Hi, I need to create a time controlled boolean. For example a digital line is set to False. I'd like to change to True status for a certain amount of time (e.g. 150ms). Is it possible with PXI 6251? Thanks

  • Cache engine overloads, how to.....

    i've cisco cache engine 505 attached with cisco 2611 router. Now whenever i reload my cache engine it performs its job for 5 minutes after that it overloads and cannnot perform its job and cache engine changes its state to bypass mode. What could be