BP change documents

Hi,
Has anyone implemented the change document history for BP in PCUI ? This is an ALV report in SAP GUI and I wanted to know if there is any option to integrate this report in the Account PCUI rathar than coding the whole logic.
Thanks.

Hi Mailme,
I've implemented the change history for the BP as a custom BSP application which I've integrated into the PC-UI as described in my Weblog Use CRM PCUI HTML viewer to call a custom URL. I think a start could be this function module:
FUNCTION z_bp_changehist.
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(PARTNER) TYPE  BU_PARTNER
*"  TABLES
*"      CHANGEHIST STRUCTURE  CDREDDISP
DATA: wa_changehist LIKE LINE OF changehist.
DATA: it_cdhdr TYPE TABLE OF cdhdr,
       wa_cdhdr LIKE LINE OF it_cdhdr,
       it_cdpos TYPE TABLE OF cdpos,
       wa_cdpos LIKE LINE OF it_cdpos.
* Datentypen für Tabellenbeschreibung
DATA: dd02v_wa TYPE dd02v,
       dd03p_tab TYPE TABLE OF dd03p,
       wa_dd03p LIKE LINE OF dd03p_tab.
SELECT * FROM cdhdr INTO TABLE it_cdhdr
   WHERE objectid = partner.
LOOP AT it_cdhdr INTO wa_cdhdr.
   SELECT * FROM cdpos INTO TABLE it_cdpos
     WHERE objectclas = wa_cdhdr-objectclas
       AND objectid = wa_cdhdr-objectid
       AND changenr = wa_cdhdr-changenr.
   LOOP AT it_cdpos INTO wa_cdpos.
     CALL FUNCTION 'DDIF_TABL_GET'
       EXPORTING
         name                = wa_cdpos-tabname
*       STATE               = 'A'
         langu               = sy-langu
       IMPORTING
*       GOTSTATE            =
         dd02v_wa            = dd02v_wa
*       DD09L_WA            =
       TABLES
         dd03p_tab           = dd03p_tab
*       DD05M_TAB           =
*       DD08V_TAB           =
*       DD12V_TAB           =
*       DD17V_TAB           =
*       DD35V_TAB           =
*       DD36M_TAB           =
*     EXCEPTIONS
*       ILLEGAL_INPUT       = 1
*       OTHERS              = 2
     READ TABLE dd03p_tab WITH KEY fieldname = wa_cdpos-fname INTO wa_dd03p.
*     Headerdata
     MOVE-CORRESPONDING wa_cdhdr TO wa_changehist.
*     Postition data
     MOVE-CORRESPONDING wa_cdpos TO wa_changehist.
     wa_changehist-F_NEW = wa_cdpos-value_new.
     wa_changehist-F_old = wa_cdpos-value_old.
*     Table Description
     wa_changehist-ddtext = dd02v_wa-ddtext.
*     Column description
     wa_changehist-ftext = wa_dd03p-ddtext.
     append wa_changehist to changehist.
   ENDLOOP.
ENDLOOP.
ENDFUNCTION.
I think we should do a development request to SAP because this is such a basic functionality.
Regards
Gregor

Similar Messages

  • Issue in generation of Change Document - ChaRM

    Dear All,
    We are implementing ChaRM, I have copied the standard transaction type to z.
    I am able to create request for change with transaction type zmcr but when the normal change or urgent change document are created they have standard transaction type.
    I have made the changes in SPRO (Defining copy control of transaction type) but still document are getting generated with standard transaction type.
    Please attached document of copying control.
    Thanks in advance
    Regards
    Sushant

    I have removed zmcr - smmj but now the change document is not getting generated. Please see the screen shot attached.
    Regards
    Sushant

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

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

  • Table to look for change documents for users

    Hi friends,
    Is there any standard table to look for change documents for a user?change document through SUIM does not give the correct log.
    Thanks for you support.

    Julius
    Looking at another of Tracy's other post (http://scn.sap.com/thread/3598947) she's trying to use ACL. Hence needing to know the tables to write joins/queries to hit tables within ACL
    I've seen ACL used and have had the fun experience of Auditors using Google to find tables to perform checks on without context of what has actually been implemented in their particular system.
    Regards
    Colleen

  • F150 dunning- create change documents in FI journal

    hi all,
    when running F150 in update mode the dunning information is updated in the FI posting.
    however, no change documents are created for the FI posting.
    Is this possible to achieve and how?
    If I change dunning fields manually via FB02 I get the change document for those fields. I would like to get this also for the F150 program execution.
    Thanks in advance
    Hein

    Hi,
    maybe SAPNET note 609773 is helpful (depending on your SAP Release).
    best regards, Christian

  • 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

  • Decimal places for JPY currency in change documents

    Hi Gurus,
    For opportunities in SAP GUI the change documents for JPY show incorrect numbers.
    The number is divided by 100 (two decimal places added).
    Checked the CDPOS table and found the values already divided (two decimal places added).
    SPRO->General Settings->Currencies->Set decimal places for currencies is set for 0 decimals for JPY.
    Is there any way I can get correct values in the change documents?
    Please advice. Any hint is useful.
    Thx,
    Martin Kuma

    Hi Naren,
    Thank you for the tip, however the TCURX table is changed via customizing and should be changed only during the system initialization.
    What I would like to do, is to assure that the system displays the values in change documents correctly. It should apply the currency conversion for the data displayed the same way it does for all the tables.
    Do you have any idea, how should I do this?
    Regards,
    Martin Kuma

  • Error releasing transport request for change document object

    Hi Gurus,
    I created a new change document object for a Z-table. When i try to release the transport request in the development system it terminated with a message "Export application-defined objects       17.12.2009 11:07:45 Not yet executed". The transport request continued to be in the "Release started" status and i am not able to release it.
    I checked in the co file & data file directory for this request, The co file is available but the data file is not created.
    Could you please let me know how to solve this?
    Regards,
    Immanuel.

    It was a problem with some basis settings. Was rectified by the basis team.

  • 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

  • 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

  • Report for Change documents in Solution Manager.

    Dear Masters,
    In Solution manager, we are monitoring the inbound support messages through the Transaction code  CRM_DNO_MONITOR.
    Here i can veiw the status of support message as of now, but i am not able to see the changes done throughout the process.
    Is there any report where i can find the data for changes done on the support messages for the given period?
    I can find the change documents where by entering into the support message in Menu bar  under  Extras > Change documents.
    But my requirement is i required this report for the some number of support messages for the given period.
    Your help will be much more appreciated.
    Thanks,
    Panneer

    hi
    is this te one are you looking for
    [http://help.sap.com/saphelp_smehp1/helpdata/en/43/2f40b6853e0d23e10000000a1553f7/frameset.htm|http://help.sap.com/saphelp_smehp1/helpdata/en/43/2f40b6853e0d23e10000000a1553f7/frameset.htm]
    jansi

  • Change documents of material master classification class type 001 and 300

    Dear guru ,
    I want to see the history of change documents of material master classification using MM02.
    The system allow to see the history only for class type 023.
    For class type 001 or 300 the change document isnu2019t available.
    I must do some settings or the function for these class type arenu2019t available ?
    Thanks.

    Dear ,
    changes in values for a characteristic can be monitored in CL20N but as for MM02/MM03 transaction only for class type 023.
    For class type 001 or 300 the change document isnu2019t available.
    Thanks.

  • Creation of Change document for HR Assignemnt Infotype in Transaction- CR02

    Hi,
       I have to create change document for HR Assignment in Transaction CR02.
    I have gone thru the documentation available in SAP help.
    Please help me if anybody has worked on it.
    Thanks & Regards,
    Alok.

    Hi Raja,
    I didn't quite understand what you mean by creating/changing data using transaction codes, because within SAP MDM 3.0 you are in a portal environnment and don't work with transaction codes.
    General remark: Information on the up-to-date MDM 5.5 is provided in the Service Marketplace. For an overview of MDM 5.5, see also http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/mdm/capabilities provided with sap mdm 5.5.pdf.
    Kind regards, Markus

  • Problem in multiple item for change document objects

    hi gurus,
    I have created change document object in tcode SCDO . It had giveN function module /TMW/CHG_OBJ1_WRITE_DOCUMENT.
    CDPOS AND CDHDR tables are updated with changed data. now i am trying to display all old and new data in se38 program.
    here my problem is when ever i changed multiple  item data , my program showing first item details only . I need to show all item data when ever i changed parallel . please help me where is my problem .
    thank you

    I think this is issue with function module generated thru SCDO Please check in your function module inside that the following function modules are used
    CALL FUNCTION 'CHANGEDOCUMENT_OPEN'
    CALL FUNCTION 'CHANGEDOCUMENT_MULTIPLE_CASE'
    CALL FUNCTION 'CHANGEDOCUMENT_CLOSE'
    if not then there may be issue with SCDO

  • Restrict creation of Change Document without a change request

    Hello Experts,
    Is there a way within Charm to restrict the creation of a change document through crmd_order or a business transaction and instead force the creation of all change documents to start from a change request? Some users are bypassing the approval process through sdcr and are using the push button in crmd_order to create a normal correction without having the change approved.
    Please advise on a possible solution to fixing this issue.
    Thanks
    Mike

    Hi Raquel,
    Thanks for the quick reply. The problem is that the individuals that have access to create an SDMJ or SDHF are the ones creating them directly from crmd_order instead of through the sdcr approval process. From what you are saying I guess there is no way to force them to go through sdcr instead of creating an sdmj directly from crmd_order if they already have access to create a change document?
    Thanks
    Mike

Maybe you are looking for