<?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: Issue when adding custom code to field in LSMW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594053#M1757878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV id="_dyhb23rg4374"&gt; &lt;/DIV&gt;&lt;P&gt;Hi Can you Please check if the BAPI is released in your system.Did you try to use the BAPI manually.PLease try to check the BAPI first.Let me know if it works.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2013 14:51:53 GMT</pubDate>
    <dc:creator>VijayCR</dc:creator>
    <dc:date>2013-07-22T14:51:53Z</dc:date>
    <item>
      <title>Issue when adding custom code to field in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594051#M1757876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Dear experts:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;This is my very first post to the SCN world so if I’m not following established etiquette please forgive.&amp;nbsp; I have been working with LSMW’s for about 4 years now but I have never done any custom coding in the field mapping and conversion rules section as of myself. I would normally have that done by a developer but I am now wanting to learn how to do this.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I have created a LSMW using the BAPI/Idoc method to create Material Masters and have been able to run it successfully until I added custom code to the Availability Check field (MTVFP).&amp;nbsp; I checked the syntax function and it says it is correct and works.&amp;nbsp; The code says if (XCHPF) is ‘X’ then (MTVFP) equals ‘CH’ else (MTVFP) equals ‘02’. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;When I run ‘Read Data’ step it populates the input file correctly with the right values.&amp;nbsp; When I run the ‘Convert Data’ step and display the results it populates and translates the right values as well but when I finish creating the material, (XCHPF) and (MTVFP) are both blank in the material master.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Please let me know what I am missing or how to get this to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Please see attached file for more detailed information and screen shots.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 01:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594051#M1757876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-21T01:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when adding custom code to field in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594052#M1757877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The coding is right and works as you could see in the Display converted data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usual error people make with BAPIs is that they miss to care about the corresponding fields in X-structures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case with the batch indicator it is even more important to know what your batch level setting is, because SAP knows 2 batch management fields, one at MARA (batch level is client or material level) and one at MARC (batch level is plant level).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 22:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594052#M1757877</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2013-07-21T22:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when adding custom code to field in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594053#M1757878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV id="_dyhb23rg4374"&gt; &lt;/DIV&gt;&lt;P&gt;Hi Can you Please check if the BAPI is released in your system.Did you try to use the BAPI manually.PLease try to check the BAPI first.Let me know if it works.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 14:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594053#M1757878</guid>
      <dc:creator>VijayCR</dc:creator>
      <dc:date>2013-07-22T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when adding custom code to field in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594054#M1757879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jurgen - Thanks for the heads-up on the different batch levels.&amp;nbsp; That solved the problem.&amp;nbsp; Thanks again for the comments and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 19:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-when-adding-custom-code-to-field-in-lsmw/m-p/9594054#M1757879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-22T19:12:31Z</dc:date>
    </item>
  </channel>
</rss>

