<?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: check the code for getting idoc no in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-the-code-for-getting-idoc-no/m-p/2664164#M614747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_likp into wa_likp.&lt;/P&gt;&lt;P&gt;loop at it_edid4 into wa_edid4.&lt;/P&gt;&lt;P&gt;if wa_edid4-segnam = 'E1EDL20'.&lt;/P&gt;&lt;P&gt;if wa_edid4-sdata+0(10) = wa_likp-vbeln.  &lt;/P&gt;&lt;P&gt;move: wa_edid4-sdata+0(10) to wa_final-sdata,&lt;/P&gt;&lt;P&gt;wa_edid4-docnum to wa_final-docnum.&lt;/P&gt;&lt;P&gt;move wa_likp-vbeln to wa_final-vbeln.&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&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>Tue, 14 Aug 2007 06:17:11 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2007-08-14T06:17:11Z</dc:date>
    <item>
      <title>check the code for getting idoc no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-the-code-for-getting-idoc-no/m-p/2664163#M614746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check the code and see if it is correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:edid4,edidc,likp.&lt;/P&gt;&lt;P&gt;*likp&lt;/P&gt;&lt;P&gt;types:begin of ty_likp,&lt;/P&gt;&lt;P&gt;      vbeln type VBELN_VL,&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;*edid4&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;      SEGNAM type EDI_SEGNAM,&lt;/P&gt;&lt;P&gt;      sdata type EDI_SDATA,&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;*edidc&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;*final&lt;/P&gt;&lt;P&gt;types:begin of ty_final,&lt;/P&gt;&lt;P&gt;      vbeln type vbeln_va,&lt;/P&gt;&lt;P&gt;      docnum type edi_docnum,&lt;/P&gt;&lt;P&gt;      sdata(10) Type C,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESTYP type EDI_MESTYP,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IDOCTP type EDI_IDOCTP,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;end of ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:it_final type table of ty_final,&lt;/P&gt;&lt;P&gt;     wa_final type ty_final.&lt;/P&gt;&lt;P&gt;parameters:s_vbeln  like likp-vbeln.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select vbeln from likp into table it_likp where vbeln = s_vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&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;if not it_edidc is initial.&lt;/P&gt;&lt;P&gt;SELECT DOCNUM SEGNAM sdata  from edid4 into table  it_edid4 for all&lt;/P&gt;&lt;P&gt;entries in it_edidc where docnum = it_edidc-docnum.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear it_final.&lt;/P&gt;&lt;P&gt;loop at it_likp into wa_likp.&lt;/P&gt;&lt;P&gt;move wa_likp-vbeln to wa_final-vbeln.&lt;/P&gt;&lt;P&gt;if wa_edid4-segnam = 'E1EDL20'.&lt;/P&gt;&lt;P&gt;read table it_edid4 into wa_edid4 with key sdata+0(10) = wa_likp-vbeln.&lt;/P&gt;&lt;P&gt;move: wa_edid4-sdata+0(10) to wa_final-sdata,&lt;/P&gt;&lt;P&gt;      wa_edid4-docnum to wa_final-docnum.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;loop at it_final into wa_final.&lt;/P&gt;&lt;P&gt;write:/ wa_final-vbeln,&lt;/P&gt;&lt;P&gt;        wa_final-docnum,'|',&lt;/P&gt;&lt;P&gt;        wa_final-sdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 04:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-the-code-for-getting-idoc-no/m-p/2664163#M614746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T04:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: check the code for getting idoc no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-the-code-for-getting-idoc-no/m-p/2664164#M614747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_likp into wa_likp.&lt;/P&gt;&lt;P&gt;loop at it_edid4 into wa_edid4.&lt;/P&gt;&lt;P&gt;if wa_edid4-segnam = 'E1EDL20'.&lt;/P&gt;&lt;P&gt;if wa_edid4-sdata+0(10) = wa_likp-vbeln.  &lt;/P&gt;&lt;P&gt;move: wa_edid4-sdata+0(10) to wa_final-sdata,&lt;/P&gt;&lt;P&gt;wa_edid4-docnum to wa_final-docnum.&lt;/P&gt;&lt;P&gt;move wa_likp-vbeln to wa_final-vbeln.&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&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>Tue, 14 Aug 2007 06:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-the-code-for-getting-idoc-no/m-p/2664164#M614747</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-08-14T06:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: check the code for getting idoc no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-the-code-for-getting-idoc-no/m-p/2664165#M614748</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;This can be better from performance point. bcoz we are retriving the Data records from the table EDID4 only for the segment E1EDL20. So the no of records will be reduced drastically.&lt;/P&gt;&lt;P&gt;Check out the code changes in  BOLD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:edid4,edidc,likp.&lt;/P&gt;&lt;P&gt;*likp&lt;/P&gt;&lt;P&gt;types:begin of ty_likp,&lt;/P&gt;&lt;P&gt;vbeln type VBELN_VL,&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;*edid4&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;SEGNAM type EDI_SEGNAM,&lt;/P&gt;&lt;P&gt;sdata type EDI_SDATA,&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;*edidc&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;*final&lt;/P&gt;&lt;P&gt;types:begin of ty_final,&lt;/P&gt;&lt;P&gt;vbeln type vbeln_va,&lt;/P&gt;&lt;P&gt;docnum type edi_docnum,&lt;/P&gt;&lt;P&gt;sdata(10) Type C,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESTYP type EDI_MESTYP,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IDOCTP type EDI_IDOCTP,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;end of ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:it_final type table of ty_final,&lt;/P&gt;&lt;P&gt;wa_final type ty_final.&lt;/P&gt;&lt;P&gt;parameters:s_vbeln like likp-vbeln.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select vbeln from likp into table it_likp where vbeln = s_vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&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;if not it_edidc is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT DOCNUM SEGNAM sdata from edid4 into table it_edid4 for all&lt;/P&gt;&lt;P&gt;entries in it_edidc where docnum = it_edidc-docnum&lt;/P&gt;&lt;P&gt;                                  AND SEGNAM = 'E1EDL20'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_likp into wa_likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;read table it_edid4 into wa_edid4 with key sdata+0(10) = wa_likp-vbeln.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;move: wa_edid4-sdata+0(10) to wa_final-sdata,&lt;/P&gt;&lt;P&gt;wa_edid4-docnum to wa_final-docnum.&lt;/P&gt;&lt;P&gt;move wa_likp-vbeln to wa_final-vbeln.&lt;/P&gt;&lt;P&gt;   append wa_final to it_final.&lt;/P&gt;&lt;P&gt;   CLEAR WA_FINAL.&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final into wa_final.&lt;/P&gt;&lt;P&gt;write:/ wa_final-vbeln,&lt;/P&gt;&lt;P&gt;wa_final-docnum,'|',&lt;/P&gt;&lt;P&gt;wa_final-sdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward POINTS if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 06:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-the-code-for-getting-idoc-no/m-p/2664165#M614748</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-14T06:35:24Z</dc:date>
    </item>
  </channel>
</rss>

