<?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>Question Re: Debug problem for standard datasource in cmod in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717083#M197754</link>
    <description>&lt;P&gt;Thank you so much for this answer,&lt;/P&gt;&lt;P&gt;but even though I put the breakpoint it doesnt fall the debug. I dont have any problem with code. &lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 14:46:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-10-23T14:46:59Z</dc:date>
    <item>
      <title>Debug problem for standard datasource in cmod</title>
      <link>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaq-p/717081</link>
      <description>&lt;P&gt;I wanted to use standard data source and I had to write cmod; I wanted to fill the zzmaktx area;&lt;/P&gt;
  &lt;P&gt;the result does not return when I want to debug rsa3&lt;/P&gt;
  &lt;P&gt;WHEN '0MATERIAL_ATTR'.&lt;BR /&gt; &lt;BR /&gt; DATA: s_BIW_MARA_S TYPE BIW_MARA_S.&lt;BR /&gt; &lt;BR /&gt; DATA: BEGIN OF gt_makt OCCURS 0,&lt;BR /&gt; &lt;BR /&gt; MATNR TYPE MAKT-MATNR,&lt;BR /&gt; MAKTX TYPE MAKT-MAKTX,&lt;BR /&gt; &lt;BR /&gt; END OF gt_makt.&lt;BR /&gt; &lt;BR /&gt; select a~MATNR a~MAKTX&lt;BR /&gt; from makt as a&lt;BR /&gt; into table gt_makt.&lt;BR /&gt; &lt;BR /&gt; sort gt_makt by MATNR.&lt;BR /&gt; &lt;BR /&gt; LOOP AT c_t_data INTO s_BIW_MARA_S.&lt;BR /&gt; &lt;BR /&gt; READ TABLE gt_makt WITH KEY MATNR = s_BIW_MARA_S-MATNR BINARY SEARCH.&lt;BR /&gt; &lt;BR /&gt; IF sy-subrc EQ 0.&lt;BR /&gt; &lt;BR /&gt; s_BIW_MARA_S-zzmaktx = gt_makt-MAKTX.&lt;BR /&gt; &lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt; MODIFY c_t_data FROM s_BIW_MARA_S.&lt;BR /&gt; &lt;BR /&gt; ENDLOOP.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaq-p/717081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-23T08:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problem for standard datasource in cmod</title>
      <link>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717082#M197753</link>
      <description>&lt;P&gt;You may have to use TRANSPORTING &amp;lt;field1&amp;gt;. But rather using MODIFY you can use field-symbol &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: 
  &amp;lt;lw_biw_mara_s&amp;gt; TYPE biw_mara_s,
  &amp;lt;lw_makt&amp;gt;       TYPE ty_makt.

LOOP AT c_t_data ASSIGNING &amp;lt;lw_biw_mara_s&amp;gt;.
  READ TABLE lt_makt ASSIGNING &amp;lt;lw_makt&amp;gt; WITH KEY MATNR = s_BIW_MARA_S-MATNR 
    IF sy-subrc EQ 0.
      &amp;lt;lw_biw_mara_s&amp;gt;-zzmaktx = &amp;lt;lw_makt&amp;gt;-maktx.
    ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Instead of OCCURS, create a structure and create a SORTED table. &lt;/P&gt;&lt;P&gt;You no need to specify alias name (a~) in the SELECT query but you have to use FOR ALL ENTRIES to get the materials based on C_T_DATA table.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717082#M197753</guid>
      <dc:creator>srikanthnalluri</dc:creator>
      <dc:date>2018-10-23T13:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problem for standard datasource in cmod</title>
      <link>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717083#M197754</link>
      <description>&lt;P&gt;Thank you so much for this answer,&lt;/P&gt;&lt;P&gt;but even though I put the breakpoint it doesnt fall the debug. I dont have any problem with code. &lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717083#M197754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-23T14:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problem for standard datasource in cmod</title>
      <link>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717084#M197755</link>
      <description>&lt;P&gt;This means that your break-point is not reached. Try to set it at a higher level to find why (the highest level being the function module EXIT_SAPLRSAP_001).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717084#M197755</guid>
      <dc:creator>FCI</dc:creator>
      <dc:date>2018-10-23T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problem for standard datasource in cmod</title>
      <link>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717085#M197756</link>
      <description>&lt;P&gt;Hi Frederic,&lt;/P&gt;&lt;P&gt;Worked as you said. I was using EXIT_SAPLRSAP_002.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/debug-problem-for-standard-datasource-in-cmod/qaa-p/717085#M197756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-24T08:22:03Z</dc:date>
    </item>
  </channel>
</rss>

