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

Similar Messages

  • Error in multiple operation with change document object for custom table

    hi all,
    I have developed a change document object for a custom table ZTEST and developed a report program for insertion, updation & deletion..everything works fine if I do only once ie. if I created only 1 entries. If I created 2 new entries , I am getting an Error "DUPREC:POS&Z3RL_TAB&Z3RL_TAB" and EXIT the transaction.
    why I am getting this error??? is it not possible to do multiple operation with the change document???
    kindly help.
    Edited by: JaiKarthik on Apr 7, 2010 6:20 AM

       LOOP AT ts_mod INTO wa_mod.
                READ TABLE <i_itab> INTO <wa_tab> INDEX wa_mod-row.
    * Select the existing entries in table Z3RL for change history
                    SELECT SINGLE * FROM z3rl
                           INTO wa_z3rl
                           WHERE vkorg   = <wa_tab>+3(4)
                           AND   zzkunnr = <wa_tab>+7(10).
    * Move the old entries
                    IF sy-subrc = 0.
                      CLEAR ls_z3rl.
                      ls_z3rl = wa_z3rl.
                    ENDIF.
    * Update the table
                 MODIFY (viewname) FROM <wa_tab>.
                   CLEAR wa_z3rl.
                    wa_z3rl-mandt      = <wa_tab>+0(3).
                    wa_z3rl-vkorg      = <wa_tab>+3(4).
                    wa_z3rl-zzkunnr    = <wa_tab>+7(10).
    * Populate change tables
                    CLEAR wa_change.
                    wa_change-teilobjid = 'Z3RL'.
                    wa_change-textart = 'TEST_2'.
                    wa_change-textspr = 'EN'.
                    wa_change-updkz = 'U'.
                    APPEND wa_change TO ts_change.
    *call the fM to log the values in CDHDR table.
                    CALL FUNCTION 'Z3RL_WRITE_DOCUMENT'
                      EXPORTING
                        objectid                 = 'Z3RL'
                        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_z3rl= 'U'
                        n_z3rl= wa_z3rl
                        o_z3rl        = ls_z3rl
                        upd_z3rl= 'U'
                        lv_opt                   = ' '
                      TABLES
                        icdtxt_z3rl= ts_change.
                CLEAR : wa_mod, <wa_tab>.
              ENDLOOP.
    Edited by: JaiKarthik on Apr 7, 2010 6:49 AM

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

  • 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

  • How to set-up change document object for deliveries??

    Hi experts ,
    kindly help me with this config , I did some researched and none of them have solve my problem.
    i need to know on how to set-up a change document object for delivery documents.
    Change document object LIEFERUNG is not available in transaction SWED.
    How will I add this change document object in SWED?

    hi ,
    im wondering why even the existing object VERKBELEG is not being triggered?
    would you know any reason for this?

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

  • Change Document Object - SCDO

    I have created a new Change Document Object for a Z table(say ZXXX). When Generating Update program for this change document, a new structure is generated VZXXX that has ZXXX as include. This structure does not have a Package assigned to it and therefore can not be transported.
    Does anyone has encountered this problem? Any urgent help is appreciated.
    Thanks
    Amit.

    Hi,
    try report RSWBO052 to change device class
    A.

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

  • 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

  • Transport change docuement object

    Created a change document object in SCDO as local object.
    Now if I have to transport it, I don't find a way to change the development class. Do I have to assign individual components to the transport like the structures generated, function group generated etc.,
    Any help is appreciated. Thanks
    Anupama

    Hi,
      Change the Pakage of the function Group ; all the item in that particular group be assigned a same request and pakage.
    for that go to
    SE80--->Enter function group name
    Right click on function group name
    More functions--->Change Pakage assignment.
    those who which r not in that particular function group ; u have to manually assign to that particular group.
    use same procedure
    Regards
    Message was edited by: Manoj Gupta

  • Change Document Object ICDTXT_ include name

    Hi fellow developers.
    What is the purpose of each field in ICDTXT_<include name> when preparing to call the function F<include name>_WRITE_DOCUMENT? For example, I have an IT called ICDTXT_ZCD_CONFIG_CV and this is how I am filling the fields:
       UPD_ICDTXT_ZCD_CONFIG_CV = UPD_Z00_CONFIG_CV.
       wa_log_info-teilobjid = 'Producto'.
       wa_log_info-textart = ' '.
       wa_log_info-textspr = sy-langu.
       wa_log_info-updkz = UPD_Z00_CONFIG_CV.
       append wa_log_info to ICDTXT_ZCD_CONFIG_CV.
    I am not sure at all what to set in textart. And teilobjid is the table key as far as I know. But I want to be sure I am doing this correctly.
    Thank you for your time.

    Yes you must call the FM via the generated include in your update program, change document are programmatically managed. in the "SAVE" form use some CALL FUNCTION IN UPDATE TASK to call the FM that updates database and the FM that creates change documents - look at [Update Techniques|http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4cba79e11d1950f0000e82de14a/frameset.htm] and [BC414|http://www.sap.com/services/education]
    - without programming you can fill DBTABLOG via SE11 options
    - Also look at [Defining Change Document Objects|http://help.sap.com/SAPHELP_nwmobile71/helpdata/EN/2a/fa018f493111d182b70000e829fbfe/frameset.htm] and [Integrating the functionality into the program|http://help.sap.com/SAPHELP_nwmobile71/helpdata/EN/2a/fa01b6493111d182b70000e829fbfe/frameset.htm]
    Regards,
    Raymond

  • Function Module for Bundled Items for a document in FS CD

    Hi,
    Is there an FM to get Bundled Items for a Document(tcode: FPE3) in FS-CD ?
    Suitable points will be given if helpful..
    Thanks
    Prakash

    I have a FI object to be generated so input screen variable are all FI fields. Now I have to connect this to the sales order. I can retrieve the GL account from the input given.
    So now i need to find the billing document related to the GL account, which can be done through table BSEG. AS BSEG is a cluster table, at runtime it takes very long time to retrieve the data. So can u suggest me any other method to get billing document.
    , like any Function module etc.

  • Triggering BO from Change document object..

    Hi Experts,
    I had a problem triggering custom Business object from custom Changed document object..
    The scenario is like this...
      ' I had created a simple business object with key field as MATNR..
      and a changed document in SCDO transaction.. I had also maintained the event linkage with the Changed document object in SWEC transaction and mode Is CHANGE...
    The thing is if i change the existing material, then, my change document object has to trigger and in turn it should trigger my Business object....
    This had happened if i use the standard changed document object 'MATERIAL' but not with custom changed document object'.
    So i would be glad if any one help me how to trigger the custom Business object with the custom changed document object.
    Any help would be appreciated.
    Regards
    Narin Nandivada.

    Solved by myself

  • Multiple Vendors for one Document Number in BW

    Hello All,
    We are getting Multiple Vendors for one document in BW. In R/3, standard table and RSA3, we are able to see correct vendor where as when it is coming into BW it is showing incorrect vendor in PSA and Data Target.
    All issues are coming for Process Key 1 only.
    *For Example:*
    Document: 9400000007
    Schedule Line:1
    Doc Item: 1
    Vendor:
    0010019229 - Incorrect Vendor
    0010018962 - Correct Vendor
    Committed Quantity: 0
    Doc Type:
    ZNB
    ZNPP
    Process Key: 1
    Not sure how to upload screen shot.
    Please suggest.
    Thanks,
    Vijay

    Hi ,
    Are you loading for the first time ? If yes have you checked Transaction BF11 settings.
    Regards
    Rahul Bindroo

  • Custom change document object

    I want to trigger a new change object behind the standard tcode . In exit I need to call Y_DEBI_WRITE_DOCUMENT  to update my Y_DEBI custom change object . But when I am trying to update Generation prg on SCDO it asks a Table_frame func module ..
    Is the custom change document objects are designed for custom tables ?.
    Edited by: carlos eduardo on Aug 6, 2008 7:50 AM

    Yes Carlos,
    It is desined for Custom Tables.
    For more information you can look into the following link:
    http://www.sapdevelopment.co.uk/tips/changedoc/cdhome.htm
    Regards,
    Rizwana

Maybe you are looking for

  • ITunes for Mac don't recognize my Apps (copied since PC). How can I sync my iPhone with my new mac?

    Hi, i'm new with Mac, and i Have a doubt.. I read that to transfer itunes information (apps mainly) since PC to MAc, you just had to copy the itunes folder and paste it in Mac (Music).. wel.. i did that, but then when I opened iTunes in Mac, it didn'

  • Error on executing See Also search - no authorization for resource

    Hi there, i have installed TREX 6.1 SP 13. It searching fine but only two bugs - 1)when i'm clicking on "See also" link in search result page - i'm getting error: "Search Failure Error on executing See Also search - no authorization for resource An u

  • Multiple v+ boxes?

    hi, does anyone know if you can have multiple vision + boxes and hubs and hub phones running?..ie one in living room and one in bedroom?

  • Deploying froms from NT to unix

    hi i have created custom forms in form 6i under NT. now i want to deploy that forms to unix. i have created fmx file in NT and FTP(binary mode) it to unix. when i tried to open it says frm-40031 not a forms runtime files. will just copying fmx file f

  • Can`t open saved file ( I named it 15.05.08 )

    I just finished a huge 20 hours project in Photoshop . I don`t save my files after I`ve finished working with them . I named my project 15.05.08 and I didn`t check if everything was OK . A few minutes later I wanted to open it but to my big surprise