<?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 Script labels in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375759#M526772</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;                  In scripts how we create labels. Where the same possibility is not there in smartform. I dont know about lables in scripts. Please explain me detially.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ahammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2007 10:45:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-07T10:45:06Z</dc:date>
    <item>
      <title>Script labels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375759#M526772</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;                  In scripts how we create labels. Where the same possibility is not there in smartform. I dont know about lables in scripts. Please explain me detially.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ahammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 10:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375759#M526772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script labels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375760#M526773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;What do you mean by Labels in Scripts?&lt;/P&gt;&lt;P&gt;It is the field names or some Free Text literals&lt;/P&gt;&lt;P&gt;You can hardcode them in the script with a proper Paragraph format and with proper FONT and TAB setting before the data of the fields is displayed.&lt;/P&gt;&lt;P&gt;In main window we display the repetetive data for the fields&lt;/P&gt;&lt;P&gt;Before MAIN window declare another window and in that window write all these field Lables(texts) and display, so that under each field label data is displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 10:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375760#M526773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T10:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script labels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375761#M526774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;         Please send me one example regarding this.&lt;/P&gt;&lt;P&gt;In smartforms lables are not possible.Than what is the alternate way for this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:00:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375761#M526774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script labels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375762#M526775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ahammad &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is ur sample program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; TABLES : ZPACK,ZTRN. 

DATA: BEGIN OF ITAB OCCURS 0, 
      ZPKSLIP_NO LIKE ZTRN-ZPKSLIP_NO, 
      ZCARTON_NO LIKE ZPACK-ZCARTON_NO, 
      END OF ITAB. 

DATA MVAR(12) TYPE C. 
DATA MCTR(6) TYPE C. 

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001. 
SELECT-OPTIONS: ZSLIP FOR ZTRN-ZPKSLIP_NO NO-EXTENSION NO INTERVALS 
OBLIGATORY default 6. 
SELECTION-SCREEN END OF BLOCK B1. 

SELECT * FROM ZPACK INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE 
ZPKSLIP_NO EQ ZSLIP-LOW . 

CALL FUNCTION 'OPEN_FORM' 
  EXPORTING 
    FORM = 'ZTEST_RAJ'. 

DO 4 TIMES. 

  MCTR = 100000 + SY-INDEX. 
  MCTR = MCTR+1(5). 
  CONCATENATE '55C/06/' MCTR INTO MVAR. 

  DO 80 TIMES. 
    ITAB-ZPKSLIP_NO = MVAR. 
    ITAB-ZCARTON_NO = SY-INDEX. 
    APPEND ITAB. 
    CLEAR ITAB. 
  ENDDO. 

ENDDO. 

SORT ITAB BY ZPKSLIP_NO ZCARTON_NO. 

CALL FUNCTION 'START_FORM' 
  EXPORTING 
    FORM = 'ZTEST_RAJ'. 

LOOP AT ITAB. 

  AT NEW ZPKSLIP_NO. 

    CALL FUNCTION 'WRITE_FORM' 
      EXPORTING 
        ELEMENT = '101' 
        WINDOW  = 'MAIN'. 

  ENDAT. 

  CALL FUNCTION 'WRITE_FORM' 
    EXPORTING 
      ELEMENT = '102' 
      WINDOW  = 'MAIN'. 

  AT END OF ZPKSLIP_NO. 

    CALL FUNCTION 'END_FORM'. 

    CALL FUNCTION 'START_FORM' 
      EXPORTING 
        FORM = 'ZTEST_RAJ'. 

  ENDAT. 

ENDLOOP. 

CALL FUNCTION 'END_FORM'. 

CALL FUNCTION 'CLOSE_FORM'. 
  
&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;
In sap script write :&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; 
 /E   101                             
 P1   ,,&amp;amp;ITAB-ZPKSLIP_NO(R)&amp;amp;          
 P1                                   
 /E   102                             
 P1   ,,&amp;amp;ITAB-ZCARTON_NO(R)&amp;amp;   

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375762#M526775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script labels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375763#M526776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the &amp;lt;b&amp;gt;window name&amp;lt;/b&amp;gt; and Click the &amp;lt;b&amp;gt;TEXT&amp;lt;/b&amp;gt; button (the last icon).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon clicking that, it takes you to another window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to &amp;lt;b&amp;gt;GOTO&amp;lt;/b&amp;gt; option in the toolbar and select &amp;lt;b&amp;gt;CHANGE EDITOR&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can type your field (Ex. Ahammad) this will display as it is.&lt;/P&gt;&lt;P&gt;Else if you want to display a variable or an internal table content put it between two &amp;amp;'s.   Ex. &amp;amp;it_name&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should answer your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&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;Tej..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375763#M526776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script labels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375764#M526777</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;  In scripts we can declare multiple main windows in a single page where as in smartforms we cannot create multiple main windows in a single page.We create labels using these main windows.When we want to print address for the customers we can declare each address in a each single main window  using scripts.In smartforms it is not possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375764#M526777</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-06-07T11:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script labels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375765#M526778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What you need to do is as follows:&lt;/P&gt;&lt;P&gt;1 Create one main window with the exact format of the labels&lt;/P&gt;&lt;P&gt;2 call this window as many times as you want in the page (in sap script )&lt;/P&gt;&lt;P&gt;3 in the driver program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open_form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;pass your values to the variables for 1st sticker&lt;/P&gt;&lt;P&gt;write_form- MAIN Window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the FM CONTROL_FORM&lt;/P&gt;&lt;P&gt;and pass the command NEW_WINDOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At each loop pass it will print a new sticker from left to right &amp;amp; when it reaches the end of the line it will go to the next row of stickers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you create only one main window , do all the formatting once ,&lt;/P&gt;&lt;P&gt;then import this window as many times as you want in the page&lt;/P&gt;&lt;P&gt;mind well even the variable name doesnt need to be changed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do a loop of what you want to print &lt;/P&gt;&lt;P&gt;once the sticker has been printed , move to the next sticker simply by using the NEW-WINDOW command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use OPEN_FORM &lt;/P&gt;&lt;P&gt;before startin teh loop&lt;/P&gt;&lt;P&gt;withing the loop use&lt;/P&gt;&lt;P&gt;WRITE_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROL_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one all loop passes are over CLOSE_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guarav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 11:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-labels/m-p/2375765#M526778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T11:20:50Z</dc:date>
    </item>
  </channel>
</rss>

