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: 

labels in script

Former Member
0 Kudos
700

Hi gurus,

can anyone let me know the functionality of Labels in scripts. plz send me sample code for my understanding. How and why they are used.

Thanks and Regards,

vinay

2 REPLIES 2

Former Member
0 Kudos
108

Hi Alson,

Procedure to create the label and how to use it for the printing purpose in sapscript.

1. Create the required label (Layout) in the BarOne software -> save it as .LBL file.

2. Go to Menu bar File - > Create format for mySAP business suite - > Include objects

in the Sapscript file will be checked here - > Next - > Include Logos and include

TTF as Bitmap fonts will be checked here - > Next - > Click on Browse button and

save it as .ITF file - > Press finish and close the window.

3. Go to SO10 Transaction. Create a text name here - > Go to Text - > upload - > check

the option ITF press ENTER - > Enter the path of .ITF file and press ENTER.

Save this standard text.

4. Create form in SE71 include this standard text in main window.

5. Pass this SAPSCRIPT FORM in the print program FM ‘OPEN_FORM’.

Check this out

http://help.sap.com/saphelp_erp2005/helpdata/en/13/388e3bae1d9e7ae10000000a114084/frameset.htm

if you are mentioning about field Labels here are the details for the same

Field Label

Field Labels

Variants:

1. f

2. dbtab~field

3. tabalias~field

Effect

Used in the

SELECT ,

OPEN CURSOR ,

UPDATE, and

DELETE statements to denote uniquely the fields of the database tables and views used in the FROM clause .

Effect

Denotes the field f of a database table or view specified in the FROM clause. The name f may only appear once in all of the database tables and views used in the staetment. This is not a problem if you only specify one table in the FROM clause. If you cannot assure the uniqueness of f, you must used variant 2 or 3.

Example

Display a list of all customers whose name begins with 'A':

DATA: WA_SCUSTOM TYPE SCUSTOM.

SELECT * FROM SCUSTOM INTO WA_SCUSTOM WHERE NAME LIKE 'A%'.

WRITE: / WA_SCUSTOM-ID, WA_SCUSTOM-NAME.

ENDSELECT.

Effect

Denotes the field field of table or view dbtab used in the FROM clause. The field must be unique. This is not a problem if the table or view dbtab only occurs once in the FROM clause. If you cannot assure the uniqueness of the field, you must use variant 3.

Example

Display a list of all customers whose name begins with 'A':

DATA: WA_SCUSTOM TYPE SCUSTOM.

SELECT * FROM SCUSTOM INTO WA_SCUSTOM

WHERE SCUSTOM~NAME LIKE 'A%'.

WRITE: / WA_SCUSTOM-ID, WA_SCUSTOM-NAME.

ENDSELECT.

Effect

Denotes the field f of the specified database table or view that is known by the alias tabalias used in the FROM clause.

Example

Display a list of all customers whose name begins with 'A':

DATA: WA_SCUSTOM TYPE SCUSTOM.

SELECT * FROM SCUSTOM AS T INTO WA_SCUSTOM WHERE T~NAME LIKE 'A%'.

WRITE: / WA_SCUSTOM-ID, WA_SCUSTOM-NAME.

ENDSELECT.

GOOD

GO THROUGH THIS LINK, WHICH WILL HELP YOU TO SOLVE YOUR PROBLEM.

http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/7/

Regards,

Vasanth

Former Member
0 Kudos
108

You can create labels, for example, for address stickers. For labels, several main windows are created on one page.

Procedure

In the maintenance window, choose Edit ® Windows ® Create ® Labels.

The dialog window for editing a main window appears.

In the group box Area enter the left and the upper margins as well as the area width and hight of the individual labels.

In the group box Horizontal enter the horizontal distance between the labels and the number of labels.

In the group box Vertical enter the vertical distance between the labels and the number of labels.

In the group box Positions enter the starting position.

Message was edited by:

Rammohan Nagam