<?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 IDOC EDID4-SDATA offset value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790887#M1953292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a requirement to create a report which works similar to WE09.&lt;/P&gt;&lt;P&gt;The report needs to find the IDOC number based on the segment, field &amp;amp; value.&lt;/P&gt;&lt;P&gt;(like E1EDKA1, IHREZ, Invoivce number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the IDOC segment data can be found in EDID4-SDATA.&lt;/P&gt;&lt;P&gt;I've trouble with finding the offset &amp;amp; length of the required field in offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to use c call &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;CALL &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;&lt;STRONG&gt;'C_DD_READ_FIELD' &lt;/STRONG&gt;&amp;amp; FM&amp;nbsp; &lt;STRONG&gt;DDIF_FIELDINFO_GET.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;They don't produce the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to find the offset &amp;amp; length of a particular &lt;STRONG&gt;SEGMENT-FIELD&lt;/STRONG&gt; given dynamically at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help with resolving this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Balaji.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2016 14:18:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-08-02T14:18:37Z</dc:date>
    <item>
      <title>IDOC EDID4-SDATA offset value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790887#M1953292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a requirement to create a report which works similar to WE09.&lt;/P&gt;&lt;P&gt;The report needs to find the IDOC number based on the segment, field &amp;amp; value.&lt;/P&gt;&lt;P&gt;(like E1EDKA1, IHREZ, Invoivce number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the IDOC segment data can be found in EDID4-SDATA.&lt;/P&gt;&lt;P&gt;I've trouble with finding the offset &amp;amp; length of the required field in offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to use c call &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;CALL &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;&lt;STRONG&gt;'C_DD_READ_FIELD' &lt;/STRONG&gt;&amp;amp; FM&amp;nbsp; &lt;STRONG&gt;DDIF_FIELDINFO_GET.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;They don't produce the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to find the offset &amp;amp; length of a particular &lt;STRONG&gt;SEGMENT-FIELD&lt;/STRONG&gt; given dynamically at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help with resolving this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Balaji.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 14:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790887#M1953292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-02T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC EDID4-SDATA offset value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790888#M1953293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How different will your report be, compared to WE09? What other functionality would you like to achieve in your report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since WE09 is an ALV report, you could submit WE09, from your report and then use &lt;A __default_attr="58008" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Gain Programmatic Access to Data of SAPGUI ALV Reports" href="https://community.sap.com/"&gt;&lt;/A&gt; method to get back the ALV report from WE09, without having to code the entire data fetch mechanism yourselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 14:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790888#M1953293</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-08-02T14:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC EDID4-SDATA offset value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790889#M1953294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned above when it is possible try to stick to standard transactions instead of creating your own. &lt;/P&gt;&lt;P&gt;Answering your question &lt;SPAN style="color: #333333; font-size: 12px;"&gt;EDID4 has field SEGNAM which represents IDoc segment name and corresponds to existing dictionary type. Moreover IDoc segments consist of field of type CHAR hence you could simply iterate over structure components and count the length from the beginning to the field you are interested in. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 17:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790889#M1953294</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2016-08-02T17:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC EDID4-SDATA offset value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790890#M1953295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll need to pass multiple values into selection screen and compare it with the value in the SEGMENT-FIELD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790890#M1953295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-03T12:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC EDID4-SDATA offset value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790891#M1953296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take the 'SEGNAM' from EDID4 and pass the SDATA in a structure of that SEGNAM.&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;P&gt;if you have segnam &lt;SPAN style="color: #333333; font-size: 12px;"&gt;E1EDKA1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;wa_&lt;SPAN style="color: #333333; font-size: 12px;"&gt;E1EDKA1 = edid4-sdata. ( where wa_&lt;SPAN style="color: #333333; font-size: 12px;"&gt;E1EDKA1 type &lt;SPAN style="color: #333333; font-size: 12px;"&gt;E1EDKA1 ).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;you can then find the value of IHREZ in &lt;SPAN style="font-size: 13.3333px;"&gt;wa_&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;E1EDKA1-&lt;SPAN style="color: #333333; font-size: 12px;"&gt;IHREZ.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Sampat&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-edid4-sdata-offset-value/m-p/11790891#M1953296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-03T12:44:00Z</dc:date>
    </item>
  </channel>
</rss>

