<?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: need help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804408#M915025</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;Add the condition "check gt_ekpo-matnr ne space", immediatley after the loop as shown in the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_ekpo WHERE ebeln NE ' '.&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;check gt_ekpo-matnr ne space.&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;MOVE gt_ekpo-ebeln TO gt_final-ebeln.&lt;/P&gt;&lt;P&gt;MOVE gt_ekpo-matnr TO gt_final-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_mara WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE gt_mara-bismt TO gt_final-bismt.&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;&lt;/P&gt;&lt;P&gt;READ TABLE gt_equi WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE gt_equi-invnr TO gt_final-invnr.&lt;/P&gt;&lt;P&gt;MOVE gt_equi-sernr TO gt_final-sernr.&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;APPEND gt_final.&lt;/P&gt;&lt;P&gt;clear gt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 10:51:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T10:51:30Z</dc:date>
    <item>
      <title>need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804406#M915023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have  written the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_ekpo WHERE ebeln NE ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MOVE gt_ekpo-ebeln  TO  gt_final-ebeln.&lt;/P&gt;&lt;P&gt;     MOVE gt_ekpo-matnr  TO  gt_final-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE gt_mara WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MOVE gt_mara-bismt  TO  gt_final-bismt.&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;&lt;/P&gt;&lt;P&gt; READ TABLE gt_equi WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MOVE gt_equi-invnr  TO  gt_final-invnr.&lt;/P&gt;&lt;P&gt;     MOVE gt_equi-sernr  TO  gt_final-sernr.&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;       APPEND gt_final.&lt;/P&gt;&lt;P&gt;       clear gt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is i am comparing all the fields with matnr and reading the remaing fields.&lt;/P&gt;&lt;P&gt;if matnr field is empty, then all the remaing fields are also empty except ebeln.&lt;/P&gt;&lt;P&gt;then when matnr is empty it should not display in the output.&lt;/P&gt;&lt;P&gt;please help me how to write code for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 10:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804406#M915023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804407#M915024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if so,&lt;/P&gt;&lt;P&gt;then delete the entries from internal table if matnr is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you cant do that...then add the condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_ekpo WHERE ebeln NE ' ' and matnr ne ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 10:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804407#M915024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T10:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804408#M915025</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;Add the condition "check gt_ekpo-matnr ne space", immediatley after the loop as shown in the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_ekpo WHERE ebeln NE ' '.&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;check gt_ekpo-matnr ne space.&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;MOVE gt_ekpo-ebeln TO gt_final-ebeln.&lt;/P&gt;&lt;P&gt;MOVE gt_ekpo-matnr TO gt_final-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_mara WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE gt_mara-bismt TO gt_final-bismt.&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;&lt;/P&gt;&lt;P&gt;READ TABLE gt_equi WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE gt_equi-invnr TO gt_final-invnr.&lt;/P&gt;&lt;P&gt;MOVE gt_equi-sernr TO gt_final-sernr.&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;APPEND gt_final.&lt;/P&gt;&lt;P&gt;clear gt_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 10:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804408#M915025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T10:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804409#M915026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT gt_ekpo WHERE ebeln NE ' '.&lt;/P&gt;&lt;P&gt;if gt_ekpo-matnr = '   '.&lt;/P&gt;&lt;P&gt;CONTINUE.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MOVE gt_ekpo-ebeln TO gt_final-ebeln.&lt;/P&gt;&lt;P&gt;MOVE gt_ekpo-matnr TO gt_final-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_mara WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE gt_mara-bismt TO gt_final-bismt.&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;&lt;/P&gt;&lt;P&gt;READ TABLE gt_equi WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MOVE gt_equi-invnr TO gt_final-invnr.&lt;/P&gt;&lt;P&gt;MOVE gt_equi-sernr TO gt_final-sernr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND gt_final.&lt;/P&gt;&lt;P&gt;clear gt_final.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK THE ABOVE CODE AND TRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 10:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804409#M915026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T10:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804410#M915027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT gt_ekpo WHERE ebeln NE ' '&lt;/P&gt;&lt;P&gt;                                         matnr NE ' '.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 10:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3804410#M915027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T10:56:50Z</dc:date>
    </item>
  </channel>
</rss>

