<?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: doubt in coding to get idoc no in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-coding-to-get-idoc-no/m-p/2698512#M624807</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;after this...try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_edidc[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select segnam sdata from edid4 into table it_edid4&lt;/P&gt;&lt;P&gt;for all entries in it_edidc&lt;/P&gt;&lt;P&gt;where docnum = it_edidc-docnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u need to loop ur delivery numbers table and also the internal table it_edid4 and check the segment where ur getting the delivery number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_delivery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_edid4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_edid4-segnam = &amp;lt;give the segment name where delivery number exists&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : it_edid4-sdata to wa_edid4-sdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check the delivery number with it_delivery-deliveryno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&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, 13 Aug 2007 07:14:27 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2007-08-13T07:14:27Z</dc:date>
    <item>
      <title>doubt in coding to get idoc no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-coding-to-get-idoc-no/m-p/2698511#M624806</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 want to get corresponding idoc no s for delivery nos&lt;/P&gt;&lt;P&gt;     I understood the logic of how to get the idoc no for particular delivery no.but unable to code it exactly.&lt;/P&gt;&lt;P&gt; Message type is desadv&lt;/P&gt;&lt;P&gt;Idoc type is delvry03.&lt;/P&gt;&lt;P&gt;Segment name is E1EDL20&lt;/P&gt;&lt;P&gt;can u write me the code exactly &lt;/P&gt;&lt;P&gt;Here is sample code.&lt;/P&gt;&lt;P&gt;tables:edid4,edidc,likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of ty_likp,&lt;/P&gt;&lt;P&gt;      vbeln type vbeln_vl, "delivery no&lt;/P&gt;&lt;P&gt;end of ty_likp.&lt;/P&gt;&lt;P&gt;data:it_likp type table of ty_likp,&lt;/P&gt;&lt;P&gt;     wa_likp type ty_likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of ty_edidc,&lt;/P&gt;&lt;P&gt;      DOCNUM type EDI_DOCNUM,&lt;/P&gt;&lt;P&gt;      MESTYP type EDI_MESTYP,&lt;/P&gt;&lt;P&gt;      IDOCTP type EDI_IDOCTP,&lt;/P&gt;&lt;P&gt;end of ty_edidc.&lt;/P&gt;&lt;P&gt;data:it_edidc type table of ty_edidc,&lt;/P&gt;&lt;P&gt;     wa_edidc type ty_edidc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of ty_edid4,&lt;/P&gt;&lt;P&gt;      DOCNUM type EDI_DOCNUM,&lt;/P&gt;&lt;P&gt;      sdata type EDI_SDATA,&lt;/P&gt;&lt;P&gt;      segnam type edi_segnam,&lt;/P&gt;&lt;P&gt;end of ty_edid4.&lt;/P&gt;&lt;P&gt;data:it_edid4 type table of ty_edid4,&lt;/P&gt;&lt;P&gt;     wa_edid4 type ty_edid4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select DOCNUM&lt;/P&gt;&lt;P&gt;        mestyp&lt;/P&gt;&lt;P&gt;        idoctp&lt;/P&gt;&lt;P&gt;        from&lt;/P&gt;&lt;P&gt;        edidc into table it_edidc&lt;/P&gt;&lt;P&gt;        where mestyp = 'DESADV'&lt;/P&gt;&lt;P&gt;        AND IDOCTP = 'DELVRY03'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(here I get idoc no after this how to code to get corresponding idoc nos for delivery nos)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this can u code how to get the idoc no for particular delivery no like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to link sdata and delivery no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to get tht offset values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 06:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-coding-to-get-idoc-no/m-p/2698511#M624806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T06:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in coding to get idoc no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-coding-to-get-idoc-no/m-p/2698512#M624807</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;after this...try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_edidc[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select segnam sdata from edid4 into table it_edid4&lt;/P&gt;&lt;P&gt;for all entries in it_edidc&lt;/P&gt;&lt;P&gt;where docnum = it_edidc-docnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u need to loop ur delivery numbers table and also the internal table it_edid4 and check the segment where ur getting the delivery number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_delivery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_edid4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_edid4-segnam = &amp;lt;give the segment name where delivery number exists&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : it_edid4-sdata to wa_edid4-sdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check the delivery number with it_delivery-deliveryno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&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, 13 Aug 2007 07:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-coding-to-get-idoc-no/m-p/2698512#M624807</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-08-13T07:14:27Z</dc:date>
    </item>
  </channel>
</rss>

