<?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 Getting items in method PROCESS_HEADER in BADI ME_PROCESS_REQ_CUST, in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-items-in-method-process-header-in-badi-me-process-req-cust/m-p/4466792#M1058311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to get items in PROCESS_HEADER method of BADI ME_PROCESS_REQ_CUST, while creating PR using ME51N, when I change the default document type to another .  process header triggers in that I am getting items so that I can set a default value to a account assignment category based on document type.&lt;/P&gt;&lt;P&gt;The issue is LT_ITEMS is empty, I know it wont be empty in change mode (  ME52N ). bottom line, I am trying to default account assignment category value in creation mode. PROCESS_ITEM doesn't trigger while changing document type in ME51N. so I need to write code in PROCESS_HEADER or OPEN.  I am not able to get the Item interface instance in LT_ITEMS, which I get in ME52N. Please let me know your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&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 = LT_ITEMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT LT_ITEMS ASSIGNING &amp;lt;FS_ITEM&amp;gt;.&lt;/P&gt;&lt;P&gt;    LS_ITEM = &amp;lt;FS_ITEM&amp;gt;-ITEM-&amp;gt;GET_DATA( ).&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2008 23:17:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-03T23:17:14Z</dc:date>
    <item>
      <title>Getting items in method PROCESS_HEADER in BADI ME_PROCESS_REQ_CUST,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-items-in-method-process-header-in-badi-me-process-req-cust/m-p/4466792#M1058311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to get items in PROCESS_HEADER method of BADI ME_PROCESS_REQ_CUST, while creating PR using ME51N, when I change the default document type to another .  process header triggers in that I am getting items so that I can set a default value to a account assignment category based on document type.&lt;/P&gt;&lt;P&gt;The issue is LT_ITEMS is empty, I know it wont be empty in change mode (  ME52N ). bottom line, I am trying to default account assignment category value in creation mode. PROCESS_ITEM doesn't trigger while changing document type in ME51N. so I need to write code in PROCESS_HEADER or OPEN.  I am not able to get the Item interface instance in LT_ITEMS, which I get in ME52N. Please let me know your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&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 = LT_ITEMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT LT_ITEMS ASSIGNING &amp;lt;FS_ITEM&amp;gt;.&lt;/P&gt;&lt;P&gt;    LS_ITEM = &amp;lt;FS_ITEM&amp;gt;-ITEM-&amp;gt;GET_DATA( ).&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2008 23:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-items-in-method-process-header-in-badi-me-process-req-cust/m-p/4466792#M1058311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-03T23:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting items in method PROCESS_HEADER in BADI ME_PROCESS_REQ_CUST,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-items-in-method-process-header-in-badi-me-process-req-cust/m-p/4466793#M1058312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs on this how to solve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 20:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-items-in-method-process-header-in-badi-me-process-req-cust/m-p/4466793#M1058312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T20:52:01Z</dc:date>
    </item>
  </channel>
</rss>

