cancel
Showing results for 
Search instead for 
Did you mean: 

Barcode in smartforms

Former Member
0 Kudos

Hello SDNers,

I have a character format named 'BC' of type BC_C128B.

Page1 -> Barcode window -> Text for Barcode.

Now how do I display the barcode on the window.

I have already searched the SDN but I dint find the syntax or the code to be included in the text element to display the barcode.

]

Help me with example screen shots or sample code to be included in smartforms.

Thanks and Regards,

Ranjith N

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi all,

Still not working. I would explain once again.

Hi Kumar,

I was trying to print a barcode on a smartform and I was unable to do so.

could you please giv me some points to print a barcode.

I wil just explain you what I did.

On SE73 I have designed a new barcode called 'BAR_CODE' of type C128.

when I tested this new barcode I got the output.

I have also created a style called 'ZSTYLE_BARCODE' with 1 paragragh 'P1' and 1 character 'BC'.

Now I am using those styles in my smartform.

In my smartform there is only one window main.

MAIN WINDOW -> PROGRAM LINE -> LOOP -> TEXT

In my text editor I have mentioned the following code <bc>wa-matnr.

Nothing comes on the output screen.

could you give me some tips highly appreciated..

Regards,

Ranjith N

Regards,

Ranjith N

Former Member
0 Kudos

Hey Ranjith,

Check your mail

I have mailed you the format

the reason why i have mailed you is there is some formatting problems i am facing here.

Regards,

Ravi Kiran

Answers (9)

Answers (9)

Former Member
0 Kudos

Hi,

To display barcode on smartforms

u need to declare a character format eg BC1

and in the text element of the corresponding window

declare the barcode

eg <BC> &WA-MATNR& </>

I was unable to find the text element icon on my screen because it was hidden.

Regards,

Ranjith N

Former Member
0 Kudos

answered

flvia_s
Participant
0 Kudos

Hi, Nambiar Ranjith.

Could you please tell us wich was the answer regarding this problem?

Thanks in advance,

Flavia

Former Member
0 Kudos

Hi,

Issue solved

Regards,

Ranjith N

Former Member
0 Kudos

Hi,

Can u share the Bar code printing related docs

Thanks in advance.

KC.

Former Member
0 Kudos

Hi,

Can u share the Bar code printing related docs

Thanks in advance.

KC.

Former Member
0 Kudos

Hi

Dont hard code BC goto Change Editor <BC> &wa-matnr& </> write like this

Then it will print

Regards

Shiva

Former Member
0 Kudos

Hi Ravi,

I tried as you said in the text editor i wrote it as <BC> &wa-matnr&.

now when i execute the form in the print preview it display as <BC> 640

Thanks and regards,

Ranjith N

Former Member
0 Kudos

Hope you have assign Smartstyle (in which BC character format is present) to proper node.

If not double click on text element --> goto Output Options tab --> Select your Smartstyle in Style.

Regards,

Mohaiyuddin

Edited by: Mohaiyuddin Soniwala on Dec 17, 2008 1:13 PM

Former Member
0 Kudos

Hey ,

I am sorry .

it is actually

<BC> wa-matnr&

Hey i really dont know why i am not able to display the symbol

which i am trying to display as below

/ should be embraced between <> after &wa-matnr&. which marks the end of character format BC.

Hope u got what i am trying to tell

Regards,

Ravi Kiran

Edited by: Ravi Kiran Bherthepudi on Dec 17, 2008 9:13 AM

Former Member
0 Kudos

hello,

in the text editor give as follows .

<BC> &v_barcode& </>

where BC is your Bar code Format.

Regards,

Ravi kiran

Former Member
0 Kudos

Hi

Assign the Barcode character format to the variable print. It will print the same

No need of any code

Regards

Shiva

Former Member
0 Kudos

Hi

For the field you want to print the Barcode...give that in the text element and in the character format for the field give the barcode character format.

Vishwa.

Former Member
0 Kudos

chech this out.

https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_wiki&query=barcodeinsmartforms&adv=false&sortby=cm_rnd_rankvalue