<?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: labels in scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521287#M570710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use it to create bar code labels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create labels in SAPSCRIPT, you will have to define multiple MAIN WINDOWS in the Page Window.. try the following steps..&lt;/P&gt;&lt;P&gt;Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.&lt;/P&gt;&lt;P&gt;1. Create a page window and assign it to a page.&lt;/P&gt;&lt;P&gt;2. Choose Edit --&amp;gt; Main windows.&lt;/P&gt;&lt;P&gt;A dialog box appears.&lt;/P&gt;&lt;P&gt;3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.&lt;/P&gt;&lt;P&gt;4. Enter values in the fields Spacing and Number in the Horizontal group if you want to use multiple columns. You can ignore the fields in the Vertical group.&lt;/P&gt;&lt;P&gt;5. Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the Horizontal and Vertical groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Jul 2007 08:22:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-07T08:22:19Z</dc:date>
    <item>
      <title>labels in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521286#M570709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can any please know , what is labels &amp;amp; why we are using it in Scripts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2007 08:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521286#M570709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T08:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: labels in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521287#M570710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use it to create bar code labels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create labels in SAPSCRIPT, you will have to define multiple MAIN WINDOWS in the Page Window.. try the following steps..&lt;/P&gt;&lt;P&gt;Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.&lt;/P&gt;&lt;P&gt;1. Create a page window and assign it to a page.&lt;/P&gt;&lt;P&gt;2. Choose Edit --&amp;gt; Main windows.&lt;/P&gt;&lt;P&gt;A dialog box appears.&lt;/P&gt;&lt;P&gt;3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.&lt;/P&gt;&lt;P&gt;4. Enter values in the fields Spacing and Number in the Horizontal group if you want to use multiple columns. You can ignore the fields in the Vertical group.&lt;/P&gt;&lt;P&gt;5. Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the Horizontal and Vertical groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2007 08:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521287#M570710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: labels in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521288#M570711</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 design the layout in SE71 and write the ZPL Command(Zebra Printer ) inur program or layout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label size would be 4/6,3/3,3/5 and so on and it will have bar coding also.&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'. 
  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sap script write : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&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>Sat, 07 Jul 2007 10:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521288#M570711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T10:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: labels in scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521289#M570712</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;Refer &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3251757"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3153319"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2345907"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2007 10:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/labels-in-scripts/m-p/2521289#M570712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T10:22:25Z</dc:date>
    </item>
  </channel>
</rss>

