<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725303#M1456172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I added a field to table LIPS. I wrote a report to change that field (its a Flag so it is 'X' or ' '). To track changes to that field I want to use tables cdhdr and cdpos. I can't turn the "log data changes" in SE11 on as this would be tracking all changes in LIPS. I just need to track my added flag.&lt;/P&gt;&lt;P&gt;I wrote this coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM change_doc USING i_vbeln    TYPE vbeln
                      i_posnr    TYPE posnr
                      i_flag_new TYPE flag
                      i_flag_old TYPE flag.

  DATA: lv_objectclass       TYPE cdobjectcl,
        lv_objectid          TYPE cdobjectv,
        lv_changenr          TYPE cdchangenr,
        ls_workarea_lips_new TYPE lips,
        ls_workarea_lips_old TYPE lips.

  SELECT SINGLE * FROM lips INTO ls_workarea_lips_old
    WHERE vbeln = i_vbeln AND posnr = i_posnr.

  MOVE-CORRESPONDING ls_workarea_lips_old TO ls_workarea_lips_new.
  ls_workarea_lips_new-yytourengeplant = i_flag_new.
  ls_workarea_lips_old-yytourengeplant = i_flag_old.

  lv_objectclass = 'LIEFERUNG'. lv_objectid = i_vbeln.

  CALL FUNCTION 'CHANGEDOCUMENT_OPEN'
    EXPORTING
      objectclass             = lv_objectclass
      objectid                = lv_objectid
      planned_or_real_changes = 'R'.

  IF sy-subrc = 0.
    CALL FUNCTION 'CHANGEDOCUMENT_SINGLE_CASE'
      EXPORTING
        change_indicator = 'I'
        tablename        = 'LIPS'
        workarea_new     = ls_workarea_lips_new
        workarea_old     = ls_workarea_lips_old.
    IF sy-subrc = 0.
      CALL FUNCTION 'CHANGEDOCUMENT_CLOSE'
        EXPORTING
          date_of_change          = sy-datum
          objectclass             = lv_objectclass
          objectid                = lv_objectid
          tcode                   = 'YAENDERN_VERPLANT_KZ'
          time_of_change          = sy-uzeit
          username                = sy-uname
          object_change_indicator = 'U'
          planned_or_real_changes = 'R'
        IMPORTING
          changenumber            = lv_changenr.
    ENDIF.
  ENDIF.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does create a good line in CDHDR. Problem is in CDPOS:&lt;/P&gt;&lt;P&gt;OBJECTCLASS and -ID, CHANGENR, TABNAME, TABKEY are all good and what I want. But FNAME which should be the changed field in table Lips is set to "KEY" which is not from me... my fieldname is "YYTOURENGEPLANT".&lt;/P&gt;&lt;P&gt;And second: my VALUE_NEW or VALUE_OLD... one should be "X". What is my fault? Thanks in advance! Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 13:00:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-04T13:00:30Z</dc:date>
    <item>
      <title>Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725303#M1456172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I added a field to table LIPS. I wrote a report to change that field (its a Flag so it is 'X' or ' '). To track changes to that field I want to use tables cdhdr and cdpos. I can't turn the "log data changes" in SE11 on as this would be tracking all changes in LIPS. I just need to track my added flag.&lt;/P&gt;&lt;P&gt;I wrote this coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM change_doc USING i_vbeln    TYPE vbeln
                      i_posnr    TYPE posnr
                      i_flag_new TYPE flag
                      i_flag_old TYPE flag.

  DATA: lv_objectclass       TYPE cdobjectcl,
        lv_objectid          TYPE cdobjectv,
        lv_changenr          TYPE cdchangenr,
        ls_workarea_lips_new TYPE lips,
        ls_workarea_lips_old TYPE lips.

  SELECT SINGLE * FROM lips INTO ls_workarea_lips_old
    WHERE vbeln = i_vbeln AND posnr = i_posnr.

  MOVE-CORRESPONDING ls_workarea_lips_old TO ls_workarea_lips_new.
  ls_workarea_lips_new-yytourengeplant = i_flag_new.
  ls_workarea_lips_old-yytourengeplant = i_flag_old.

  lv_objectclass = 'LIEFERUNG'. lv_objectid = i_vbeln.

  CALL FUNCTION 'CHANGEDOCUMENT_OPEN'
    EXPORTING
      objectclass             = lv_objectclass
      objectid                = lv_objectid
      planned_or_real_changes = 'R'.

  IF sy-subrc = 0.
    CALL FUNCTION 'CHANGEDOCUMENT_SINGLE_CASE'
      EXPORTING
        change_indicator = 'I'
        tablename        = 'LIPS'
        workarea_new     = ls_workarea_lips_new
        workarea_old     = ls_workarea_lips_old.
    IF sy-subrc = 0.
      CALL FUNCTION 'CHANGEDOCUMENT_CLOSE'
        EXPORTING
          date_of_change          = sy-datum
          objectclass             = lv_objectclass
          objectid                = lv_objectid
          tcode                   = 'YAENDERN_VERPLANT_KZ'
          time_of_change          = sy-uzeit
          username                = sy-uname
          object_change_indicator = 'U'
          planned_or_real_changes = 'R'
        IMPORTING
          changenumber            = lv_changenr.
    ENDIF.
  ENDIF.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does create a good line in CDHDR. Problem is in CDPOS:&lt;/P&gt;&lt;P&gt;OBJECTCLASS and -ID, CHANGENR, TABNAME, TABKEY are all good and what I want. But FNAME which should be the changed field in table Lips is set to "KEY" which is not from me... my fieldname is "YYTOURENGEPLANT".&lt;/P&gt;&lt;P&gt;And second: my VALUE_NEW or VALUE_OLD... one should be "X". What is my fault? Thanks in advance! Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 13:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725303#M1456172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T13:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725304#M1456173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You declared an "insertion" into database&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;change_indicator = 'I'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So only "key" of the record is stored - use "U" for update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at [Writing the fields in the program|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa01c3493111d182b70000e829fbfe/frameset.htm] in [Change documents |http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 13:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725304#M1456173</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-04T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725305#M1456174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For fieldname&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CHANGEDOCUMENT_SINGLE_CASE'
  EXPORTING
    change_indicator = 'U' " &amp;lt;- set U instead of I
    tablename        = 'LIPS'
    workarea_new     = ls_workarea_lips_new
    workarea_old     = ls_workarea_lips_old.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Check values i_flag_new and i_flag_old. They must be different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 13:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725305#M1456174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725306#M1456175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you two!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all: thanks for your Reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but it did not quite work somehow...&lt;/P&gt;&lt;P&gt;In this case the CHANGEDOCUMENT_CLOSE delivers a sy-subrc =2 : no_position_inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am playing a bit already but I dont know the reason. Right now I am debugging the function to get a clue what I did wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725306#M1456175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T14:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725307#M1456176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In "U"pdate mode, there MUST be a difference between workarea_new and workarea_old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some questions &lt;/P&gt;&lt;P&gt;- Why don't you call LIEFERUNG_WRITE_DOCUMENT directly, in fact i don't know if you can use LIFIERUNG object without LIKP record. &lt;/P&gt;&lt;P&gt;- Have you activated the change-document flag of the data-element of the appended field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725307#M1456176</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-04T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725308#M1456177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ensured that both are different with an assert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Have you activated the change-document flag of the data-element of the appended field?" How can I do that?&lt;/P&gt;&lt;P&gt;"LIEFERUNG_WRITE_DOCUMENT" I have not found yet. Does it hit my attached fields as well? Playing with it right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so far!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:25:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725308#M1456177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T14:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725309#M1456178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call SE11 on LIPS, double-click on the data element of your appended ZZ-field, in the Definition tab of the data-element, in the Attributes box, there is a flag that must be checked for the fields to be recorded in CDPOS. (Your question suggests it is not checked.) (Read [Set change document flag|http://help.sap.com/SAPHELP_nwmobile71/helpdata/EN/2a/fa019c493111d182b70000e829fbfe/frameset.htm])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIEFERUNG_WRITE_DOCUMENT is the actual FM executed in update-task when SAP programs update delivery. (Check transaction SCDO, Generation Info, you will get the FM and the name of some includes to use in your program - Read [Integrating the functionality into the program|http://help.sap.com/SAPHELP_nwmobile71/helpdata/EN/2a/fa01b6493111d182b70000e829fbfe/frameset.htm])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725309#M1456178</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-04T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725310#M1456179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hm I feel a bit stupid right now but it still wont work. I did the change in se11 and now all changes to my flag should be tracked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have this coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 LOOP AT lt_lips INTO ls_lips.
    IF ls_lips-yytourengeplant NE p_sollkz.
      SELECT * FROM lips INTO CORRESPONDING FIELDS OF TABLE lt_lipsy WHERE vbeln = ls_lips-vbeln AND posnr = ls_lips-posnr.
      UPDATE lips SET yytourengeplant = p_sollkz WHERE vbeln = ls_lips-vbeln AND posnr = ls_lips-posnr.
      COMMIT WORK.
      SELECT * FROM lips INTO CORRESPONDING FIELDS OF TABLE lt_lipsx WHERE vbeln = ls_lips-vbeln AND posnr = ls_lips-posnr.
    ENDIF.

    DATA: lv_objectid    TYPE cdobjectv.


    lv_objectid = ls_lips-vbeln.

    CALL FUNCTION 'LIEFERUNG_WRITE_DOCUMENT'
      EXPORTING
        objectid                      = lv_objectid
        tcode                         = 'YAENDERN_VERPLANT_KZ'
        utime                         = sy-uzeit
        udate                         = sy-datum
        username                      = sy-uname
*       PLANNED_CHANGE_NUMBER         = ' '
*       OBJECT_CHANGE_INDICATOR       = 'U'
        planned_or_real_changes       = 'R'
*       NO_CHANGE_POINTERS            = ' '
*       UPD_ICDTXT_LIEFERUNG          = ' '
*       N_LIKP                        =
*       O_LIKP                        =
        upd_likp                      = 'X'
        upd_lips                      = 'X'
*       UPD_VBPA                      = ' '
        n_vbuk                        = ls_n_vbuk
        o_vbuk                        = ls_o_vbuk
*       UPD_VBUK                      = ' '
     TABLES
*       ICDTXT_LIEFERUNG              =
       xlips                         = lt_lipsx
       ylips                         = lt_lipsy.
*       XVBPA                         =
*       YVBPA                         =
*              .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok it can be optimized (all positions of one delivery at once) but right now I am just testing only one position so I will care later about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within that Function the call of CHANGEDOCUMENT_CLOSE results in a sy-subrc = 4 (NO_POSITION_INSERTED   = 4). Btw, the update of LIPS works... just the change-tables do not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope my failure is not too stupid.. your post is great already!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 15:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725310#M1456179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725311#M1456180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont read a second time LIPS from database, there will be buffer and delayed database commit problem.&lt;/P&gt;&lt;P&gt;Build the new table from the old one and update the changed flag in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the FM can be called in update task, before the COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each delivery&lt;/P&gt;&lt;P&gt; - read LIKP&lt;/P&gt;&lt;P&gt; - read LIPS in internal table&lt;/P&gt;&lt;P&gt; - build before table (KZ = U)&lt;/P&gt;&lt;P&gt; - update itab LIPS with your flag&lt;/P&gt;&lt;P&gt; - build after table (KZ =U)&lt;/P&gt;&lt;P&gt; - call FM in update task&lt;/P&gt;&lt;P&gt; - update database&lt;/P&gt;&lt;P&gt; - Commit work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 15:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725311#M1456180</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-03-04T15:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725312#M1456181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that I did not answer yesterday... it did not work and I had not the brains left to find out after 10 hours of working. But today I got it fixed. All your hints where right. I just had one additional mistake while calling the function. To help others reading this post hopefully I want document the problem by posting the working function call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA ls_n_vbuk TYPE vbuk.
DATA ls_o_vbuk TYPE vbuk.
DATA lt_lipsx TYPE ulips OCCURS 0.
DATA lt_lipsy TYPE ulips OCCURS 0.
DATA: lv_objectid    TYPE cdobjectv.

    CALL FUNCTION 'LIEFERUNG_WRITE_DOCUMENT' IN UPDATE TASK
      EXPORTING
        objectid                      = lv_objectid
        tcode                         = 'YAENDERN_VERPLANT_KZ'
        utime                         = sy-uzeit
        udate                         = sy-datum
        username                      = sy-uname
        object_change_indicator       = 'U'
        planned_or_real_changes       = 'R'
        upd_likp                      = ' '
        upd_lips                      = 'U'    "&amp;lt;----- NOT just 'X'
        n_vbuk                        = ls_n_vbuk
        o_vbuk                        = ls_o_vbuk
     TABLES
       xlips                         = lt_lipsx
       ylips                         = lt_lipsy.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final problem was that I set upd_lips to 'X' assuming this is a flagfield.. but it is not!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So thanks again Raymond and thanks all others helping me out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 10:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725312#M1456181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T10:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Update CDHDR CDPOS with CHANGEDOCUMENT_SINGLE_CASE: Problem with FNAME...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725313#M1456182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 07:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-cdhdr-cdpos-with-changedocument-single-case-problem-with-fname/m-p/6725313#M1456182</guid>
      <dc:creator>J_OWENS</dc:creator>
      <dc:date>2016-01-23T07:23:34Z</dc:date>
    </item>
  </channel>
</rss>

