Application Development and Automation 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: 
Read only

LABELS

Former Member
0 Likes
947

HI,

PLZ TELL ME HOW TO CREATE LABELS IN SMARTFORMS BCOZ I NEED TO WORK WITH THEM

REGARDS

NA

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
910

same thread..

9 REPLIES 9
Read only

Former Member
0 Likes
911

same thread..

Read only

dani_mn
Active Contributor
0 Likes
910
Read only

Former Member
0 Likes
910

Hi Nayak,

That is not at all a problem how to create the labels in your smartform.You have the layout.Create a smartform and create the same layout in your smartform using windows.Most important thing is that create separate windows for all the fields and their values.The main problem you will face in Printer setting that your Basis person will do and you have to do some printer specific setting in your print program.I am sending you that setting.

DATA : g_output TYPE ssfcompop,

g_control TYPE ssfctrlop,

g_printer TYPE rspoptype,

g_dest TYPE rspopname.

*FM to accept the device type and returns the short name of the output device

CALL FUNCTION 'EFG_GET_PRINTER'

EXPORTING

x_no_dialog = ' '

x_obligatory = 'X'

IMPORTING

y_tddest = g_dest

EXCEPTIONS

cancelled = 1

failed = 2

OTHERS = 3.

.

*device type name for the output device

SELECT SINGLE patype "#EC CI_NOFIELD

FROM tsp03d

INTO g_printer

WHERE padest = g_dest.

*printer setting

g_control-no_dialog = 'X'.

g_output-tdarmod = '1'.

g_output-tdcopies = '001'.

g_output-tddest = g_dest.

g_output-tdprinter = g_printer.

g_output-tdnewid = 'X'.

g_output-tdimmed = 'X'.

*Calling Smartform

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = g_form

IMPORTING

fm_name = g_fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

Read only

0 Likes
910

MORE THANKS MUKESH

BUT I NEED THE PROCEDURE HOW TO DO

POINTS SURE

REGARDS

NA

Read only

0 Likes
910

Hi Nayak,

Labels are not created in smartforms.Smartforms are developed as per your layout requirement.In the smartform you have to do the printer setting as i have given you in the previous mail.When you will call the smartform in the print program and will exceute the print program the label will be created in the zebra printer.If you have any doubt reply this thread.I have worked in this type of task.

Regards,

Mueksh Kumar

Read only

0 Likes
910

THANKS MUKESH

CAN YOU GIVE YOUR MAIL ID PLZ

REGARDS

NA

Read only

0 Likes
910

Hi Nayak,

Send your issues in this forum only.I will try to solve.I will try to solve all your issues related to the programs but for the zebra printer setting you have to contact your basis team.I cannot help you there.

regards,

Mueksh Kumar

Read only

0 Likes
910

Hi Mukesh,

I have developed a smart form for a label printing. I am able to print it on ordinary printer. Now I have to print it on a Zebra Printer.

The settings you have posted is it same for every print program ?

Do I need to insert any ZPL commands?

Can I use the same settings and when I go for printer selection and when I select

a zebra printer and click on print will it print?

My Zebra printer is zebra170xiII

Guys if any one of you solved the problem please let me knw..

with regards,

chaithanya.