<?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: Function module based generic extractor - Problem with the selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681200#M1291351</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;MARC&lt;SUB&gt;WERKS = MARD&lt;/SUB&gt;WERKS  &lt;/P&gt;&lt;P&gt;MARC~werks EQ gt_werks-werks&lt;/P&gt;&lt;P&gt;for the corresponding Material need's to be satisfied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2009 12:02:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-05T12:02:43Z</dc:date>
    <item>
      <title>Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681199#M1291350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my code in the function module. I am able to get the entire data if i dont give any selections and the number of records is also correct. But when i select a MATNR value, it returns 0 records where as it needs to return 3 records. If i give selection based on bukrs, werks, lgort its working fine. But if i give selection based on MATNR, then it is not working.... I think there is a problem in the bold part of my code. If i debug, LS_MATNR is having the correct value which indicates that there is no problem with the value being passed to LS_MATNR from my selection screen of my datasource in RSA3. Even GT_WERKS is also having data. Please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR WITH HOLD S_CURSOR FOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  MARA~MANDT&lt;/P&gt;&lt;P&gt;        MARA~MATNR&lt;/P&gt;&lt;P&gt;        MARC~WERKS&lt;/P&gt;&lt;P&gt;        MARD~LGORT&lt;/P&gt;&lt;P&gt;        MARA~MEINS&lt;/P&gt;&lt;P&gt;        MARD~LABST&lt;/P&gt;&lt;P&gt;        MARD~EINME&lt;/P&gt;&lt;P&gt;        MARD~SPEME&lt;/P&gt;&lt;P&gt;        MARD~RETME&lt;/P&gt;&lt;P&gt;        MARD~INSME&lt;/P&gt;&lt;P&gt;        MARD~UMLME&lt;/P&gt;&lt;P&gt;        MARD~VMLAB&lt;/P&gt;&lt;P&gt;        MARD~VMEIN&lt;/P&gt;&lt;P&gt;        MARD~VMSPE&lt;/P&gt;&lt;P&gt;        MARD~VMRET&lt;/P&gt;&lt;P&gt;        MARD~VMINS&lt;/P&gt;&lt;P&gt;        MARD~VMUML&lt;/P&gt;&lt;P&gt;        MARC~XCHPF&lt;/P&gt;&lt;P&gt;        MARD~KLABS&lt;/P&gt;&lt;P&gt;        MARD~KEINM&lt;/P&gt;&lt;P&gt;        MARD~KSPEM&lt;/P&gt;&lt;P&gt;        MARD~KINSM&lt;/P&gt;&lt;P&gt;from MARA inner join MARC on&lt;/P&gt;&lt;P&gt;MARA&lt;SUB&gt;MANDT = MARC&lt;/SUB&gt;MANDT AND&lt;/P&gt;&lt;P&gt;MARA&lt;SUB&gt;MATNR = MARC&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;inner join MARD on&lt;/P&gt;&lt;P&gt;MARA&lt;SUB&gt;MANDT = MARD&lt;/SUB&gt;MANDT AND&lt;/P&gt;&lt;P&gt;MARA&lt;SUB&gt;MATNR = MARD&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;AND MARC&lt;SUB&gt;WERKS = MARD&lt;/SUB&gt;WERKS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for all entries in gt_werks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where MARC~werks EQ gt_werks-werks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND MARA~MATNR in LS_MATNR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.                             "First data package ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch records into interface table.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  named E_T_'Name of extract structure'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FETCH NEXT CURSOR S_CURSOR&lt;/P&gt;&lt;P&gt;               APPENDING CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;               OF TABLE E_T_DATA&lt;/P&gt;&lt;P&gt;               PACKAGE SIZE S_S_IF-MAXSIZE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 11:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681199#M1291350</guid>
      <dc:creator>former_member210676</dc:creator>
      <dc:date>2009-06-05T11:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681200#M1291351</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;MARC&lt;SUB&gt;WERKS = MARD&lt;/SUB&gt;WERKS  &lt;/P&gt;&lt;P&gt;MARC~werks EQ gt_werks-werks&lt;/P&gt;&lt;P&gt;for the corresponding Material need's to be satisfied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681200#M1291351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T12:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681201#M1291352</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;If possible could you provide me the corrected code. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681201#M1291352</guid>
      <dc:creator>former_member210676</dc:creator>
      <dc:date>2009-06-05T12:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681202#M1291353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the 'in' statement - check with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_MATNR must be declared as ranges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681202#M1291353</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-05T12:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681203#M1291354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes LS_MATNR is already declared as ranges. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681203#M1291354</guid>
      <dc:creator>former_member210676</dc:creator>
      <dc:date>2009-06-05T12:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681204#M1291355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can split and write the query using for all entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a material will be available in different plants.&lt;/P&gt;&lt;P&gt;so joining mara and marc will not be correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681204#M1291355</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-05T12:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681205#M1291356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose you get a problem related to conversion exit, Doesn't RSA3 wait for internal format parameters ? (try to use F4 to select material numbers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681205#M1291356</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-06-05T12:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681206#M1291357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select marc~matnr MARC~WERKS into t_marc for all entries in gt_werks 
where werks EQ gt_werks-werks and lvorm = space.
if t_marc is not initial.

select MARD~LGORT MARD~WERKS MARA~MEINS MARD~LABST MARD~EINME
MARD~SPEME MARD~RETME MARD~INSME MARD~UMLME
MARD~VMLAB MARD~VMEIN MARD~VMSPE MARD~VMRET
MARD~VMINS MARD~VMUML MARC~XCHPF MARD~KLABS
MARD~KEINM MARD~KSPEM MARD~KINSM  MARA~MEINS  from
mard inner join MARA on mard~matnr = mara~matnr
for all entries in t_marc where  mard~matnr = t_marc-matnr and mard-werks = t_marc-matnr
and mard~lvorm = space.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681206#M1291357</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-05T12:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681207#M1291358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also pass ur material no's in first query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681207#M1291358</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-05T12:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function module based generic extractor - Problem with the selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681208#M1291359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try this and let u know , but i am not sure as to how far this will work inside the open cursor. I think there will be some problem with my cursors... any how i will let u know. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 12:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-based-generic-extractor-problem-with-the-selection/m-p/5681208#M1291359</guid>
      <dc:creator>former_member210676</dc:creator>
      <dc:date>2009-06-05T12:24:08Z</dc:date>
    </item>
  </channel>
</rss>

