Regarding change documents in Project module

Hi All
Can we write change pointers in CDHDR table when we change the status of the project .
When I change the status of the project then status of the network is also changed.
Now my requirement is , as soon as the status of the network is changed ,entry should be recorded in to CDHDR.
I am able to record the changes when description or other things of the nework are changed but facing problem for status change.
Can we achieve this ?

Thanks Sreenivas,
This I am already doing and I am getting the records in JCDS as well as JEST table .
I just need to know is there any way through which we can write these records in CDHDR and CDPOS table. Because I am using SMD tool .
So i have created my own message type and done some configurations in BD52 transaction . When I run program RBDMIDOC program , this program reads all entries from CDHDR and CDPOS table based on the selection criteria defined in BD52  and log them into BDCP table. From BDCP table then I read these entries and perform my functionality.
When I change anything apart from status in the network it is logged in CDHDR and CDPOS. Status is going into JCDS and JEST table.
Now I need a advise from you , if i have to send the network record as an idoc to third party as soon as the project is released then what should i do. Is there any userexit on the save of CJ20N transaction or some other technique?

Similar Messages

  • 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 creation

    hi all
    I created the change document  & there i mentioned the master data table name TCJ1T (Project types)
    Updation to this table is done via standard tcode SPRO
    but my log entirs are not going in CDPOS , CDHDR
    now my question is :
    by creating the change document, when i run the standard tcode where exactly  the change document will be called to log the entries

    Hi
    Where you have created the change doc?
    in <b>SCDO</b> tcode
    Activate the object after creation and giving the table name
    Once it is created entries should come into CDHDR and CDPOS tables.
    Reward points if useful
    Regards
    Anji

  • 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

  • Regarding change document objects

    hi to all,
               I created  one change document object for one transaction say /tmw/tmw . Now I am trying to make changes in /tmw/tmw . table cdhdr and cdpos table are not updating anymore. but cdhdr and cdpos table are updating while passing data to function module /TMW/CHG_OBJ1_WRITE_DOCUMENT in se38 program. MY problem is tables are not updating while make changes in transaction(/tmw/tmw) screen . please help me .
    thanks in advance
    Edited by: mohankumarreddy on Jan 4, 2010 10:22 AM

    The transaction you are using must contain the write document function modules.
    steps:
    1. Create the change document. (Use the transaction SCD0.)
    2. Activate the change document for the object. (Use data element maintenance: transaction SE11.)
    3. Generate an update for the object. (Use the transaction SCD0.)
    4. Insert the appropriate calls in the corresponding programs     "<----
    Your write document will be havng fm's like CHANGEDOCUMENT_OPEN etc.
    The same must be incorporated in your transaction also.
    check sap help
    link:[http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/content.htm]

  • Regarding Change Document

    Hi,
    I need the reading material for Change document ( SCDO ).

    Hi,
    Check this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/content.htm
    Thanks
    Naren

  • 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.

  • SOLAR_MIGRATION of multiple projects & Change documents

    Hi,
    We are in the process off migrating solution manager projects to a new server using solar_migration. The idea is to migrate project by project since the projects are rather large.
    Now I get the idea that the generated transport contains all the change documents, also those of of other projects not yet migrated, even though I have only selected one project for the migration. The reason I get this idea is that the size of the transport files of empty migration test projects runs into several GB, so they must contains documents that do not belong to it.
    This could be a problem if for instance in 2 weeks time we migrate the second project which also contains all the change documents. This second migration could then overwrite the possibly updated documents in the project we migrated first.
    Is the assumption correct that you cannot limit the migration of a project to only contain the change documents of that specific project?
    If it is could we for the second project select the change documents based on a date range? And will the documents of the second project that have a change stamp before this date range authomatically become visible once the second project is migrated?
    Thanks for any clarification
    Tom

    Hi Tom,
    there is no risk to overwrite any documents, documents are identified by a unique ID, and each change generates a new version.
    If there are objects (=documents) in the transpotr request, that should not be in there (you should verify from the transport objects), you should open a call to SAP asking for clarification there.
    Kind regards,
    Carl

  • Project version and Change documents

    Hi,
    1) What is the difference between project version and Change documents?
    2) For Network say 100000, how to create different versions ( version 1,2,3.....)
    Regards,
    Prasad

    Hi ,
    Given below is the scenario:
    The project is having WBS and network created using assembly processing. The network say 10000 has got activities with work center (WC) and activity types 1,2 and 3.
    The requirement is:
    For the same network 10000 with the above activity types, Is it possible to create different work centers WC1, WC2 AND WC3 for Version 1, 2 and 3.
    ie,
    Network -
    work center----
    version
    10000  -
       WC----
    Nil
    10000--WC1--
    Version 1
    10000--WC2--
    Version 2
    10000--WC3--
    Version 3
    if it is possible, can any body tell me the procedure for the same.
    Regards,
    Prasad

  • Error while approving change document(TR lost project code)

    Hi All,
    I am having issue in change document approval, when we are approving change document for unit testing or if release management approving change for pre-production or production approval, we are getting error, I started coming from last two days only,\
    when I did detail analysis,  in all transports project code related to change document, disappear
    although if I create new change document, project code appear,
    Do we have  way to solve this issue?, I even not able to decouple the transport from change document, it giving error, do we have way where we can resync change document and transport?
    Dinesh

    Hi All,
    Do anyone have some solution for this issue?, it  is bigger than I thought, I can check it impacted all systems, and all transports,  all transports seems to issue they lost project code in it we rollover maintenance cycle last week and this problem started from their, we put charm master note and few other charm fixes(notes) last week,
    this problem not coming any new change document, but all change document created before rollover impacted
    Dinesh

  • 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.

  • Remote Function Module for Change document Items.

    Hi Experts,
    I want a Remote Function Module to read Change document Items, can any please help me out. <removed by moderator>
    Thanks,
    Sridevi
    Edited by: Jan Stallkamp on Aug 25, 2008 8:25 PM

    If you are looking for the fm here it is.....
    you can check this CHANGEDOCUMENT_READ_POSITIONS fm and its documentation.
    If it is suitable for your requirement copy the same fm and make it remote enabled.
    I think it should work for you.

  • Quirey regarding BOM change documents display -records  not able to underst

    Hi,
    While viewing Change documents  of BOm through CS03--Environment --change documents    ....the following is being displayed
    what does it really refers to ?
    user id is ofcourse :RNDCORE
    can any one provide some inputs ? what it refers and where to get the entire details of these deleted  ....records ?
    55564677   16.07.2008 12:24:33 RNDCORE      CS02  
    STAS    777M00016605010000013300000267   Deleted
    STPO    777M000166050000013300000266     Deleted
    regards,
    Madhu Kiran

    >    
    > STAS    777M00016605010000013300000267   Deleted
    >
    > STPO    777M000166050000013300000266     Deleted
    >
    >
    >  regards,
    > Madhu Kiran
    Hi,
    It says:
    STAS    777M00016605010000013300000267
    777           -Client
    M             -Material BOM
    00016605  - BOM
    01            - Alternative
    00000133 - Item Node
    00000267 - Counter
    Similarly for STPO    777M000166050000013300000266  also.
    Hope this Clarifies.
    Regards,
    Siva

  • 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.

  • Activating Workflow for Change Documents

    Hi
    I am working in cProjects 4.0 on ECC6.
    I am working on the scenario of automatic email generation when change document is created for project element.
    I have used sample workflow WS28700006 and following settings have been made :
    1. Make the required settings in the SAP menu under Tools &#8594; Business Workflow &#8594;
    Development &#8594; Definition Tools &#8594; Events &#8594; Event Creation &#8594; Change Documents
    &#8594;
    a. Overview (transaction SCDO)
    Enter DPR_PROJECTS in the table.
    b. Define Workflow Properties (transaction SWED)
    Enter the following data:
    Change document object DPR_PROJECT
    Leading table in change document DPR_PROJECT
    Change document key with structure DPR_PROJECT
    Action: Change X
    Structure DPR_TS_BUSINESS_OBJECT_KEY
    Function module BAPI_BUS2175_OBJECT_KEY_SET
    c. Linkage (transaction SWEC)
    Enter the following data:
    Change document DPR_PROJECT
    Object category BOR object type
    Business object type BUS2175
    Event CHANGED
    On change X
    In cProjects I have I have attached word document, and another user changed it and changed document again checked in again with overwriting the old one.
    But no workflow triggerd. In SWI1 transaction I cannot see any workflow triggered.
    Is there any problem with workflow and process or changing document in cProjects is not write ????
    Can someone help ????
    Regards,
    Niraj Sikligar

    Hi Niraj,
    Please ensure that you have made IMG setting for cProjects > Basic Settings>'Activate Change Documents'.
    'Change Documents' means that any change in the Project Objects will be recorded, and not the changes in the documents that have been attached.
    I am not too sure about the workflow settings that you have made, but just try with the img activity that I've mentioned. You can test the same by making some changes in Project (  for eg change the Project Status) and save it.
    Let me know if it helps.
    Regards,
    Vivek Pandey

Maybe you are looking for