Change pointers for customizing table

Hi,
Requirement is when ever a new entry is created/updated/deleted from the customized table 'ztable' an  IDOC need to be generated.
Any one can help me out the proper steps to solve this.
Full points will be rewarded to the correct answer.
Urgent please !!!
Regards,
Suman

1. In T-Code add all the table and its fields to a message type.
2. Create a program for triggering a Idoc.
3. In the program call the functional module 'CHANGE_POINTERS_READ' with the above message type, This FM will return those table fields that are changed to a specific date.
4. Pass read_not_processed_pointers parameter of the 'CHANGE_POINTERS_READ'   as 'X' to get the latest changes. Ex:
        CALL FUNCTION 'CHANGE_POINTERS_READ'
          EXPORTING
            message_type                = gc_message_type
            creation_date_high          = s_erdat-high
            creation_date_low           = s_erdat-low
            creation_time_high          = gc_time_high
            creation_time_low           = gc_time_low
            read_not_processed_pointers = 'X'
          TABLES
            change_pointers             = lt_chgptrs_tab.
lt_chgptrs_tab will have all the table fields that are changed .
5. Trigger a Idoc with those values.
6. In the triggering is successful call FM 'CHANGE_POINTERS_STATUS_WRITE '  and pass those table fields that are sent through Idoc to write in database that the changes are already sent through Idocs. Ex:
    CALL FUNCTION 'CHANGE_POINTERS_STATUS_WRITE'
            EXPORTING
              message_type           = gc_message_type
            TABLES
              change_pointers_idents = gt_pointer_id.
          COMMIT WORK.
gt_pointer_id will have all the change pointer if from lt_chgptrs_tab table that are send through Idocs.

Similar Messages

  • ALE/IDOC Change Pointers for Custom Table

    Hello all,
       There is a requirement for my client, to trigger IDOC based on the Custom Table changes. The custom table has a maintenance view and will be updated/modified/deleted randomly by user. Now, i need to track the changes in that table and should trigger IDOC for the changes. The Message type i am using for this is MATMAS, as I need to incorporate changes to the same IDOC.
        Is it ok to modify BDCP/BDCPS tables to update the changes from custom table? The Custom Table changes can be tracked through DBTABLOG......and i have my logic to trigger the IDOC
      The question is: If i do modifications to BDCP and BDCPS, how this will impact? In future SAP upgrade/enhancements will this affect anyway? Can any one of you share your experience regarding this. Thanks.

    Hi Raja,
    You can send IDOC based on  table maintenance event
    I think you can code in event 02, to generate IDOC.
    Check below link:
    http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm
    Regards,
    Nisha Vengal.

  • ALE/IDOC-How to create Change Pointers for Custom Infotype

    Hi,
    My requirement is to transfer custom OM infotype changes using IDOCs.
    But its not creating any change pointers for that infotype.
    The message used is a copy of standard message OM_HRMD_A.
    Can any one please help me out in this issue.
    Thanks,
    Sarika

    Hi Sarika,
    How did you solve this issue? We are also facing a similar problem, it will be helpful if you could explain how you found out the solution.
    Thanks
    Anu.

  • Change pointers for custom message type

    Hi All,
      Please help me with questions.
    1. The requirement is to add two additional fields to CSCK table and then activate change pointers for COSMAS. My question is when I activate the change pointers for COSMAS will it send this two z fields when there is a change?
    2. I dont see a message type in BD50 for a standard IDOC Internal_order? Can I add that standard message type? How can I do this? WIll this create an IDOC when ever there is a change in data?
    Thanks.

    Hello Oscar,
    1. Which changes should be relevant for creation of COSMAS-IDoc, you have to define in BD52.
    2. You need to define INTERNAL_ORDER in WE20. In BD64 you add BAPI "InternalOrder.SaveReplica", filters can be added.
    Best Regards, Dirk

  • Change Pointers for Customer Classification

    Hi All,
    I am using Object Class 'DEBITOR' to capture the Customer Classification changes.I am able to see the entries in BDCP but not in CDHDR and CDPOS Whenever i add the classifcation to the customer.
    I need to add these classification changes to my ZDEBMAS Message type thorugh BD52. I am not able to see the 'DEBITOR' Object class to add the classification changes too.I don't find the 'DEBITOR' Object class in the table TBD62 also.
    Can anyone help me how to link the Object class 'DEBITOR'  to capture the classification changes for my Z message type.
    Thanks In Advance.
    Regards,
    Sudha.

    Hi,
    U have to create a object class in SCDO transaction code and then u have generate update program...
    once u do that u can find the list of includes...and then u need to call them in a custom program which will update to CDHDR and CDPOS...
    for example..
    goto SCDO->SPEICFY the object class as MATERIAL and then display, now click on update geneartion program in the aplication tool bar ,  u will find includes there, similarly u have to generate those includes in SCDO. take one include and they put it in se38 and do where used list..u can see how they are used.
    however they will be genrated by SAP only thing u have to do is u need to press that button and press on save button...
    Regards,
    Nagaraj

  • How to implement Change pointers for Purchase order - ME22N - Custom Fields

    Hi Experts,
    Can you please tell me how to implement - Change Pointer for Custom fields in IDOC.
    I am working on IDOC - For purchase order - acknowledgements - in custom screen/tab in ME22N.
    Everything is working fine according to my requirement.
    All i need to know is the process of - Creating/Change - Change pointers for Custom fields.
    1.How to implement change pointers for custom fields.
    2.Can we maintain - Change Document - for custom fields at data element level?
    P.S. - I have browsed many previous - forums before posting a new discussion.
    please share your inputs...
    explaining how to create/implement - change pointers for custom fields will help me .
    Regards,
    Karthik Rali.

    Hi,
    To maintain Change Document for custom field:
    1. Check if "Change document" checkbox is set in data element.
    2. Find Change Document Object for transaction.
       You can use SQL trace - ST05.
       Look there for line with table CDHDR and statement insert values
       (for example for transaction KA02 Change Document Object is KSTAR)
    3. Regenerate update program for this Change Document Object in transaction SCDO
    Change documents for z-fields schould be generated.
    I am not sure about change pointers but they are configured somehow in BD61 and BD50.

  • How to create change pointers for IT6 when custom table Z777A changes?

    Situation: We are using custom table Z777A (copied T777A and added fields) to store building locations. Employee's IT6 subtype 92 retrieves valid work address building locations from table Z777A.
    Problem: Whenever there are updates to Z777A, we need to find all IT6 subtype 92 records that use the changed building location from Z777A and create IDOC's The change pointer entry will need to be for the IT6 subtype 92 row that is affected.
    Question: Can anyone give me specific details as to how this can be accomplished? Thanks.

    Hi,
    MASTER DATA CHANGES DISTRIBUTION BY CHANGE POINTER TECHNIQUE:
    Step 1: Creating change document object in SCDO transaction.
    Step 2:Assigning tables to the change document object.
    Step 3:Specifying change document items in transaction BD52.
    Step 4: Activating change pointers for the message type HRMD_ABA in transaction BD50.
    Step 5:Activating change pointers globally.
    Step 6:Executing program RBDMIDOC  in SE38, Specifying message type HRMD_ABA.
    with regards,
    M.Sreeram.

  • This is regarding creation of change pointers for a particular table?

    Hi to all,
    Here is my requirement,
    How to create change pointers for a given table.
    i know that change pointers record changes of master data at field level......
    here now i have to create change pointers for a given table..
    how to do this,......\
    regards,
    swami

    Configuration steps :
    BD53 -> create reduced message type (use MATMAS as your reference for material master records). Select tables
    BD52 -> specify fields to track (use fieldname KEY for new entries)
    BD50 -> activate change pointers for new reduced message type
    BD61 -> activate change ponter generally (only if not already done) Make sure if this is not already active that you deselect the default enteries in BD50 for the message types you don't care about
    The view BDCPV will now contain change pointer entries for the master data that has change or been created
    Use function modules
    CHANGE_POINTERS_READ                - read new unprocessed change pointers
    CHANGE_POINTERS_STATUS_WRITE - mark change pointers as processed
    Hope it helps.
    Chang

  • Article Change Documents for Custom Fields

    Hi,
    We have lot of custom fields defined in the article master. When the custom fields are changed through the online transaction, the changes are recorded in the change document tables (CDHDR / CDPOS). If the changes are made through the "BAPI_MATERIAL_MAINTAINDATA_RT" the changes are not getting recorded in the change document tables and hence they cannot be viewed under "Environment -> Display Changes". Lately, this is causing big issues as users are using the custom attributes more seriously now..and we're having issues tracing back the changes...Users do not use online transactions to make the changes..The changes are submitted through the portal which are then submitted through the ARTMAS IDOC which in turn calls the BAPI....
    We want to activate the change document functionality through IDOCs/BAPI....Is it configurable or has to be coded somewhere in the BAPI where it generates the custom segments for the custom fields....
    Any help would be greatly appreciated
    Thanks,
    Sri

    Hi,
            You can use txn BD51 in which you can specify "BAPI_MATERIAL_MAINTAINDATA_RT" and use "o" as Input without checking the Dialog allowed option.
    I assume that you have already done the relevant settings for the change pointers for message type ARTMAS( BD50) and activate change poiinter for relevant document changes (in Txn BD52 by maintaining the relevant Object - MAT_FULL,Table name - MARA and ZZ fields)
    Hope this helps,
    Best Regards,
    Aram.

  • Change pointers for the ZSEGMENT of IDOC Extension.

    Hello Experts,
    We are working on the SAP version ECC 5.0.
    Our requirement is creating the ZZField and use this field to interface with legacy systems in the trnx FD02 and table KNB1.
    We have created the ZZField in table KNB1 and also ZSEGMENT for the IDOC DEBMAS06.
    We want to add the IDOC change pointers proramme for this ZSEGMENT that is being created.
    I know there are two methods of doing this:
    OLD METHOD:USER EXIT....
    NEW METHOD:CALL CUSTOMER FUNCTION'...'
    I tried the old method with the user EXIT_SAPLVV01_0001 for the Cutomer master.
    But I am getting the error as
    PROGRAMME NAMES zx....ARE PRESERVED FOR THE INCLUDES OF EXIT FUNCTION GROUPS.
    Can any one tell me how do i need to write the programme for the IDOC CHANGE POINTERS for the ZSEGMENT?
    Thank you.

    Our requirement is creating the ZZField and use this field to interface with legacy systems in the trnx FD02 and table KNB1.
    We have created the ZZField in table KNB1 and also ZSEGMENT for the IDOC DEBMAS06.
    in the above question watr the fields ur going to populate in KNB1 TABLE or in ZSEGMENT FOR DEBMAS06.
    CAN U PL GUIDE ME..
    thanking u...
    ajay

  • Change Pointers for Vendor Master

    Hi All,
    I have to activate change pointers for Vendor Master data. I have some doubts regarding the same.
    1. An Idoc will be generated for newly created vendor, right?
    2. If I extend the vendor master IDOC, where should I write code to extract the values of newly added fields?
    3. If I create a custom IDOC for vendor master, what is the procedure to configure this in the change pointers for Vendor Master?
    Thanks & Best Regards,
    Kumar.

    >
    Sivapuram Phani Kumar wrote:
    > Hi All,
    >
    > I have to activate change pointers for Vendor Master data. I have some doubts regarding the same.
    >
    > 1. An Idoc will be generated for newly created vendor, right?
    > 2. If I extend the vendor master IDOC, where should I write code to extract the values of newly added fields?
    > 3. If I create a custom IDOC for vendor master, what is the procedure to configure this in the change pointers for Vendor Master?
    >
    > Thanks & Best Regards,
    > Kumar.
    Hi,
    1. Afer doing all the settings required to create change pointers (BD61, BD50, BD52), the idocs will be created when u run the report RBDMIDOC or execute transaction BD21.if any changes happen in master data
    like new vendor is created or vendor data is changed, then only change pointers will be created and on executing the aforesaid report, idocs will be generated.
    Also idocs can be generated by replicating vendor data through transaction BD14 or any other custom transaction.
    2. When you add custom segments to basic type, you have to write code in suitable user exits.
    Identify suitable user exit to populate data in custom segments and write the code in oubound side.
    Identify suitable user exit to populate the values in custom segments to database table, this code is to be written in inbound side.
    Regards
    Vinod

  • Activate Change pointers for TREX classification search for Business Objects

    Hey all...
    Does anyone out here has any idea on how to activate the change pointers for TREX classification search for business objects: - for me I am specifically doing it for Materials and Customers.
    Okay, let me explain the issue: -
    For TREX search, we need to schedule a background job for Delta Indexing. But Alas! Delta indexing does not capture the changes to Classification data of the business object.
    For this we activated the change documents for the particular class in the customizing. But to my surprise, change documents and change pointers for TREX are entrirely different.
    How do I know:
    Change ID of CDHDR does not correspond to Change pointer in table COM_SE_CPOINTER. Now by activating the change documents I am getting entry in CDHDR and CDPOS but the mentioned change pointer table still does not get the entry.
    I searched for BTEs and I got the below: -
    Now to me the very obvious one was 4003, but it is not called while changing the classification data for materials. Ofcourse I activated the Product and the function module.
    and now I am stuck!!
    Any pointers for the Change pointers would be really appreciated??
    Please share your knowledge even if you don't know the exact answer . I am new to TREX so possibly vague conversations could provide me a hint .
    Thanks,
    Best Regards,
    Shreya

    Hi Guys,
    This issue was solved by implementing the BTE 4005 (OPEN_FI_PERFORM_00004005_E). This particular event is triggered in the update task for saving changes to business object. So In my function module (corresponding to BTE), I have explicitly called the method to write an entry in COM_SE_CPOINTER, because we just need the reference of business object for which classification data is changed.
    Please refer the below code for more clarity.
    BTE position: -
    method called in FM to write change pointer.
    Thanks anyways, for all the responses.
    Cheers,
    Shreya

  • Logging the changes of a custom table into CDHDR and CDPOS

    Hi all,
               What is the strucutre that is to be passed while creation of a ChangeDocument(Object Class) for the parameter
    Name of Ref. tab in SCDO tcode.And what other steps are to be done for logging the changes of a custom table.

    How do you maintain the first table? Did you create the maintenance module yourself or did you get it generated by SAP? If you have your own maintenace module, all you have to do is get the values from the table at the time when you update it and seve the necessary values in the second table. If you have a generated maintenance module, then you would have to do this in there, problem is you will need to register the onject when you change it.
    Let me know if this helps.

  • CSKS, KS02 change pointers for Z fields

    Hi,
    I have extended CSKS with new Z fields. Also ALE'ed this to other SAP system.
    But this is not creating any change pointers for this new z fields.
    The changes are tagged in CDHDR, but not into BDCP2 table. Is there any settings
    which needs to be done by which it will create CP automatically when we change Z fields
    in KS02.
    Appreciate your help.
    Thanks
    Manohar

    Found solution with BD52 tcode.
    Thanks

  • Regarding change pointers for HRMD_A

    Hi Abapers,
    I need to distribute changes to HR master data to a middleware system. hence i have activated the change pointers for the message type: HRMD_A. now my idoc is populating the infotype segments whenever it is changed with all fields.
    But a particular change (on an infotype) should be sent individually in two different runs of RBDMIDOC run to the middleware. Ex: Vendor A needs changes to be sent to it on a weekly basis whereas Vendor B needs changes to be sent to it on a biweekly basis. When an employee X has a change on infotype 2, this change should be sent to middleware in both instances separately in different IDOCS at different times when RBDMIDOC program is run (by capturing change pointers pertinent to the message type of the particular vendor).
    What are the changes required for ALE config.? Do i need to create a new message type for vendor B and  configure. Please help.
    Thanks.

    Hi sudarshan,
    Yuo need to create Z program to trigger IDOC.
    As you need to set read status of change pointer as X after yuo send it to both system.
    So you need to create Z table to keep track of this whether you have send to sys a or Sys  B..
    If you willl not update read status in will cause performance prob.
    Hope this helps.
    Dhiraj.

Maybe you are looking for

  • Functon module for closing stock

    Hi All, Is there any function module is there to findout closing stock by taking opening stock . Thanks&regds, Sree.

  • Smartfit for Micropho

    Is it possible to use Creative Mediasource's Smartfit capabilities with a Microphoto?I used to use his with my MuVo TX FM. Now,?I use WMP to transfer music to my player because it can convert my mp3's to 64kbps wma's while transferring music to the p

  • Safari hangs, does not load and crashes.

    I have read some of the posts regarding the newer version 4.0.2 of Safari but the answers were not helpful for me. I went into "Library" and "Application Support" and removed all the applications in that folder and placed them on the desktop. I reset

  • IDM 8.1 with firefox does not show all GUI items

    Hi, we are running IDM 8.1 Patch_5 on Solaris 10. We have 2 instances, Prod & UAT. UAT runs from Tomcat 5, Prod uses Sun Appserver 8. But our problem seems to be the Web Client. When We lookup a user and then open the tabs for them, for example "Secu

  • Can't Drag & Drop Cross Fade Transition ?

    I'm a new user and can't figure out why when I attempt to drag and drop a cross-fade transition into my timeline it won't stick or apply. Can anybody help with this. Also, is there a setting that would automatically apply the cross-fade transition to