<?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 How to read data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135184#M1190304</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;&lt;/P&gt;&lt;P&gt;I have a requirement, where in i am creating a screen exit for ME51N.I am using MEREQ001 enhancement for this.It is working fine, but i am to get data in to this so as to write any code.For that i am using the function exit EXIT_SAPLMEREQ_001 in that same enhancement(thought of doing export and import).&lt;/P&gt;&lt;P&gt;But the data is declared in this way..&lt;/P&gt;&lt;P&gt;REFERENCE(IM_REQ_ITEM) TYPE REF TO IF_PURCHASE_REQUISITION_ITEM&lt;/P&gt;&lt;P&gt;so now it is having a method GET_DATA in which i have all the parameters required.&lt;/P&gt;&lt;P&gt;can anyone please tell me how to read this data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thoufique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2009 05:46:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-27T05:46:03Z</dc:date>
    <item>
      <title>How to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135184#M1190304</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;&lt;/P&gt;&lt;P&gt;I have a requirement, where in i am creating a screen exit for ME51N.I am using MEREQ001 enhancement for this.It is working fine, but i am to get data in to this so as to write any code.For that i am using the function exit EXIT_SAPLMEREQ_001 in that same enhancement(thought of doing export and import).&lt;/P&gt;&lt;P&gt;But the data is declared in this way..&lt;/P&gt;&lt;P&gt;REFERENCE(IM_REQ_ITEM) TYPE REF TO IF_PURCHASE_REQUISITION_ITEM&lt;/P&gt;&lt;P&gt;so now it is having a method GET_DATA in which i have all the parameters required.&lt;/P&gt;&lt;P&gt;can anyone please tell me how to read this data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thoufique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 05:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135184#M1190304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T05:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135185#M1190305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thoufique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have a look at my Wiki posting&lt;/P&gt;&lt;P&gt;[Accessing the Inacessible - Local Classes within Global Classes |https://wiki.sdn.sap.com/wiki/display/ABAP/Accessing&lt;EM&gt;the&lt;/EM&gt;Inacessible&lt;EM&gt;-&lt;/EM&gt;Local&lt;EM&gt;Classes&lt;/EM&gt;within&lt;EM&gt;Global&lt;/EM&gt;Classes]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the links mentioned therein.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The direct answer to your question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: ls_data    TYPE MEREQ_ITEM.

  ls_data = im_req_item-&amp;gt;get_data( ).  " function method call
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 06:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135185#M1190305</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-27T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135186#M1190306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe Schieferstein,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need to get data from method GET_REQUISITION(item data) which is of type IF_PURCHASE_REQUISITION.&lt;/P&gt;&lt;P&gt;(RE_REQUISITION	Returning	Type Ref To	IF_PURCHASE_REQUISITION)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i wrote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD im_req_item-&amp;gt;get_requisition&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    re_requisition = re_requisition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, If i get in to IF_PURCHASE_REQUISITION and see the methods i have a method called GET_ITEMS and i need to get data from RE_ITEMS parameter which is of type MPUR_REQUISITION_ITEMS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i wrote&lt;/P&gt;&lt;P&gt;CALL METHOD re_requisition-&amp;gt;get_items&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    re_items = re_items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the output is coming like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;                           |&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;                           |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMPUR_REQUISITION_ITEM is a line type and this is again of type IF_PURCHASE_REQUISITION_ITEM.which is where i started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this is getting recursive and i am unable to get item data.&lt;/P&gt;&lt;P&gt;can you plese help??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thoufique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 07:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135186#M1190306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T07:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135187#M1190307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe Schieferstein,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot fo the attachment of your wiki posting.&lt;/P&gt;&lt;P&gt;I was code to do the same in the userexit.But it was throwing me error maessages.&lt;/P&gt;&lt;P&gt;Now i have coded the same in the badi and it is working fine.&lt;/P&gt;&lt;P&gt;Thanks a lot for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thoufique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 09:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135187#M1190307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T09:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135188#M1190308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thoufique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if my Wiki coding proves to be useful for other people as well that's encouraging as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;    Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 12:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-data/m-p/5135188#M1190308</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-27T12:22:03Z</dc:date>
    </item>
  </channel>
</rss>

