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: 

how to create lables in sap scripts?

Former Member
0 Kudos

hi every body,

can any body please let me know the procedure of creating and printing the lables in scripts.

thanx in advance,

regards,

mounika.

4 REPLIES 4

dani_mn
Active Contributor
0 Kudos

Its very simple.

Every thing that you write within editor area. will be printed.

you can use paragraph formats charactar formats to format your texts.

Like you have a paragraph format 'P1' then for writing 'VENDOR NAME' label write like this.

P1 VENDOR NAME

Regards,

Wasim Ahmed

Former Member
0 Kudos

Hi Maunika,

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’.

Former Member
0 Kudos

Hi Mounica,

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.

Additional help

Open SQL

Regards,

naveen

Former Member
0 Kudos

HI

GOOD

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

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

THANKS

MRUTYUN