<?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 Re: To Update the IDOC segment values through report program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176742#M124538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the function module name to release the IDOC lock,&lt;/P&gt;&lt;P&gt;after the Idoc close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i am using the below function module for update the segment value through report program.&lt;/P&gt;&lt;P&gt;1) EDI_DOCUMENT_OPEN_FOR_EDIT.&lt;/P&gt;&lt;P&gt;2) EDI_CHANGE_DATA_SEGMENTS. &lt;/P&gt;&lt;P&gt;3) EDI_DOCUMENT_CLOSE_EDIT. &lt;/P&gt;&lt;P&gt;4) IDOC_STATUS_WRITE_TO_DATABASE. To update Idoc status. &lt;/P&gt;&lt;P&gt;After using this fn. mod., i can't able to release the IDOC lock.&lt;/P&gt;&lt;P&gt;I was used the fn. mod. EDI_DOCUMENT_DEQUEUE_LATER to release the lock but it is getting released.&lt;/P&gt;&lt;P&gt;I need help to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2006 15:54:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-11T15:54:34Z</dc:date>
    <item>
      <title>To Update the IDOC segment values through report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176738#M124534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is to update the Idoc segment through the report program. Any SAP provided standard function module is available to update the Idoc segment values. Please help needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2006 23:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176738#M124534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-03T23:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: To Update the IDOC segment values through report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176739#M124535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following steps in succession to change segment data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) EDI_DOCUMENT_OPEN_FOR_EDIT. Use this to read the IDoc &lt;/P&gt;&lt;P&gt;   data into an internal table(declared of type EDIDD)&lt;/P&gt;&lt;P&gt;2) EDI_CHANGE_DATA_SEGMENTS. Looping at this table make  &lt;/P&gt;&lt;P&gt;   necessary changes to the segments and pass them to &lt;/P&gt;&lt;P&gt;   another internal table (eg: IT_EDIDD) and pass this &lt;/P&gt;&lt;P&gt;   table to this fm. This changes only those segements  &lt;/P&gt;&lt;P&gt;   that you have changed. &lt;/P&gt;&lt;P&gt;3) EDI_DOCUMENT_CLOSE_EDIT. This closes the IDoc.&lt;/P&gt;&lt;P&gt;4) IDOC_STATUS_WRITE_TO_DATABASE. This writes the status &lt;/P&gt;&lt;P&gt;   to the IDoc. Use this if you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 05:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176739#M124535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T05:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: To Update the IDOC segment values through report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176740#M124536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the FM L_IDOC_SEGMENT_CREATE in the program and do update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 07:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176740#M124536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T07:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: To Update the IDOC segment values through report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176741#M124537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: LT_EDIDD TYPE STANDARD TABLE OF EDIDD."Local Table to Hold EDIDD
    LT_EDIDD = I_EDIDD. "table should have the data
*-- Opening the IDoc for Edit
    CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
      EXPORTING
        DOCUMENT_NUMBER               = X_EDIDC-DOCNUM
      TABLES
        IDOC_DATA                     = IT_EDIDD
      EXCEPTIONS
        DOCUMENT_FOREIGN_LOCK         = 1
        DOCUMENT_NOT_EXIST            = 2
        DOCUMENT_NOT_OPEN             = 3
        STATUS_IS_UNABLE_FOR_CHANGING = 4
        OTHERS                        = 5.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
*-- Editing the IDoc
    CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
      TABLES
        IDOC_CHANGED_DATA_RANGE = LT_EDIDD
      EXCEPTIONS
        IDOC_NOT_OPEN           = 1
        DATA_RECORD_NOT_EXIST   = 2
        OTHERS                  = 3.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
*-- Closing the IDoc after Edit
    CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
      EXPORTING
        DOCUMENT_NUMBER  = X_EDIDC-DOCNUM
        DO_COMMIT        = 'X'
        DO_UPDATE        = 'X'
        WRITE_ALL_STATUS = 'X'
      EXCEPTIONS
        IDOC_NOT_OPEN    = 1
        DB_ERROR         = 2
        OTHERS           = 3.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 07:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176741#M124537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T07:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: To Update the IDOC segment values through report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176742#M124538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the function module name to release the IDOC lock,&lt;/P&gt;&lt;P&gt;after the Idoc close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i am using the below function module for update the segment value through report program.&lt;/P&gt;&lt;P&gt;1) EDI_DOCUMENT_OPEN_FOR_EDIT.&lt;/P&gt;&lt;P&gt;2) EDI_CHANGE_DATA_SEGMENTS. &lt;/P&gt;&lt;P&gt;3) EDI_DOCUMENT_CLOSE_EDIT. &lt;/P&gt;&lt;P&gt;4) IDOC_STATUS_WRITE_TO_DATABASE. To update Idoc status. &lt;/P&gt;&lt;P&gt;After using this fn. mod., i can't able to release the IDOC lock.&lt;/P&gt;&lt;P&gt;I was used the fn. mod. EDI_DOCUMENT_DEQUEUE_LATER to release the lock but it is getting released.&lt;/P&gt;&lt;P&gt;I need help to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 15:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-the-idoc-segment-values-through-report-program/m-p/1176742#M124538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T15:54:34Z</dc:date>
    </item>
  </channel>
</rss>

