cancel
Showing results for 
Search instead for 
Did you mean: 

Label print using smartforms

Former Member
0 Kudos

Is it possible to print labels based on GR qty.

Example: in my GR I have material with 100 CAR when I press print icon, the system has to print 100 Labels.

Regards

GK

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

take a dummy internal table .

when u enter 100 car ( X car)

fill that internal table with .

do X times.

append initial line to i_dummy.

enddo.

create a loop node for that dummy in smart form.

in that loop node print your templet.

keeep all this in main window.

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Declare a counter variable in global definitions initialize it to 0.

create an alternate node if condition counter <= 100.

Under the true node create template node

Before displaying the label data write program lines code for reading the table at index. and increment the counter variable.

eg.

read table itab index counter.

add 1 to counter.

write the program lines before each text node.(dont forget to increment the counter variable in each program line node

regards

padma

Former Member
0 Kudos

Hi,

Follow the below steps.

1.Create a smart form(Z_GR_QTY_LABELS)

2.Put all the data in an internal table which has to be printed on the males.(One row corresponds to one label)

Hence the number of row in the itab are the GR qty

3.Create a loop and put the condition

To create a loop:Right click>Create Flow Logic>Loop

and put condition on Condition tab(Give sy-tabix LE Gr_qty )

4.Save and activate

Note:

Take care explicit page break.

Hope this helps you.

Regards,

Rama.

Former Member
0 Kudos

Hi Gnana Kumar,

It is absolutely possible to print Labels in Smart forms. You need to do some extra coding for that. Use template and proceed further.

Regards,

Swapna.

Former Member
0 Kudos

Dude,

Lemme see if i got your point right

The Gr has been done for 100 containers and you want to print 100 lables for it.

Just design your smarform including the barcode

loop it as many times as the container numbers

Say if you have a driver program call the function module in DO ENDDO.

this will print the label that many number of times as the nunber of containers

change the number of the label by using a counter

Hope you got it

Regards,

Ravi Kiran

Former Member
0 Kudos

Can u just elobrate, How it can be done in the Smartforms stating few steps on it.

Former Member
0 Kudos

hey,

First of all get all your data into your internal table.

Pull The no of containers of that Gr document into a variable say v_noc.

Have another variable for the count. say v_count.

say you have value 100 in v_noc.

call function 'SSF_FUNCTION_MODULE_NAME'

do v_noc times.

v_count = v_count + 1.

call function v_smartform.

enddo.

what will happen here is the smartforms is called 100 times.

Hope you got it

regards,

ravi

Former Member
0 Kudos

Tanks man i will try and let u know

Former Member
0 Kudos
narin_nandivada3
Active Contributor
0 Kudos

Hi,

Label printing is not possible in Smartforms..

But you can do it with Templates...

Check the Standard Smarform BC470_FLOWD_LABELS

Check this link regarding Label Printing in Smartforms.

Hope this would help you...

Good luck

Narin

Former Member
0 Kudos

I have created a label format with barcode. but what my problem is based on the gr qty the system has to print the labels. is it possible, if so how it can be done what coading i have write in my smartforms.

narin_nandivada3
Active Contributor
0 Kudos

Hi,

No coding required to display value in label format.... Use the Template option so as display the value in the form of Labels.. Once if the value is Calculated the use template to display it and create the cells of same

variable display counting how many labels you want per page.

If am i not clear please revert back with a bit of clear question..

Hope this would help you.

Good luck

Narin.

Former Member
0 Kudos

Hi

The template node is also used for label printing.

Regards,

Sravanthi

Former Member
0 Kudos

I have created a label format with barcode. but what my problem is based on the gr qty the system has to print the labels. is it possible, if so how it can be done what coading i have write in my smartforms.