<?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: Error handling while uploading data through Batch Input Session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390406#M1404648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doing IMPORT?EXPORT will act like a global variable shared between two separate programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first part, export the values to a memory variable after your conditions satisfy and you want to set a flag, like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    free memory id 'ZFLAG_VAR'. "recomended to clear that variable 
                        " before start, you dont need to declare it 
    data: l_flag type c.
    if my_condition = 'true'.
      l_flag = 'X'.
      export l_flag to memory id 'ZFLAG_VAR'.
    endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second part, you can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
import l_flag from memory id 'ZFLAG_VAR'.
if l_flag = 'X'.
   write: 'hmmmm ... the flag was marked, so my condition was true in last part'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Nov 25, 2009 3:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 19:47:14 GMT</pubDate>
    <dc:creator>Shafiq_Rehman1</dc:creator>
    <dc:date>2009-11-25T19:47:14Z</dc:date>
    <item>
      <title>Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390401#M1404643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to upload data from a file to 2 different infotypes at the same time. One is a user defined infotype 9010 and the other is a standard infotype 2010. 9010 infotype has the start and end time whereas 2010 doesn't.While uploading I have put validations to check duplicate entries for infotype 9010 based on the start time and endtime. The duplicate entry is rejected in 9010 but the same gets uploaded in 2010. In 2010 I can't put any validations because there is no start time and end time.  I want to prevent the upload of the entry in infotype 2010 if it is not uploaded in 9010. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390401#M1404643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390402#M1404644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharmila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just set a flag whenever you append a value to infotype 9010 &amp;amp; while checking for infotype 2010, if the flag is not equal to X, then dont append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 07:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390402#M1404644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390403#M1404645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAdI Implementation : ZHIM047_CHECK_9010&lt;/P&gt;&lt;P&gt;Interface : ZHIF001_INT_PBAS0001&lt;/P&gt;&lt;P&gt;Implementing class : ZHIM047_CHECK_9010&lt;/P&gt;&lt;P&gt;METHOD:  ZHIF001_INT_PBAS0001~AFTER_INPUT   (Validations written here. If I set a flag here its not accessible in the code of Infotype 2010)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAdI Implementation : ZHIM048_CHECK_2010&lt;/P&gt;&lt;P&gt;Interface: ZHIF001_INT_PBAS0001&lt;/P&gt;&lt;P&gt;Implementing class : ZHIM048_CHECK_2010&lt;/P&gt;&lt;P&gt;METHOD: ZHIF001_INT_PBAS0001~AFTER_INPUT (Flag not accesible here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I set a global variable which can be accessible at both the places?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 07:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390403#M1404645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390404#M1404646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I declare global variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 04:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390404#M1404646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T04:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390405#M1404647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I declare global variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 04:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390405#M1404647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T04:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390406#M1404648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doing IMPORT?EXPORT will act like a global variable shared between two separate programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first part, export the values to a memory variable after your conditions satisfy and you want to set a flag, like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    free memory id 'ZFLAG_VAR'. "recomended to clear that variable 
                        " before start, you dont need to declare it 
    data: l_flag type c.
    if my_condition = 'true'.
      l_flag = 'X'.
      export l_flag to memory id 'ZFLAG_VAR'.
    endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In second part, you can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
import l_flag from memory id 'ZFLAG_VAR'.
if l_flag = 'X'.
   write: 'hmmmm ... the flag was marked, so my condition was true in last part'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Nov 25, 2009 3:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 19:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390406#M1404648</guid>
      <dc:creator>Shafiq_Rehman1</dc:creator>
      <dc:date>2009-11-25T19:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390407#M1404649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get this error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class ZHIM047_CHECK_9010,Method ZHIF001_INT_PBAS0001~AFTER_INPUT &lt;/P&gt;&lt;P&gt;EXPORT var_1 ... var_n TO MEMORY ... is not supported in the OO		&lt;/P&gt;&lt;P&gt;context. Use EXPORT name_1 from var_1 ... name_n from var_n TO MEMORY		&lt;/P&gt;&lt;P&gt;... instead. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I tried the method suggested by you. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 04:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390407#M1404649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T04:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390408#M1404650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class ZHIM047_CHECK_9010,Method ZHIF001_INT_PBAS0001~AFTER_INPUT&lt;/P&gt;&lt;P&gt;EXPORT var_1 ... var_n TO MEMORY ... is not supported in the OO		&lt;/P&gt;&lt;P&gt;context. Use EXPORT name_1 from var_1 ... name_n from var_n TO MEMORY		&lt;/P&gt;&lt;P&gt;... instead. .		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class ZHIM048_CHECK_2010,Method ZHIF001_INT_PBAS0001~AFTER_INPUT	&lt;/P&gt;&lt;P&gt;IMPORT var_1 ... var_n FROM MEMORY ... is not supported in the OO		&lt;/P&gt;&lt;P&gt;context. Use IMPORT name_1 TO var_1 ... name_n TO var_n FROM MEMORY ...		&lt;/P&gt;&lt;P&gt;instead. .		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What does name_1 mean in these cases? Is it the value of var_1?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 04:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390408#M1404650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T04:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390409#M1404651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sharmila Jee, please search that error on sdn or google, people will not solve your problem from 0 to 100 if you are not showing your interest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 07:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390409#M1404651</guid>
      <dc:creator>Shafiq_Rehman1</dc:creator>
      <dc:date>2009-11-26T07:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390410#M1404652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using set parameter/ get parameter but it doesn't retain the value of the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 07:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390410#M1404652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T07:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling while uploading data through Batch Input Session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390411#M1404653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Method 1&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',&lt;/P&gt;&lt;P&gt;WA_INDX TYPE INDX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Before export, fill the data fields&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;before CLUSTR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WA_INDX-AEDAT = SY-DATUM.&lt;/P&gt;&lt;P&gt;WA_INDX-USERA = SY-UNAME.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Export der Daten.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXPORT IT FROM IT&lt;/P&gt;&lt;P&gt;TO SHARED BUFFER INDX(ST) FROM WA_INDX ID INDXKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Method 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',&lt;/P&gt;&lt;P&gt;WA_INDX TYPE INDX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT IT TO IT&lt;/P&gt;&lt;P&gt;FROM SHARED BUFFER INDX(ST) ID INDXKEY TO WA_INDX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution from an earlier forum and the answer was posted by  Sanjay Sinha  in the forum&lt;/P&gt;&lt;P&gt;Transporting data from abap to function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 03:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-while-uploading-data-through-batch-input-session/m-p/6390411#M1404653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T03:35:42Z</dc:date>
    </item>
  </channel>
</rss>

