<?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: ME_PROCESS_PO_CUST  PROCESS_HEADER  help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-po-cust-process-header-help/m-p/3687408#M887928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not validate the items in the &lt;STRONG&gt;PROCESS_HEADER&lt;/STRONG&gt; method the reason being that this method is only for processing of PO Header. Method &lt;STRONG&gt;PROCESS_ITEM&lt;/STRONG&gt; should be used for processing and checking of PO Items. Please refer to the corresponding methods documentation using the steps below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Execute &lt;STRONG&gt;SE24&lt;/STRONG&gt; and input the Interface name &lt;STRONG&gt;IF_EX_ME_PROCESS_PO_CUST&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; Place the cursor on the relevant method and follow the menu path &lt;STRONG&gt;Goto-&amp;gt;Documentation-&amp;gt;To component&lt;/STRONG&gt; or simply press &lt;STRONG&gt;F9&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at all you want to still continue the same way as you were doing then the only option I can see to avoid the dump is to add the following code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:lmepoheader TYPE mepoheader.
data: ls_item type PURCHASE_ORDER_ITEMS.
data: wa_item LIKE LINE OF ls_item.
data: itm_data type mepoitem.
DATA: lv_reslo TYPE ekpo-reslo.

CALL METHOD im_header-&amp;gt;get_data
RECEIVING
re_data = lmepoheader.

CALL METHOD im_header-&amp;gt;get_items
receiving
re_items = ls_item.

loop at ls_item into wa_item.

CALL METHOD wa_item-item-&amp;gt;get_data
receiving
re_data = itm_data.

lv_reslo = itm_data-reslo. "Issuing Storg
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Maddineni Bharath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 06:34:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-17T06:34:36Z</dc:date>
    <item>
      <title>ME_PROCESS_PO_CUST  PROCESS_HEADER  help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-po-cust-process-header-help/m-p/3687406#M887926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends &lt;/P&gt;&lt;P&gt;I want to do some validation at header based on items uisng method PROCESS_HEADER.&lt;/P&gt;&lt;P&gt;please can you tell me how can i get the items in header method.&lt;/P&gt;&lt;P&gt;i am poor OOPS pgming. please any one correct my code as given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to fetch the itm data from hdr as follows , but its going to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:lmepoheader TYPE mepoheader.&lt;/P&gt;&lt;P&gt;  data: ls_item type line of PURCHASE_ORDER_ITEMS.&lt;/P&gt;&lt;P&gt;  data: ls_itm type ref to IF_PURCHASE_ORDER_ITEM_MM.&lt;/P&gt;&lt;P&gt;  data: itm_data type mepoitem.&lt;/P&gt;&lt;P&gt;  DATA: lv_reslo TYPE ekpo-reslo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD im_header-&amp;gt;get_data&lt;/P&gt;&lt;P&gt;    RECEIVING&lt;/P&gt;&lt;P&gt;      re_data = lmepoheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD im_header-&amp;gt;get_items&lt;/P&gt;&lt;P&gt;  receiving&lt;/P&gt;&lt;P&gt;    re_items = ls_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ls_itm-&amp;gt;get_data&lt;/P&gt;&lt;P&gt;  receiving&lt;/P&gt;&lt;P&gt;    re_data = itm_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_reslo = itm_data-reslo. "Issuing Storg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me whre i amdoing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 04:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-po-cust-process-header-help/m-p/3687406#M887926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T04:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: ME_PROCESS_PO_CUST  PROCESS_HEADER  help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-po-cust-process-header-help/m-p/3687407#M887927</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 find the corrected code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[method IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:lmepoheader TYPE mepoheader.&lt;/P&gt;&lt;P&gt;data: itm_data type mepoitem.&lt;/P&gt;&lt;P&gt;DATA: lv_reslo TYPE ekpo-reslo.&lt;/P&gt;&lt;P&gt;DATA: it_items TYPE purchase_order_items,&lt;/P&gt;&lt;P&gt;        wa_items LIKE LINE OF it_items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD im_header-&amp;gt;get_data&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;re_data = lmepoheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD im_header-&amp;gt;get_items&lt;/P&gt;&lt;P&gt;receiving&lt;/P&gt;&lt;P&gt;re_items = it_items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_items INTO wa_items.&lt;/P&gt;&lt;P&gt;CALL METHOD wa_items-item-&amp;gt;get_data&lt;/P&gt;&lt;P&gt;receiving&lt;/P&gt;&lt;P&gt;re_data = itm_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_reslo = itm_data-reslo.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if you find it helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 04:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-po-cust-process-header-help/m-p/3687407#M887927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T04:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: ME_PROCESS_PO_CUST  PROCESS_HEADER  help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-po-cust-process-header-help/m-p/3687408#M887928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not validate the items in the &lt;STRONG&gt;PROCESS_HEADER&lt;/STRONG&gt; method the reason being that this method is only for processing of PO Header. Method &lt;STRONG&gt;PROCESS_ITEM&lt;/STRONG&gt; should be used for processing and checking of PO Items. Please refer to the corresponding methods documentation using the steps below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Execute &lt;STRONG&gt;SE24&lt;/STRONG&gt; and input the Interface name &lt;STRONG&gt;IF_EX_ME_PROCESS_PO_CUST&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; Place the cursor on the relevant method and follow the menu path &lt;STRONG&gt;Goto-&amp;gt;Documentation-&amp;gt;To component&lt;/STRONG&gt; or simply press &lt;STRONG&gt;F9&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at all you want to still continue the same way as you were doing then the only option I can see to avoid the dump is to add the following code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:lmepoheader TYPE mepoheader.
data: ls_item type PURCHASE_ORDER_ITEMS.
data: wa_item LIKE LINE OF ls_item.
data: itm_data type mepoitem.
DATA: lv_reslo TYPE ekpo-reslo.

CALL METHOD im_header-&amp;gt;get_data
RECEIVING
re_data = lmepoheader.

CALL METHOD im_header-&amp;gt;get_items
receiving
re_items = ls_item.

loop at ls_item into wa_item.

CALL METHOD wa_item-item-&amp;gt;get_data
receiving
re_data = itm_data.

lv_reslo = itm_data-reslo. "Issuing Storg
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Maddineni Bharath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/me-process-po-cust-process-header-help/m-p/3687408#M887928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T06:34:36Z</dc:date>
    </item>
  </channel>
</rss>

