<?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 Select Single in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657131#M1667108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using select single matnr werks into (lv_matnr, lv_werks) from marc where matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing it showing dump error.&lt;/P&gt;&lt;P&gt;I know to use workarea or table but i need to achieve in this way.If i use single field(matnr) its working fine.&lt;/P&gt;&lt;P&gt;Can you suggest &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 08:40:28 GMT</pubDate>
    <dc:creator>Kishore_</dc:creator>
    <dc:date>2012-03-09T08:40:28Z</dc:date>
    <item>
      <title>Select Single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657131#M1667108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using select single matnr werks into (lv_matnr, lv_werks) from marc where matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing it showing dump error.&lt;/P&gt;&lt;P&gt;I know to use workarea or table but i need to achieve in this way.If i use single field(matnr) its working fine.&lt;/P&gt;&lt;P&gt;Can you suggest &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657131#M1667108</guid>
      <dc:creator>Kishore_</dc:creator>
      <dc:date>2012-03-09T08:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select Single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657132#M1667109</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; check how the variable LV_WERKS is defined. &lt;/P&gt;&lt;P&gt;It can be defined in 2 ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lv_werks type werks_d.&lt;/P&gt;&lt;P&gt;                      or&lt;/P&gt;&lt;P&gt;data lv_werks type mard-werks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657132#M1667109</guid>
      <dc:creator>rnb86</dc:creator>
      <dc:date>2012-03-09T08:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select Single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657133#M1667110</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;make sure that lv_werks is of type WERKS_D, not of type WERKS  ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657133#M1667110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-09T08:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select Single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657134#M1667111</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;Please debug and check at what line system is giving a dump error. I think you have created structures lv_matnr and lv_werks in case of variables or the target datatypes must be different. Also you shall not get single record with matnr in MARC table. You also need to give werks for selecting a unique record. Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_marc,
       matnr TYPE marc-matnr,
       werks TYPE marc-werks,
       END OF ty_marc.

DATA: wa_marc TYPE ty_marc.

SELECT SINGLE matnr werks
  FROM marc
  INTO wa_marc
  WHERE matnr EQ p_matnr
  AND   werks EQ p_werks.
IF sy-subrc NE 0.
  MESSAGE 'No Data' TYPE 'S' DISPLAY LIKE 'E'.
  LEAVE LIST-PROCESSING.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657134#M1667111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-09T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select Single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657135#M1667112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For single matnr there are multiple werks in MARC .. so what werks u want to select ????&lt;/P&gt;&lt;P&gt;I have tried with your code but did not found any issue&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : lv_matnr type MATNR,
      lv_werks type WERKS_D.
select single matnr werks
  into (lv_matnr,lv_werks)
  from marc where matnr = '000000000013723112'.
  write  : lv_matnr, lv_werks.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: KaushiK©Datta on Mar 9, 2012 2:23 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657135#M1667112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-09T08:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select Single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657136#M1667113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;    Can you please share the dump error you got.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Girdhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657136#M1667113</guid>
      <dc:creator>former_member16553</dc:creator>
      <dc:date>2012-03-09T08:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select Single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657137#M1667114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 09:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/8657137#M1667114</guid>
      <dc:creator>Kishore_</dc:creator>
      <dc:date>2012-03-09T09:04:44Z</dc:date>
    </item>
  </channel>
</rss>

