<?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: Parallel processing  with huge files from AL11 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750316#M2021755</link>
    <description>&lt;P&gt;Thanks for the effort, but the issue is not about this part. It's not about calling via RFC.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem is that you update the same characteristic in 2 parallel RFC (or whatever) so the problem is your logic to distribute the materials and characteristics to the RFC.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You must change your distribution logic.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PS: also, the short dump is missing.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 12:55:47 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-06-29T12:55:47Z</dc:date>
    <item>
      <title>Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750310#M2021749</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I have to read multiple files from Al11 to load data into SAP where I am doing multiple functions like material chnage, assigning class and chars. I tried using parallel processing creating RFC FM wrapper calling all these BAPI's with commit work inside it. program is going dump "Open SQL array insert produces duplicate records in the database".&lt;/P&gt;
  &lt;P&gt;Please let me know how to handle RFC when we have multiple updates in a single task against an object.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 10:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750310#M2021749</guid>
      <dc:creator>rajani_muvva</dc:creator>
      <dc:date>2023-06-22T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750311#M2021750</link>
      <description>&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;can anyone help me on max no of records per work process to be loaded (on an average), when I am loading huge data I am getting express document failed with DBSQL_DUPLICATE_KEY_ERROR while updating articles. can we handle this error at at the program level. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 13:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750311#M2021750</guid>
      <dc:creator>rajani_muvva</dc:creator>
      <dc:date>2023-06-27T13:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750312#M2021751</link>
      <description>&lt;P&gt;I don't understand your question, you are mixing too many things (AL11, RFC, BAPI, insert).&lt;/P&gt;&lt;P&gt;There's nothing special with RFC concerning INSERT. You handle INSERT the same way as in a normal program, you must not INSERT a line if one already exists with same unique key value.&lt;/P&gt;&lt;P&gt;For that, make sure each program is assigned specific lines to update, and handle the exceptions to avoid the short dumps.&lt;/P&gt;&lt;P&gt;PS: my answer is very generic because your question is very generic. If you want a precise answer, ask a precise question = provide your exact logic, table definition, ABAP code and so on.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 17:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750312#M2021751</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-27T17:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750313#M2021752</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;My requirement is to update the article and upload characteristic values in  a single task, I created wrapper RFC to update article (BAPI maintain) and to update characteristic data (BAPI obj change), after every bapi call if return is successful I am using commit work.Wrapper RFC is called in report for parallel processing. please suggest is this approach correct?&lt;/P&gt;&lt;P&gt;For small packet sizes, I am able to load data successfully, but for huge data, I am seeing duplicate key errors. thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 18:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750313#M2021752</guid>
      <dc:creator>rajani_muvva</dc:creator>
      <dc:date>2023-06-27T18:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750314#M2021753</link>
      <description>&lt;P&gt;You are still too much generic. So I will keep answering generically.&lt;/P&gt;&lt;P&gt;The problem is both your logic to distribute the materials and characteristics, and the way you (don't) handle the insert duplicate key exceptions.&lt;/P&gt;&lt;P&gt;If you want to continue the discussion, you will have to tell (much) more about your logic, the way you handle the exceptions, the exact root cause of the exception, etc.&lt;/P&gt;&lt;P&gt;We are in an ABAP forum, but except the words "RFC" and "BAPI", alas there's nothing else concrete in your question.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 17:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750314#M2021753</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-28T17:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750315#M2021754</link>
      <description>&lt;P&gt;Hello sandra,&lt;/P&gt;&lt;P&gt;My requirement is to update the articles and to assign classes and characteristics to the same article.&lt;/P&gt;&lt;P&gt;Due to performance issues while running the program due to huge data in the files,&lt;/P&gt;&lt;P&gt;I am using parallel processing  where I need to have all the above mentioned updates against article in one task.&lt;/P&gt;&lt;P&gt;I created wrapper fm, Inside wrapper FM&lt;/P&gt;&lt;P&gt;calling FM1 (BAPI_MATERIAL_MAINTAINDATA_RT) - update article&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;rollback area.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;call FM2 (BAPI_OBJCL_CHANGE) - assign class and characteristics&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;rollback area.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;In my report I am calling this Wrapper FM.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'wrapper FM' STARTING NEW TASK lv_task DESTINATION IN GROUP system&lt;BR /&gt;          PERFORMING get_data ON END OF TASK&lt;BR /&gt;          EXPORTING&lt;BR /&gt;            itab1 = ltab1&lt;BR /&gt;            itab2 = ltab2&lt;BR /&gt;            itab3 = ltab3.&lt;BR /&gt;            wait UP TO 5 SECONDS.&lt;/P&gt;&lt;P&gt;problem here is I am able to update the data, however I am seeing DBSQL_DUPLICATE_KEY_ERROR for FM2, How can I handle this exception in parallel processing. the error is CLF_HDR has failed due to insert with same key record. (before calling the FM I am sorting the data too).&lt;/P&gt;&lt;P&gt;I tried running FM1 alone only to update article - program was sucess, but for FM2 system is dumping with duplicate key. I would like to handle this exception. I would like to know where exactly I need to handle in the wrapper FM or custom report?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 09:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750315#M2021754</guid>
      <dc:creator>rajani_muvva</dc:creator>
      <dc:date>2023-06-29T09:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750316#M2021755</link>
      <description>&lt;P&gt;Thanks for the effort, but the issue is not about this part. It's not about calling via RFC.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem is that you update the same characteristic in 2 parallel RFC (or whatever) so the problem is your logic to distribute the materials and characteristics to the RFC.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You must change your distribution logic.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PS: also, the short dump is missing.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 12:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750316#M2021755</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-29T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750317#M2021756</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Can you please elaborate on distribute the materials and chars to the RFC. I tried calling only FM2 too. still I am seeing duplicate key dump and here is the error message &lt;/P&gt;&lt;P&gt;An exception has occurred in class "CX_SY_OPEN_SQL_DB". This exception was&lt;/P&gt;&lt;P&gt; caught&lt;/P&gt;&lt;P&gt;in procedure "IF_EX_CACL_CLASSFICATN_UPDATE~AFTER_UPDATE" "(METHOD)" or&lt;/P&gt;&lt;P&gt; propagated by a RAISING clause.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have anticipated this&lt;/P&gt;&lt;P&gt;exception, the current program was terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception occurring was:&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;When an Open SQL array insert is performed, trying to insert a record&lt;/P&gt;&lt;P&gt;into the database table "CLF_HDR" causes the function to terminate if a&lt;/P&gt;&lt;P&gt;record with the same key already exists.&lt;/P&gt;&lt;P&gt;(When an Open SQL individual record insert is performed, this situation&lt;/P&gt;&lt;P&gt;does not cause the function to terminate. SY-SUBRC is set to 4 instead.)&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 17:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750317#M2021756</guid>
      <dc:creator>rajani_muvva</dc:creator>
      <dc:date>2023-06-30T17:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750318#M2021757</link>
      <description>&lt;P&gt;If you had posted all these information since the beginning, you would have immediately obtained support from people around here much earlier... (just one week)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750318#M2021757</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-30T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750319#M2021758</link>
      <description>&lt;P&gt;Although it seems that there's no patch for SAP internal implementations of BAdI CACL_CLASSIFICATION_UPDATE, maybe you can contact SAP Support for help.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750319#M2021758</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-30T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750320#M2021759</link>
      <description>&lt;P&gt;About the "distribution" of data, I mean, what is your logic to avoid updating same materials, same characteristics in parallel?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750320#M2021759</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-06-30T18:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing  with huge files from AL11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750321#M2021760</link>
      <description>&lt;P&gt;I am skipping article upload based on custom validation and errors are not 1 to 1, and If I am loading 10K records with 4 work process all went well, when I am increasing the count I am seeing duplicates.&lt;/P&gt;&lt;P&gt;I am unable to debug the issue too to Identify where exactly this dump triggering (data).&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 07:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing-with-huge-files-from-al11/m-p/12750321#M2021760</guid>
      <dc:creator>rajani_muvva</dc:creator>
      <dc:date>2023-07-01T07:01:17Z</dc:date>
    </item>
  </channel>
</rss>

