<?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: How to debug the LSMW coding??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364698#M807406</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;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;Go to the 5th Step that is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"5 Maintain Field Mapping and Conversion Rules"&lt;/P&gt;&lt;P&gt;select this radio Button and execute then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will maping your defining fields to source structure fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then where ever you want to write validations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just select that field and click on RULES tab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then select radio-button User defined routine&lt;/P&gt;&lt;P&gt;then you will get a window &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just click on continue button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will get a PERFORM opposite to your selected field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save and come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then select the 6th radio button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is " 6 Maintain Fixed Values, Translations, User-Defined Routines"&lt;/P&gt;&lt;P&gt;and execute &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there you will find your user defind routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just double click on the routine &lt;/P&gt;&lt;P&gt;then you will get a editor for writing your code for validations&lt;/P&gt;&lt;P&gt;you just pass p_in as input and you will get the result in p_out parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will put a Break point or put command like "BREAK-POINT" &lt;/P&gt;&lt;P&gt;then it will automatically triggered while running this project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;To view your generated code, you need to bring it up in the initial screen of your object.To do so, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click on the User Menu button &amp;amp; check the Display Read Program &amp;amp; Display Conversion Program will take &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you into the generated code. Place your soft breakpoint as you normally do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option: go to the step DISPLAY READ PROGRAM or DISPLAY CONVERTION PROGRAM.&lt;/P&gt;&lt;P&gt;Now you will see the ABAP editor with the code. Place the breakpoint (soft break point using STOP button on application tool bar) where ever you desire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2008 08:10:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-06T08:10:29Z</dc:date>
    <item>
      <title>How to debug the LSMW coding???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364696#M807404</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; Any one please tell how to debug the lSMW codings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx,&lt;/P&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364696#M807404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug the LSMW coding???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364697#M807405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just type /h in the command prompt whenever you want to start debugging.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364697#M807405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug the LSMW coding???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364698#M807406</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;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;Go to the 5th Step that is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"5 Maintain Field Mapping and Conversion Rules"&lt;/P&gt;&lt;P&gt;select this radio Button and execute then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will maping your defining fields to source structure fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then where ever you want to write validations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just select that field and click on RULES tab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then select radio-button User defined routine&lt;/P&gt;&lt;P&gt;then you will get a window &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just click on continue button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will get a PERFORM opposite to your selected field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save and come back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then select the 6th radio button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is " 6 Maintain Fixed Values, Translations, User-Defined Routines"&lt;/P&gt;&lt;P&gt;and execute &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there you will find your user defind routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just double click on the routine &lt;/P&gt;&lt;P&gt;then you will get a editor for writing your code for validations&lt;/P&gt;&lt;P&gt;you just pass p_in as input and you will get the result in p_out parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will put a Break point or put command like "BREAK-POINT" &lt;/P&gt;&lt;P&gt;then it will automatically triggered while running this project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;To view your generated code, you need to bring it up in the initial screen of your object.To do so, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click on the User Menu button &amp;amp; check the Display Read Program &amp;amp; Display Conversion Program will take &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you into the generated code. Place your soft breakpoint as you normally do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option: go to the step DISPLAY READ PROGRAM or DISPLAY CONVERTION PROGRAM.&lt;/P&gt;&lt;P&gt;Now you will see the ABAP editor with the code. Place the breakpoint (soft break point using STOP button on application tool bar) where ever you desire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364698#M807406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug the LSMW coding???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364699#M807407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a small clarification LSMW, While uploading the material using MM01, for the select view option i want to give the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bze i have 2 set of materials, if 1st type of material comes it will select the select view of 3 in the list, otherwise 4th in the list.&lt;/P&gt;&lt;P&gt;The syntax is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if MARA-PSTAT = 'C' &lt;/P&gt;&lt;P&gt;KZSEL_03 = "X"&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;KZSEL_04 = "X"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can i give this condition in LSMW.. how it will work??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its urgent, any plz guide this.&lt;/P&gt;&lt;P&gt;Point will be sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364699#M807407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug the LSMW coding???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364700#M807408</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;You can debug any LSMW object program in the usual way by putting a hard or soft breakpoint. In your Field Mapping/conversion, you can code BREAK-POINT at the very first field. Then the program execution will break when it reaches there. You can also put soft breakpoints in the generated code. To view your generated code, you need to bring it up in the initial screen of your object. To do so, click on the User Menu button &amp;amp; check the Display Read Program &amp;amp; Display Conversion Program ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jt77.com/development2/programming-11864.html" target="test_blank"&gt;http://jt77.com/development2/programming-11864.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward if found helpfull,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chaitanya Raju on Feb 6, 2008 9:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-lsmw-coding/m-p/3364700#M807408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:21:38Z</dc:date>
    </item>
  </channel>
</rss>

