Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

scripts

Former Member
0 Kudos

Hi Gurus,

In scripts what is the label format? How to design the script in label form?

Thanks in Advance,

Ravi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ravi,

i have never tried designing the labels but the followings links might be of

some help to you.....

http://www.datamaxcorp.com/_assets/library/pdf/sap_91803.pdf#search=%22LABEL%20PRINTING%20IN%20SAP%2...

http://www.satoworldwide.com/labelgallery/downloads/WhitePapers/Printing%20labels%20from%20SAP%20R3....

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

4 REPLIES 4

Former Member
0 Kudos

Hi ravi,

i have never tried designing the labels but the followings links might be of

some help to you.....

http://www.datamaxcorp.com/_assets/library/pdf/sap_91803.pdf#search=%22LABEL%20PRINTING%20IN%20SAP%2...

http://www.satoworldwide.com/labelgallery/downloads/WhitePapers/Printing%20labels%20from%20SAP%20R3....

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

Former Member
0 Kudos

hi,

what is label format?

The design of a bar code label; the arrangement of the text, lines and bar codes on a label.

Editing data labels format.

Select on the data label you want to change.

A small black box appears on either side of each of the data labels in the data series.

Click on the data label again.

A small black box appears at each of the four corners of the data label.

Click on the data label a third time.

A vertical cursor appears. You can move the cursor using the arrows and can edit the text.

Aligning data labels

Double-click the data label.

Choose Alignment.

Select the required Text alignment and the Orientation.

Positioning data labels

Double-click the data label.

Choose Alignment.

Select the required Position.

Specifying the number format of data labels

Double-click the data label.

Choose Number.

Select the required number format.

Specifying the text format of data labels

Double-click the data label.

Choose Font.

Select the required text format.

Specifying the border and fill attributes of data labels

Double-click the data label.

Choose Pattern.

Specify the border and fill attributes.

hope it will be useful.

sri

Former Member
0 Kudos

Hi Ravi,

For creating the Label in Sapscript first you have to install ZEBRA software on your PC for printing Label.In that ZEBRA software you can create your Label as per your requirement.In that only you can generate .lbl and .itf file for that label that you have created.Some code in ZPL language will be generated in that itf file.You have to copy these ZPL codes in your sapscript.Now when you will execute this Sapscript form your Label will be created.

Mukesh Kumar

Former Member
0 Kudos

hi,

chk this sample program:

Sample Sapscripts Label Printing Program

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)&

regards,

keerthi