<?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: Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073194#M1970246</link>
    <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;bhavani123&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;May be because you are using older version, this syntax is only with newer versions.&lt;/P&gt;&lt;P&gt;Recommend you to follow the traditional way declaring the table up front and the use it in your query.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 07:09:19 GMT</pubDate>
    <dc:creator>former_member1716</dc:creator>
    <dc:date>2019-12-26T07:09:19Z</dc:date>
    <item>
      <title>Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073190#M1970242</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1760571-smartforms.png" /&gt;&lt;/P&gt;
  &lt;P&gt;My requirement is based on the sales document number i need to display all material details. for that i designed a query as shown in below. But problem is i am getting only single material details repeatedly as shown in above fig. Can you please help to resolve this problem by getting all material details based corresponding so number&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT single

*VBELN

MATNR

ARKTX

MEINS

netpr

kwmeng

netwr

mwsbp

FROM VBAP

INTO  wa_vbap

*for all entries in wa_vbak

WHERE  VBELN = I_vbeln.

Regards,
Bhavani.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Dec 2019 05:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073190#M1970242</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2019-12-26T05:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073191#M1970243</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;bhavani123&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;You have written a Select Single Query from VBAP table to get entries, in this case you will only get one entry irrespective of the number of entries in there.&lt;/P&gt;&lt;P&gt;I would recommend you to change your query as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE
VBELN
MATNR
ARKTX
MEINS
netpr
kwmeng
netwr
mwsbp
FROM VBAP
INTO  table @data(lt_vbap)
WHERE  VBELN = I_vbeln.
if sy-subrc eq 0.
SORT LT_VBAP by VBELN MATNR.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The above query will have all the materials related to the Sales order in the internal table LT_VBAP, now you just loop the table inside the smartform and map the fields accordingly so that during each iteration all the line items are picked progressivley.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 06:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073191#M1970243</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-12-26T06:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073192#M1970244</link>
      <description>&lt;P&gt;Thank you Sathish Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 06:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073192#M1970244</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2019-12-26T06:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073193#M1970245</link>
      <description>&lt;P&gt;But i am getting error like&lt;/P&gt;&lt;P&gt;Field "table" is unknown. It is neither in one of specified tables nor defined by a "Data" Statement. "Data" Statement.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 06:59:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073193#M1970245</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2019-12-26T06:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073194#M1970246</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;bhavani123&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;May be because you are using older version, this syntax is only with newer versions.&lt;/P&gt;&lt;P&gt;Recommend you to follow the traditional way declaring the table up front and the use it in your query.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 07:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073194#M1970246</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-12-26T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073195#M1970247</link>
      <description>&lt;P&gt;Can you please help me by sending the select query because i developed a query as shown in below but still i am getting only single material number details.&lt;/P&gt;&lt;P&gt;SELECT &lt;BR /&gt;VBELN&lt;BR /&gt;MATNR&lt;BR /&gt;ARKTX&lt;BR /&gt;MEINS&lt;BR /&gt;netpr&lt;BR /&gt;kwmeng&lt;BR /&gt;netwr&lt;BR /&gt;mwsbp&lt;BR /&gt;FROM VBAP&lt;BR /&gt;INTO table it_vbap&lt;BR /&gt;
**for all entries in wa_vbak&lt;BR /&gt;WHERE VBELN = I_vbeln.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 04:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073195#M1970247</guid>
      <dc:creator>former_member612655</dc:creator>
      <dc:date>2019-12-27T04:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073196#M1970248</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;satishkumarbalasubramanian&lt;/SPAN&gt; Your code doesn't compile, commas are missing and I_VBELN is not prefixed with @.</description>
      <pubDate>Fri, 27 Dec 2019 05:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073196#M1970248</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-12-27T05:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073197#M1970249</link>
      <description>&lt;P&gt;How can you tell that the error is from this particular query and not from anywhere else? (maybe the fault is from the loop or the smart form or between them).&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 06:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073197#M1970249</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-12-27T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073198#M1970250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Clear work area before your select query.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 09:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073198#M1970250</guid>
      <dc:creator>Chintu6august</dc:creator>
      <dc:date>2019-12-27T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073199#M1970251</link>
      <description>&lt;P&gt;Thanks for the catch &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;bhavani123&lt;/SPAN&gt;,,&lt;/P&gt;&lt;P&gt;Please find the code below,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE
VBELN,
MATNR,
ARKTX,
MEINS,
netpr,
kwmeng,
netwr,
mwsbp
FROM VBAP
INTO  table @data(lt_vbap)
WHERE  VBELN = @I_vbeln.
if sy-subrc eq 0.
SORT LT_VBAP by VBELN MATNR.
endif.

Regards!&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Dec 2019 10:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms/m-p/12073199#M1970251</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-12-27T10:31:42Z</dc:date>
    </item>
  </channel>
</rss>

