<?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 script11 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213140#M474285</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;how can we add fields to script with out disturbing driver program.explaine me in brief.thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 14:17:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T14:17:57Z</dc:date>
    <item>
      <title>script11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213140#M474285</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;how can we add fields to script with out disturbing driver program.explaine me in brief.thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213140#M474285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: script11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213141#M474286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If those fields are already passed as variables or internal tables to the script, you can use them in the form.   no need to change the driver program at all, if the changes are made in a text element which is called in the driver program using FM WRITE_FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to declare other local fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	DEFINE &amp;amp;VBELN&amp;amp; = &amp;amp;VBDKR-VBELN&amp;amp;&lt;/P&gt;&lt;P&gt; 	DEFINE &amp;amp;SLSMN_SIGN&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt; 	DEFINE &amp;amp;TXT_GRAPH&amp;amp; = 'T'&lt;/P&gt;&lt;P&gt; 	DEFINE &amp;amp;DPI&amp;amp; = '200'&lt;/P&gt;&lt;P&gt; 	PERFORM GET_SIGNATURE IN PROGRAM Z_SAPSCRIPT_INV&lt;/P&gt;&lt;P&gt; 	USING &amp;amp;VBELN&amp;amp;&lt;/P&gt;&lt;P&gt; 	CHANGING &amp;amp;SLSMN_SIGN&amp;amp;&lt;/P&gt;&lt;P&gt; 	CHANGING &amp;amp;TXT_GRAPH&amp;amp;&lt;/P&gt;&lt;P&gt; 	ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now based on the return values of this 2 variables, u can code for whatever action u need them to perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case also, driver program is not touched.  (you can write the sub routine (in my eg get_signature)  in any program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213141#M474286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: script11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213142#M474287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HEllo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do in the form itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
write these lines in your script.
 
/:   DEFINE &amp;amp;AB&amp;amp; TYPE I,                        
/:          &amp;amp;GV&amp;amp;                                
/:   &amp;amp;AB&amp;amp; = 1                                   
/:   PERFORM INCR_NUM IN PROGRAM ZTESTPDF       
/:                      USING &amp;amp;AB&amp;amp;              
/:                      CHANGING &amp;amp;GV&amp;amp;           
/:                      TABLES INPUT_TABLE      
/:                            OUTPUT_TABLE      
/:   ENDPERFORM  

" CHeck here
Sample code which is similar to your requirement

Write the following lines of code in your driver program(ZTESTPDF)

 FORM INCR_NUM TABLES INTAB STRUCTURE ITCSY
                     OUTAB STRUCTURE ITCSY.
 
DATA: V_DATE LIKE SY-DATUM , V_CHAR(10) TYPE C.
    READ TABLE OUTAB WITH KEY NAME = 'GV'.
    IF SY-SUBRC = 0.
      V_DATE = SY-DATUM + 1.
      CONCATENATE V_DATE+4(2) V_DATE+6(2) V_DATE+0(4) INTO V_CHAR
      SEPARATED BY '.'.
      OUTAB-VALUE = V_CHAR.
      CONDENSE OUTAB-VALUE.
      MODIFY OUTAB INDEX SY-TABIX.
  ENDIF.
ENDFORM.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213142#M474287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: script11</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213143#M474288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello surendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to add a field to SAPScript just enter the field name &lt;/P&gt;&lt;P&gt;in any of he windows as &amp;amp;itab-&amp;lt;f&amp;gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to add a logo..&lt;/P&gt;&lt;P&gt;first upload your logo using the tcode se78.&lt;/P&gt;&lt;P&gt;then in se71, select the window to add logo.&lt;/P&gt;&lt;P&gt;goto edit -&amp;gt; text elements.&lt;/P&gt;&lt;P&gt;goto-&amp;gt;change editor.&lt;/P&gt;&lt;P&gt;insert -&amp;gt; graphic.&lt;/P&gt;&lt;P&gt;enter the name of the logo.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the code below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;PAGE&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;NEXTPAGE&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;BARCODE&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;/ &amp;amp;BARCODE&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coding of the calling ABAP program:&lt;/P&gt;&lt;P&gt;REPORT QCJPERFO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_BARCODE TABLES IN_PAR STUCTURE 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 &amp;#145;PAGE&amp;#146;.&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 &amp;#145;NEXTPAGE&amp;#146;.&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 &amp;#145;BARCODE&amp;#146;.&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 = &amp;#145;|&amp;#146;. "First page&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE = &amp;#145;||&amp;#146;. "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 = &amp;#145;L&amp;#146;. "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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if helpful :-)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script11/m-p/2213143#M474288</guid>
      <dc:creator>sonu_p2</dc:creator>
      <dc:date>2007-04-27T14:31:44Z</dc:date>
    </item>
  </channel>
</rss>

