cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript--add text and barcode

Former Member
0 Kudos

Hello Everyone,

I have to write the text "purchase order" and then just below i have to add the barcode for the purchase order number in the sap script.

I do not know sapscript very well .

Please can you give me step by step procedure how to insert the text and the barcode .

i looked on the forum but cannot find anything specific related to my issue

I will really apreciate .

thanks in advance

Sumit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create a character format in the script providing with the barcode type and give the same in the window where you want to display the barcode.

Example: Character format C1 with barcode

In the Window

<C1> &vbak-vbeln& </>

This will give you the barcode.

Thanks & Regards

Sarves

Edited by: Sarves Sombhatla on Jan 29, 2010 4:14 PM

Former Member
0 Kudos

Hi,

Select or craete barcode font in SAP

Create character format and include the barcode within it

ex:

<c1>&XYZ&<c1> where c1 is character format

Former Member
0 Kudos

Thanks for the answer,

i have already created a barcode thru se73

and when i create a charater format , what do i have to do , like where do i mention the field from where it will pick the data to form a barcode and also how do i wite the text purchase order

while creating charater format , when i come to barcode i click on the drop down and select my barcode that i made from se73 , where do i include the command that u have written.

sumit

Edited by: sumit123 on Jan 29, 2010 11:46 AM

Former Member
0 Kudos

Hi

click on character format pushbutton.

In that in Standard Attributes:

Give your barcode name

Former Member
0 Kudos

thanks once again,

i reached so far with writing the name of the barcode , how do i include the command

Sumit

Edited by: sumit123 on Feb 3, 2010 9:08 AM

Former Member
0 Kudos

Hi

After defining Barcode at Character format in Styles,

Just create a window for barcode ; provide style <z..> in OutputOptions tab

n in GeneralAttributes tab, click on text editor and code as following

PG<paragraphformat name> purchase order amount: <C1>&POAMOUNT&</>

PG &POAMOUNT&

here POAMOUNT is variable defined in GLOBAL DEFINITIONS as poamount TYPE P DECIMALS 2

Also, at program lines level, code the logic (eg. poamount = poamount+ ktab-netwr) as per the requirement

Hope you understand..

Best Regards,

Surender

Former Member
0 Kudos

Hello Surender ,

Thanks a lot for replying .

I am stuck in this problem for a long time .

i managed to get the text 'purchase order' on the printout and also created a barcode through se73 .

according to your reply , you mentioned output options tab and general attributes tab , where will i find them .

also i created the character format and attached my barcode .

what to do next .

thanks once again .

sumit

Sandra_Rossi
Active Contributor
0 Kudos

Sumit,

Surender gave you the answer for smart forms in fact. But for SAPscripts, it's rather the same thing. A sapscript doesn't have a style attached, you rather define the paragraph and character formats directly inside the sapscript (click the corresponding buttons in application toolbar).

As it seems you did it, you have just now to enter the barcode as a text, based on the character format C1 (according to Surender answer).