<?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: Dynamically import parameters from a specific BAPI function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-import-parameters-from-a-specific-bapi-function/m-p/4105833#M981845</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;It's related to the fact that it could be that we have for example 10000 materials and this gone a take &lt;STRONG&gt;a very long time.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also, I have used this technique for exporting material description, unitsofmeasure, longtext, extension.&lt;/P&gt;&lt;P&gt;Get from the &lt;STRONG&gt;bapi&lt;/STRONG&gt; all of this and return only those where there flags are set.&lt;/P&gt;&lt;P&gt;But, this technique appear to be less effective when using 2000, 5000 or maybe 10000, 1million materials.&lt;/P&gt;&lt;P&gt;It's taking to long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hint:&lt;/STRONG&gt; I'm using a range table for Material, I can have something like (I CP *) so get everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;plantdata = plantdetails (IF plantFLAG was set)&lt;/P&gt;&lt;P&gt;storagelocationdata = locationdetails (IF sglocFLAG is set)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;It's not possible I know, but who knows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Another Hint:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the import parameters of the BAPI_MATERIAL_GET_ALL are set by me.&lt;/P&gt;&lt;P&gt;This's done by getting the needed import parameters from the specified materials. (automatically)&lt;/P&gt;&lt;P&gt;Imagine if the user or program said:&lt;/P&gt;&lt;P&gt;Get plantdata, storagelocationdata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I used an itab to get the werks(plant) FROM MARC and sg_loc FROM MARAD, just for one time.&lt;/P&gt;&lt;P&gt;But this didn't actually speed up the program very much.&lt;/P&gt;&lt;P&gt;Because, the program said every time import from the &lt;STRONG&gt;bapi&lt;/STRONG&gt; &lt;STRONG&gt;plantdata&lt;/STRONG&gt; and after that import from the &lt;STRONG&gt;bapi&lt;/STRONG&gt; a second time &lt;STRONG&gt;storagelocationdata.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Image now if I'll get everything and the program must find the appropriate parameters alone, this will take approximately a half a seconde for just one material, it's very very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 13:40:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-27T13:40:05Z</dc:date>
    <item>
      <title>Dynamically import parameters from a specific BAPI function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-import-parameters-from-a-specific-bapi-function/m-p/4105831#M981843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a little problem of improvement. Currently I'm using the BAPI_MATERIAL_GET_ALL on my program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I actually need, is to dynamically say to the program to give me,&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_MATERIAL_GET_ALL'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          material  = material&lt;/P&gt;&lt;P&gt;          plant     = plant&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          plantdata = plantdetail&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return    = return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the plantFLAG is set, elseif storagelocationdataFLAG set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_MATERIAL_GET_ALL'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          material   = material&lt;/P&gt;&lt;P&gt;          plant       = plant&lt;/P&gt;&lt;P&gt;          stge_loc  = stgeloc&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          storagelocationdata = storagedetails&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return    = return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I say it with a minimum of code and a maximum of performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want repeat the BAPI Function Call all the time, at least if it's in an other function that I can call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ps. Goal: Performance throughput and no redandance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 17:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-import-parameters-from-a-specific-bapi-function/m-p/4105831#M981843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T17:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically import parameters from a specific BAPI function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-import-parameters-from-a-specific-bapi-function/m-p/4105832#M981844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why can't you just make one FM call and get back both the Importing Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the required parameter based on the FLAG after the FM call&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;Aj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 17:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-import-parameters-from-a-specific-bapi-function/m-p/4105832#M981844</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2008-06-26T17:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically import parameters from a specific BAPI function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-import-parameters-from-a-specific-bapi-function/m-p/4105833#M981845</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;It's related to the fact that it could be that we have for example 10000 materials and this gone a take &lt;STRONG&gt;a very long time.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also, I have used this technique for exporting material description, unitsofmeasure, longtext, extension.&lt;/P&gt;&lt;P&gt;Get from the &lt;STRONG&gt;bapi&lt;/STRONG&gt; all of this and return only those where there flags are set.&lt;/P&gt;&lt;P&gt;But, this technique appear to be less effective when using 2000, 5000 or maybe 10000, 1million materials.&lt;/P&gt;&lt;P&gt;It's taking to long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hint:&lt;/STRONG&gt; I'm using a range table for Material, I can have something like (I CP *) so get everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;plantdata = plantdetails (IF plantFLAG was set)&lt;/P&gt;&lt;P&gt;storagelocationdata = locationdetails (IF sglocFLAG is set)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;It's not possible I know, but who knows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Another Hint:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the import parameters of the BAPI_MATERIAL_GET_ALL are set by me.&lt;/P&gt;&lt;P&gt;This's done by getting the needed import parameters from the specified materials. (automatically)&lt;/P&gt;&lt;P&gt;Imagine if the user or program said:&lt;/P&gt;&lt;P&gt;Get plantdata, storagelocationdata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I used an itab to get the werks(plant) FROM MARC and sg_loc FROM MARAD, just for one time.&lt;/P&gt;&lt;P&gt;But this didn't actually speed up the program very much.&lt;/P&gt;&lt;P&gt;Because, the program said every time import from the &lt;STRONG&gt;bapi&lt;/STRONG&gt; &lt;STRONG&gt;plantdata&lt;/STRONG&gt; and after that import from the &lt;STRONG&gt;bapi&lt;/STRONG&gt; a second time &lt;STRONG&gt;storagelocationdata.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Image now if I'll get everything and the program must find the appropriate parameters alone, this will take approximately a half a seconde for just one material, it's very very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 13:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-import-parameters-from-a-specific-bapi-function/m-p/4105833#M981845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T13:40:05Z</dc:date>
    </item>
  </channel>
</rss>

