Skip to Content
author's profile photo Former Member
Former Member

Label print using smartforms

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

Add comment
10|10000 characters needed characters exceeded

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2008 at 06:31 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2008 at 09:36 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2008 at 11:22 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2008 at 11:54 AM

    Hi

    The template node is also used for label printing.

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Posted on Sep 01, 2008 at 11:54 AM

    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.

    label-printing-in-smartforms

    Hope this would help you...

    Good luck

    Narin

    Add comment
    10|10000 characters needed characters exceeded

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

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2008 at 12:13 PM
    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2008 at 05:04 AM

    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

    Add comment
    10|10000 characters needed characters exceeded