Labels in scripts

hi can any please know , what is labels & why we are using it in Scripts?

Hi
You design the layout in SE71 and write the ZPL Command(Zebra Printer ) inur program or layout .
Label size would be 4/6,3/3,3/5 and so on and it will have bar coding also.
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'.
In sap script write :
/E   101                            
P1   ,,&ITAB-ZPKSLIP_NO(R)&         
P1                                  
/E   102                            
P1   ,,&ITAB-ZCARTON_NO(R)&  
Reward all helpfull answers
Regards
Pavan

Similar Messages

  • Label Graphic Script CS4 Questions?

    Trying to test the label graphic script in cs4. How do I control the font in the label box. Seems to be defaulting to a font I dont want to use. Want to use a simple 9 point font. Is there any further documentation on the use of this script or other cs4 scripts? I have not done much with scrips but think they might be helpful in my workflow.
    Rob

    You need to set up, and select, a paragraph style that you want to use.
    Peter

  • What is the use of labels in scripts?

    What is the use of labels in scripts?
    why it is not possible to create lables in smartforms?
    How can we print different barcodes in scripts and smartfoms?
    Is it possible to create a background logo for a page in script?
    I think we can do this background logo in smartform but in script is it possible?
    Thanks in Advance.
    Regards
    Abhilash.

    1) Labels are used to get
        when u want to do same thing fro diffrent items.
      like when u want to print address for all employess to stick to hike salary envelopes.
    lke when u want price and barcode of matriels to print to metrials.
    2) it is possible to do this in smart form for this we use normal window consept.
    3) and 4) yes it is possible to create background logo in script
    Here is the blog on achieving watermark in SAPScript:
    /people/naimesh.patel/blog/2008/05/22/watermark-in-sapscript

  • Labels in script

    Hi experts,
      I am facing  a problem in script
    Where labels in at line itmes not printed but the data correpondinmg to the line item gets printed .
    i have checked the print program and sub routine program  every thing seems to be fine .
    while debugging i can see the labels comming but not getting printed on output.
    thanks in advance for your help
    R.S.
        t
    Edited by: rohit singh on Aug 21, 2009 5:54 AM

    HI ,
    Please  check the paragarh formate
    There may be some paragaraph element which may have no blank line check as ticked
    try removing this check or make a new  paragarph format with no balbk line unchecked
    replace this with the existing paragraph format.
    Hope this will solve your problem
    regards
    Prashant

  • Use of label in script?

    what is the use of Label in sap script ?

    To create labels in SAPSCRIPT, you will have to define multiple MAIN WINDOWS in the Page Window.. try the following steps..
    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.
    1. Create a page window and assign it to a page.
    2. Choose Edit --> Main windows.
    A dialog box appears.
    3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.
    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.
    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.

  • Modify label in script

    How to modify pallet label in sap script?
    Points vl be rewarded for the helpful answer
    regards
    Rk

    To create labels in SAPSCRIPT, you will have to define multiple MAIN WINDOWS in the Page Window.. try the following steps..
    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.
    1. Create a page window and assign it to a page.
    2. Choose Edit --> Main windows.
    A dialog box appears.
    3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.
    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.
    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.

  • Label on Script ICM

    Hi
    Someone knows, How to configure into the script ICM a node to dial a number or extension?
    In theory with a label node, but how to make the configuration
    Thanks

    Hi,
    using the ICM Config Manager. Tools > List Tools > Label List.
    You might want to configure a label for each peripheral aka routing client (you most likely have one AG/CUCM and a pair of VRU peripherals). Label = phone number. Label type = normal. Don't toch the rest of the form.
    In your script, use the Label node, and add a label for each peripheral (this ensures that wherever the call is, it will get the label).
    G.

  • Set Finder labels per script

    Hi Community,
    after a file server migration I lost on each folder all Finder labels. With the lsmac utility I can fetch the label color for each object and with the setlabel utility I can set a label color for objects. Both utilities come with the osxutil suite.
    Okay so far so good, the solution is based in this two utilities but how can I combine this two commands in a script which read out the label colors of each folder on the source file server and set the right label color of each folder on the target file server. Both servers are mounted via AFP on a Mac workstation.
    The following (test) command reads only a few folders, I would expect that the find command should run recursively but it doesn't:
    $ find / -type d -print0 | xargs -0 lsmac -L
    Orange ------ 93 items - Applications/
    None I----- 37 items - bin/
    None I----- 0 items - cores/
    FSPathMakeRef(): Error -36 returned when getting file reference from //dev
    None ------ 14 items - Developer/
    The following command run like the **** but print out mostly garbage:
    $ find / -type d -print0 -exec lsmac -L {} ;
    Okay, now I've already problems to determine the right label color of each folder. I'm far away from setting a label color. Help would be very appreciated in this job.
    Thx & Bye Tom

    I do NOT know the syntax of the lsmac nor the setlabel commands, so this is just an untested template.
    #!/usr/bin/env bash
    find / -type d | while read file
    do
    color=$(lsmac "$file")
    [[ "$color" = None * ]] && continue
    [[ "$color" = *: Error* ]] && continue
    (set -x
    setlabel "${color%% *}" "/Volumes/REMOTEVOLUMENAME/$file"
    done

  • Label graphics script in CS2?

    does anyone know if the LabelGraphics script for CS3 can be modified for use in IDCS2? Any hints on how to do it?
    Thanks
    jon

    Why not try it out and see? You'll find out pretty fast one way or the other. Use a test file.
    Peter

  • Script Label

    Hi All,
    For my requirement i want to get a list of all page items with "id" value  in script label.
    Script Label concept in entirely new for me.
    Below script get the ID value of every page items in the active document.
    But i dont know how to save all the values [alert(("ID:" + myPgItems) in the script label.
    Trying script:
    var myDoc = app.activeDocument
    var myPageItems = myDoc.allPageItems
    alert(myPageItems.length)
    for(i=0; i<myPageItems.length; i++)
        var myPgItems = myPageItems[i].id
        alert("ID: " + myPgItems)
    Please find the attachment for more information
    Kindly give solution as soon.
    Thanks in advance
    BEGINNER

    Hi Marc/All,
    I  want to get master spreads pageitems  as well.
    But the given script get pageitems from spreads not from Master Spreads.
    function createList(/*PageItem[]*/a)
        var i = a.length,
            r = {};
        while( i-- ){ r['_'+a[i].id]=null; }
        return r;
    function compareList(o1, o2)
        var k, a=[], z=0;
        for( k in o1 )
            if( o2.hasOwnProperty(k) ) continue;
            a[z++] = k.substr(1); // as k is in the form '_id'
        return a;
    function showReport(oldList, newList)
        var r = [],
            a;
        r[0] = (a=compareList(newList, oldList)).length ?
            ("NEW ids: " + a.join(" | ")) :
            ("No NEW item.");
        r[1] = (a=compareList(oldList, newList)).length ?
            ("REMOVED ids: " + a.join(" | ")) :
            ("No REMOVED item.");
        alert( r.join("\r") );
    // MAIN
    var doc = app.activeDocument,
        s = doc.label,
        oldList = s && (new Function('return '+s)()),
        newList = createList(doc.allPageItems);
    if( oldList ) showReport(oldList,newList);
    doc.label = newList.toSource();
    alert( "Data properly saved." );
    Please can anyone help me.
    Thanks in advance
    BEGINNER

  • Labels in smtforms

    HI Friends,
    1)What does this statement means " Labels cannot be created in smart forms??"
    2) How can we create labels in sapscript??
    Thanks,
    Vibha

    Check out these related threads
    how to create labels in sap script?
    Labels in Scripts
    LABELS

  • Label Printing

    Hi all,
    i have created a label using barone software and used it in sapcript.now
    how do i use the text elements and control the number of labels to be printed from printprogram.

    Hi
    To create labels in SAPSCRIPT, you will have to define multiple MAIN WINDOWS in the Page Window.. try the following steps..
    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.
    1. Create a page window and assign it to a page.
    2. Choose Edit --> Main windows.
    A dialog box appears.
    3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.
    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.
    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.
    Also Check these links.
    how to create labels in sap script?
    labels in script
    Labels in Scripts
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • About scripts

    hi friends,
    i want the programming code to use address,protect endprotect,new-page and all commands in SCRIPTS.
    i dont want any theory.i want only the programming code.i hope that u all will help me.

    Hi,
    Introduction
    http://www.thespot4sap.com/articles/SAPscript_Introduction.asp
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    learn sap script
    Label Creation in SAP Scripts
    1. Create a page window and assign it to a page.
    2. Choose Edit --> Main windows.
    A dialog box appears.
    3. Enter values in the fields Area width and Area height in accordance with the input guidelines for main windows.
    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.
    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.
    Also Check these links.
    how to create labels in sap script?
    labels in script
    Labels in Scripts
    FAQs
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    SAPscripts How to calculate Totals and Subtotals
    To calculate totals and sub totals in sap scripts you have to use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    Regards,
    Satish

  • My entire modem script folder is missing.

    I'm trying to install a new modem script but the folder in my library is missing I have searched and it's nowhere to be found. I looked in library not there either. Is there some way to reinstall it?

    I downloaded three new scripts and they are the only 3 that I will need. If possible I would like to install them and not all of the ones that came with OSX. I tried simply making a new folder labeled Modem Scripts in Library but it didn't work. When I go to sys prefs and click on modem them default modems are listed but not the new ones. Any ideas?
    The easiest way would be to use Pacifist...
    http://www.versiontracker.com/dyn/moreinfo/macosx/1274
    3
    to search/extract them from your Install CD/DVD.
    I find it in two hidden folders on my Tiger setup...
    /Volumes/Machintosh HD/Library/Modem Scripts
    /Volumes/Machintosh HD/System/Library/Modem Scripts

  • How can i find the label of all the tabs of a tab navigator??

    I have a tab navigator which has three fixed tabs and dynamically i am creating few tabs. Before creating a tab i wanted to know which all tabs are currently open, basically the name of all the tabs which are open.
    Please let me know how can i achieve this.
    Thanks

    extended from the TabNavigator example in the API docs
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           minWidth="955" minHeight="600"
                           creationComplete="init()">
        <fx:Script>
            <![CDATA[
                private function init():void
                    for (var i:int = 0; i < tn.numElements; i++)
                        var btn:Button = tn.getTabAt(i);
                        trace(btn.label);
            ]]>
        </fx:Script>
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <s:Panel title="TabNavigator Container Example"
                 width="75%" height="75%"
                 horizontalCenter="0" verticalCenter="0">
            <s:VGroup left="10" right="10" top="10" bottom="10">
                <s:Label width="100%" color="blue"
                         text="Select the tabs to change the panel."/>
                <mx:TabNavigator id="tn"  width="100%" height="100%">
                    <!-- Define each panel using a VBox container. -->
                    <mx:VBox label="Panel 1">
                        <mx:Label text="TabNavigator container panel 1"/>
                    </mx:VBox>
                    <mx:VBox label="Panel 2">
                        <mx:Label text="TabNavigator container panel 2"/>
                    </mx:VBox>
                    <mx:VBox label="Panel 3">
                        <mx:Label text="TabNavigator container panel 3"/>
                    </mx:VBox>
                </mx:TabNavigator>
                <s:Label width="100%" color="blue"
                         text="Programmatically select the panel using a Button control."/>
                <s:HGroup>
                    <mx:Button label="Select Tab 1" click="tn.selectedIndex=0"/>
                    <mx:Button label="Select Tab 2" click="tn.selectedIndex=1"/>
                    <mx:Button label="Select Tab 3" click="tn.selectedIndex=2"/>
                </s:HGroup>
            </s:VGroup>
        </s:Panel>
    </s:WindowedApplication>

Maybe you are looking for

  • What's the maximum RAM logic can use?

    As we all know, the Mac Pros can sport up to 16 gig of RAM. The question is.... how much ram can Logic use? I use piles of samples so i'd love to stick 8 gig in the mac pro (that i haven't bought yet) Is it pointless to spend all that cash? If it can

  • MMBE performance

    We just went live 2 months ago and our MMBE performance has been getting slower and slower every week.  When we deselect "also select special stocks" and "also select special commitments" it runs instantly but our buisness requires the second of thes

  • View source without checking out?

    Is there any way to view the source of a page on my site, without checking it out? Quite often I just want to check and/or copy a section of code to another file, and I'd rather not have to check the file out and then check it back in again each time

  • Connection closed after many connect/disconnect

    Hi! I'm connecting and disconnecting through OCCI many times in short term. After disconnect I run SQL*Loader through system command (in C). When number of that connect/disconnect pair reached about 128 I receive: SQL*Loader-704: Internal error: ulco

  • Regarding uploading data from excel sheet to internal table

    hi, while executing the code im getting the output one by one but i want it to be displayed in a table format can any one help me regarding this issue. thanks and regards, siri