<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: What is the simplest way to read HU in EWM using classes not Query	</title>
	<atom:link href="https://www.sapewmhelp.com/question/what-is-the-simplest-way-to-read-hu-in-ewm-using-classes-not-query/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sapewmhelp.com/question/what-is-the-simplest-way-to-read-hu-in-ewm-using-classes-not-query/</link>
	<description>SAP EWM questions answered by experts — ABAP, S/4HANA, warehouse management</description>
	<lastBuildDate>Tue, 29 Jul 2025 12:56:49 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>
		By: admin		</title>
		<link>https://www.sapewmhelp.com/question/what-is-the-simplest-way-to-read-hu-in-ewm-using-classes-not-query/#comment-56</link>

		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 29 Jul 2025 12:56:49 +0000</pubDate>
		<guid isPermaLink="false">https://www.sapewmhelp.com/?question=what-is-the-simplest-way-to-read-hu-in-ewm-using-classes-not-query#comment-56</guid>

					<description><![CDATA[&lt;strong&gt;Here is the sample code to read HU&lt;/strong&gt;
&lt;pre&gt;Create Instance for /scwm/cl_wm_packing class

&lt;em&gt;*--Get docid from the source HU&lt;/em&gt;
      CALL METHOD /scwm/cl_wm_packing=&#062;get_instance
        IMPORTING
          eo_instance = DATA(lo_wm_pack).



&lt;em&gt;* --init warehouse,application&lt;/em&gt;
      CALL METHOD lo_wm_pack-&#062;init_pack
        EXPORTING
          iv_badi_appl = &#039;WME&#039;
          iv_lgnum     = is_ltap-lgnum
        EXCEPTIONS
          error        = 1
          OTHERS       = 2.



&lt;em&gt;* --get hu data, in this case only item data&lt;/em&gt;
      CALL METHOD lo_wm_pack-&#062;get_hu
        EXPORTING
          iv_guid_hu = is_ltap-sguid_hu                 &lt;em&gt;&quot; Unique Internal Identification of a Handling Unit&lt;/em&gt;
        IMPORTING
          et_huitm   = DATA(lt_huitm)                   &lt;em&gt;&quot; Material Items in the HU&lt;/em&gt;
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.&lt;/pre&gt;
&lt;pre&gt;&lt;img src=&quot;https://www.sapewmhelp.com/wp-content/uploads/2025/07/Debug-HU-Read-300x90.png&quot; alt=&quot;&quot; class=&quot; wp-image-7119 alignleft&quot; /&gt;&lt;/pre&gt;
&#160;]]></description>
			<content:encoded><![CDATA[<p><strong>Here is the sample code to read HU</strong></p>
<pre>Create Instance for /scwm/cl_wm_packing class

<em>*--Get docid from the source HU</em>
      CALL METHOD /scwm/cl_wm_packing=&gt;get_instance
        IMPORTING
          eo_instance = DATA(lo_wm_pack).



<em>* --init warehouse,application</em>
      CALL METHOD lo_wm_pack-&gt;init_pack
        EXPORTING
          iv_badi_appl = 'WME'
          iv_lgnum     = is_ltap-lgnum
        EXCEPTIONS
          error        = 1
          OTHERS       = 2.



<em>* --get hu data, in this case only item data</em>
      CALL METHOD lo_wm_pack-&gt;get_hu
        EXPORTING
          iv_guid_hu = is_ltap-sguid_hu                 <em>" Unique Internal Identification of a Handling Unit</em>
        IMPORTING
          et_huitm   = DATA(lt_huitm)                   <em>" Material Items in the HU</em>
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.</pre>
<pre><img src="https://www.sapewmhelp.com/wp-content/uploads/2025/07/Debug-HU-Read-300x90.png" alt="" class=" wp-image-7119 alignleft" /></pre>
<p>&nbsp;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
