<?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: LSMW user-defined routine error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772077#M645955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Extras-&amp;gt;User Menu you can choose to display the Display/Generate Import/Conversion Program options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're struggling to work out the error, it's often a nice trick to display the conversion program and perfom a syntax check on it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 12:10:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T12:10:07Z</dc:date>
    <item>
      <title>LSMW user-defined routine error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772076#M645954</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;  I have a problem with the routines in the LSMW. This is want I am doing:&lt;/P&gt;&lt;P&gt;1. created a project &amp;amp; subproject.&lt;/P&gt;&lt;P&gt;2. copied 4-5 objects from another project&lt;/P&gt;&lt;P&gt;3. copied all the user routines.&lt;/P&gt;&lt;P&gt;4. ran the objects fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a few days I have copied a new object from the old project and used one of the routines. It gives out the message "HANDLE is not defined under DATA". As I know, this is an lsmw global variable so it should work. This variable can be found in one of the routines. I deleted all the routines and copied them again and it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today I needed a new object, copied it, and it gives again this error; recopied the subroutines...still, error persist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advanced&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LE: Is there any way to adapt your conversion program, after you made modifications to the field mapping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Daniel BALTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772076#M645954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW user-defined routine error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772077#M645955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Extras-&amp;gt;User Menu you can choose to display the Display/Generate Import/Conversion Program options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're struggling to work out the error, it's often a nice trick to display the conversion program and perfom a syntax check on it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772077#M645955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW user-defined routine error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772078#M645956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already done that and I still get this error, but only for this object. I have never declared this data "handle", but here is how 2 conversion programs look like (same project/subproject):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program that works:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Counters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  g_cnt_UPLOAD  type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Counter ct_xxxxxxxxxx: number of transferred records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  ct_IBIPEQUI  type i,&lt;/P&gt;&lt;P&gt;  cs_IBIPEQUI  type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global data definitions and data declarations&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;__GLOBAL_DATA__&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: objnr LIKE equi-objnr.&lt;/P&gt;&lt;P&gt;DATA: handle TYPE balloghndl.&lt;/P&gt;&lt;P&gt;INCLUDE zpmxi_appl_log.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_tplnr OCCURS 0 ,&lt;/P&gt;&lt;P&gt;      tplnr(50),&lt;/P&gt;&lt;P&gt;      END OF wa_tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;  p_filept no-display,&lt;/P&gt;&lt;P&gt;  p_trfcpt no-display,&lt;/P&gt;&lt;P&gt;  p_packge(5) type n no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select-option for wildcard value in file names&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the program that doesn't work:&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Counter ct_xxxxxxxxxx: number of transferred records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  ct_BIKSSK  type i,&lt;/P&gt;&lt;P&gt;  cs_BIKSSK  type i,&lt;/P&gt;&lt;P&gt;  ct_BIAUSP  type i,&lt;/P&gt;&lt;P&gt;  cs_BIAUSP  type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;  p_filept no-display,&lt;/P&gt;&lt;P&gt;  p_trfcpt no-display,&lt;/P&gt;&lt;P&gt;  p_packge(5) type n no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select-option for wildcard value in file names&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you explain this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772078#M645956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T12:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW user-defined routine error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772079#M645957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is that this variables are indeed custom, and not global. They have to be assigned in step 5 (Mantain field mapping and conversion rules).&lt;/P&gt;&lt;P&gt;In order to see them, go to EXTRAS-&amp;gt;Layout and mark "Global Data Definition"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-user-defined-routine-error/m-p/2772079#M645957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T12:45:09Z</dc:date>
    </item>
  </channel>
</rss>

