<?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: idoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554782#M251386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module u will get the data in the table SEGMENT (which has structure edidd).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read and identify the date which is in one of the segment of the idoc and retrieve it to local variable and retrieve the date base on so from data base.Now  compare the dates .and finally if u want to modify u can do it and then once agin pass the values to segment table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2006 13:58:31 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2006-09-25T13:58:31Z</dc:date>
    <item>
      <title>idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554778#M251382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me informatin on this.&lt;/P&gt;&lt;P&gt;IDOC_INPUT_ORDCHG is the function module for incomng order change .&lt;/P&gt;&lt;P&gt;EXIT_SAPLVEDA_001- is for --SD EDI Incoming Orders: Reading Additional Data from IDOC.&lt;/P&gt;&lt;P&gt;in this exit i have one include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this what i need to do is i need to compae the date which in the idoc (that is from po - customer conformation date ) to so date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how these two function module  are linked.&lt;/P&gt;&lt;P&gt;and how to start my work to update so date from po date.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Kindly any one give me any advise.&lt;/P&gt;&lt;P&gt;Thanks In Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards.&lt;/P&gt;&lt;P&gt;Ramu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 10:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554778#M251382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T10:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554779#M251383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i have scenario like this wt u have to do is put a break point in appropriate function exit where data record is read and identify the date which is in one of the segment of the idoc and retrieve it to local variable and retrieve the date based on so from data base and using some string operations compare the dates and if u need to update the date pass the date againg to segment data and pack it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 13:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554779#M251383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T13:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554780#M251384</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;&amp;lt;b&amp;gt;1.&amp;lt;/b&amp;gt; a small correction. IDOC_INPUT_ORDCHG will call a customer funciton EXIT_SAPLVEDB_001 and not EXIT_SAPLVEDA_001 as you have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2.&amp;lt;/b&amp;gt; if u take a global search of IDOC_INPUT_ORDCHG, u will come to know that in include &amp;lt;b&amp;gt;LVEDBF49&amp;lt;/b&amp;gt; u have this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL CUSTOMER-FUNCTION '001'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          SEGMENT    =  IDOC_DATA&lt;/P&gt;&lt;P&gt;          DXMESCOD   = IDOC_CONTRL-&lt;/P&gt;&lt;P&gt;          CONTRL     = IDOC_CONTRL&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          DXVBAP     =  XVBAP&lt;/P&gt;&lt;P&gt;          DIVBEP     =  IVBEP&lt;/P&gt;&lt;P&gt;          DXVBADR    =  XVBADR&lt;/P&gt;&lt;P&gt;          DXVBPA     =  XVBPA&lt;/P&gt;&lt;P&gt;          DD_FLAG_P  =  D_FLAG_P&lt;/P&gt;&lt;P&gt;          DXKOMV     =  XKOMV&lt;/P&gt;&lt;P&gt;          DXBDCDATA  =  BDCDATA&lt;/P&gt;&lt;P&gt;     CHANGING&lt;/P&gt;&lt;P&gt;          DXVBAK     =  XVBAK&lt;/P&gt;&lt;P&gt;          DD_FLAG_K  =  D_FLAG_K&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          USER_ERROR = 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;3.&amp;lt;/b&amp;gt; u check if the available interface is OK for ur requirement. &lt;/P&gt;&lt;P&gt;if yes, goto EXIT_SAPLVEDB_001 and implement ur code in the include &amp;lt;b&amp;gt;zxvdbu01&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;4.&amp;lt;/b&amp;gt; i hope u know how to implement enhancement in &amp;lt;b&amp;gt;CMOD&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 13:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554780#M251384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T13:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554781#M251385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu&lt;/P&gt;&lt;P&gt;   The Exit EXIT_SAPLVEDA_001 is called for every segment. So You need to Identify the segment with PO Date . Only for that Segment , change the value for date. You have many tables available in the FM EXIT_SAPLVEDA_001  which will give all the sales doc details. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg code in the exit :&lt;/P&gt;&lt;P&gt; If segment-name eq 'XXXX'.&lt;/P&gt;&lt;P&gt;   segment-date = vbap-date.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 13:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554781#M251385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554782#M251386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module u will get the data in the table SEGMENT (which has structure edidd).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read and identify the date which is in one of the segment of the idoc and retrieve it to local variable and retrieve the date base on so from data base.Now  compare the dates .and finally if u want to modify u can do it and then once agin pass the values to segment table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 13:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554782#M251386</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-09-25T13:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554783#M251387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User exits EXIT_SAPLVEDA_001 is used in FM IDOC_INPUT_ORDERS not in FM IDOC_INPUT_ORDCHG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For FM IDOC_INPUT_ORDCHG, you can use user exit EXIT_SAPLVEDB_001 for date comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place break point in EXIT_SAPLVEDB_001 to see all input and output values available for changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 13:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554783#M251387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554784#M251388</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;I understood what u said,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that include i need write code.&lt;/P&gt;&lt;P&gt;I need to compare the dates with po  delivary date (that is in idoc,E1EDP20-EDATU,) WITH THE SO delivay date(vbep).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please give Advise how to start and kindly provide me any sample coding and kindly give me the instructions&lt;/P&gt;&lt;P&gt;how to add  the code in exit with cmod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards.&lt;/P&gt;&lt;P&gt;Ramu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 07:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554784#M251388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T07:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554785#M251389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam giving some sample code please have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE idoc_contrl INTO gwa_control WITH KEY mestyp = 'give ur message type here'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT idoc_data INTO wa_data            &lt;/P&gt;&lt;P&gt;    WHERE docnum = idoc_contrl-docnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CASE wa_data-segnam.                            WHEN 'Z1SCSK'. &lt;/P&gt;&lt;P&gt;        MOVE wa_data-sdata TO gwa_z1scsk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              input  = gwa_z1scsk&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              output = gv_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN 'Z1SCSP'.  &lt;/P&gt;&lt;P&gt;          MOVE wa_data-sdata TO gwa_z1scsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              input  = gwa_z1scsp-posnr&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              output = gv_posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          gwa_z1scsp-posnr = gv_posnr.&lt;/P&gt;&lt;P&gt;          APPEND gwa_z1scsp TO i_z1scsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDCASE.                                 &lt;/P&gt;&lt;P&gt;    ENDLOOP.   &lt;/P&gt;&lt;P&gt;here in place of segments 'Z1SCSK' and 'Z1SCSP' give ur segments name which contains ur required information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now select the data from data base table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM vbap INTO TABLE i_vbap&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ gv_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT i_vbap IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch the data from vbep&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT * FROM vbep INTO TABLE i_vbep&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN i_vbap&lt;/P&gt;&lt;P&gt;      WHERE vbeln EQ i_vbap-vbeln&lt;/P&gt;&lt;P&gt;      AND posnr EQ i_vbap-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; now do calculations here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur case u have to use SEGMENT internal table instead of  idoc_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Nagraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: nagaraj kumar nishtala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 07:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc/m-p/1554785#M251389</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-09-26T07:45:58Z</dc:date>
    </item>
  </channel>
</rss>

