How to print  the barcode in a smartform satisfying specific condition

Hi
I have a requirement where I need to print the barcode System Bar code = BC_93
satisfying the following requirement:
The Bar code is made up of the concatenation of “code1 ”, “dash character”
and “ code2”. The two codes ( that is some field in a custom table) should be
eight char long each (put leading zero if the length of the code is shorter).
This barcode shall be printed always apart from:
a) code1 material type is ZCPF
b )Is a combi order, with no code2 stored in storage location “abc”
please help with example . its very urgent , points will be rewarded.
Thanks

To Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope this link ll be useful..
http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
go through these links and cose u r previous threads,
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
smartform - barcode
http://www.erpgenie.com/abap/smartforms.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
Detailed information about SAP Barcodes
A barcode solution consists of the following:
- a barcode printer
- a barcode reader
- a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
Re: how to print barcode using smartform and sapscript...?

Similar Messages

  • How to print the BARCODEs in Oracle 6i Reports

    Hi,
    I want to print the barcodes in the report outputs. I am using Oracle Reports 6i and Oracle Applications 11.5.10.2 with 11g database.
    Please help me with the requirements.
    Thanks,
    Pavan

    Go to Search and type in "barcode".

  • RE: How to print the special characters in Smartforms

    Hi,
    Can you please let me know how to print "číslo" in Smartform output as it is getting printed as "císlo". I mean to say that special character "č" is getting printed as "c".
    Even I checkd the same in Slovakian language and same thing is happening.
    Kindly suggest.....

    Hi,
    Which device type do you use to create the spool and print. What is the result with device type I2SWIn or SWINCF?
    Regards,
    Aidan

  • How to print the data Dynamically in smartforms

    Hi Experts,
    I need to print the data dynamically in different windows on the same page.For example in the first window 25 records,2nd window 25 records and 3rd window 25 records.I need it dynamically.How to achieve this?

    Hi,
    If you have an internal table which fetches the data... Then you can have table in each window and in the data tab give from row and to row values to display how many records and from where to where you want to display.
    Regards,
    -Sandeep

  • How to reduce the barcode size

    hi
    How to reduce the barcode size in smartforms
    Thanks & Regards
    krishna rao

    Hai,
    Go to se73
    select system barcodes radi button
    click change button
    it wil moves to another screen .In that screen it wil show all Bar codes.
    select u r barcode from the list  click and change button.
    in this way u wil change barcode size.
    Reagards.
    kishore ale

  • How to print the superscript in smartform

    Hi gurus,
    Please tell me the procedure how to print the superscript in middle of the text displaying?
    when we are displaying the smartform its converted to some special character like & .
    please let me know procedure at the earliest
    Regards
    Raj

    Hi thanks for ur patience.
    see my requirment was to print TM as superscript for HLL ,already smartstyle is there, and also a character format with superscript is also defined.
    then aftet HLL how it prints as superscript.
    for HLL we are using another character format and for superscript we are using the another character format.
    If posiible send me the code to write in smartforms
    Regards
    RAj
    Points are awarded for useful answers.

  • How to print the texts retrived by using READ_TEXT fun module in Smartform

    Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
    I have coded all things in the program lines and in that i am retriveing the long texts.
    I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text.
    I have to print the trouble ticket. in that the notes log I have to pass.
    its urgent. Points will be rewarded for any type of clue. whether it will work or not.

    There are a few ways to do it. If you need to take all of the text in the text type, in your SF text element choose "Include Text".
    Populate the fields with the data that corresponds to the text type. It is similar to the interface to the FM "Read_Text.
    Text Name
    Text Obje
    Text ID 
    Language
    Encase any variables with the "&" symbol.
    If you have already coded the call to the FM "READ_TEXT" and loaded the text into an internal table, create a loop and loop through the itab. Inside of the loop create a text element and add a variable in the text element for the field you are looking to output.

  • How to implement the barcode printing functionality working on the Prod.

    Hi,
    Can anyone help me "How to implement the barcode printing functionality working on the Prod".
    Thanks
    Gangadhara

    Check this link --> barcode

  • How to Print Multiple Barcode in one line

    Hi All,
    I am printing barcode using <c1>&lwa_itab-matnr</>. now i have a query i want to print in the same line one more bar code with the values. but i m not able to print it. will any one pls help me out in this how i will print more than one barcode in one line.
    i have tried this syntax also
    <c1>&lwa_itab-matnr&      &lwa_itab-matnr&</>.
    But it is not giving gap between two barcode. it is considering space and converting space also in barcode which i don't want. I want to print two barcodes separately with some space. How will i do this.
    Pls answer it. it is very urgent.
    I am doing this in smartforms.
    Thanks
    Garima
    Edited by: Garima Mittal on Jun 18, 2008 12:34 PM

    hi,
    try like this.
    <c1>field1_</c1>_      <c1>field2_</c1>_
    give the two fields in the same line.
    so this will help u in printing the barcodes in the same line
    please reward me if helpful.
    regards,
    Reddy.

  • How to print Vertical barcode in SAP script

    I want to print barcode related items in SAP script . can you plz tell me any one
    1.How to print vertical barcode in SAP script ?
    2.How to print vertical text in SAP script ?

    1.
    Create the character format in se71, in that select standard barcode. like
    Char.format: C1 Description: Barcode
    Barcode: BC_CD39 save the character format.
    you can select from the list.
    in the form coding, can you use barcode like
    <C1> program variablr <>.
    <C1> &itab-matnr <>.    "--->like this
    Then it shows the barcode in output.
    check this.
    2. for vertical text ..
    if this is a window text then its possible but
    like
    S
    H
    I
    P
    T
    O
    This is possible in giving the window name but in the layout i never tried this.
    If u can tell the scenario(with data reference) then may be i can try but not sure that this will give me hit.
    regards,
    vijay.

  • How to print the mass printing in smart forms?

    Hi Experts,
    I have a problem, i could not found how to print the mass printing in smartforms. Can any body explain.
    Regards.
    Venkat N

    Hi,
    Check bellow maintained links
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    http://www.sap-basis-abap.com/smartforms/smartforms-in-details.htm
    Regards
    Gaurav

  • How to print the script in condensed mode

    Hi to all,
    Pls help me.
    How to print the script in condensed mode and particular window only print in the condensed mode.

    Hi,
    Hi
    It will remove the blank spaces in front of the variable
    and if you use the extension NO-GAPS
    It will remove all the blank spaces in the variable field.
    DATA: ws_val1 type char12.
    ws_val1 = ' 100 123'.
    Condense ws_val1.
    Write / ws_val1.
    Condense ws_val1 no-gaps.
    write / ws_val1.
    It will give output as
    100 123
    100123
    The CONDENSE statement deletes redundant spaces from a string:
    CONDENSE c NO-GAPS.
    This statement removes any leading blanks in the field c and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition NO-GAPS is specified, all blanks are removed.
    Please check this link for sample code.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb33e6358411d1829f0000e829fbfe/content.htm
    Regards,
    Raj.

  • How to print the text in points wise in sap script

    hi friends,
    how to print the text in points wise in sap script.
    ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
    1. hai how ru.
    2. what r  u doing.
    3.where r u.
    like this i want numbering.. waiting for ur replys.
    thanks,
    kiran

    declare a counter
    data : cnt type char 4.
    print :
    cnt = cnt + 1.
    &cnt& &text&
    cnt = cnt + 1. and so on.
    or.
    if the data is in an internal table
    loop at internal_table.
    cnt = cnt + 1.
    write form.
    in script -&cnt& &text&
    endloop.
    Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • How to print the message in 2 lines?

    How to print the message in 2 lines?
    Here i am having it like this... MESSAGE i000(zm) WITH lv_uname.
    here I want to print lv_uname in 2 lines because it lengthy one.
    Thanks,
    Sridhar.

    No man, itas not comming..I am using the below logic to print my message:
        CONCATENATE text-I01 lv_printdate1 text-I02 INTO lv_printname
    SEPARATED BY space.
        MESSAGE i002(zm) WITH lv_printname.
    its printing in a single line...

Maybe you are looking for

  • 0x80070002 on clean install of 8.1 Enterprise or 8.1 Enterprise Update (spring refresh)

    I'm looking for some ideas on this baffling problem. I have three Vostro 1720 laptops from about 4 years ago. They all arrived in the same shipment. Their BIOS's were updated to the same version. They had been on Win7, so late last year I clean-insta

  • I just installed OS10.5.8 and now I can't access my network drive

    I could access it directly by going to the network window, then clicking on READYSHARE, which is the Netgear network drive with a direct USB connection, when I was running  10.4.11, but now that I have upgraded to 10.5.8, it does not show the network

  • Full GC takes long time

    Hello, Since the last two weeks, we're experiencing Full GCs that take long time and block our application. Our platform is: Windows 2003 Server 64 bit Tomcat 6.0.18 Java 1.6.0_u13. Total memory: 8Gb. -Xms4096m -Xmx6144m -Xss256k Old generation: min

  • How do I determine my monthly traffic quota

    How do I determine my monthly traffic quota?  I am trying to set up the NQ Mobile Booster for Android.  I am on the new 4g Plan from verizon.

  • Equium A100 - Recovery CD needed

    Hi I want to know I bought my laptop from United kindom which is Equium A100 now the problem is my laptop is too much slow and it takes 10 -15 min to boot and 10-25 to shut down. -My recovery CD is expired I dont use that recover so far I dont know h