<?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: SAP script debugging in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066624#M93469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please explain and give some examples Retrieving data without modifying the original called program .&lt;/P&gt;&lt;P&gt;please help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2005 04:23:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-21T04:23:56Z</dc:date>
    <item>
      <title>SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066622#M93467</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;i am new to sapscripts,&lt;/P&gt;&lt;P&gt;i want to do Retrieving data without modifying the original called program .&lt;/P&gt;&lt;P&gt;i got one exmplae program from sap img site.&lt;/P&gt;&lt;P&gt;i copied form into my z_medruck1 then i am calling the subroutine in my header window(PERFORM GET_BARCODE IN PROGRAM ZSCRIPTPERFORM).&lt;/P&gt;&lt;P&gt;i wrote the ZSCRIPTPERFORM as shown below.&lt;/P&gt;&lt;P&gt;now i want to know how to debugg this program.&lt;/P&gt;&lt;P&gt;or else you can give some other example programs then i can understand easily.&lt;/P&gt;&lt;P&gt;help... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieving data without modifying the original called program &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieving data without modifying the original called program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Put this script code in your sapscripts&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: PERFORM GET_BARCODE IN PROGRAM ZSCRIPTPERFORM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: USING &amp;amp;PAGE&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: USING &amp;amp;NEXTPAGE&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: CHANGING &amp;amp;BARCODE&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/  &amp;amp;BARCODE&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submitted by : SAP Basis, ABAP Programming and Other IMG Stuff&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               &lt;A href="http://sap-img.com/index.htm*" target="test_blank"&gt;http://sap-img.com/index.htm*&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;REPORT ZSCRIPTPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_BARCODE TABLES  IN_PAR STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                        OUT_PAR STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PAGNUM   LIKE SY-TABIX, "page number&lt;/P&gt;&lt;P&gt;      NEXTPAGE LIKE SY-TABIX. "number of next page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY 'PAGE'.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;PAGNUM = IN_PAR-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY 'NEXTPAGE'.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;NEXTPAGE = IN_PAR-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_PAR WITH KEY 'BARCODE'.&lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;IF PAGNUM = 1.&lt;/P&gt;&lt;P&gt;   OUT_PAR-VALUE = '|'. "First page&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   OUT_PAR-VALUE = '||'. "Next page&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NEXTPAGE = 0.&lt;/P&gt;&lt;P&gt;   OUT_PAR-VALUE+2 = 'L'. "Flag: last page&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_PAR INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066622#M93467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066623#M93468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To debugg a sapscript GOTO-&amp;gt;UTILITIES-&amp;gt;ACTIVE DEBUGGER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;KARTIKEY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066623#M93468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066624#M93469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please explain and give some examples Retrieving data without modifying the original called program .&lt;/P&gt;&lt;P&gt;please help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066624#M93469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066625#M93470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to debugg the my perform statement .&lt;/P&gt;&lt;P&gt;help please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066625#M93470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066626#M93471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SO WHILE U WILL DEBUG THE SCRIPT WHEN U COME TO THE PERFORM PART, U WILL HAVE TO CHECK THAT PROGRAM FROM WHERE IT'S TAKING THE VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGSRDA,&lt;/P&gt;&lt;P&gt;KARTIKEY,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066626#M93471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066627#M93472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can debug the sapscript by using SE71-&amp;gt;utilities -&amp;gt; Activate Debugger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if you want to add some logic without changing the original program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for examaple in the sapscript you can get value1 and value2, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you want to do some manipulation and want to display value3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case in sapscript&lt;/P&gt;&lt;P&gt;insert the below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: PERFORM GET_value3 IN PROGRAM ZSCRIPTPERFORM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: USING &amp;amp;value1&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: USING &amp;amp;value2&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: CHANGING &amp;amp;value3&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;/ &amp;amp;value3&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(you are passing value1 and value2 and getting value3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the include program ZSCRIPTPERFORM add the logic below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_value3 TABLES IN_PAR STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_PAR STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : value1 type i,&lt;/P&gt;&lt;P&gt;       value2 type i,&lt;/P&gt;&lt;P&gt;       value3 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR index 1.&lt;/P&gt;&lt;P&gt;value1 = in_par-value&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR index 2.&lt;/P&gt;&lt;P&gt;value2 = in_par-value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value3 = value1 + value2 ( some manipulations)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_PAR WITH index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF PAGNUM = 1.&lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE = value3&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_PAR INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 04:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066627#M93472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066628#M93473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to put a break point in the program in which you have written your subroutine. Just put a break point of first executable statement of subroutine and execute. It should stop at that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see what values are passed from SAPSCRIPT to this subroutine then you will need to activate SAPSCRIPT debugger and go upto that point of calling subroutine and see waht values are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 05:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066628#M93473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T05:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066629#M93474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Please I need attention from your end sanjay please see my query and answer to that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 05:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066629#M93474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T05:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066630#M93475</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;Script:In SE71 give your form name and in Utilities--&amp;gt;Active debugger.&lt;/P&gt;&lt;P&gt;Then put a break point in your print prog where ever you want to stop it.&lt;/P&gt;&lt;P&gt;After that you need to go to your transaction like VF03/../..etc for Invoice you need to execute it by giving Outtype.&lt;/P&gt;&lt;P&gt;Then your print prog and form will debugg step by step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Deepak333 k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 06:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066630#M93475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T06:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP script debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066631#M93476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;as i shown above the example program for printing barcode&lt;/P&gt;&lt;P&gt;in purchase order form(header window in z_medruck1)&lt;/P&gt;&lt;P&gt;when i test my form z_medruck1 i can see the bar code in &lt;/P&gt;&lt;P&gt;print preview.&lt;/P&gt;&lt;P&gt;but when i am create the purchse order through me21 and &lt;/P&gt;&lt;P&gt;i test print privew i was not able to get barcode.&lt;/P&gt;&lt;P&gt;where i was doing wrong?&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 07:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-debugging/m-p/1066631#M93476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T07:16:31Z</dc:date>
    </item>
  </channel>
</rss>

